|
| 1 | +.container__splash { |
| 2 | + container-type: inline-size; |
| 3 | + container-name: splash; |
| 4 | + display: flex; |
| 5 | + position: fixed; |
| 6 | + inset: 0; |
| 7 | + z-index: 1000; |
| 8 | + background-color: light-dark(#f4f4f2, #090808); |
| 9 | + justify-content: center; |
| 10 | + align-items: center; |
| 11 | + padding: 1rem; |
| 12 | + transition: background-color 0.3s ease; |
| 13 | + content-visibility: visible; |
| 14 | +} |
| 15 | + |
| 16 | +@container splash (max-width: 768px) { |
| 17 | + .container_splash_card { |
| 18 | + background-color: light-dark(#ffffff, #0f172a); |
| 19 | + padding: 2rem; |
| 20 | + margin-bottom: 0.5vh; |
| 21 | + border-radius: 1rem; |
| 22 | + box-shadow: light-dark(0 10px 30px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3)); |
| 23 | + text-align: center; |
| 24 | + max-width: 400px; |
| 25 | + width: 100%; |
| 26 | + border: light-dark(none, 1px solid #404040); |
| 27 | + transition: |
| 28 | + background-color 0.3s ease, |
| 29 | + box-shadow 0.3s ease; |
| 30 | + } |
| 31 | + |
| 32 | + .container_splash_logo { |
| 33 | + width: 60px; |
| 34 | + margin-bottom: 1rem; |
| 35 | + margin-left: 40%; |
| 36 | + filter: light-dark(none, brightness(0.9)); |
| 37 | + transition: filter 0.3s ease; |
| 38 | + } |
| 39 | + |
| 40 | + .container_splash_heading { |
| 41 | + font-size: 1.25rem; |
| 42 | + margin-bottom: 1rem; |
| 43 | + color: light-dark(#222222, #e0e0e0); |
| 44 | + transition: color 0.3s ease; |
| 45 | + } |
| 46 | + |
| 47 | + .container_splash_text { |
| 48 | + font-size: 0.95rem; |
| 49 | + color: light-dark(#555555, #b0b0b0); |
| 50 | + margin-bottom: 1.5rem; |
| 51 | + transition: color 0.3s ease; |
| 52 | + } |
| 53 | + |
| 54 | + .container_splash_buttons { |
| 55 | + display: flex; |
| 56 | + flex-direction: column; |
| 57 | + gap: 0.75rem; |
| 58 | + } |
| 59 | + |
| 60 | + .container_splash_btn { |
| 61 | + display: inline-block; |
| 62 | + padding: 0.75rem 1rem; |
| 63 | + text-decoration: none; |
| 64 | + border-radius: 8px; |
| 65 | + font-weight: bold; |
| 66 | + text-align: center; |
| 67 | + font-size: 0.95rem; |
| 68 | + transition: all 0.3s ease; |
| 69 | + } |
| 70 | + |
| 71 | + .container_splash_btn_secondary { |
| 72 | + border: 2px solid light-dark(#0f172a, #3b82f6); |
| 73 | + color: light-dark(#0f172a, #3b82f6); |
| 74 | + background-color: light-dark(#ffffff, transparent); |
| 75 | + } |
| 76 | + |
| 77 | + .container_splash_btn_secondary:hover { |
| 78 | + background-color: light-dark(#f8f9f8, rgba(90, 110, 82, 0.1)); |
| 79 | + transform: translateY(-1px); |
| 80 | + } |
| 81 | + |
| 82 | + .container_splash_btn:hover { |
| 83 | + opacity: 0.9; |
| 84 | + } |
| 85 | +} |
0 commit comments