|
| 1 | +@font-face { |
| 2 | + font-family: "Instrument Sans"; |
| 3 | + src: url("InstrumentSans.ttf") format("truetype"); |
| 4 | +} |
| 5 | + |
| 6 | +* { |
| 7 | + margin: 0; |
| 8 | + padding: 0; |
| 9 | + font-family: inherit; |
| 10 | + color: #ffffff; |
| 11 | +} |
| 12 | + |
| 13 | +::-webkit-scrollbar { |
| 14 | + display: none; |
| 15 | +} |
| 16 | + |
| 17 | +body { |
| 18 | + display: flex; |
| 19 | + flex-direction: column; |
| 20 | + justify-content: center; |
| 21 | + align-items: center; |
| 22 | + background: #161616; |
| 23 | + color: #ffffff; |
| 24 | + font-family: "Instrument Sans", sans-serif; |
| 25 | + padding: 25px; |
| 26 | +} |
| 27 | + |
| 28 | +h1 { |
| 29 | + font-size: min(40px, 10vw); |
| 30 | + font-weight: 600; |
| 31 | + line-height: 50px; |
| 32 | + line-height: min(50px, 12.5vw); |
| 33 | +} |
| 34 | + |
| 35 | +p { |
| 36 | + opacity: 0.75; |
| 37 | + font-size: 15px; |
| 38 | + font-weight: 500; |
| 39 | + line-height: 24px; |
| 40 | + letter-spacing: -0.09px; |
| 41 | +} |
| 42 | + |
| 43 | +code { |
| 44 | + padding: 2.5px 5px; |
| 45 | + background: #161616; |
| 46 | + border-radius: 5px; |
| 47 | + margin: 0 2.5px; |
| 48 | +} |
| 49 | + |
| 50 | +.buttons { |
| 51 | + display: flex; |
| 52 | + align-items: flex-start; |
| 53 | + gap: 15px; |
| 54 | + margin-top: 15px; |
| 55 | +} |
| 56 | + |
| 57 | +.button { |
| 58 | + display: flex; |
| 59 | + justify-content: center; |
| 60 | + align-items: center; |
| 61 | + gap: 10px; |
| 62 | + padding: 7.5px 22px; |
| 63 | + border-radius: 5px; |
| 64 | + border: 1px solid #242424; |
| 65 | + background: transparent; |
| 66 | + font-size: 15px; |
| 67 | + font-weight: 500; |
| 68 | + line-height: 24px; |
| 69 | + letter-spacing: -0.09px; |
| 70 | + text-decoration: none; |
| 71 | + cursor: pointer; |
| 72 | + transition: 0.25s; |
| 73 | +} |
| 74 | + |
| 75 | +.button:hover, |
| 76 | +.button:focus, |
| 77 | +.button.active { |
| 78 | + background: #2c2c2c; |
| 79 | + border-color: #393939; |
| 80 | + text-decoration: none; |
| 81 | +} |
| 82 | + |
| 83 | +main { |
| 84 | + display: flex; |
| 85 | + padding: min(100px, 10vh) 0; |
| 86 | + flex-direction: column; |
| 87 | + align-items: flex-start; |
| 88 | + justify-content: center; |
| 89 | + gap: 10px; |
| 90 | + width: -webkit-fill-available; |
| 91 | + height: calc(100vh - 50px - (2 * (min(100px, 10vh)))); |
| 92 | + background: #111111; |
| 93 | + border-radius: 15px; |
| 94 | + overflow-y: scroll; |
| 95 | + position: relative; |
| 96 | + transition: 0.25s; |
| 97 | + |
| 98 | + > .fixed { |
| 99 | + position: absolute; |
| 100 | + bottom: 25px; |
| 101 | + left: 30px; |
| 102 | + } |
| 103 | + |
| 104 | + .inner { |
| 105 | + display: flex; |
| 106 | + flex-direction: column; |
| 107 | + align-items: flex-start; |
| 108 | + justify-content: center; |
| 109 | + align-self: center; |
| 110 | + gap: 10px; |
| 111 | + width: 80%; |
| 112 | + max-width: 1000px; |
| 113 | + height: 100%; |
| 114 | + position: relative; |
| 115 | + transition-timing-function: linear; |
| 116 | + |
| 117 | + > img { |
| 118 | + width: 50px; |
| 119 | + } |
| 120 | + } |
| 121 | +} |
| 122 | + |
| 123 | +@keyframes out { |
| 124 | + 0% { |
| 125 | + margin-left: 0%; |
| 126 | + opacity: 1; |
| 127 | + } |
| 128 | + 100% { |
| 129 | + margin-left: -50%; |
| 130 | + opacity: 0; |
| 131 | + } |
| 132 | +} |
| 133 | + |
| 134 | +@keyframes in { |
| 135 | + 0% { |
| 136 | + margin-right: -50%; |
| 137 | + opacity: 0; |
| 138 | + } |
| 139 | + 100% { |
| 140 | + margin-right: 0%; |
| 141 | + opacity: 1; |
| 142 | + } |
| 143 | +} |
| 144 | + |
| 145 | +main.out .inner { |
| 146 | + animation: out 0.75s forwards; |
| 147 | +} |
| 148 | + |
| 149 | +main.in .inner { |
| 150 | + animation: in 0.5s forwards; |
| 151 | +} |
| 152 | + |
| 153 | +@media screen and (max-width: 950px) { |
| 154 | + .buttons, |
| 155 | + .button { |
| 156 | + width: -webkit-fill-available; |
| 157 | + } |
| 158 | + |
| 159 | + .buttons { |
| 160 | + flex-direction: column; |
| 161 | + gap: 10px; |
| 162 | + } |
| 163 | +} |
0 commit comments