@apo100l/ace-ui-kit 0.0.2 → 0.2.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 +58 -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 +312 -8
- package/dist/ace-ui-kit.js.map +1 -1
- package/dist/compat.d.ts +14 -0
- package/dist/icons.svg +58 -0
- package/dist/index.d.ts +7 -0
- package/dist/js/compat/ace.d.ts +2 -0
- package/dist/js/compat/bootstrap.d.ts +9 -0
- package/dist/js/dialog.d.ts +3 -0
- package/dist/js/file.d.ts +1 -0
- package/dist/js/icon.d.ts +13 -0
- package/dist/js/init.d.ts +4 -2
- package/dist/js/menu.d.ts +1 -0
- package/dist/js/sidebar.d.ts +1 -0
- package/dist/js/stepper.d.ts +2 -0
- package/dist/js/tabs.d.ts +3 -0
- package/dist/js/toast.d.ts +16 -0
- package/dist/js/tooltip.d.ts +1 -0
- package/package.json +20 -7
- package/src/icons/icons.json +311 -0
- package/src/scss/_breakpoints.scss +32 -0
- package/src/scss/_tokens.scss +175 -33
- package/src/scss/compat/_base.scss +144 -0
- package/src/scss/compat/_buttons.scss +100 -0
- package/src/scss/compat/_feedback.scss +187 -0
- package/src/scss/compat/_forms.scss +232 -0
- package/src/scss/compat/_grid.scss +107 -0
- package/src/scss/compat/_layout.scss +427 -0
- package/src/scss/compat/_navigation.scss +159 -0
- package/src/scss/compat/_plugins.scss +105 -0
- package/src/scss/compat/_tables.scss +105 -0
- package/src/scss/compat/_utilities.scss +160 -0
- package/src/scss/compat/_widgets.scss +126 -0
- package/src/scss/compat/index.scss +18 -10
- package/src/scss/components/_alert.scss +21 -22
- package/src/scss/components/_badge.scss +48 -0
- package/src/scss/components/_button.scss +34 -33
- package/src/scss/components/_card.scss +66 -0
- package/src/scss/components/_feedback.scss +219 -0
- package/src/scss/components/_form.scss +336 -0
- package/src/scss/components/_icon.scss +29 -0
- package/src/scss/components/_overlay.scss +174 -0
- package/src/scss/components/_shell.scss +326 -0
- package/src/scss/components/_table.scss +301 -0
- package/src/scss/components/_tabs.scss +56 -0
- package/src/scss/index.scss +10 -0
- package/src/scss/mixins/_alert.scss +65 -0
- package/src/scss/mixins/_badge.scss +59 -0
- package/src/scss/mixins/_button.scss +102 -0
- package/src/scss/mixins/_card.scss +40 -0
- package/src/scss/mixins/_form.scss +76 -0
- package/src/scss/mixins/_menu.scss +53 -0
- package/src/scss/mixins/_table.scss +23 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// Document base that Bootstrap 3 + Ace used to provide (normalize + typography), on kit tokens.
|
|
2
|
+
// The compat stylesheet is meant for legacy admin pages only, so it styles bare elements.
|
|
3
|
+
|
|
4
|
+
*,
|
|
5
|
+
*::before,
|
|
6
|
+
*::after {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(html) {
|
|
11
|
+
-webkit-text-size-adjust: 100%;
|
|
12
|
+
text-size-adjust: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where(body) {
|
|
16
|
+
margin: 0;
|
|
17
|
+
background: var(--ak-color-ground);
|
|
18
|
+
color: var(--ak-color-text);
|
|
19
|
+
font-family: var(--ak-font-family);
|
|
20
|
+
font-size: var(--ak-font-size-md);
|
|
21
|
+
line-height: var(--ak-line-height);
|
|
22
|
+
-webkit-font-smoothing: antialiased;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
26
|
+
margin: 0 0 var(--ak-space-3);
|
|
27
|
+
color: var(--ak-color-text);
|
|
28
|
+
font-family: inherit;
|
|
29
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
30
|
+
line-height: var(--ak-line-height-tight);
|
|
31
|
+
}
|
|
32
|
+
:where(h1) { font-size: var(--ak-font-size-2xl); }
|
|
33
|
+
:where(h2) { font-size: var(--ak-font-size-xl); }
|
|
34
|
+
:where(h3) { font-size: var(--ak-font-size-lg); }
|
|
35
|
+
:where(h4, h5, h6) { font-size: var(--ak-font-size-md); }
|
|
36
|
+
|
|
37
|
+
:where(p) {
|
|
38
|
+
margin: 0 0 var(--ak-space-3);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(a) {
|
|
42
|
+
color: var(--ak-color-link);
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
text-decoration: underline;
|
|
47
|
+
}
|
|
48
|
+
&:focus-visible {
|
|
49
|
+
outline: 2px solid var(--ak-color-accent);
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
border-radius: 2px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where(small, .small) {
|
|
56
|
+
font-size: var(--ak-font-size-sm);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(strong, b) {
|
|
60
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(hr) {
|
|
64
|
+
height: 0;
|
|
65
|
+
margin: var(--ak-space-4) 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-top: 1px solid var(--ak-color-border);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(img, svg) {
|
|
71
|
+
vertical-align: middle;
|
|
72
|
+
}
|
|
73
|
+
:where(img) {
|
|
74
|
+
max-width: 100%;
|
|
75
|
+
border: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where(ul, ol) {
|
|
79
|
+
margin: 0 0 var(--ak-space-3);
|
|
80
|
+
padding-left: var(--ak-space-6);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where(table) {
|
|
84
|
+
border-collapse: collapse;
|
|
85
|
+
border-spacing: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where(button, input, select, textarea) {
|
|
89
|
+
margin: 0;
|
|
90
|
+
color: inherit;
|
|
91
|
+
font: inherit;
|
|
92
|
+
}
|
|
93
|
+
:where(button, select) {
|
|
94
|
+
text-transform: none;
|
|
95
|
+
}
|
|
96
|
+
:where(button, [type='button'], [type='submit']) {
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(label) {
|
|
101
|
+
display: inline-block;
|
|
102
|
+
max-width: 100%;
|
|
103
|
+
margin-bottom: var(--ak-space-1);
|
|
104
|
+
font-weight: var(--ak-font-weight-medium);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(fieldset) {
|
|
108
|
+
min-width: 0;
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding: 0;
|
|
111
|
+
border: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where(code, kbd, pre) {
|
|
115
|
+
font-family: var(--ak-font-mono);
|
|
116
|
+
font-size: 0.92em;
|
|
117
|
+
}
|
|
118
|
+
:where(code) {
|
|
119
|
+
padding: 1px 4px;
|
|
120
|
+
border-radius: var(--ak-radius-chip);
|
|
121
|
+
background: var(--ak-color-raised);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
::placeholder {
|
|
125
|
+
color: var(--ak-color-faint);
|
|
126
|
+
opacity: 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where([hidden], .hidden, .hide) {
|
|
130
|
+
display: none !important;
|
|
131
|
+
}
|
|
132
|
+
.show {
|
|
133
|
+
display: block !important;
|
|
134
|
+
}
|
|
135
|
+
.sr-only {
|
|
136
|
+
position: absolute;
|
|
137
|
+
width: 1px;
|
|
138
|
+
height: 1px;
|
|
139
|
+
margin: -1px;
|
|
140
|
+
padding: 0;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
clip: rect(0, 0, 0, 0);
|
|
143
|
+
border: 0;
|
|
144
|
+
}
|
|
@@ -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,187 @@
|
|
|
1
|
+
// Alerts, labels/badges, close buttons and modals.
|
|
2
|
+
@use '../mixins/alert' as alert;
|
|
3
|
+
@use '../mixins/badge';
|
|
4
|
+
|
|
5
|
+
// ---- alerts → kit alert tones
|
|
6
|
+
.alert {
|
|
7
|
+
@include alert.base;
|
|
8
|
+
|
|
9
|
+
&.alert-success {
|
|
10
|
+
@include alert.tone(positive);
|
|
11
|
+
}
|
|
12
|
+
&.alert-warning {
|
|
13
|
+
@include alert.tone(warning);
|
|
14
|
+
}
|
|
15
|
+
&.alert-danger,
|
|
16
|
+
&.alert-error {
|
|
17
|
+
@include alert.tone(negative);
|
|
18
|
+
}
|
|
19
|
+
&:has(> .close) {
|
|
20
|
+
padding-right: var(--ak-space-10);
|
|
21
|
+
}
|
|
22
|
+
> .close {
|
|
23
|
+
@include alert.close-button;
|
|
24
|
+
}
|
|
25
|
+
.alert-link {
|
|
26
|
+
color: inherit;
|
|
27
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
28
|
+
text-decoration: underline;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ---- labels and badges → kit badges (pale tint + dark ink), never squeezed
|
|
33
|
+
.label,
|
|
34
|
+
.badge {
|
|
35
|
+
@include badge.base;
|
|
36
|
+
}
|
|
37
|
+
.badge {
|
|
38
|
+
@include badge.count;
|
|
39
|
+
}
|
|
40
|
+
.label-success,
|
|
41
|
+
.badge-success {
|
|
42
|
+
@include badge.tone(positive);
|
|
43
|
+
}
|
|
44
|
+
.label-danger,
|
|
45
|
+
.label-important,
|
|
46
|
+
.badge-danger,
|
|
47
|
+
.badge-important {
|
|
48
|
+
@include badge.tone(negative);
|
|
49
|
+
}
|
|
50
|
+
.label-warning,
|
|
51
|
+
.badge-warning {
|
|
52
|
+
@include badge.tone(warning);
|
|
53
|
+
}
|
|
54
|
+
.label-info,
|
|
55
|
+
.label-primary,
|
|
56
|
+
.badge-info,
|
|
57
|
+
.badge-primary {
|
|
58
|
+
@include badge.tone(info);
|
|
59
|
+
}
|
|
60
|
+
// Ace inverse labels hold codes and tags (`@block[…]`) — the kit's code badge
|
|
61
|
+
.label-inverse,
|
|
62
|
+
.badge-inverse {
|
|
63
|
+
@include badge.code;
|
|
64
|
+
}
|
|
65
|
+
.label-grey,
|
|
66
|
+
.label-default,
|
|
67
|
+
.label-light {
|
|
68
|
+
@include badge.tone(muted);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ---- close (×)
|
|
72
|
+
.close {
|
|
73
|
+
display: inline-grid;
|
|
74
|
+
place-items: center;
|
|
75
|
+
width: var(--ak-control-height-sm);
|
|
76
|
+
height: var(--ak-control-height-sm);
|
|
77
|
+
padding: 0;
|
|
78
|
+
border: 0;
|
|
79
|
+
border-radius: var(--ak-radius-control);
|
|
80
|
+
background: none;
|
|
81
|
+
color: var(--ak-color-muted);
|
|
82
|
+
font-size: var(--ak-font-size-xl);
|
|
83
|
+
line-height: 1;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
background: var(--ak-color-raised);
|
|
88
|
+
color: var(--ak-color-text);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ---- modals (Bootstrap 3 contract: .modal.in + .modal-backdrop, toggled by the compat JS)
|
|
93
|
+
.modal-open {
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
}
|
|
96
|
+
.modal {
|
|
97
|
+
position: fixed;
|
|
98
|
+
inset: 0;
|
|
99
|
+
z-index: var(--ak-z-dialog);
|
|
100
|
+
display: none;
|
|
101
|
+
overflow-y: auto;
|
|
102
|
+
padding: var(--ak-space-4);
|
|
103
|
+
|
|
104
|
+
&.in {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: flex-start;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.modal-backdrop {
|
|
111
|
+
position: fixed;
|
|
112
|
+
inset: 0;
|
|
113
|
+
z-index: var(--ak-z-backdrop);
|
|
114
|
+
background: var(--ak-color-overlay);
|
|
115
|
+
|
|
116
|
+
&.fade:not(.in) {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.modal-dialog {
|
|
121
|
+
position: relative;
|
|
122
|
+
width: 100%;
|
|
123
|
+
max-width: 600px;
|
|
124
|
+
margin: 10vh auto var(--ak-space-8);
|
|
125
|
+
|
|
126
|
+
.modal.in & {
|
|
127
|
+
animation: ak-dialog-in var(--ak-duration-slow) var(--ak-ease-out);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
.modal-lg {
|
|
131
|
+
max-width: 900px;
|
|
132
|
+
}
|
|
133
|
+
.modal-sm {
|
|
134
|
+
max-width: 360px;
|
|
135
|
+
}
|
|
136
|
+
.modal-content {
|
|
137
|
+
position: relative;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
border: 1px solid var(--ak-color-border);
|
|
140
|
+
border-radius: var(--ak-radius-card);
|
|
141
|
+
background: var(--ak-color-surface);
|
|
142
|
+
box-shadow: var(--ak-shadow-dialog);
|
|
143
|
+
}
|
|
144
|
+
.modal-header {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
gap: var(--ak-space-3);
|
|
149
|
+
padding: var(--ak-space-4) var(--ak-space-5);
|
|
150
|
+
border-bottom: 1px solid var(--ak-color-border);
|
|
151
|
+
|
|
152
|
+
.modal-title {
|
|
153
|
+
margin: 0;
|
|
154
|
+
font-size: var(--ak-font-size-lg);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
.modal-body {
|
|
158
|
+
padding: var(--ak-space-5);
|
|
159
|
+
}
|
|
160
|
+
.modal-footer {
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: flex-end;
|
|
163
|
+
gap: var(--ak-space-2);
|
|
164
|
+
padding: var(--ak-space-3) var(--ak-space-5);
|
|
165
|
+
border-top: 1px solid var(--ak-color-border);
|
|
166
|
+
}
|
|
167
|
+
// Ace wraps dialog content in a widget-box inside .modal-body — drop the double frame
|
|
168
|
+
.modal-body > .row > [class*='col-'] > .widget-box:only-child,
|
|
169
|
+
.modal-body > .widget-box:only-child {
|
|
170
|
+
margin: 0;
|
|
171
|
+
border: 0;
|
|
172
|
+
}
|
|
173
|
+
.modal-body:has(> .row > [class*='col-'] > .widget-box:only-child) {
|
|
174
|
+
padding: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@keyframes ak-dialog-in {
|
|
178
|
+
from {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
transform: scale(0.97);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@media (prefers-reduced-motion: reduce) {
|
|
184
|
+
.modal.in .modal-dialog {
|
|
185
|
+
animation: none;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
@use '../mixins/form';
|
|
5
|
+
|
|
6
|
+
.form-group {
|
|
7
|
+
margin-bottom: var(--ak-space-4);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.control-label,
|
|
11
|
+
.form-group > label {
|
|
12
|
+
@include form.label;
|
|
13
|
+
display: block;
|
|
14
|
+
margin-bottom: var(--ak-space-2);
|
|
15
|
+
}
|
|
16
|
+
.form-group > label:has(input[type='checkbox'], input[type='radio']) {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--ak-space-2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.form-control {
|
|
23
|
+
@include form.input;
|
|
24
|
+
|
|
25
|
+
&[readonly],
|
|
26
|
+
fieldset[disabled] & {
|
|
27
|
+
background: var(--ak-color-raised);
|
|
28
|
+
color: var(--ak-color-muted);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
textarea.form-control {
|
|
32
|
+
@include form.textarea;
|
|
33
|
+
}
|
|
34
|
+
select.form-control {
|
|
35
|
+
padding-right: var(--ak-space-8);
|
|
36
|
+
}
|
|
37
|
+
select[multiple].form-control {
|
|
38
|
+
height: auto;
|
|
39
|
+
}
|
|
40
|
+
.input-mini {
|
|
41
|
+
width: 72px;
|
|
42
|
+
text-align: center;
|
|
43
|
+
}
|
|
44
|
+
.input-sm {
|
|
45
|
+
height: var(--ak-control-height);
|
|
46
|
+
font-size: var(--ak-font-size-sm);
|
|
47
|
+
}
|
|
48
|
+
.input-lg {
|
|
49
|
+
height: 48px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.has-error {
|
|
53
|
+
.form-control {
|
|
54
|
+
border-color: var(--ak-color-negative);
|
|
55
|
+
|
|
56
|
+
&:focus {
|
|
57
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ak-color-negative) 20%, transparent);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.control-label,
|
|
61
|
+
.help-block {
|
|
62
|
+
@include form.hint;
|
|
63
|
+
display: block;
|
|
64
|
+
margin-top: var(--ak-space-1);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.has-success .form-control {
|
|
68
|
+
border-color: var(--ak-color-positive);
|
|
69
|
+
}
|
|
70
|
+
.help-block {
|
|
71
|
+
display: block;
|
|
72
|
+
margin: var(--ak-space-1) 0 0;
|
|
73
|
+
color: var(--ak-color-muted);
|
|
74
|
+
font-size: var(--ak-font-size-sm);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.form-inline {
|
|
78
|
+
display: inline-flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: var(--ak-space-2);
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
.form-horizontal .control-label {
|
|
84
|
+
@include bp.up(sm) {
|
|
85
|
+
padding-top: 10px;
|
|
86
|
+
text-align: right;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ---- input-group
|
|
91
|
+
.input-group {
|
|
92
|
+
position: relative;
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: stretch;
|
|
95
|
+
width: 100%;
|
|
96
|
+
|
|
97
|
+
> .form-control {
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
width: 1%;
|
|
100
|
+
min-width: 0;
|
|
101
|
+
}
|
|
102
|
+
> .form-control:not(:first-child) {
|
|
103
|
+
border-top-left-radius: 0;
|
|
104
|
+
border-bottom-left-radius: 0;
|
|
105
|
+
}
|
|
106
|
+
> .form-control:not(:last-child) {
|
|
107
|
+
border-top-right-radius: 0;
|
|
108
|
+
border-bottom-right-radius: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.input-group-addon,
|
|
112
|
+
.input-group-btn {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
.input-group-addon {
|
|
117
|
+
padding: 0 var(--ak-space-3);
|
|
118
|
+
border: 1px solid var(--ak-color-control);
|
|
119
|
+
background: var(--ak-color-raised);
|
|
120
|
+
color: var(--ak-color-muted);
|
|
121
|
+
|
|
122
|
+
&:first-child {
|
|
123
|
+
border-right: 0;
|
|
124
|
+
border-radius: var(--ak-radius-control) 0 0 var(--ak-radius-control);
|
|
125
|
+
}
|
|
126
|
+
&:last-child {
|
|
127
|
+
border-left: 0;
|
|
128
|
+
border-radius: 0 var(--ak-radius-control) var(--ak-radius-control) 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.input-group-btn > .btn {
|
|
132
|
+
height: 100%;
|
|
133
|
+
margin: 0;
|
|
134
|
+
}
|
|
135
|
+
.input-group-btn:first-child > .btn {
|
|
136
|
+
border-top-right-radius: 0;
|
|
137
|
+
border-bottom-right-radius: 0;
|
|
138
|
+
}
|
|
139
|
+
.input-group-btn:last-child > .btn {
|
|
140
|
+
margin-left: -1px;
|
|
141
|
+
border-top-left-radius: 0;
|
|
142
|
+
border-bottom-left-radius: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// ---- checkboxes and radios: native controls in the accent (Ace drew its own on .lbl::before)
|
|
146
|
+
.checkbox,
|
|
147
|
+
.radio {
|
|
148
|
+
margin: 0 0 var(--ak-space-2);
|
|
149
|
+
|
|
150
|
+
label {
|
|
151
|
+
display: inline-flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
gap: var(--ak-space-2);
|
|
154
|
+
font-weight: var(--ak-font-weight-regular);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
:where(input[type='checkbox'], input[type='radio']) {
|
|
158
|
+
width: 16px;
|
|
159
|
+
height: 16px;
|
|
160
|
+
margin: 0;
|
|
161
|
+
vertical-align: -3px;
|
|
162
|
+
accent-color: var(--ak-color-primary);
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
}
|
|
165
|
+
input.ace + .lbl {
|
|
166
|
+
margin-left: var(--ak-space-1);
|
|
167
|
+
}
|
|
168
|
+
input.ace + .lbl:empty {
|
|
169
|
+
display: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// ---- input with an icon inside (login form)
|
|
173
|
+
.input-icon {
|
|
174
|
+
position: relative;
|
|
175
|
+
display: block;
|
|
176
|
+
|
|
177
|
+
> .form-control,
|
|
178
|
+
> input {
|
|
179
|
+
padding-left: 36px;
|
|
180
|
+
}
|
|
181
|
+
> .fa,
|
|
182
|
+
> [class^='icon-'] {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 50%;
|
|
185
|
+
left: 12px;
|
|
186
|
+
color: var(--ak-color-faint);
|
|
187
|
+
font-size: 14px;
|
|
188
|
+
transform: translateY(-50%);
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
}
|
|
191
|
+
&.input-icon-right {
|
|
192
|
+
> .form-control,
|
|
193
|
+
> input {
|
|
194
|
+
padding-right: 36px;
|
|
195
|
+
padding-left: var(--ak-space-3);
|
|
196
|
+
}
|
|
197
|
+
> .fa,
|
|
198
|
+
> [class^='icon-'] {
|
|
199
|
+
right: 12px;
|
|
200
|
+
left: auto;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// ---- Ace / FuelUX numeric spinner: [-][ value ][+]
|
|
206
|
+
.ace-spinner {
|
|
207
|
+
display: inline-block;
|
|
208
|
+
width: auto;
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
padding: 0;
|
|
211
|
+
|
|
212
|
+
.input-group {
|
|
213
|
+
width: auto;
|
|
214
|
+
}
|
|
215
|
+
.spinner-input,
|
|
216
|
+
.input-group > input {
|
|
217
|
+
flex: none;
|
|
218
|
+
width: 80px;
|
|
219
|
+
height: var(--ak-control-height);
|
|
220
|
+
text-align: center;
|
|
221
|
+
font-variant-numeric: tabular-nums;
|
|
222
|
+
}
|
|
223
|
+
.spinner-buttons > .btn {
|
|
224
|
+
--_bg: var(--ak-color-surface);
|
|
225
|
+
--_bg-hover: var(--ak-color-raised);
|
|
226
|
+
--_fg: var(--ak-color-text);
|
|
227
|
+
--_border: var(--ak-color-control);
|
|
228
|
+
--_h: var(--ak-control-height);
|
|
229
|
+
width: var(--ak-control-height);
|
|
230
|
+
padding: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|