|
| 1 | +@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap'); |
| 2 | + |
| 3 | +:root { |
| 4 | + font-family: "Lexend Deca", sans-serif; |
| 5 | + font-optical-sizing: auto; |
| 6 | + font-weight: 400; |
| 7 | + font-style: normal; |
| 8 | + font-size: 1.25em; |
| 9 | + |
| 10 | + --color-accent-green-light: rgb(20, 130, 20); |
| 11 | + --color-accent-green-dark: rgb(20, 100, 20); |
| 12 | + --color-accent-green-left-gradient: linear-gradient(to left, var(--color-accent-green-light), var(--color-accent-green-dark)); |
| 13 | + --color-accent-green-right-gradient: linear-gradient(to right, var(--color-accent-green-light), var(--color-accent-green-dark)); |
| 14 | + --color-accent-pink-light: rgb(180, 60, 160); |
| 15 | + --color-accent-pink-dark: rgb(130, 40, 120); |
| 16 | + --color-accent-pink-left-gradient: linear-gradient(to left, var(--color-accent-pink-light), var(--color-accent-pink-dark)); |
| 17 | + --color-accent-pink-right-gradient: linear-gradient(to right, var(--color-accent-pink-light), var(--color-accent-pink-dark)); |
| 18 | + --color-background-light: rgb(90, 14, 80); |
| 19 | + --color-background-dark: rgb(41, 14, 36); |
| 20 | + --color-background-gradient: linear-gradient(to right, var(--color-background-light), var(--color-background-dark)); |
| 21 | + --border-size: 6px; |
| 22 | + |
| 23 | + scrollbar-color: color-mix(in srgb, var(--color-background-light) 85%, #ffffff 15%) var(--color-background-dark); |
| 24 | + scroll-behavior: smooth; |
| 25 | +} |
| 26 | + |
| 27 | +::selection { |
| 28 | + background-color: color-mix(in srgb, var(--color-accent-green-dark) 75%, #000000 25%); |
| 29 | + text-shadow: none; |
| 30 | +} |
| 31 | + |
| 32 | +p { |
| 33 | + line-height: 1.4; |
| 34 | +} |
| 35 | + |
| 36 | +a { |
| 37 | + color: inherit; |
| 38 | + text-decoration-style: dashed; |
| 39 | +} |
| 40 | + |
| 41 | +audio, |
| 42 | +canvas, |
| 43 | +iframe, |
| 44 | +img, |
| 45 | +svg, |
| 46 | +video { |
| 47 | + vertical-align: middle; |
| 48 | +} |
| 49 | + |
| 50 | +.flex-break { |
| 51 | + flex-basis: 100%; |
| 52 | +} |
| 53 | + |
| 54 | +.text-align-center { |
| 55 | + text-align: center; |
| 56 | +} |
| 57 | + |
| 58 | +body { |
| 59 | + background: url("../img/plus.svg") 16px 16px, var(--color-background-gradient) center/cover; |
| 60 | + background-attachment: fixed; |
| 61 | + margin: 0; |
| 62 | + padding: 0; |
| 63 | +} |
| 64 | + |
| 65 | +main { |
| 66 | + width: 60svw; |
| 67 | + margin: 0 auto; |
| 68 | + background-color: #00000022; |
| 69 | + |
| 70 | + @media screen and (width < 1075px) { |
| 71 | + width: 100%; |
| 72 | + } |
| 73 | + |
| 74 | + > section { |
| 75 | + padding-bottom: 10svh; |
| 76 | + margin: 0 5svw; |
| 77 | + } |
| 78 | + |
| 79 | + > :first-child { |
| 80 | + padding: 35svh 0 23svh 0; |
| 81 | + } |
| 82 | + |
| 83 | + > section > h2 { |
| 84 | + text-align: center; |
| 85 | + } |
| 86 | + |
| 87 | + footer { |
| 88 | + background-color: #000000; |
| 89 | + padding: 20px 0 20px 5svw; |
| 90 | + |
| 91 | + .flag-trans { |
| 92 | + background: linear-gradient(#00d2ff 32.5%, #ffa6b9 0 45%, white 0 57.5%, #ffa6b9 0 70%, #00d2ff 0); |
| 93 | + background-clip: text; |
| 94 | + color: transparent; |
| 95 | + } |
| 96 | + } |
| 97 | +} |
| 98 | + |
| 99 | +#header { |
| 100 | + &, nav { |
| 101 | + display: flex; |
| 102 | + flex-flow: row wrap; |
| 103 | + justify-content: center; |
| 104 | + align-items: center; |
| 105 | + align-content: space-between; |
| 106 | + gap: 16px; |
| 107 | + } |
| 108 | + |
| 109 | + #header-text h1 abbr { |
| 110 | + text-decoration: none; |
| 111 | + } |
| 112 | + |
| 113 | + nav a { |
| 114 | + text-decoration: none; |
| 115 | + white-space: nowrap; |
| 116 | + font-weight: bold; |
| 117 | + padding: 0.5rem 0.5rem; |
| 118 | + box-shadow: 0 0 8px #00000060; |
| 119 | + transition: background-color 0.25s ease-out; |
| 120 | + |
| 121 | + &:nth-child(odd) { |
| 122 | + background-color: var(--color-accent-green-dark); |
| 123 | + |
| 124 | + &:hover { |
| 125 | + background-color: color-mix(in srgb, var(--color-accent-green-dark) 85%, #ffffff 15%); |
| 126 | + } |
| 127 | + } |
| 128 | + |
| 129 | + &:nth-child(even) { |
| 130 | + background-color: var(--color-accent-pink-dark); |
| 131 | + |
| 132 | + &:hover { |
| 133 | + background-color: color-mix(in srgb, var(--color-accent-pink-dark) 85%, #ffffff 15%); |
| 134 | + } |
| 135 | + } |
| 136 | + } |
| 137 | +} |
| 138 | + |
| 139 | +#gallery { |
| 140 | + > h3 { |
| 141 | + padding-top: 2.5svh; |
| 142 | + text-align: center; |
| 143 | + } |
| 144 | + |
| 145 | + .card-group { |
| 146 | + display: flex; |
| 147 | + flex-flow: row wrap; |
| 148 | + justify-content: center; |
| 149 | + align-items: flex-start; |
| 150 | + align-content: stretch; |
| 151 | + gap: 16px; |
| 152 | + |
| 153 | + .card { |
| 154 | + width: min-content; |
| 155 | + padding: 16px; |
| 156 | + box-shadow: 0 0 8px #00000060; |
| 157 | + |
| 158 | + &:nth-child(odd) { |
| 159 | + background: var(--color-accent-green-right-gradient); |
| 160 | + } |
| 161 | + |
| 162 | + &:nth-child(even) { |
| 163 | + background: var(--color-accent-pink-right-gradient); |
| 164 | + } |
| 165 | + |
| 166 | + img { |
| 167 | + box-shadow: 0 0 8px #00000060; |
| 168 | + } |
| 169 | + |
| 170 | + h3 { |
| 171 | + text-align: center; |
| 172 | + margin: 16px 0; |
| 173 | + } |
| 174 | + |
| 175 | + p, |
| 176 | + ul { |
| 177 | + margin: 0; |
| 178 | + } |
| 179 | + } |
| 180 | + } |
| 181 | +} |
| 182 | + |
| 183 | +#support { |
| 184 | + table { |
| 185 | + width: 100%; |
| 186 | + box-shadow: 0 0 8px #00000060; |
| 187 | + |
| 188 | + tr { |
| 189 | + th, |
| 190 | + td { |
| 191 | + margin: 0; |
| 192 | + padding: 0.5rem; |
| 193 | + border: calc(var(--border-size) / 2) solid; |
| 194 | + border-image-slice: 1; |
| 195 | + border-spacing: 0; |
| 196 | + background-color: color-mix(in srgb, var(--color-background-light) 50%, var(--color-background-dark) 50%); |
| 197 | + } |
| 198 | + |
| 199 | + th:nth-child(odd), |
| 200 | + &:not(.support-table-no-offset) th:nth-child(even), |
| 201 | + td:nth-child(odd), |
| 202 | + &:not(.support-table-no-offset) td:nth-child(even) { |
| 203 | + border-image-source: var(--color-accent-green-left-gradient); |
| 204 | + } |
| 205 | + |
| 206 | + th:nth-child(even), |
| 207 | + &:not(.support-table-no-offset) th:nth-child(odd), |
| 208 | + td:nth-child(even), |
| 209 | + &:not(.support-table-no-offset) td:nth-child(odd) { |
| 210 | + border-image-source: var(--color-accent-green-right-gradient); |
| 211 | + } |
| 212 | + |
| 213 | + &.support-table-no-offset th:first-child, |
| 214 | + &.support-table-no-offset td:first-child { |
| 215 | + border-left-width: var(--border-size); |
| 216 | + } |
| 217 | + |
| 218 | + th:last-child, |
| 219 | + td:last-child { |
| 220 | + border-right-width: var(--border-size); |
| 221 | + } |
| 222 | + |
| 223 | + &:first-child th, |
| 224 | + &:first-child td { |
| 225 | + border-top-width: var(--border-size); |
| 226 | + } |
| 227 | + |
| 228 | + &:last-child th, |
| 229 | + &:last-child td, |
| 230 | + &:nth-last-child(1 of .support-table-no-offset) th:first-child, |
| 231 | + &:nth-last-child(1 of .support-table-no-offset) td:first-child { |
| 232 | + border-bottom-width: var(--border-size); |
| 233 | + } |
| 234 | + |
| 235 | + &:not(.support-table-no-offset) td:nth-child(2), |
| 236 | + td:nth-child(3), |
| 237 | + &.support-table-no-offset td:nth-child(4) { |
| 238 | + text-align: center; |
| 239 | + |
| 240 | + @media screen and (width < 600px) { |
| 241 | + display: none; |
| 242 | + } |
| 243 | + } |
| 244 | + |
| 245 | + &:not(.support-table-no-offset) th:nth-child(2), |
| 246 | + th:nth-child(3), |
| 247 | + &.support-table-no-offset th:nth-child(4) { |
| 248 | + @media screen and (width < 600px) { |
| 249 | + display: none; |
| 250 | + } |
| 251 | + } |
| 252 | + |
| 253 | + th > ul, |
| 254 | + td > ul { |
| 255 | + margin: 0; |
| 256 | + padding: 0 0 0 20px; |
| 257 | + } |
| 258 | + } |
| 259 | + } |
| 260 | + |
| 261 | + sup > a { |
| 262 | + text-decoration: none; |
| 263 | + } |
| 264 | +} |
0 commit comments