@apo100l/ace-ui-kit 0.0.1 → 0.1.0
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/README.md +49 -5
- package/dist/ace-compat.css +1 -1
- package/dist/ace-compat.js +189 -0
- package/dist/ace-compat.js.map +1 -0
- package/dist/ace-ui-kit.css +1 -1
- package/dist/ace-ui-kit.js +22 -9
- package/dist/ace-ui-kit.js.map +1 -1
- package/dist/compat.d.ts +14 -0
- package/dist/icons.svg +56 -0
- package/dist/index.d.ts +2 -0
- package/dist/js/compat/ace.d.ts +2 -0
- package/dist/js/compat/bootstrap.d.ts +9 -0
- package/dist/js/icon.d.ts +13 -0
- package/package.json +35 -8
- package/src/icons/icons.json +58 -0
- package/src/scss/_breakpoints.scss +32 -0
- package/src/scss/_tokens.scss +175 -33
- package/src/scss/compat/_base.scss +165 -0
- package/src/scss/compat/_buttons.scss +100 -0
- package/src/scss/compat/_feedback.scss +210 -0
- package/src/scss/compat/_forms.scss +253 -0
- package/src/scss/compat/_grid.scss +107 -0
- package/src/scss/compat/_layout.scss +427 -0
- package/src/scss/compat/_navigation.scss +181 -0
- package/src/scss/compat/_plugins.scss +105 -0
- package/src/scss/compat/_tables.scss +117 -0
- package/src/scss/compat/_utilities.scss +160 -0
- package/src/scss/compat/_widgets.scss +136 -0
- package/src/scss/compat/index.scss +18 -10
- package/src/scss/components/_alert.scss +21 -22
- package/src/scss/components/_button.scss +34 -33
- package/src/scss/components/_icon.scss +29 -0
- package/src/scss/index.scss +2 -0
- package/src/scss/mixins/_alert.scss +65 -0
- package/src/scss/mixins/_button.scss +102 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Bootstrap 3 / Ace buttons mapped onto the kit button.
|
|
2
|
+
// Colour is not decoration (docs/PRINCIPLES.md §2): success / info / warning / inverse / default
|
|
3
|
+
// become secondary buttons; primary stays primary; danger is the destructive style — except on
|
|
4
|
+
// dropdown toggles (Ace paints language / per-page pickers red although they destroy nothing).
|
|
5
|
+
@use '../mixins/button' as btn;
|
|
6
|
+
|
|
7
|
+
.btn {
|
|
8
|
+
@include btn.base;
|
|
9
|
+
|
|
10
|
+
&.btn-primary {
|
|
11
|
+
@include btn.variant(primary);
|
|
12
|
+
}
|
|
13
|
+
&.btn-danger {
|
|
14
|
+
@include btn.variant(danger);
|
|
15
|
+
}
|
|
16
|
+
&.btn-danger.dropdown-toggle {
|
|
17
|
+
@include btn.variant(secondary);
|
|
18
|
+
}
|
|
19
|
+
&.btn-link {
|
|
20
|
+
@include btn.variant(ghost);
|
|
21
|
+
color: var(--ak-color-link);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.btn-xs,
|
|
25
|
+
&.btn-minier {
|
|
26
|
+
@include btn.size(sm);
|
|
27
|
+
--_h: 24px;
|
|
28
|
+
}
|
|
29
|
+
&.btn-sm {
|
|
30
|
+
@include btn.size(sm);
|
|
31
|
+
}
|
|
32
|
+
&.btn-lg {
|
|
33
|
+
@include btn.size(lg);
|
|
34
|
+
}
|
|
35
|
+
&.btn-block {
|
|
36
|
+
@include btn.block;
|
|
37
|
+
}
|
|
38
|
+
& + & {
|
|
39
|
+
margin-left: var(--ak-space-1);
|
|
40
|
+
}
|
|
41
|
+
&.btn-block + &.btn-block {
|
|
42
|
+
margin-left: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Ace sizes icons inside row actions with fa-2x; inside a button an icon is one line tall
|
|
46
|
+
.fa,
|
|
47
|
+
[class^='icon-'] {
|
|
48
|
+
font-size: 1.1em;
|
|
49
|
+
line-height: 1;
|
|
50
|
+
}
|
|
51
|
+
.fa-2x {
|
|
52
|
+
font-size: 15px;
|
|
53
|
+
}
|
|
54
|
+
.fa-on-right {
|
|
55
|
+
order: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.disabled {
|
|
59
|
+
--_bg: var(--ak-color-raised);
|
|
60
|
+
--_bg-hover: var(--ak-color-raised);
|
|
61
|
+
--_fg: var(--ak-color-faint);
|
|
62
|
+
--_border: var(--ak-color-border);
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.btn-group,
|
|
69
|
+
.btn-toolbar {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
gap: 0;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
}
|
|
75
|
+
.btn-toolbar {
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
gap: var(--ak-space-2);
|
|
78
|
+
}
|
|
79
|
+
.btn-group > .btn {
|
|
80
|
+
margin-left: 0;
|
|
81
|
+
}
|
|
82
|
+
.btn-group > .btn + .btn {
|
|
83
|
+
margin-left: -1px;
|
|
84
|
+
}
|
|
85
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
|
86
|
+
border-radius: 0;
|
|
87
|
+
}
|
|
88
|
+
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
|
|
89
|
+
border-top-right-radius: 0;
|
|
90
|
+
border-bottom-right-radius: 0;
|
|
91
|
+
}
|
|
92
|
+
.btn-group > .btn:last-child:not(:first-child) {
|
|
93
|
+
border-top-left-radius: 0;
|
|
94
|
+
border-bottom-left-radius: 0;
|
|
95
|
+
}
|
|
96
|
+
.btn-group + .btn-group,
|
|
97
|
+
.btn-group + .btn,
|
|
98
|
+
.btn + .btn-group {
|
|
99
|
+
margin-left: var(--ak-space-2);
|
|
100
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// Alerts, labels/badges, close buttons and modals.
|
|
2
|
+
@use '../mixins/alert' as alert;
|
|
3
|
+
|
|
4
|
+
// ---- alerts → kit alert tones
|
|
5
|
+
.alert {
|
|
6
|
+
@include alert.base;
|
|
7
|
+
|
|
8
|
+
&.alert-success {
|
|
9
|
+
@include alert.tone(positive);
|
|
10
|
+
}
|
|
11
|
+
&.alert-warning {
|
|
12
|
+
@include alert.tone(warning);
|
|
13
|
+
}
|
|
14
|
+
&.alert-danger,
|
|
15
|
+
&.alert-error {
|
|
16
|
+
@include alert.tone(negative);
|
|
17
|
+
}
|
|
18
|
+
&:has(> .close) {
|
|
19
|
+
padding-right: var(--ak-space-10);
|
|
20
|
+
}
|
|
21
|
+
> .close {
|
|
22
|
+
@include alert.close-button;
|
|
23
|
+
}
|
|
24
|
+
.alert-link {
|
|
25
|
+
color: inherit;
|
|
26
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// ---- labels and badges → status pills (pale tint + dark ink), never squeezed
|
|
32
|
+
.label,
|
|
33
|
+
.badge {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
flex: none;
|
|
36
|
+
align-items: center;
|
|
37
|
+
height: 20px;
|
|
38
|
+
padding: 0 var(--ak-space-2);
|
|
39
|
+
border-radius: var(--ak-radius-chip);
|
|
40
|
+
background: var(--ak-color-raised);
|
|
41
|
+
color: var(--ak-color-text);
|
|
42
|
+
font-size: var(--ak-font-size-sm);
|
|
43
|
+
font-weight: var(--ak-font-weight-medium);
|
|
44
|
+
line-height: 1;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
}
|
|
48
|
+
.badge {
|
|
49
|
+
min-width: 20px;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
border-radius: var(--ak-radius-full);
|
|
52
|
+
font-variant-numeric: tabular-nums;
|
|
53
|
+
}
|
|
54
|
+
.label-success,
|
|
55
|
+
.badge-success {
|
|
56
|
+
background: var(--ak-color-positive-bg);
|
|
57
|
+
color: var(--ak-color-positive-ink);
|
|
58
|
+
}
|
|
59
|
+
.label-danger,
|
|
60
|
+
.label-important,
|
|
61
|
+
.badge-danger,
|
|
62
|
+
.badge-important {
|
|
63
|
+
background: var(--ak-color-negative-bg);
|
|
64
|
+
color: var(--ak-color-negative-ink);
|
|
65
|
+
}
|
|
66
|
+
.label-warning,
|
|
67
|
+
.badge-warning {
|
|
68
|
+
background: var(--ak-color-warning-bg);
|
|
69
|
+
color: var(--ak-color-warning-ink);
|
|
70
|
+
}
|
|
71
|
+
.label-info,
|
|
72
|
+
.label-primary,
|
|
73
|
+
.badge-info,
|
|
74
|
+
.badge-primary {
|
|
75
|
+
background: var(--ak-color-info-bg);
|
|
76
|
+
color: var(--ak-color-info-ink);
|
|
77
|
+
}
|
|
78
|
+
// Ace inverse labels hold codes and tags (`@block[…]`) — a neutral chip in the mono face
|
|
79
|
+
.label-inverse,
|
|
80
|
+
.badge-inverse {
|
|
81
|
+
border: 1px solid var(--ak-color-border);
|
|
82
|
+
background: var(--ak-color-raised);
|
|
83
|
+
color: var(--ak-color-text);
|
|
84
|
+
font-family: var(--ak-font-mono);
|
|
85
|
+
font-weight: var(--ak-font-weight-regular);
|
|
86
|
+
}
|
|
87
|
+
.label-grey,
|
|
88
|
+
.label-default,
|
|
89
|
+
.label-light {
|
|
90
|
+
background: var(--ak-color-raised);
|
|
91
|
+
color: var(--ak-color-muted);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// ---- close (×)
|
|
95
|
+
.close {
|
|
96
|
+
display: inline-grid;
|
|
97
|
+
place-items: center;
|
|
98
|
+
width: var(--ak-control-height-sm);
|
|
99
|
+
height: var(--ak-control-height-sm);
|
|
100
|
+
padding: 0;
|
|
101
|
+
border: 0;
|
|
102
|
+
border-radius: var(--ak-radius-control);
|
|
103
|
+
background: none;
|
|
104
|
+
color: var(--ak-color-muted);
|
|
105
|
+
font-size: var(--ak-font-size-xl);
|
|
106
|
+
line-height: 1;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
background: var(--ak-color-raised);
|
|
111
|
+
color: var(--ak-color-text);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ---- modals (Bootstrap 3 contract: .modal.in + .modal-backdrop, toggled by the compat JS)
|
|
116
|
+
.modal-open {
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
}
|
|
119
|
+
.modal {
|
|
120
|
+
position: fixed;
|
|
121
|
+
inset: 0;
|
|
122
|
+
z-index: var(--ak-z-dialog);
|
|
123
|
+
display: none;
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
padding: var(--ak-space-4);
|
|
126
|
+
|
|
127
|
+
&.in {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: flex-start;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
.modal-backdrop {
|
|
134
|
+
position: fixed;
|
|
135
|
+
inset: 0;
|
|
136
|
+
z-index: var(--ak-z-backdrop);
|
|
137
|
+
background: var(--ak-color-overlay);
|
|
138
|
+
|
|
139
|
+
&.fade:not(.in) {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.modal-dialog {
|
|
144
|
+
position: relative;
|
|
145
|
+
width: 100%;
|
|
146
|
+
max-width: 600px;
|
|
147
|
+
margin: 10vh auto var(--ak-space-8);
|
|
148
|
+
|
|
149
|
+
.modal.in & {
|
|
150
|
+
animation: ak-dialog-in var(--ak-duration-slow) var(--ak-ease-out);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
.modal-lg {
|
|
154
|
+
max-width: 900px;
|
|
155
|
+
}
|
|
156
|
+
.modal-sm {
|
|
157
|
+
max-width: 360px;
|
|
158
|
+
}
|
|
159
|
+
.modal-content {
|
|
160
|
+
position: relative;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
border: 1px solid var(--ak-color-border);
|
|
163
|
+
border-radius: var(--ak-radius-card);
|
|
164
|
+
background: var(--ak-color-surface);
|
|
165
|
+
box-shadow: var(--ak-shadow-dialog);
|
|
166
|
+
}
|
|
167
|
+
.modal-header {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
gap: var(--ak-space-3);
|
|
172
|
+
padding: var(--ak-space-4) var(--ak-space-5);
|
|
173
|
+
border-bottom: 1px solid var(--ak-color-border);
|
|
174
|
+
|
|
175
|
+
.modal-title {
|
|
176
|
+
margin: 0;
|
|
177
|
+
font-size: var(--ak-font-size-lg);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.modal-body {
|
|
181
|
+
padding: var(--ak-space-5);
|
|
182
|
+
}
|
|
183
|
+
.modal-footer {
|
|
184
|
+
display: flex;
|
|
185
|
+
justify-content: flex-end;
|
|
186
|
+
gap: var(--ak-space-2);
|
|
187
|
+
padding: var(--ak-space-3) var(--ak-space-5);
|
|
188
|
+
border-top: 1px solid var(--ak-color-border);
|
|
189
|
+
}
|
|
190
|
+
// Ace wraps dialog content in a widget-box inside .modal-body — drop the double frame
|
|
191
|
+
.modal-body > .row > [class*='col-'] > .widget-box:only-child,
|
|
192
|
+
.modal-body > .widget-box:only-child {
|
|
193
|
+
margin: 0;
|
|
194
|
+
border: 0;
|
|
195
|
+
}
|
|
196
|
+
.modal-body:has(> .row > [class*='col-'] > .widget-box:only-child) {
|
|
197
|
+
padding: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@keyframes ak-dialog-in {
|
|
201
|
+
from {
|
|
202
|
+
opacity: 0;
|
|
203
|
+
transform: scale(0.97);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media (prefers-reduced-motion: reduce) {
|
|
207
|
+
.modal.in .modal-dialog {
|
|
208
|
+
animation: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
// Bootstrap 3 / Ace form classes: form-group, control-label, form-control, has-error, help-block,
|
|
2
|
+
// input-group, checkbox/radio, Ace checkboxes (input.ace + .lbl), input-icon, ace-spinner.
|
|
3
|
+
@use '../breakpoints' as bp;
|
|
4
|
+
|
|
5
|
+
.form-group {
|
|
6
|
+
margin-bottom: var(--ak-space-4);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.control-label,
|
|
10
|
+
.form-group > label {
|
|
11
|
+
display: block;
|
|
12
|
+
margin-bottom: var(--ak-space-2);
|
|
13
|
+
color: var(--ak-color-text);
|
|
14
|
+
font-size: var(--ak-font-size-md);
|
|
15
|
+
font-weight: var(--ak-font-weight-medium);
|
|
16
|
+
}
|
|
17
|
+
.form-group > label:has(input[type='checkbox'], input[type='radio']) {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: var(--ak-space-2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.form-control {
|
|
24
|
+
display: block;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: var(--ak-control-height-lg);
|
|
27
|
+
padding: 0 var(--ak-space-3);
|
|
28
|
+
border: 1px solid var(--ak-color-control);
|
|
29
|
+
border-radius: var(--ak-radius-control);
|
|
30
|
+
background: var(--ak-color-surface);
|
|
31
|
+
color: var(--ak-color-text);
|
|
32
|
+
font-size: var(--ak-font-size-md);
|
|
33
|
+
line-height: var(--ak-line-height);
|
|
34
|
+
box-shadow: none;
|
|
35
|
+
transition:
|
|
36
|
+
border-color var(--ak-duration-fast) ease,
|
|
37
|
+
box-shadow var(--ak-duration-fast) ease;
|
|
38
|
+
|
|
39
|
+
&:focus {
|
|
40
|
+
border-color: var(--ak-color-accent);
|
|
41
|
+
outline: none;
|
|
42
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ak-color-accent) 22%, transparent);
|
|
43
|
+
}
|
|
44
|
+
&[disabled],
|
|
45
|
+
&[readonly],
|
|
46
|
+
fieldset[disabled] & {
|
|
47
|
+
background: var(--ak-color-raised);
|
|
48
|
+
color: var(--ak-color-muted);
|
|
49
|
+
}
|
|
50
|
+
&[disabled] {
|
|
51
|
+
cursor: not-allowed;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
textarea.form-control {
|
|
55
|
+
height: auto;
|
|
56
|
+
min-height: 96px;
|
|
57
|
+
padding: var(--ak-space-2) var(--ak-space-3);
|
|
58
|
+
resize: vertical;
|
|
59
|
+
}
|
|
60
|
+
select.form-control {
|
|
61
|
+
padding-right: var(--ak-space-8);
|
|
62
|
+
}
|
|
63
|
+
select[multiple].form-control {
|
|
64
|
+
height: auto;
|
|
65
|
+
}
|
|
66
|
+
.input-mini {
|
|
67
|
+
width: 72px;
|
|
68
|
+
text-align: center;
|
|
69
|
+
}
|
|
70
|
+
.input-sm {
|
|
71
|
+
height: var(--ak-control-height);
|
|
72
|
+
font-size: var(--ak-font-size-sm);
|
|
73
|
+
}
|
|
74
|
+
.input-lg {
|
|
75
|
+
height: 48px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.has-error {
|
|
79
|
+
.form-control {
|
|
80
|
+
border-color: var(--ak-color-negative);
|
|
81
|
+
}
|
|
82
|
+
.control-label,
|
|
83
|
+
.help-block {
|
|
84
|
+
color: var(--ak-color-negative);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.has-success .form-control {
|
|
88
|
+
border-color: var(--ak-color-positive);
|
|
89
|
+
}
|
|
90
|
+
.help-block {
|
|
91
|
+
display: block;
|
|
92
|
+
margin: var(--ak-space-1) 0 0;
|
|
93
|
+
color: var(--ak-color-muted);
|
|
94
|
+
font-size: var(--ak-font-size-sm);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.form-inline {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: var(--ak-space-2);
|
|
101
|
+
margin: 0;
|
|
102
|
+
}
|
|
103
|
+
.form-horizontal .control-label {
|
|
104
|
+
@include bp.up(sm) {
|
|
105
|
+
padding-top: 10px;
|
|
106
|
+
text-align: right;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// ---- input-group
|
|
111
|
+
.input-group {
|
|
112
|
+
position: relative;
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: stretch;
|
|
115
|
+
width: 100%;
|
|
116
|
+
|
|
117
|
+
> .form-control {
|
|
118
|
+
flex: 1 1 auto;
|
|
119
|
+
width: 1%;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
}
|
|
122
|
+
> .form-control:not(:first-child) {
|
|
123
|
+
border-top-left-radius: 0;
|
|
124
|
+
border-bottom-left-radius: 0;
|
|
125
|
+
}
|
|
126
|
+
> .form-control:not(:last-child) {
|
|
127
|
+
border-top-right-radius: 0;
|
|
128
|
+
border-bottom-right-radius: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.input-group-addon,
|
|
132
|
+
.input-group-btn {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
}
|
|
136
|
+
.input-group-addon {
|
|
137
|
+
padding: 0 var(--ak-space-3);
|
|
138
|
+
border: 1px solid var(--ak-color-control);
|
|
139
|
+
background: var(--ak-color-raised);
|
|
140
|
+
color: var(--ak-color-muted);
|
|
141
|
+
|
|
142
|
+
&:first-child {
|
|
143
|
+
border-right: 0;
|
|
144
|
+
border-radius: var(--ak-radius-control) 0 0 var(--ak-radius-control);
|
|
145
|
+
}
|
|
146
|
+
&:last-child {
|
|
147
|
+
border-left: 0;
|
|
148
|
+
border-radius: 0 var(--ak-radius-control) var(--ak-radius-control) 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.input-group-btn > .btn {
|
|
152
|
+
height: 100%;
|
|
153
|
+
margin: 0;
|
|
154
|
+
}
|
|
155
|
+
.input-group-btn:first-child > .btn {
|
|
156
|
+
border-top-right-radius: 0;
|
|
157
|
+
border-bottom-right-radius: 0;
|
|
158
|
+
}
|
|
159
|
+
.input-group-btn:last-child > .btn {
|
|
160
|
+
margin-left: -1px;
|
|
161
|
+
border-top-left-radius: 0;
|
|
162
|
+
border-bottom-left-radius: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// ---- checkboxes and radios: native controls in the accent (Ace drew its own on .lbl::before)
|
|
166
|
+
.checkbox,
|
|
167
|
+
.radio {
|
|
168
|
+
margin: 0 0 var(--ak-space-2);
|
|
169
|
+
|
|
170
|
+
label {
|
|
171
|
+
display: inline-flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
gap: var(--ak-space-2);
|
|
174
|
+
font-weight: var(--ak-font-weight-regular);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
input[type='checkbox'],
|
|
178
|
+
input[type='radio'] {
|
|
179
|
+
width: 16px;
|
|
180
|
+
height: 16px;
|
|
181
|
+
margin: 0;
|
|
182
|
+
vertical-align: -3px;
|
|
183
|
+
accent-color: var(--ak-color-primary);
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
}
|
|
186
|
+
input.ace + .lbl {
|
|
187
|
+
margin-left: var(--ak-space-1);
|
|
188
|
+
}
|
|
189
|
+
input.ace + .lbl:empty {
|
|
190
|
+
display: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// ---- input with an icon inside (login form)
|
|
194
|
+
.input-icon {
|
|
195
|
+
position: relative;
|
|
196
|
+
display: block;
|
|
197
|
+
|
|
198
|
+
> .form-control,
|
|
199
|
+
> input {
|
|
200
|
+
padding-left: 36px;
|
|
201
|
+
}
|
|
202
|
+
> .fa,
|
|
203
|
+
> [class^='icon-'] {
|
|
204
|
+
position: absolute;
|
|
205
|
+
top: 50%;
|
|
206
|
+
left: 12px;
|
|
207
|
+
color: var(--ak-color-faint);
|
|
208
|
+
font-size: 14px;
|
|
209
|
+
transform: translateY(-50%);
|
|
210
|
+
pointer-events: none;
|
|
211
|
+
}
|
|
212
|
+
&.input-icon-right {
|
|
213
|
+
> .form-control,
|
|
214
|
+
> input {
|
|
215
|
+
padding-right: 36px;
|
|
216
|
+
padding-left: var(--ak-space-3);
|
|
217
|
+
}
|
|
218
|
+
> .fa,
|
|
219
|
+
> [class^='icon-'] {
|
|
220
|
+
right: 12px;
|
|
221
|
+
left: auto;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// ---- Ace / FuelUX numeric spinner: [-][ value ][+]
|
|
227
|
+
.ace-spinner {
|
|
228
|
+
display: inline-block;
|
|
229
|
+
width: auto;
|
|
230
|
+
max-width: 100%;
|
|
231
|
+
padding: 0;
|
|
232
|
+
|
|
233
|
+
.input-group {
|
|
234
|
+
width: auto;
|
|
235
|
+
}
|
|
236
|
+
.spinner-input,
|
|
237
|
+
.input-group > input {
|
|
238
|
+
flex: none;
|
|
239
|
+
width: 80px;
|
|
240
|
+
height: var(--ak-control-height);
|
|
241
|
+
text-align: center;
|
|
242
|
+
font-variant-numeric: tabular-nums;
|
|
243
|
+
}
|
|
244
|
+
.spinner-buttons > .btn {
|
|
245
|
+
--_bg: var(--ak-color-surface);
|
|
246
|
+
--_bg-hover: var(--ak-color-raised);
|
|
247
|
+
--_fg: var(--ak-color-text);
|
|
248
|
+
--_border: var(--ak-color-control);
|
|
249
|
+
--_h: var(--ak-control-height);
|
|
250
|
+
width: var(--ak-control-height);
|
|
251
|
+
padding: 0;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Bootstrap 3 grid (row / col-{xs,sm,md,lg}-N / offsets / push / pull) on flexbox,
|
|
2
|
+
// with one gutter (--ak-space-4) as the principles ask. Breakpoints match BS3.
|
|
3
|
+
@use 'sass:math';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
@use '../breakpoints' as bp;
|
|
6
|
+
|
|
7
|
+
$gutter: 16px;
|
|
8
|
+
|
|
9
|
+
.container,
|
|
10
|
+
.container-fluid {
|
|
11
|
+
width: 100%;
|
|
12
|
+
margin-right: auto;
|
|
13
|
+
margin-left: auto;
|
|
14
|
+
padding-right: math.div($gutter, 2);
|
|
15
|
+
padding-left: math.div($gutter, 2);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.row {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
margin-right: math.div(-$gutter, 2);
|
|
22
|
+
margin-left: math.div(-$gutter, 2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[class*='col-xs-'],
|
|
26
|
+
[class*='col-sm-'],
|
|
27
|
+
[class*='col-md-'],
|
|
28
|
+
[class*='col-lg-'] {
|
|
29
|
+
position: relative;
|
|
30
|
+
width: 100%;
|
|
31
|
+
min-height: 1px;
|
|
32
|
+
padding-right: math.div($gutter, 2);
|
|
33
|
+
padding-left: math.div($gutter, 2);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin columns($size) {
|
|
37
|
+
@for $n from 1 through 12 {
|
|
38
|
+
.col-#{$size}-#{$n} {
|
|
39
|
+
flex: 0 0 auto;
|
|
40
|
+
width: math.percentage(math.div($n, 12));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
@for $n from 0 through 11 {
|
|
44
|
+
.col-#{$size}-offset-#{$n} {
|
|
45
|
+
margin-left: math.percentage(math.div($n, 12));
|
|
46
|
+
}
|
|
47
|
+
.col-#{$size}-push-#{$n} {
|
|
48
|
+
left: math.percentage(math.div($n, 12));
|
|
49
|
+
}
|
|
50
|
+
.col-#{$size}-pull-#{$n} {
|
|
51
|
+
right: math.percentage(math.div($n, 12));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@include columns(xs);
|
|
57
|
+
@each $size in sm, md, lg {
|
|
58
|
+
@include bp.up($size) {
|
|
59
|
+
@include columns($size);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Ace puts grid classes on non-grid elements too (e.g. .ace-spinner.col-xs-2, .input-group.col-xs-3);
|
|
64
|
+
// outside a .row they simply size the element.
|
|
65
|
+
:not(.row) > [class*='col-xs-'] {
|
|
66
|
+
float: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.clearfix::after,
|
|
70
|
+
.row::after {
|
|
71
|
+
display: table;
|
|
72
|
+
clear: both;
|
|
73
|
+
content: '';
|
|
74
|
+
}
|
|
75
|
+
.pull-left {
|
|
76
|
+
float: left !important;
|
|
77
|
+
}
|
|
78
|
+
.pull-right {
|
|
79
|
+
float: right !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Responsive visibility
|
|
83
|
+
@include bp.down(sm) {
|
|
84
|
+
.hidden-xs {
|
|
85
|
+
display: none !important;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@include bp.up(sm) {
|
|
89
|
+
.visible-xs {
|
|
90
|
+
display: none !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@media (min-width: map.get(bp.$breakpoints, sm)) and (max-width: map.get(bp.$breakpoints, md) - 0.02px) {
|
|
94
|
+
.hidden-sm {
|
|
95
|
+
display: none !important;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
@media (min-width: map.get(bp.$breakpoints, md)) and (max-width: map.get(bp.$breakpoints, lg) - 0.02px) {
|
|
99
|
+
.hidden-md {
|
|
100
|
+
display: none !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@include bp.up(lg) {
|
|
104
|
+
.hidden-lg {
|
|
105
|
+
display: none !important;
|
|
106
|
+
}
|
|
107
|
+
}
|