pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 1 | .container { |
| 2 | display: flex; |
| 3 | flex-direction: column; |
| 4 | justify-content: top; |
| 5 | align-items: center; |
| 6 | |
| 7 | position: fixed; |
| 8 | top: 0; |
| 9 | left: 0; |
| 10 | overflow: hidden; |
| 11 | margin: 20px; |
| 12 | |
| 13 | width: 64px; |
| 14 | max-height: 64px; |
pineafan | a841c76 | 2021-11-14 21:21:04 +0000 | [diff] [blame] | 15 | padding-bottom: -1px; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 16 | height: auto; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 17 | |
| 18 | border-radius: 32px; |
| 19 | transition: 0.5s ease-in-out; |
| 20 | } |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 21 | .group { |
| 22 | display: flex; |
| 23 | flex-direction: column; |
| 24 | justify-content: top; |
| 25 | align-items: center; |
| 26 | |
pineafan | 69adcb8 | 2021-11-03 21:29:03 +0000 | [diff] [blame] | 27 | background-color: var(--theme-ui-colors-cardBackground); |
pineafan | 7872745 | 2021-11-04 21:25:07 +0000 | [diff] [blame] | 28 | transition: background-color 0.3s ease-in-out; |
Samuel Shuert | 52f3777 | 2021-09-02 12:29:40 -0500 | [diff] [blame] | 29 | backdrop-filter: blur(7px), brightness(0.1); |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 30 | border-radius: 32px; |
| 31 | |
| 32 | width: 64px; |
| 33 | margin-bottom: 20px; |
| 34 | padding-top: 7px; |
| 35 | } |
| 36 | |
| 37 | .headerIcon { |
| 38 | height: 64px; |
| 39 | width: 64px; |
| 40 | margin-bottom: 20px; |
| 41 | margin-right: 0; |
| 42 | margin-top: -7px; |
pineafan | d57ffa7 | 2021-11-15 21:29:26 +0000 | [diff] [blame^] | 43 | border-radius: 50vw; |
Samuel Shuert | 604e31d | 2021-09-02 16:06:20 -0500 | [diff] [blame] | 44 | |
| 45 | cursor: pointer; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | .icon { |
| 49 | height: 50px; |
| 50 | width: 50px; |
pineafan | ec688e1 | 2021-11-15 21:00:55 +0000 | [diff] [blame] | 51 | border-radius: 50vw; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 52 | margin-bottom: 5px; |
pineafan | df39fd4 | 2021-09-04 16:05:27 +0100 | [diff] [blame] | 53 | cursor: pointer; |
pineafan | 7872745 | 2021-11-04 21:25:07 +0000 | [diff] [blame] | 54 | display: block; |
| 55 | } |
| 56 | |
| 57 | .ThemeChangeButton { |
| 58 | display: flex; |
| 59 | justify-content: center; |
| 60 | align-items: center; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | .containerOpen { |
pineafan | d494b85 | 2021-09-03 19:49:49 +0100 | [diff] [blame] | 64 | max-height: 460px; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 65 | } |
| 66 | |
pineafan | d494b85 | 2021-09-03 19:49:49 +0100 | [diff] [blame] | 67 | .containerDesktop { |
| 68 | animation-name: containerCloseOnStart; |
| 69 | animation-duration: 0.5s; |
| 70 | animation-direction: forwards; |
| 71 | animation-timing-function: ease-in-out; |
| 72 | } |
| 73 | |
| 74 | @keyframes containerCloseOnStart { |
| 75 | from { max-height: 460px; } |
| 76 | to { max-height: 64px ; } |
| 77 | } |
| 78 | |
| 79 | .containerDesktop:hover { |
| 80 | max-height: 460px; |
| 81 | animation-name: none; |
| 82 | } |
| 83 | |
| 84 | @media screen and (min-width: 450px) { |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 85 | .container { |
| 86 | flex-direction: row; |
| 87 | justify-content: left; |
| 88 | |
| 89 | margin: 20px; |
| 90 | |
| 91 | height: 64px; |
| 92 | max-width: 64px; |
| 93 | width: auto; |
| 94 | border-radius: 32px; |
| 95 | |
| 96 | border-radius: 32px; |
| 97 | transition: 0.5s ease-in-out; |
| 98 | } |
| 99 | .group { |
| 100 | flex-direction: row; |
| 101 | justify-content: left; |
| 102 | |
| 103 | height: 64px; |
| 104 | width: auto; |
| 105 | padding-right: 7px; |
| 106 | margin-bottom: 0; |
| 107 | padding-top: 7px; |
| 108 | margin-right: 20px; |
Samuel Shuert | 52f3777 | 2021-09-02 12:29:40 -0500 | [diff] [blame] | 109 | padding-left: 3px; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 110 | } |
| 111 | .headerIcon { |
| 112 | height: 64px; |
| 113 | width: 64px; |
| 114 | margin-top: 12px; |
Samuel Shuert | 52f3777 | 2021-09-02 12:29:40 -0500 | [diff] [blame] | 115 | margin-left: -3px; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 116 | } |
| 117 | .containerOpen { |
pineafan | d494b85 | 2021-09-03 19:49:49 +0100 | [diff] [blame] | 118 | max-width: 460px; |
| 119 | max-height: 64px; |
| 120 | } |
| 121 | .containerDesktop:hover { |
| 122 | max-width: 460px; |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 123 | max-height: 64px; |
| 124 | } |
| 125 | .icon { |
| 126 | height: 50px; |
| 127 | width: 50px; |
| 128 | margin-left: 5px; |
| 129 | } |
pineafan | d494b85 | 2021-09-03 19:49:49 +0100 | [diff] [blame] | 130 | @keyframes containerCloseOnStart { |
| 131 | from { max-width: 460px; } |
| 132 | to { max-width: 64px ; } |
| 133 | } |
pineafan | df39fd4 | 2021-09-04 16:05:27 +0100 | [diff] [blame] | 134 | } |