Spaces:
Running
Running
Create style/base.css
Browse files- style/base.css +146 -0
style/base.css
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ============================================================
|
| 2 |
+
GLASSGRID — BASE STYLES
|
| 3 |
+
Resets, typography foundation, global defaults.
|
| 4 |
+
No component-specific styles. No colors (use tokens).
|
| 5 |
+
============================================================ */
|
| 6 |
+
|
| 7 |
+
*, *::before, *::after {
|
| 8 |
+
box-sizing: border-box;
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
-webkit-tap-highlight-color: transparent;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
html {
|
| 15 |
+
font-size: 16px;
|
| 16 |
+
scroll-behavior: smooth;
|
| 17 |
+
-webkit-text-size-adjust: 100%;
|
| 18 |
+
height: 100%;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
body {
|
| 22 |
+
font: var(--text-body);
|
| 23 |
+
font-family: var(--font-family-base);
|
| 24 |
+
background-color: var(--color-bg-base);
|
| 25 |
+
color: var(--color-text-primary);
|
| 26 |
+
min-height: 100vh;
|
| 27 |
+
overscroll-behavior-y: none;
|
| 28 |
+
-webkit-font-smoothing: antialiased;
|
| 29 |
+
-moz-osx-font-smoothing: grayscale;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
/* Background ambient glow effect */
|
| 33 |
+
body::before {
|
| 34 |
+
content: '';
|
| 35 |
+
position: fixed;
|
| 36 |
+
top: -30%;
|
| 37 |
+
left: -20%;
|
| 38 |
+
width: 60%;
|
| 39 |
+
height: 60%;
|
| 40 |
+
background: radial-gradient(circle, var(--color-accent-primary) 0%, transparent 70%);
|
| 41 |
+
opacity: 0.06;
|
| 42 |
+
pointer-events: none;
|
| 43 |
+
z-index: var(--z-base);
|
| 44 |
+
filter: blur(var(--blur-2xl));
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
body::after {
|
| 48 |
+
content: '';
|
| 49 |
+
position: fixed;
|
| 50 |
+
bottom: -20%;
|
| 51 |
+
right: -20%;
|
| 52 |
+
width: 50%;
|
| 53 |
+
height: 50%;
|
| 54 |
+
background: radial-gradient(circle, var(--color-accent-secondary) 0%, transparent 70%);
|
| 55 |
+
opacity: 0.05;
|
| 56 |
+
pointer-events: none;
|
| 57 |
+
z-index: var(--z-base);
|
| 58 |
+
filter: blur(var(--blur-2xl));
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
img, video {
|
| 62 |
+
max-width: 100%;
|
| 63 |
+
height: auto;
|
| 64 |
+
display: block;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
button, input, textarea, select {
|
| 68 |
+
font: inherit;
|
| 69 |
+
color: inherit;
|
| 70 |
+
border: none;
|
| 71 |
+
background: none;
|
| 72 |
+
outline: none;
|
| 73 |
+
appearance: none;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
button {
|
| 77 |
+
cursor: pointer;
|
| 78 |
+
user-select: none;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
a {
|
| 82 |
+
color: inherit;
|
| 83 |
+
text-decoration: none;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
ul, ol {
|
| 87 |
+
list-style: none;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/* Scrollbar */
|
| 91 |
+
::-webkit-scrollbar { width: 4px; height: 4px; }
|
| 92 |
+
::-webkit-scrollbar-track { background: transparent; }
|
| 93 |
+
::-webkit-scrollbar-thumb {
|
| 94 |
+
background: var(--color-glass-border-md);
|
| 95 |
+
border-radius: var(--radius-full);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/* Focus visible */
|
| 99 |
+
:focus-visible {
|
| 100 |
+
outline: 2px solid var(--color-interactive-focus);
|
| 101 |
+
outline-offset: 2px;
|
| 102 |
+
border-radius: var(--radius-sm);
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
/* Selection */
|
| 106 |
+
::selection {
|
| 107 |
+
background: rgba(168, 85, 247, 0.3);
|
| 108 |
+
color: var(--color-text-primary);
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
/* Typography utilities */
|
| 112 |
+
.text-display { font: var(--text-display); letter-spacing: var(--letter-spacing-tight); }
|
| 113 |
+
.text-heading { font: var(--text-heading); letter-spacing: var(--letter-spacing-tight); }
|
| 114 |
+
.text-subheading { font: var(--text-subheading); }
|
| 115 |
+
.text-body { font: var(--text-body); }
|
| 116 |
+
.text-caption { font: var(--text-caption); }
|
| 117 |
+
.text-micro { font: var(--text-micro); }
|
| 118 |
+
|
| 119 |
+
.text-primary { color: var(--color-text-primary); }
|
| 120 |
+
.text-secondary { color: var(--color-text-secondary); }
|
| 121 |
+
.text-tertiary { color: var(--color-text-tertiary); }
|
| 122 |
+
.text-muted { color: var(--color-text-muted); }
|
| 123 |
+
.text-accent { color: var(--color-text-accent); }
|
| 124 |
+
.text-gradient {
|
| 125 |
+
background: var(--color-accent-gradient);
|
| 126 |
+
-webkit-background-clip: text;
|
| 127 |
+
background-clip: text;
|
| 128 |
+
-webkit-text-fill-color: transparent;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
/* Spacing utilities */
|
| 132 |
+
.mt-auto { margin-top: auto; }
|
| 133 |
+
.mb-auto { margin-bottom: auto; }
|
| 134 |
+
.ml-auto { margin-left: auto; }
|
| 135 |
+
.mr-auto { margin-right: auto; }
|
| 136 |
+
.mx-auto { margin-left: auto; margin-right: auto; }
|
| 137 |
+
|
| 138 |
+
/* Display utilities */
|
| 139 |
+
.hidden { display: none !important; }
|
| 140 |
+
.sr-only {
|
| 141 |
+
position: absolute;
|
| 142 |
+
width: 1px; height: 1px;
|
| 143 |
+
overflow: hidden;
|
| 144 |
+
clip: rect(0,0,0,0);
|
| 145 |
+
white-space: nowrap;
|
| 146 |
+
}
|