@keenmate/pure-css 1.0.0-rc07 → 1.0.0-rc08
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +491 -411
- package/README.md +184 -150
- package/dist/css/base.css +133 -67
- package/dist/css/component-reset.css +27 -0
- package/dist/css/pure-css.css +153 -75
- package/package.json +83 -81
- package/src/js/fit.js +5 -2
- package/src/scss/_base-css-variables.scss +429 -655
- package/src/scss/_layout-container.scss +168 -168
- package/src/scss/_navbar-elements.scss +10 -1
- package/src/scss/_sidebar-states.scss +2 -2
- package/src/scss/_sidebar.scss +443 -428
- package/src/scss/component-reset.scss +65 -0
- package/src/scss/reboot.scss +134 -134
- package/src/scss/scrollbars.scss +48 -48
- package/src/scss/variables/_base.scss +368 -256
- package/src/scss/variables/_colors.scss +208 -237
- package/src/scss/variables/_index.scss +27 -23
- package/src/scss/variables/_system.scss +19 -23
- package/src/scss/variables/_components.scss +0 -840
|
@@ -1,237 +1,208 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// COLOR VARIABLES
|
|
3
|
-
// Theme colors, button colors, contextual colors, component colors
|
|
4
|
-
// These variables DERIVE from base variables for unified theming
|
|
5
|
-
// ============================================================================
|
|
6
|
-
|
|
7
|
-
@use 'sass:color';
|
|
8
|
-
// NOTE: Base variables are available in global scope via @import in _index.scss
|
|
9
|
-
// No @use 'base' needed since we use @import for proper !default cascading
|
|
10
|
-
|
|
11
|
-
// =============================================================================
|
|
12
|
-
// LAYOUT COLORS (derived from base)
|
|
13
|
-
// =============================================================================
|
|
14
|
-
|
|
15
|
-
// Surface tokens aligned with --base-*: main = the primary/raised surface (white),
|
|
16
|
-
// page = the canvas behind it (grey), subtle = a muted tone. (Previously main was
|
|
17
|
-
// wired to the page grey and subtle to white — an inversion vs --base-*.)
|
|
18
|
-
$main-bg: $base-main-bg !default;
|
|
19
|
-
$page-bg: $base-page-bg !default;
|
|
20
|
-
$subtle-bg: $base-subtle-bg !default;
|
|
21
|
-
$text-color-1: $base-text-color-1 !default;
|
|
22
|
-
$text-color-2: $base-text-color-2 !default;
|
|
23
|
-
$border-color: $base-border-color !default;
|
|
24
|
-
|
|
25
|
-
// Navbar colors
|
|
26
|
-
$navbar-bg: $base-main-bg !default;
|
|
27
|
-
$navbar-border-color: $base-border-color !default;
|
|
28
|
-
$navbar-text: $base-text-color-1 !default;
|
|
29
|
-
$navbar-text-secondary: $base-text-color-2 !default;
|
|
30
|
-
$navbar-profile-name-color: $base-text-color-1 !default;
|
|
31
|
-
|
|
32
|
-
// Sidebar colors
|
|
33
|
-
$sidebar-bg: $base-page-bg !default;
|
|
34
|
-
$sidebar-text: $base-text-color-1 !default;
|
|
35
|
-
$sidebar-text-secondary: $base-text-color-2 !default;
|
|
36
|
-
$sidebar-submenu-bg: $base-subtle-bg !default;
|
|
37
|
-
$sidebar-submenu-hover-bg: color.adjust($base-subtle-bg, $lightness: -5%) !default;
|
|
38
|
-
$sidebar-submenu-active-bg: color.adjust($base-subtle-bg, $lightness: -10%) !default;
|
|
39
|
-
$sidebar-submenu-active-text: $sidebar-text !default;
|
|
40
|
-
|
|
41
|
-
// Footer colors
|
|
42
|
-
$footer-bg: $base-main-bg !default;
|
|
43
|
-
$footer-border-color: $base-border-color !default;
|
|
44
|
-
|
|
45
|
-
// Accent colors (derived from base)
|
|
46
|
-
$accent-color: $base-accent-color !default;
|
|
47
|
-
$accent-hover: $base-accent-color-light-hover !default;
|
|
48
|
-
$accent-light: $base-accent-color-light !default;
|
|
49
|
-
|
|
50
|
-
// =============================================================================
|
|
51
|
-
// CARD COLORS (derived from base surfaces)
|
|
52
|
-
// =============================================================================
|
|
53
|
-
|
|
54
|
-
// Body surfaces → main-bg; header/tab chrome → elevated-bg (defaults to page-bg,
|
|
55
|
-
// so unchanged by default; themeable independently). Reconciled so these resolve
|
|
56
|
-
// to the same base tokens the web components read.
|
|
57
|
-
$card-bg: $base-main-bg !default;
|
|
58
|
-
$card-header-bg: $base-elevated-bg !default;
|
|
59
|
-
$card-footer-bg: $base-main-bg !default;
|
|
60
|
-
$card-tabs-bg: $base-elevated-bg !default;
|
|
61
|
-
|
|
62
|
-
// =============================================================================
|
|
63
|
-
// INPUT COLORS (derived from base input vars)
|
|
64
|
-
// =============================================================================
|
|
65
|
-
|
|
66
|
-
$input-bg: $base-input-bg !default;
|
|
67
|
-
$input-border: $base-input-border-color !default; // single-sourced from base (was hardcoded #ced4da)
|
|
68
|
-
$input-text: $base-input-color !default;
|
|
69
|
-
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
$
|
|
81
|
-
|
|
82
|
-
$
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
$btn-
|
|
90
|
-
$btn-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
$btn-
|
|
95
|
-
$btn-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
$btn-
|
|
100
|
-
$btn-
|
|
101
|
-
$btn-
|
|
102
|
-
|
|
103
|
-
//
|
|
104
|
-
$btn-
|
|
105
|
-
$btn-
|
|
106
|
-
$btn-
|
|
107
|
-
|
|
108
|
-
//
|
|
109
|
-
$btn-
|
|
110
|
-
$btn-
|
|
111
|
-
$btn-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
$btn-
|
|
116
|
-
$btn-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
//
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
$
|
|
126
|
-
$
|
|
127
|
-
$
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
//
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
$
|
|
135
|
-
$
|
|
136
|
-
$
|
|
137
|
-
$
|
|
138
|
-
$
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
$
|
|
144
|
-
$
|
|
145
|
-
$
|
|
146
|
-
$
|
|
147
|
-
$
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
$
|
|
153
|
-
$
|
|
154
|
-
$
|
|
155
|
-
$
|
|
156
|
-
$
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
$
|
|
162
|
-
$
|
|
163
|
-
$
|
|
164
|
-
$
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
$
|
|
171
|
-
$
|
|
172
|
-
|
|
173
|
-
$
|
|
174
|
-
$
|
|
175
|
-
$
|
|
176
|
-
|
|
177
|
-
//
|
|
178
|
-
//
|
|
179
|
-
//
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
$
|
|
193
|
-
$
|
|
194
|
-
$
|
|
195
|
-
$
|
|
196
|
-
$
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
$
|
|
201
|
-
$
|
|
202
|
-
$
|
|
203
|
-
$
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
$comparison-accent-pink: #ec4899 !default;
|
|
210
|
-
$comparison-accent-orange: #f97316 !default;
|
|
211
|
-
|
|
212
|
-
// =============================================================================
|
|
213
|
-
// CUSTOM THEME COLOR SLOTS (1-9)
|
|
214
|
-
// Themes can override these to provide additional branded colors
|
|
215
|
-
// =============================================================================
|
|
216
|
-
|
|
217
|
-
$color-1: transparent !default;
|
|
218
|
-
$color-2: transparent !default;
|
|
219
|
-
$color-3: transparent !default;
|
|
220
|
-
$color-4: transparent !default;
|
|
221
|
-
$color-5: transparent !default;
|
|
222
|
-
$color-6: transparent !default;
|
|
223
|
-
$color-7: transparent !default;
|
|
224
|
-
$color-8: transparent !default;
|
|
225
|
-
$color-9: transparent !default;
|
|
226
|
-
|
|
227
|
-
// Theme color slots - text/contrast colors
|
|
228
|
-
// These define the text color to use when color-N is used as a background
|
|
229
|
-
$color-1-text: #ffffff !default;
|
|
230
|
-
$color-2-text: #ffffff !default;
|
|
231
|
-
$color-3-text: #ffffff !default;
|
|
232
|
-
$color-4-text: #ffffff !default;
|
|
233
|
-
$color-5-text: #ffffff !default;
|
|
234
|
-
$color-6-text: #ffffff !default;
|
|
235
|
-
$color-7-text: #ffffff !default;
|
|
236
|
-
$color-8-text: #ffffff !default;
|
|
237
|
-
$color-9-text: #ffffff !default;
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// COLOR VARIABLES
|
|
3
|
+
// Theme colors, button colors, contextual colors, component colors
|
|
4
|
+
// These variables DERIVE from base variables for unified theming
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
@use 'sass:color';
|
|
8
|
+
// NOTE: Base variables are available in global scope via @import in _index.scss
|
|
9
|
+
// No @use 'base' needed since we use @import for proper !default cascading
|
|
10
|
+
|
|
11
|
+
// =============================================================================
|
|
12
|
+
// LAYOUT COLORS (derived from base)
|
|
13
|
+
// =============================================================================
|
|
14
|
+
|
|
15
|
+
// Surface tokens aligned with --base-*: main = the primary/raised surface (white),
|
|
16
|
+
// page = the canvas behind it (grey), subtle = a muted tone. (Previously main was
|
|
17
|
+
// wired to the page grey and subtle to white — an inversion vs --base-*.)
|
|
18
|
+
$main-bg: $base-main-bg !default;
|
|
19
|
+
$page-bg: $base-page-bg !default;
|
|
20
|
+
$subtle-bg: $base-subtle-bg !default;
|
|
21
|
+
$text-color-1: $base-text-color-1 !default;
|
|
22
|
+
$text-color-2: $base-text-color-2 !default;
|
|
23
|
+
$border-color: $base-border-color !default;
|
|
24
|
+
|
|
25
|
+
// Navbar colors
|
|
26
|
+
$navbar-bg: $base-main-bg !default;
|
|
27
|
+
$navbar-border-color: $base-border-color !default;
|
|
28
|
+
$navbar-text: $base-text-color-1 !default;
|
|
29
|
+
$navbar-text-secondary: $base-text-color-2 !default;
|
|
30
|
+
$navbar-profile-name-color: $base-text-color-1 !default;
|
|
31
|
+
|
|
32
|
+
// Sidebar colors
|
|
33
|
+
$sidebar-bg: $base-page-bg !default;
|
|
34
|
+
$sidebar-text: $base-text-color-1 !default;
|
|
35
|
+
$sidebar-text-secondary: $base-text-color-2 !default;
|
|
36
|
+
$sidebar-submenu-bg: $base-subtle-bg !default;
|
|
37
|
+
$sidebar-submenu-hover-bg: color.adjust($base-subtle-bg, $lightness: -5%) !default;
|
|
38
|
+
$sidebar-submenu-active-bg: color.adjust($base-subtle-bg, $lightness: -10%) !default;
|
|
39
|
+
$sidebar-submenu-active-text: $sidebar-text !default;
|
|
40
|
+
|
|
41
|
+
// Footer colors
|
|
42
|
+
$footer-bg: $base-main-bg !default;
|
|
43
|
+
$footer-border-color: $base-border-color !default;
|
|
44
|
+
|
|
45
|
+
// Accent colors (derived from base)
|
|
46
|
+
$accent-color: $base-accent-color !default;
|
|
47
|
+
$accent-hover: $base-accent-color-light-hover !default;
|
|
48
|
+
$accent-light: $base-accent-color-light !default;
|
|
49
|
+
|
|
50
|
+
// =============================================================================
|
|
51
|
+
// CARD COLORS (derived from base surfaces)
|
|
52
|
+
// =============================================================================
|
|
53
|
+
|
|
54
|
+
// Body surfaces → main-bg; header/tab chrome → elevated-bg (defaults to page-bg,
|
|
55
|
+
// so unchanged by default; themeable independently). Reconciled so these resolve
|
|
56
|
+
// to the same base tokens the web components read.
|
|
57
|
+
$card-bg: $base-main-bg !default;
|
|
58
|
+
$card-header-bg: $base-elevated-bg !default;
|
|
59
|
+
$card-footer-bg: $base-main-bg !default;
|
|
60
|
+
$card-tabs-bg: $base-elevated-bg !default;
|
|
61
|
+
|
|
62
|
+
// =============================================================================
|
|
63
|
+
// INPUT COLORS (derived from base input vars)
|
|
64
|
+
// =============================================================================
|
|
65
|
+
|
|
66
|
+
$input-bg: $base-input-bg !default;
|
|
67
|
+
$input-border: $base-input-border-color !default; // single-sourced from base (was hardcoded #ced4da)
|
|
68
|
+
$input-text: $base-input-color !default;
|
|
69
|
+
|
|
70
|
+
// TABLE COLORS moved to pure-admin-core (variables/_components.scss): pure-css
|
|
71
|
+
// renders no table CSS and tables aren't a universal primitive.
|
|
72
|
+
|
|
73
|
+
// =============================================================================
|
|
74
|
+
// BUTTON COLORS (derived from base contextual colors)
|
|
75
|
+
// =============================================================================
|
|
76
|
+
|
|
77
|
+
// Primary button (uses accent)
|
|
78
|
+
$btn-primary-bg: $base-accent-color !default;
|
|
79
|
+
$btn-primary-bg-hover: $base-accent-color-hover !default;
|
|
80
|
+
$btn-primary-text: $base-text-color-on-accent !default;
|
|
81
|
+
|
|
82
|
+
// Secondary button — now traces to the promoted $base-secondary-* role (WS7.5)
|
|
83
|
+
$btn-secondary-bg: $base-secondary-color !default;
|
|
84
|
+
$btn-secondary-bg-hover: $base-secondary-color-hover !default;
|
|
85
|
+
$btn-secondary-text: $base-text-on-secondary !default;
|
|
86
|
+
|
|
87
|
+
// Success button (derived from base success)
|
|
88
|
+
$btn-success-bg: $base-success-color !default;
|
|
89
|
+
$btn-success-bg-hover: $base-success-color-hover !default;
|
|
90
|
+
$btn-success-text: $base-text-on-success !default;
|
|
91
|
+
|
|
92
|
+
// Danger button (derived from base danger)
|
|
93
|
+
$btn-danger-bg: $base-danger-color !default;
|
|
94
|
+
$btn-danger-bg-hover: $base-danger-color-hover !default;
|
|
95
|
+
$btn-danger-text: $base-text-on-danger !default;
|
|
96
|
+
|
|
97
|
+
// Warning button (derived from base warning)
|
|
98
|
+
$btn-warning-bg: $base-warning-color !default;
|
|
99
|
+
$btn-warning-bg-hover: $base-warning-color-hover !default;
|
|
100
|
+
$btn-warning-text: $base-text-on-warning !default;
|
|
101
|
+
$btn-warning-color: $base-text-on-warning !default;
|
|
102
|
+
|
|
103
|
+
// Info button (derived from base info)
|
|
104
|
+
$btn-info-bg: $base-info-color !default;
|
|
105
|
+
$btn-info-bg-hover: $base-info-color-hover !default;
|
|
106
|
+
$btn-info-text: $base-text-on-info !default;
|
|
107
|
+
|
|
108
|
+
// Light button
|
|
109
|
+
$btn-light-bg: $base-page-bg !default;
|
|
110
|
+
$btn-light-bg-hover: $base-subtle-bg !default;
|
|
111
|
+
$btn-light-text: $base-text-color-1 !default;
|
|
112
|
+
|
|
113
|
+
// Dark button
|
|
114
|
+
$btn-dark-bg: #343a40 !default;
|
|
115
|
+
$btn-dark-bg-hover: #1d2124 !default;
|
|
116
|
+
$btn-dark-text: #ffffff !default;
|
|
117
|
+
|
|
118
|
+
// =============================================================================
|
|
119
|
+
// CONTEXTUAL COLORS (derived from base contextual)
|
|
120
|
+
// =============================================================================
|
|
121
|
+
|
|
122
|
+
// Success colors
|
|
123
|
+
$success-bg: $base-success-color !default;
|
|
124
|
+
$success-bg-hover: $base-success-color-hover !default;
|
|
125
|
+
$success-bg-light: $base-success-bg-light !default;
|
|
126
|
+
$success-bg-subtle: $base-success-bg-subtle !default;
|
|
127
|
+
$success-border: $base-success-border !default;
|
|
128
|
+
$success-text: $base-success-text !default;
|
|
129
|
+
$success-text-light: $base-success-text-light !default;
|
|
130
|
+
|
|
131
|
+
// Danger colors
|
|
132
|
+
$danger-bg: $base-danger-color !default;
|
|
133
|
+
$danger-bg-hover: $base-danger-color-hover !default;
|
|
134
|
+
$danger-bg-light: $base-danger-bg-light !default;
|
|
135
|
+
$danger-bg-subtle: $base-danger-bg-subtle !default;
|
|
136
|
+
$danger-border: $base-danger-border !default;
|
|
137
|
+
$danger-text: $base-danger-text !default;
|
|
138
|
+
$danger-text-light: $base-danger-text-light !default;
|
|
139
|
+
|
|
140
|
+
// Warning colors
|
|
141
|
+
$warning-bg: $base-warning-color !default;
|
|
142
|
+
$warning-bg-hover: $base-warning-color-hover !default;
|
|
143
|
+
$warning-bg-light: $base-warning-bg-light !default;
|
|
144
|
+
$warning-bg-subtle: $base-warning-bg-subtle !default;
|
|
145
|
+
$warning-border: $base-warning-border !default;
|
|
146
|
+
$warning-text: $base-warning-text !default;
|
|
147
|
+
$warning-text-light: $base-warning-text-light !default;
|
|
148
|
+
|
|
149
|
+
// Info colors
|
|
150
|
+
$info-bg: $base-info-color !default;
|
|
151
|
+
$info-bg-hover: $base-info-color-hover !default;
|
|
152
|
+
$info-bg-light: $base-info-bg-light !default;
|
|
153
|
+
$info-bg-subtle: $base-info-bg-subtle !default;
|
|
154
|
+
$info-border: $base-info-border !default;
|
|
155
|
+
$info-text: $base-info-text !default;
|
|
156
|
+
$info-text-light: $base-info-text-light !default;
|
|
157
|
+
|
|
158
|
+
// Secondary colors
|
|
159
|
+
$secondary-bg: $btn-secondary-bg !default;
|
|
160
|
+
$secondary-bg-hover: $btn-secondary-bg-hover !default;
|
|
161
|
+
$secondary-text: #383d41 !default;
|
|
162
|
+
$secondary-light-bg: $base-subtle-bg !default;
|
|
163
|
+
$secondary-light-text: $base-text-color-1 !default;
|
|
164
|
+
$secondary-lighter-bg: $base-subtle-bg !default;
|
|
165
|
+
|
|
166
|
+
// =============================================================================
|
|
167
|
+
// TOOLTIP & POPOVER COLORS (derived from base)
|
|
168
|
+
// =============================================================================
|
|
169
|
+
|
|
170
|
+
$tooltip-bg: $base-tooltip-bg !default;
|
|
171
|
+
$tooltip-text: $base-tooltip-text-color !default;
|
|
172
|
+
|
|
173
|
+
$popover-text-light: #ffffff !default;
|
|
174
|
+
$popover-text-dark: #000000 !default;
|
|
175
|
+
$popover-content-bg: $base-dropdown-bg !default; // floating surface → dropdown-bg (= main-bg default)
|
|
176
|
+
|
|
177
|
+
// CODE-LANGUAGE / CODE-SYNTAX and COMPARISON-TABLE colours moved to
|
|
178
|
+
// pure-admin-core (variables/_components.scss): niche component palettes
|
|
179
|
+
// (syntax highlighting, the comparison widget), not foundation primitives.
|
|
180
|
+
|
|
181
|
+
// =============================================================================
|
|
182
|
+
// CUSTOM THEME COLOR SLOTS (1-9)
|
|
183
|
+
// Themes can override these to provide additional branded colors
|
|
184
|
+
// =============================================================================
|
|
185
|
+
|
|
186
|
+
// Derived from the $base-color-* source of truth (variables/_base.scss), like
|
|
187
|
+
// every other token. A theme overrides $base-color-N (or $color-N directly).
|
|
188
|
+
$color-1: $base-color-1 !default;
|
|
189
|
+
$color-2: $base-color-2 !default;
|
|
190
|
+
$color-3: $base-color-3 !default;
|
|
191
|
+
$color-4: $base-color-4 !default;
|
|
192
|
+
$color-5: $base-color-5 !default;
|
|
193
|
+
$color-6: $base-color-6 !default;
|
|
194
|
+
$color-7: $base-color-7 !default;
|
|
195
|
+
$color-8: $base-color-8 !default;
|
|
196
|
+
$color-9: $base-color-9 !default;
|
|
197
|
+
|
|
198
|
+
// Theme color slots - text/contrast colors
|
|
199
|
+
// These define the text color to use when color-N is used as a background
|
|
200
|
+
$color-1-text: $base-color-1-text !default;
|
|
201
|
+
$color-2-text: $base-color-2-text !default;
|
|
202
|
+
$color-3-text: $base-color-3-text !default;
|
|
203
|
+
$color-4-text: $base-color-4-text !default;
|
|
204
|
+
$color-5-text: $base-color-5-text !default;
|
|
205
|
+
$color-6-text: $base-color-6-text !default;
|
|
206
|
+
$color-7-text: $base-color-7-text !default;
|
|
207
|
+
$color-8-text: $base-color-8-text !default;
|
|
208
|
+
$color-9-text: $base-color-9-text !default;
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// VARIABLES INDEX
|
|
3
|
-
// Central import point for all variable modules
|
|
4
|
-
// ============================================================================
|
|
5
|
-
|
|
6
|
-
// IMPORTANT: Order matters for dependencies!
|
|
7
|
-
// 1. Base variables are the SOURCE OF TRUTH (standalone, no imports)
|
|
8
|
-
// 2. All other modules can import from base and derive their values
|
|
9
|
-
//
|
|
10
|
-
// NOTE: We use @import (not @forward) to ensure variables share the global
|
|
11
|
-
// scope. This allows themes to set variables BEFORE importing, and the
|
|
12
|
-
// !default flags will skip already-defined variables.
|
|
13
|
-
|
|
14
|
-
// Base variables FIRST - single source of truth for theming
|
|
15
|
-
@import 'base';
|
|
16
|
-
|
|
17
|
-
// Derived framework variables (can use base values)
|
|
18
|
-
@import 'typography';
|
|
19
|
-
@import 'spacing';
|
|
20
|
-
@import 'colors';
|
|
21
|
-
@import 'layout';
|
|
22
|
-
@import 'system';
|
|
23
|
-
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// VARIABLES INDEX
|
|
3
|
+
// Central import point for all variable modules
|
|
4
|
+
// ============================================================================
|
|
5
|
+
|
|
6
|
+
// IMPORTANT: Order matters for dependencies!
|
|
7
|
+
// 1. Base variables are the SOURCE OF TRUTH (standalone, no imports)
|
|
8
|
+
// 2. All other modules can import from base and derive their values
|
|
9
|
+
//
|
|
10
|
+
// NOTE: We use @import (not @forward) to ensure variables share the global
|
|
11
|
+
// scope. This allows themes to set variables BEFORE importing, and the
|
|
12
|
+
// !default flags will skip already-defined variables.
|
|
13
|
+
|
|
14
|
+
// Base variables FIRST - single source of truth for theming
|
|
15
|
+
@import 'base';
|
|
16
|
+
|
|
17
|
+
// Derived framework variables (can use base values)
|
|
18
|
+
@import 'typography';
|
|
19
|
+
@import 'spacing';
|
|
20
|
+
@import 'colors';
|
|
21
|
+
@import 'layout';
|
|
22
|
+
@import 'system';
|
|
23
|
+
// NOTE: pure-admin's COMPONENT vocabulary (badge/card/table/modal/tabs/stats/
|
|
24
|
+
// timeline/dataviz/command-palette/… — formerly variables/_components.scss) now
|
|
25
|
+
// lives in pure-admin-core, next to the component CSS that consumes it. pure-css
|
|
26
|
+
// ships only the foundation. The $base-* source of truth stays here, so core's
|
|
27
|
+
// component vars still derive from it (no drift).
|
|
@@ -11,14 +11,17 @@
|
|
|
11
11
|
// inside a `.pc-mode-dark` block) take precedence via the cascade.
|
|
12
12
|
$theme-color-scheme: light !default;
|
|
13
13
|
|
|
14
|
-
// Z-index scale (increments of 1000 for easy adjustment)
|
|
14
|
+
// Z-index scale (increments of 1000 for easy adjustment).
|
|
15
|
+
// The generic stacking tiers stay here as a shared foundation contract so the
|
|
16
|
+
// shell (navbar/sidebar) and pure-admin overlays coordinate against one scale.
|
|
17
|
+
// App-specific panel tiers ($z-index-detail-panel-card / -profile-panel /
|
|
18
|
+
// -command-palette / -settings-panel) moved to pure-admin-core
|
|
19
|
+
// (variables/_components.scss) — pure-css renders none of those surfaces.
|
|
15
20
|
$z-index-base: 0 !default;
|
|
16
21
|
$z-index-content: 1000 !default;
|
|
17
22
|
$z-index-sidebar: 2000 !default;
|
|
18
23
|
$z-index-sidebar-fixed: 3000 !default;
|
|
19
|
-
$z-index-detail-panel-card: 3500 !default; // Card overlay detail panel (below navbar)
|
|
20
24
|
$z-index-navbar: 4000 !default;
|
|
21
|
-
$z-index-profile-panel: 5000 !default;
|
|
22
25
|
$z-index-modal-backdrop: 6000 !default;
|
|
23
26
|
$z-index-modal: 7000 !default;
|
|
24
27
|
$z-index-toast: 8000 !default;
|
|
@@ -28,8 +31,6 @@ $z-index-tooltip: 9000 !default;
|
|
|
28
31
|
$z-index-dropdown: 7500 !default;
|
|
29
32
|
$z-index-popover: 7600 !default;
|
|
30
33
|
$z-index-loader: 10 !default;
|
|
31
|
-
$z-index-command-palette: 10500 !default;
|
|
32
|
-
$z-index-settings-panel: 10000 !default;
|
|
33
34
|
|
|
34
35
|
// Transitions & Animation
|
|
35
36
|
$transition-speed: 1 !default;
|
|
@@ -51,13 +52,11 @@ $opacity-border: 0.2 !default;
|
|
|
51
52
|
$opacity-shadow: 0.12 !default;
|
|
52
53
|
$opacity-shadow-md: 0.15 !default;
|
|
53
54
|
|
|
54
|
-
// Component-specific opacities
|
|
55
|
-
$alert-secondary-bg-opacity
|
|
56
|
-
$
|
|
57
|
-
$
|
|
58
|
-
$
|
|
59
|
-
$popover-code-bg-opacity: 0.1 !default;
|
|
60
|
-
$modal-warning-hover-bg-opacity: $opacity-light !default;
|
|
55
|
+
// Component-specific opacities moved to pure-admin-core (variables/
|
|
56
|
+
// _components.scss): $alert-secondary-bg-opacity, $alert-light-bg-opacity,
|
|
57
|
+
// $card-tab-hover-opacity, $bg-pattern-opacity, $popover-code-bg-opacity,
|
|
58
|
+
// $modal-warning-hover-bg-opacity — niche one-offs for pure-admin components,
|
|
59
|
+
// not a generic scale. The generic $opacity-* set above stays foundation.
|
|
61
60
|
|
|
62
61
|
// Shadow system
|
|
63
62
|
$shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1) !default;
|
|
@@ -67,23 +66,20 @@ $shadow-xl: 0 0 60px rgba(0, 0, 0, 0.12) !default;
|
|
|
67
66
|
$shadow-2xl: 0 0 80px rgba(0, 0, 0, 0.15) !default;
|
|
68
67
|
$shadow-sidebar: -2px 2px 10px rgba(0, 0, 0, 0.1) !default;
|
|
69
68
|
$shadow-sidebar-open: -5px 0 20px rgba(0, 0, 0, 0.1) !default;
|
|
70
|
-
$shadow-profile-panel
|
|
69
|
+
// $shadow-profile-panel moved to pure-admin-core (variables/_components.scss) —
|
|
70
|
+
// a pure-admin panel shadow, not a foundation surface.
|
|
71
71
|
|
|
72
72
|
// Focus outline
|
|
73
73
|
$focus-outline-width: 2px !default;
|
|
74
74
|
$focus-outline-offset: 2px !default;
|
|
75
75
|
$focus-ring-width: 3px !default;
|
|
76
76
|
|
|
77
|
-
// Background
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
$bg-pattern-circle-2-x: 80% !default;
|
|
81
|
-
$bg-pattern-circle-2-y: 20% !default;
|
|
82
|
-
$bg-pattern-gradient-start: 0% !default;
|
|
83
|
-
$bg-pattern-gradient-stop: 50% !default;
|
|
77
|
+
// Background-pattern geometry ($bg-pattern-circle-* / $bg-pattern-gradient-*)
|
|
78
|
+
// moved to pure-admin-core (variables/_components.scss): decorative geometry for
|
|
79
|
+
// a specific pure-admin backdrop, not a foundation primitive.
|
|
84
80
|
|
|
85
81
|
// Animation
|
|
86
82
|
$animation-spin-duration: 1s !default;
|
|
87
|
-
$ripple-color
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
// Ripple effect ($ripple-color / -transition-duration / -size) moved to
|
|
84
|
+
// pure-admin-core (variables/_components.scss) — a pure-admin interaction
|
|
85
|
+
// effect, not a foundation primitive.
|