compostrap 1.0.0 → 1.0.2
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/dist/css/compostrap.css +9 -9
- package/dist/css/lightbox.css +5 -6
- package/dist/css/sidebar-menu.css +4 -3
- package/dist/css/theme.css +37 -8
- package/dist/js/lightbox.js +10 -2
- package/docs/blog.md +85 -85
- package/docs/layout.md +143 -143
- package/package.json +1 -1
- package/readme.md +198 -198
- package/src/js/datepicker.js +154 -154
- package/src/js/lightbox.js +14 -1
- package/src/scss/datagrid.scss +5 -5
- package/src/scss/datepicker/_index.scss +557 -557
- package/src/scss/lightbox/_index.scss +8 -9
- package/src/scss/sidebar/_index.scss +8 -8
- package/src/scss/sidebar-menu/_compact.scss +2 -1
- package/src/scss/theme/_overlays.scss +17 -0
- package/src/scss/theme/_variables.scss +194 -189
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
// on a dark backdrop, its caption, a counter and round buttons to close and to browse
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
// The page under it
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
6
|
+
// The page under it is locked and its scrollbar hidden (a scrollbar that showed only on a long page looked random), so
|
|
7
|
+
// the dialog has the whole window and its buttons stand symmetrically. The script pads the body by the width of the
|
|
8
|
+
// scrollbar meanwhile (like the modals of Bootstrap), so the page under it does not shift. Keeping the room of the
|
|
9
|
+
// scrollbar empty (scrollbar-gutter) was tried: a dialog widened over it was cut off in some browsers.
|
|
10
|
+
html.lightbox-open {
|
|
11
|
+
overflow: hidden;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.lightbox {
|
|
16
15
|
overscroll-behavior: contain;
|
|
17
|
-
width:
|
|
18
|
-
max-width:
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 100%;
|
|
19
18
|
height: 100dvh;
|
|
20
19
|
max-height: 100dvh;
|
|
21
20
|
padding: 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
// sidebar skeleton
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
@use 'body';
|
|
6
|
-
@use 'wrapper';
|
|
7
|
-
@use 'sidebar';
|
|
8
|
-
@use 'theme';
|
|
1
|
+
//
|
|
2
|
+
// sidebar skeleton
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
@use 'body';
|
|
6
|
+
@use 'wrapper';
|
|
7
|
+
@use 'sidebar';
|
|
8
|
+
@use 'theme';
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
min-width: 12rem;
|
|
104
104
|
// a group longer than the window scrolls inside the menu
|
|
105
105
|
max-height: calc(100vh - 1rem);
|
|
106
|
-
padding: bs.$dropdown-padding-y
|
|
106
|
+
padding: bs.$dropdown-padding-y bs.$dropdown-padding-x;
|
|
107
107
|
overflow-y: auto;
|
|
108
108
|
margin: 0;
|
|
109
109
|
font-size: bs.$dropdown-font-size;
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
color: bs.$dropdown-link-color;
|
|
134
134
|
white-space: nowrap;
|
|
135
135
|
text-decoration: none;
|
|
136
|
+
border-radius: bs.$dropdown-item-border-radius;
|
|
136
137
|
|
|
137
138
|
&:hover,
|
|
138
139
|
&:focus {
|
|
@@ -98,13 +98,30 @@
|
|
|
98
98
|
|
|
99
99
|
// dropdowns: no border, the soft shadow of the theme; in the dark theme, where a shadow is not seen, a lighter surface
|
|
100
100
|
.dropdown-menu {
|
|
101
|
+
--bs-dropdown-item-border-radius: #{$dropdown-item-border-radius};
|
|
102
|
+
|
|
101
103
|
box-shadow: var(--bs-box-shadow-lg);
|
|
102
104
|
}
|
|
103
105
|
|
|
106
|
+
// items are inset pills with a gap of 2px, so a hovered one does not merge with the chosen one next to it; a divider
|
|
107
|
+
// still goes over the whole width of the menu
|
|
108
|
+
.dropdown-item + .dropdown-item,
|
|
109
|
+
li + li > .dropdown-item {
|
|
110
|
+
margin-top: 2px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.dropdown-divider {
|
|
114
|
+
margin-right: calc(-1 * var(--bs-dropdown-padding-x));
|
|
115
|
+
margin-left: calc(-1 * var(--bs-dropdown-padding-x));
|
|
116
|
+
}
|
|
117
|
+
|
|
104
118
|
[data-bs-theme='dark'] .dropdown-menu,
|
|
105
119
|
.dropdown-menu[data-bs-theme='dark'] {
|
|
106
120
|
--bs-dropdown-bg: var(--bs-secondary-bg);
|
|
107
121
|
--bs-dropdown-link-hover-bg: rgba(var(--bs-body-color-rgb), .08);
|
|
122
|
+
// the header of Bootstrap is $gray-600 in both themes, too dark on the dark surface; the quiet text color of the
|
|
123
|
+
// theme like the header of the compact sidebar menu
|
|
124
|
+
--bs-dropdown-header-color: var(--bs-secondary-color);
|
|
108
125
|
}
|
|
109
126
|
|
|
110
127
|
// a toast is a floating surface like a dropdown: lighter in the dark theme, where a shadow is not seen
|
|
@@ -1,189 +1,194 @@
|
|
|
1
|
-
//
|
|
2
|
-
// theme: Bootstrap variables in the look of Bootstrap 6 (neutral grays, 14px text, quieter shadows and controls)
|
|
3
|
-
//
|
|
4
|
-
// Loaded before Bootstrap by @import, so every component of Bootstrap is built with them. All values are !default:
|
|
5
|
-
// a project can set its own before this file.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
// neutral grays without the blue tint of Bootstrap
|
|
9
|
-
$gray-100: #f5f5f5 !default;
|
|
10
|
-
$gray-200: #e5e5e5 !default;
|
|
11
|
-
$gray-300: #d4d4d4 !default;
|
|
12
|
-
$gray-400: #a3a3a3 !default;
|
|
13
|
-
$gray-500: #737373 !default;
|
|
14
|
-
$gray-600: #525252 !default;
|
|
15
|
-
$gray-700: #404040 !default;
|
|
16
|
-
$gray-800: #262626 !default;
|
|
17
|
-
$gray-900: #171717 !default;
|
|
18
|
-
|
|
19
|
-
// colors of Bootstrap 6 (its oklch values converted to hex): a lighter, clearer blue and livelier status colors
|
|
20
|
-
$blue: #0089d7 !default;
|
|
21
|
-
$indigo: #7740ff !default;
|
|
22
|
-
$purple: #ae29c9 !default;
|
|
23
|
-
$pink: #e12871 !default;
|
|
24
|
-
$red: #e62845 !default;
|
|
25
|
-
$orange: #fb6f00 !default;
|
|
26
|
-
$yellow: #ffce00 !default;
|
|
27
|
-
$green: #00aa67 !default;
|
|
28
|
-
$teal: #00b2ab !default;
|
|
29
|
-
$cyan: #00afd9 !default;
|
|
30
|
-
|
|
31
|
-
// green as a text on a light surface (.text-success, the text of a valid field): the green darkened by 16 % in oklch,
|
|
32
|
-
// the least that reads 4.5:1 on white (the green itself has 3:1); the dark theme keeps the green
|
|
33
|
-
$success-text: #00874f !default;
|
|
34
|
-
$form-valid-color: $success-text !default;
|
|
35
|
-
|
|
36
|
-
// white text on blue, green, red and orange like in Bootstrap 6, dark text on yellow and cyan
|
|
37
|
-
$min-contrast-ratio: 2.7 !default;
|
|
38
|
-
|
|
39
|
-
// body: dark gray text, the page background just off white (the dashboard uses the tertiary background)
|
|
40
|
-
$body-color: $gray-800 !default;
|
|
41
|
-
$body-tertiary-bg: #fafafa !default;
|
|
42
|
-
$border-color: $gray-200 !default;
|
|
43
|
-
|
|
44
|
-
// typography: 14px text with 20px lines; headings semibold in a compact scale (h5 stays readable, it heads pages
|
|
45
|
-
// and boxes in administrations)
|
|
46
|
-
$font-size-base: .875rem !default;
|
|
47
|
-
$line-height-base: 1.4285714286 !default;
|
|
48
|
-
$headings-font-weight: 600 !default;
|
|
49
|
-
// small text (small, .small, form texts, feedback, the footer of a quote) in the size of the text: nothing readable is
|
|
50
|
-
// under 14px unless it is a -sm size, a badge or an uppercase label
|
|
51
|
-
$small-font-size: 1em !default;
|
|
52
|
-
// the footer of a quote in the secondary color of the theme: the fixed gray of Bootstrap was 2.3:1 on the dark surface
|
|
53
|
-
$blockquote-footer-color: var(--bs-secondary-color) !default;
|
|
54
|
-
$h1-font-size: 1.75rem !default;
|
|
55
|
-
$h2-font-size: 1.5rem !default;
|
|
56
|
-
$h3-font-size: 1.3125rem !default;
|
|
57
|
-
$h4-font-size: 1.1875rem !default;
|
|
58
|
-
$h5-font-size: 1.125rem !default;
|
|
59
|
-
$h6-font-size: .875rem !default;
|
|
60
|
-
$link-decoration: none !default;
|
|
61
|
-
$link-hover-decoration: underline !default;
|
|
62
|
-
|
|
63
|
-
// shadows: hardly visible, they only lift a surface from the page; the small one is the soft shadow of compostrap
|
|
64
|
-
// ($soft-shadow), which boxes and cards use instead of a border
|
|
65
|
-
$box-shadow-sm: none !default; // as $soft-shadow of the modules: no shadow for now
|
|
66
|
-
|
|
67
|
-
// a faint line around a card, as $surface-border of the modules: none for now
|
|
68
|
-
$surface-border: none !default;
|
|
69
|
-
$box-shadow: 0 2px 4px -1px rgba(18, 18, 23, .06), 0 4px 6px -1px rgba(18, 18, 23, .08) !default;
|
|
70
|
-
$box-shadow-lg: 0 4px 6px -2px rgba(18, 18, 23, .05), 0 10px 15px -3px rgba(18, 18, 23, .08) !default;
|
|
71
|
-
|
|
72
|
-
// buttons and form controls share one scale: 36px, small 30px, large 44px; buttons are medium
|
|
73
|
-
$input-btn-padding-y: .4375rem !default;
|
|
74
|
-
$input-btn-padding-x: .75rem !default;
|
|
75
|
-
$input-btn-padding-y-sm: .3125rem !default;
|
|
76
|
-
$input-btn-padding-x-sm: .625rem !default;
|
|
77
|
-
$input-btn-padding-y-lg: .5625rem !default;
|
|
78
|
-
$input-btn-padding-x-lg: 1.25rem !default;
|
|
79
|
-
$btn-font-weight: 500 !default;
|
|
80
|
-
|
|
81
|
-
// focus: no wide glow, the border turns into the primary color (tinted by 50 %) with a 1px ring of it around, so
|
|
82
|
-
// together a clean 2px line; buttons and checks get the same thin ring
|
|
83
|
-
$focus-ring-width: 1px !default;
|
|
84
|
-
$focus-ring-opacity: .6 !default;
|
|
85
|
-
// a text field and a select show their focus by the tinted border only, without the ring around it
|
|
86
|
-
$input-focus-box-shadow: none !default;
|
|
87
|
-
$form-select-focus-box-shadow: none !default;
|
|
88
|
-
$form-label-font-weight: 500 !default;
|
|
89
|
-
$form-label-margin-bottom: .375rem !default;
|
|
90
|
-
|
|
91
|
-
// checks, radios and switches of the size of Bootstrap 6: 20px boxes as high as a line of text, a 35 × 20px switch
|
|
92
|
-
// with a white knob on a gray track (the track color is in theme/_index.scss)
|
|
93
|
-
$form-check-input-width: 1.25rem !default;
|
|
94
|
-
$form-check-padding-start: 1.75rem !default;
|
|
95
|
-
$form-check-input-border-radius: .3125rem !default;
|
|
96
|
-
$form-check-input-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5.5 10 3 3 6-6'/></svg>") !default;
|
|
97
|
-
$form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10h8'/></svg>") !default;
|
|
98
|
-
$form-switch-width: 2.1875rem !default;
|
|
99
|
-
$form-switch-padding-start: 2.6875rem !default;
|
|
100
|
-
$form-switch-color: #fff !default;
|
|
101
|
-
$form-switch-focus-color: #fff !default;
|
|
102
|
-
$form-switch-color-dark: #fff !default;
|
|
103
|
-
$form-switch-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3.2' fill='#fff'/></svg>") !default;
|
|
104
|
-
$form-switch-focus-bg-image: $form-switch-bg-image !default;
|
|
105
|
-
$form-switch-checked-bg-image: $form-switch-bg-image !default;
|
|
106
|
-
$form-switch-bg-image-dark: $form-switch-bg-image !default;
|
|
107
|
-
|
|
108
|
-
// cards: no border (the soft shadow lifts them), a larger radius, a calm header
|
|
109
|
-
$card-border-width: 0 !default;
|
|
110
|
-
$card-border-radius: .5rem !default;
|
|
111
|
-
$card-spacer-y: 1.25rem !default;
|
|
112
|
-
$card-spacer-x: 1.25rem !default;
|
|
113
|
-
$card-cap-padding-y: 1rem !default;
|
|
114
|
-
$card-cap-bg: transparent !default;
|
|
115
|
-
|
|
116
|
-
// dropdowns: no border (the shadow lifts them), a faint divider, the chosen item (e.g. the current language) is tinted, not filled with the primary color
|
|
117
|
-
$dropdown-border-width: 0 !default;
|
|
118
|
-
$dropdown-divider-bg: rgba(var(--bs-body-color-rgb), .08) !default;
|
|
119
|
-
$dropdown-link-active-color: var(--bs-body-color) !default;
|
|
120
|
-
$dropdown-link-active-bg: rgba(var(--bs-primary-rgb), .1) !default;
|
|
121
|
-
|
|
122
|
-
//
|
|
123
|
-
$
|
|
124
|
-
$
|
|
125
|
-
$
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
$toast-
|
|
129
|
-
$toast-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
$
|
|
134
|
-
$
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
$accordion-button-
|
|
139
|
-
$accordion-button-active-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
$
|
|
143
|
-
$
|
|
144
|
-
$
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
$
|
|
149
|
-
$
|
|
150
|
-
$
|
|
151
|
-
|
|
152
|
-
//
|
|
153
|
-
$table-
|
|
154
|
-
$table-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
$
|
|
159
|
-
$
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
$pagination-
|
|
163
|
-
$pagination-
|
|
164
|
-
|
|
165
|
-
$pagination-
|
|
166
|
-
$pagination-
|
|
167
|
-
$pagination-
|
|
168
|
-
$pagination-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
$
|
|
173
|
-
$
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
$
|
|
180
|
-
$
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
$
|
|
187
|
-
$nav-link-
|
|
188
|
-
$
|
|
189
|
-
|
|
1
|
+
//
|
|
2
|
+
// theme: Bootstrap variables in the look of Bootstrap 6 (neutral grays, 14px text, quieter shadows and controls)
|
|
3
|
+
//
|
|
4
|
+
// Loaded before Bootstrap by @import, so every component of Bootstrap is built with them. All values are !default:
|
|
5
|
+
// a project can set its own before this file.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
// neutral grays without the blue tint of Bootstrap
|
|
9
|
+
$gray-100: #f5f5f5 !default;
|
|
10
|
+
$gray-200: #e5e5e5 !default;
|
|
11
|
+
$gray-300: #d4d4d4 !default;
|
|
12
|
+
$gray-400: #a3a3a3 !default;
|
|
13
|
+
$gray-500: #737373 !default;
|
|
14
|
+
$gray-600: #525252 !default;
|
|
15
|
+
$gray-700: #404040 !default;
|
|
16
|
+
$gray-800: #262626 !default;
|
|
17
|
+
$gray-900: #171717 !default;
|
|
18
|
+
|
|
19
|
+
// colors of Bootstrap 6 (its oklch values converted to hex): a lighter, clearer blue and livelier status colors
|
|
20
|
+
$blue: #0089d7 !default;
|
|
21
|
+
$indigo: #7740ff !default;
|
|
22
|
+
$purple: #ae29c9 !default;
|
|
23
|
+
$pink: #e12871 !default;
|
|
24
|
+
$red: #e62845 !default;
|
|
25
|
+
$orange: #fb6f00 !default;
|
|
26
|
+
$yellow: #ffce00 !default;
|
|
27
|
+
$green: #00aa67 !default;
|
|
28
|
+
$teal: #00b2ab !default;
|
|
29
|
+
$cyan: #00afd9 !default;
|
|
30
|
+
|
|
31
|
+
// green as a text on a light surface (.text-success, the text of a valid field): the green darkened by 16 % in oklch,
|
|
32
|
+
// the least that reads 4.5:1 on white (the green itself has 3:1); the dark theme keeps the green
|
|
33
|
+
$success-text: #00874f !default;
|
|
34
|
+
$form-valid-color: $success-text !default;
|
|
35
|
+
|
|
36
|
+
// white text on blue, green, red and orange like in Bootstrap 6, dark text on yellow and cyan
|
|
37
|
+
$min-contrast-ratio: 2.7 !default;
|
|
38
|
+
|
|
39
|
+
// body: dark gray text, the page background just off white (the dashboard uses the tertiary background)
|
|
40
|
+
$body-color: $gray-800 !default;
|
|
41
|
+
$body-tertiary-bg: #fafafa !default;
|
|
42
|
+
$border-color: $gray-200 !default;
|
|
43
|
+
|
|
44
|
+
// typography: 14px text with 20px lines; headings semibold in a compact scale (h5 stays readable, it heads pages
|
|
45
|
+
// and boxes in administrations)
|
|
46
|
+
$font-size-base: .875rem !default;
|
|
47
|
+
$line-height-base: 1.4285714286 !default;
|
|
48
|
+
$headings-font-weight: 600 !default;
|
|
49
|
+
// small text (small, .small, form texts, feedback, the footer of a quote) in the size of the text: nothing readable is
|
|
50
|
+
// under 14px unless it is a -sm size, a badge or an uppercase label
|
|
51
|
+
$small-font-size: 1em !default;
|
|
52
|
+
// the footer of a quote in the secondary color of the theme: the fixed gray of Bootstrap was 2.3:1 on the dark surface
|
|
53
|
+
$blockquote-footer-color: var(--bs-secondary-color) !default;
|
|
54
|
+
$h1-font-size: 1.75rem !default;
|
|
55
|
+
$h2-font-size: 1.5rem !default;
|
|
56
|
+
$h3-font-size: 1.3125rem !default;
|
|
57
|
+
$h4-font-size: 1.1875rem !default;
|
|
58
|
+
$h5-font-size: 1.125rem !default;
|
|
59
|
+
$h6-font-size: .875rem !default;
|
|
60
|
+
$link-decoration: none !default;
|
|
61
|
+
$link-hover-decoration: underline !default;
|
|
62
|
+
|
|
63
|
+
// shadows: hardly visible, they only lift a surface from the page; the small one is the soft shadow of compostrap
|
|
64
|
+
// ($soft-shadow), which boxes and cards use instead of a border
|
|
65
|
+
$box-shadow-sm: none !default; // as $soft-shadow of the modules: no shadow for now
|
|
66
|
+
|
|
67
|
+
// a faint line around a card, as $surface-border of the modules: none for now
|
|
68
|
+
$surface-border: none !default;
|
|
69
|
+
$box-shadow: 0 2px 4px -1px rgba(18, 18, 23, .06), 0 4px 6px -1px rgba(18, 18, 23, .08) !default;
|
|
70
|
+
$box-shadow-lg: 0 4px 6px -2px rgba(18, 18, 23, .05), 0 10px 15px -3px rgba(18, 18, 23, .08) !default;
|
|
71
|
+
|
|
72
|
+
// buttons and form controls share one scale: 36px, small 30px, large 44px; buttons are medium
|
|
73
|
+
$input-btn-padding-y: .4375rem !default;
|
|
74
|
+
$input-btn-padding-x: .75rem !default;
|
|
75
|
+
$input-btn-padding-y-sm: .3125rem !default;
|
|
76
|
+
$input-btn-padding-x-sm: .625rem !default;
|
|
77
|
+
$input-btn-padding-y-lg: .5625rem !default;
|
|
78
|
+
$input-btn-padding-x-lg: 1.25rem !default;
|
|
79
|
+
$btn-font-weight: 500 !default;
|
|
80
|
+
|
|
81
|
+
// focus: no wide glow, the border turns into the primary color (tinted by 50 %) with a 1px ring of it around, so
|
|
82
|
+
// together a clean 2px line; buttons and checks get the same thin ring
|
|
83
|
+
$focus-ring-width: 1px !default;
|
|
84
|
+
$focus-ring-opacity: .6 !default;
|
|
85
|
+
// a text field and a select show their focus by the tinted border only, without the ring around it
|
|
86
|
+
$input-focus-box-shadow: none !default;
|
|
87
|
+
$form-select-focus-box-shadow: none !default;
|
|
88
|
+
$form-label-font-weight: 500 !default;
|
|
89
|
+
$form-label-margin-bottom: .375rem !default;
|
|
90
|
+
|
|
91
|
+
// checks, radios and switches of the size of Bootstrap 6: 20px boxes as high as a line of text, a 35 × 20px switch
|
|
92
|
+
// with a white knob on a gray track (the track color is in theme/_index.scss)
|
|
93
|
+
$form-check-input-width: 1.25rem !default;
|
|
94
|
+
$form-check-padding-start: 1.75rem !default;
|
|
95
|
+
$form-check-input-border-radius: .3125rem !default;
|
|
96
|
+
$form-check-input-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5.5 10 3 3 6-6'/></svg>") !default;
|
|
97
|
+
$form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10h8'/></svg>") !default;
|
|
98
|
+
$form-switch-width: 2.1875rem !default;
|
|
99
|
+
$form-switch-padding-start: 2.6875rem !default;
|
|
100
|
+
$form-switch-color: #fff !default;
|
|
101
|
+
$form-switch-focus-color: #fff !default;
|
|
102
|
+
$form-switch-color-dark: #fff !default;
|
|
103
|
+
$form-switch-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3.2' fill='#fff'/></svg>") !default;
|
|
104
|
+
$form-switch-focus-bg-image: $form-switch-bg-image !default;
|
|
105
|
+
$form-switch-checked-bg-image: $form-switch-bg-image !default;
|
|
106
|
+
$form-switch-bg-image-dark: $form-switch-bg-image !default;
|
|
107
|
+
|
|
108
|
+
// cards: no border (the soft shadow lifts them), a larger radius, a calm header
|
|
109
|
+
$card-border-width: 0 !default;
|
|
110
|
+
$card-border-radius: .5rem !default;
|
|
111
|
+
$card-spacer-y: 1.25rem !default;
|
|
112
|
+
$card-spacer-x: 1.25rem !default;
|
|
113
|
+
$card-cap-padding-y: 1rem !default;
|
|
114
|
+
$card-cap-bg: transparent !default;
|
|
115
|
+
|
|
116
|
+
// dropdowns: no border (the shadow lifts them), a faint divider, the chosen item (e.g. the current language) is tinted, not filled with the primary color
|
|
117
|
+
$dropdown-border-width: 0 !default;
|
|
118
|
+
$dropdown-divider-bg: rgba(var(--bs-body-color-rgb), .08) !default;
|
|
119
|
+
$dropdown-link-active-color: var(--bs-body-color) !default;
|
|
120
|
+
$dropdown-link-active-bg: rgba(var(--bs-primary-rgb), .1) !default;
|
|
121
|
+
// items are pills inset from the edges of the menu like the links of the sidebar menu (hover and the chosen item do
|
|
122
|
+
// not fill the whole width); the text stays 1rem from the edge
|
|
123
|
+
$dropdown-padding-x: .5rem !default;
|
|
124
|
+
$dropdown-item-padding-x: .5rem !default;
|
|
125
|
+
$dropdown-item-border-radius: var(--bs-border-radius) !default;
|
|
126
|
+
|
|
127
|
+
// toasts in the look of the modals: no border, an opaque surface, larger corners and the large shadow
|
|
128
|
+
$toast-padding-x: 1rem !default;
|
|
129
|
+
$toast-padding-y: .75rem !default;
|
|
130
|
+
$toast-background-color: var(--bs-body-bg) !default;
|
|
131
|
+
$toast-border-width: 0 !default;
|
|
132
|
+
$toast-border-radius: var(--bs-border-radius-lg) !default;
|
|
133
|
+
$toast-box-shadow: var(--bs-box-shadow-lg) !default;
|
|
134
|
+
$toast-header-background-color: transparent !default;
|
|
135
|
+
|
|
136
|
+
// accordion like in Bootstrap 6: the open item is a light gray (half the border color on the surface, so it sits with
|
|
137
|
+
// the lines in both themes), its text and arrow stay in the body color, the arrow is a thin chevron
|
|
138
|
+
$accordion-button-active-bg: color-mix(in srgb, var(--bs-border-color) 50%, var(--bs-body-bg)) !default;
|
|
139
|
+
$accordion-button-active-color: var(--bs-body-color) !default;
|
|
140
|
+
$accordion-icon-color: $body-color !default;
|
|
141
|
+
$accordion-icon-active-color: $body-color !default;
|
|
142
|
+
$accordion-icon-width: 1rem !default;
|
|
143
|
+
$accordion-button-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='#{$gray-300}' stroke-linecap='round' stroke-linejoin='round'><path d='m2 5 6 6 6-6'/></svg>") !default;
|
|
144
|
+
$accordion-button-active-icon-dark: $accordion-button-icon-dark !default;
|
|
145
|
+
|
|
146
|
+
// modals: no border around the window and under the header, a light line above the footer
|
|
147
|
+
$modal-content-border-width: 0 !default;
|
|
148
|
+
$modal-header-border-width: 0 !default;
|
|
149
|
+
$modal-footer-border-width: 1px !default;
|
|
150
|
+
$modal-footer-border-color: var(--bs-border-color-translucent) !default;
|
|
151
|
+
|
|
152
|
+
// tables: more air in the rows, also in the small table of a datagrid; a quiet hover
|
|
153
|
+
$table-cell-padding-y: .625rem !default;
|
|
154
|
+
$table-cell-padding-x: .75rem !default;
|
|
155
|
+
$table-cell-padding-y-sm: .5rem !default;
|
|
156
|
+
$table-cell-padding-x-sm: .625rem !default;
|
|
157
|
+
// (.035 was too strong for the user)
|
|
158
|
+
$table-hover-bg-factor: .02 !default;
|
|
159
|
+
$table-active-bg-factor: .04 !default;
|
|
160
|
+
|
|
161
|
+
// pagination: separate rounded buttons without borders, the current page in the primary color
|
|
162
|
+
$pagination-border-width: 0 !default;
|
|
163
|
+
$pagination-margin-start: .25rem !default;
|
|
164
|
+
$pagination-color: var(--bs-body-color) !default;
|
|
165
|
+
$pagination-bg: transparent !default;
|
|
166
|
+
$pagination-hover-color: var(--bs-body-color) !default;
|
|
167
|
+
$pagination-hover-bg: var(--bs-secondary-bg) !default;
|
|
168
|
+
$pagination-focus-bg: var(--bs-secondary-bg) !default;
|
|
169
|
+
// no ring around the focused page: the tint of the focus background shows it (a ring looked like a border)
|
|
170
|
+
$pagination-focus-box-shadow: none !default;
|
|
171
|
+
$pagination-disabled-color: var(--bs-tertiary-color) !default;
|
|
172
|
+
$pagination-disabled-bg: transparent !default;
|
|
173
|
+
$pagination-padding-x-sm: .625rem !default;
|
|
174
|
+
|
|
175
|
+
// badges like in Bootstrap 6: semibold, at least 22px high (the rest is in theme/_index.scss); the corners stay those
|
|
176
|
+
// of Bootstrap 5
|
|
177
|
+
$badge-font-size: .75rem !default; // 12px, the least of Bootstrap 6
|
|
178
|
+
$badge-font-weight: 600 !default;
|
|
179
|
+
$badge-padding-y: .25em !default;
|
|
180
|
+
$badge-padding-x: .625em !default;
|
|
181
|
+
|
|
182
|
+
// navs like in Bootstrap 6: gray links that darken on hover, a light background on hover; a hovered tab gets only a
|
|
183
|
+
// faint frame (the full frame of Bootstrap 5 stuck to the frame of the active tab), tabs keep a 2px gap (theme/_index)
|
|
184
|
+
$nav-link-color: var(--bs-secondary-color) !default;
|
|
185
|
+
$nav-link-hover-color: var(--bs-emphasis-color) !default;
|
|
186
|
+
$nav-link-disabled-color: var(--bs-tertiary-color) !default;
|
|
187
|
+
$nav-tabs-link-active-color: var(--bs-body-color) !default;
|
|
188
|
+
$nav-tabs-link-hover-border-color: color-mix(in srgb, var(--bs-border-color) 50%, transparent) color-mix(in srgb, var(--bs-border-color) 50%, transparent) var(--bs-border-color) !default;
|
|
189
|
+
|
|
190
|
+
// no animation on hover anywhere: buttons, nav links and pages change their colors at once
|
|
191
|
+
$btn-transition: none !default;
|
|
192
|
+
$nav-link-transition: none !default;
|
|
193
|
+
$pagination-transition: none !default;
|
|
194
|
+
$accordion-transition: border-radius .15s ease !default;
|