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