barbican-reset 3.35.0 → 3.39.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/components/BrButton.vue +11 -3
- package/components/BrConfirmDone.vue +3 -3
- package/components/BrConfirmEmail.vue +3 -3
- package/components/BrDetails.vue +5 -1
- package/components/BrFormCheckbox.vue +1 -1
- package/components/BrFormEdit.vue +1 -1
- package/components/BrFormInput.vue +18 -1
- package/components/BrFormRadio.vue +1 -1
- package/components/BrFormRow.vue +1 -1
- package/components/BrFormSelect.vue +3 -57
- package/components/BrFormSelectItem.vue +1 -7
- package/components/BrFormTextarea.vue +1 -1
- package/components/BrFormToggle.vue +8 -9
- package/components/BrFormVisible.vue +2 -2
- package/components/BrLink.vue +20 -5
- package/components/BrOverlay.vue +55 -21
- package/components/BrQrCode.vue +21 -0
- package/icons/{city_of_london_lockup.vue → CityOfLondonLockup.vue} +5 -12
- package/icons/Dropdown.vue +6 -0
- package/icons/Renew.vue +5 -0
- package/icons/dots.vue +50 -0
- package/icons/index.js +18 -18
- package/index.js +52 -102
- package/package.json +8 -14
- package/scss/_atomic.scss +1 -1
- package/scss/_br-button.scss +13 -19
- package/scss/_br-form-select.scss +52 -0
- package/scss/_br-form-toggle.scss +43 -25
- package/scss/_br-overlay.scss +29 -4
- package/scss/_br-qr-code.scss +3 -0
- package/scss/_br-table-row.scss +1 -1
- package/scss/_input.scss +1 -1
- package/scss/_variables.scss +317 -163
- package/scss/card/_membership-new.scss +10 -23
- package/scss/index.scss +2 -1
- package/scss/mixins/_br-alert.scss +1 -1
- package/scss/mixins/_br-card.scss +1 -1
- package/scss/mixins/_br-form-radio.scss +1 -1
- package/scss/mixins/_content.scss +1 -1
- package/scss/mixins/_focus.scss +1 -1
- package/scss/mixins/_font-size.scss +3 -3
- package/scss/mixins/buttons/_custom.scss +12 -85
- package/scss/mixins/buttons/_outline.scss +8 -12
- package/scss/mixins/buttons/_setup.scss +3 -7
- package/scss/mixins/buttons/custom/_edit-input.scss +22 -0
- package/scss/mixins/buttons/custom/_exit-overlay-bg.scss +12 -0
- package/scss/mixins/buttons/custom/_exit-overlay.scss +3 -19
- package/scss/mixins/buttons/custom/_exit.scss +11 -0
- package/scss/mixins/buttons/custom/_invisible.scss +2 -2
- package/scss/mixins/buttons/custom/_link.scss +19 -0
- package/scss/mixins/buttons/custom/_manage-order.scss +4 -4
- package/scss/mixins/buttons/custom/_outline-secondary.scss +1 -5
- package/scss/mixins/buttons/custom/_renew-membership.scss +3 -3
- package/scss/mixins/buttons/custom/_select-form.scss +15 -5
- package/scss/mixins/buttons/custom/_voucher-amount.scss +18 -0
- package/scss/mixins/card/_membership.scss +10 -50
- package/scss/mixins/card/_qrcode.scss +60 -3
- package/scss/mixins/input/_checkbox.scss +1 -1
- package/scss/mixins/input/_generic.scss +1 -1
- package/scss/mixins/input/_select.scss +1 -1
- package/scss/mixins/input/_text.scss +1 -1
- package/scss/mixins/table/_details.scss +1 -1
- package/scss/mixins/table/_etickets.scss +1 -1
- package/scss/mixins/table/_gifts.scss +1 -1
- package/scss/mixins/table/_orders.scss +1 -1
- package/scss/mixins/table/_preferences.scss +1 -1
- package/scss/mixins/table/_tickets.scss +1 -1
- package/scss/reset.scss +4 -0
- package/utils/datetimes.js +162 -0
- package/utils/numbers.js +23 -0
- package/utils.js +6 -0
- package/components/BrAnchor.vue +0 -34
- package/components/BrButton/dot_typing.vue +0 -60
- package/components/BrButton/remove_ticket.vue +0 -46
- package/icons/account/index.js +0 -20
- package/icons/confirm/index.js +0 -4
- package/icons/password/index.js +0 -4
- package/icons/qr_code.vue +0 -5
- package/icons/stream/airplay.vue +0 -15
- package/icons/stream/cast.vue +0 -13
- package/icons/stream/chat.vue +0 -15
- package/icons/stream/cog.vue +0 -13
- package/icons/stream/index.js +0 -15
- package/icons/stream/live.vue +0 -12
- package/icons/stream/volume.vue +0 -13
- package/icons/wheelchair.vue +0 -18
- package/logos/arts-council-england.svg +0 -1
- package/logos/barbican.svg +0 -1
- package/logos/city-of-london.svg +0 -1
- package/logos/lso.svg +0 -1
- package/scripts/helpers.js +0 -6
- package/scss/_br-form-select-link.scss +0 -15
- /package/{scripts/animations → animations}/confirm.js +0 -0
- /package/icons/{account/contact.vue → AccountContact.vue} +0 -0
- /package/icons/{account/edit.vue → AccountEdit.vue} +0 -0
- /package/icons/{account/membership.vue → AccountMembership.vue} +0 -0
- /package/icons/{account/orders.vue → AccountOrders.vue} +0 -0
- /package/icons/{account/payment.vue → AccountPayment.vue} +0 -0
- /package/icons/{person.vue → AccountPerson.vue} +0 -0
- /package/icons/{account/personal.vue → AccountPersonal.vue} +0 -0
- /package/icons/{account/ticket.vue → AccountTicket.vue} +0 -0
- /package/icons/{back_arrow.vue → BackArrow.vue} +0 -0
- /package/icons/{city_of_london.vue → CityOfLondon.vue} +0 -0
- /package/icons/{information.vue → Info.vue} +0 -0
- /package/{scripts/helpers → utils}/compareArrays.js +0 -0
- /package/{scripts/helpers → utils}/constrainTabbing.js +0 -0
- /package/{scripts/helpers → utils}/formatKebabCase.js +0 -0
- /package/{scripts/helpers → utils}/logObject.js +0 -0
package/index.js
CHANGED
|
@@ -1,102 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
import BrWrap from '#components/BrWrap.vue'
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
BrAlert,
|
|
57
|
-
BrAnchor,
|
|
58
|
-
BrButton,
|
|
59
|
-
BrCard,
|
|
60
|
-
BrCardBody,
|
|
61
|
-
BrCardSubtitle,
|
|
62
|
-
BrCardText,
|
|
63
|
-
BrCardTitle,
|
|
64
|
-
BrCardTearoff,
|
|
65
|
-
BrCollapseButton,
|
|
66
|
-
BrCollapseContent,
|
|
67
|
-
BrConfirmDone,
|
|
68
|
-
BrConfirmEmail,
|
|
69
|
-
BrContainer,
|
|
70
|
-
BrDetails,
|
|
71
|
-
BrFormDate,
|
|
72
|
-
BrFooterLower,
|
|
73
|
-
BrFooterUpper,
|
|
74
|
-
BrFormBlock,
|
|
75
|
-
BrFormCheckbox,
|
|
76
|
-
BrFormCheckboxGroup,
|
|
77
|
-
BrFormEdit,
|
|
78
|
-
BrFormEmail,
|
|
79
|
-
BrFormFieldset,
|
|
80
|
-
BrFormInput,
|
|
81
|
-
BrFormLabel,
|
|
82
|
-
BrFormPassword,
|
|
83
|
-
BrFormRadio,
|
|
84
|
-
BrFormRadioGroup,
|
|
85
|
-
BrFormRow,
|
|
86
|
-
BrFormSelect,
|
|
87
|
-
BrFormSelectItem,
|
|
88
|
-
BrFormTel,
|
|
89
|
-
BrFormTextarea,
|
|
90
|
-
BrFormToggle,
|
|
91
|
-
BrFormUpdate,
|
|
92
|
-
BrFormVisible,
|
|
93
|
-
BrLink,
|
|
94
|
-
BrLoader,
|
|
95
|
-
BrOverlay,
|
|
96
|
-
BrSkiplink,
|
|
97
|
-
BrStatusBars,
|
|
98
|
-
BrTableCell,
|
|
99
|
-
BrTableHeader,
|
|
100
|
-
BrTableRow,
|
|
101
|
-
BrWrap,
|
|
102
|
-
}
|
|
1
|
+
export { default as BrAlert } from '#components/BrAlert.vue'
|
|
2
|
+
export { default as BrButton } from '#components/BrButton.vue'
|
|
3
|
+
|
|
4
|
+
export { default as BrCard } from '#components/BrCard.vue'
|
|
5
|
+
export { default as BrCardBody } from '#components/BrCardBody.vue'
|
|
6
|
+
export { default as BrCardSubtitle } from '#components/BrCardSubtitle.vue'
|
|
7
|
+
export { default as BrCardText } from '#components/BrCardText.vue'
|
|
8
|
+
export { default as BrCardTearoff } from '#components/BrCardTearoff.vue'
|
|
9
|
+
export { default as BrCardTitle } from '#components/BrCardTitle.vue'
|
|
10
|
+
|
|
11
|
+
export { default as BrCollapseButton } from '#components/BrCollapse/Button.vue'
|
|
12
|
+
export { default as BrCollapseContent } from '#components/BrCollapse/Content.vue'
|
|
13
|
+
|
|
14
|
+
export { default as BrConfirmDone } from '#components/BrConfirmDone.vue'
|
|
15
|
+
export { default as BrConfirmEmail } from '#components/BrConfirmEmail.vue'
|
|
16
|
+
|
|
17
|
+
export { default as BrContainer } from '#components/BrContainer.vue'
|
|
18
|
+
export { default as BrDetails } from '#components/BrDetails.vue'
|
|
19
|
+
export { default as BrFooterLower } from '#components/BrFooterLower.vue'
|
|
20
|
+
export { default as BrFooterUpper } from '#components/BrFooterUpper.vue'
|
|
21
|
+
|
|
22
|
+
export { default as BrFormBlock } from '#components/BrFormBlock.vue'
|
|
23
|
+
export { default as BrFormCheckbox } from '#components/BrFormCheckbox.vue'
|
|
24
|
+
export { default as BrFormCheckboxGroup } from '#components/BrFormCheckboxGroup.vue'
|
|
25
|
+
export { default as BrFormDate } from '#components/BrFormDate.vue'
|
|
26
|
+
export { default as BrFormEdit } from '#components/BrFormEdit.vue'
|
|
27
|
+
export { default as BrFormEmail } from '#components/BrFormEmail.vue'
|
|
28
|
+
export { default as BrFormFieldset } from '#components/BrFormFieldset.vue'
|
|
29
|
+
export { default as BrFormInput } from '#components/BrFormInput.vue'
|
|
30
|
+
export { default as BrFormLabel } from '#components/BrFormLabel.vue'
|
|
31
|
+
export { default as BrFormPassword } from '#components/BrFormPassword.vue'
|
|
32
|
+
export { default as BrFormRadio } from '#components/BrFormRadio.vue'
|
|
33
|
+
export { default as BrFormRadioGroup } from '#components/BrFormRadioGroup.vue'
|
|
34
|
+
export { default as BrFormRow } from '#components/BrFormRow.vue'
|
|
35
|
+
export { default as BrFormSelect } from '#components/BrFormSelect.vue'
|
|
36
|
+
export { default as BrFormSelectItem } from '#components/BrFormSelectItem.vue'
|
|
37
|
+
export { default as BrFormTel } from '#components/BrFormTel.vue'
|
|
38
|
+
export { default as BrFormTextarea } from '#components/BrFormTextarea.vue'
|
|
39
|
+
export { default as BrFormToggle } from '#components/BrFormToggle.vue'
|
|
40
|
+
export { default as BrFormUpdate } from '#components/BrFormUpdate.vue'
|
|
41
|
+
export { default as BrFormVisible } from '#components/BrFormVisible.vue'
|
|
42
|
+
|
|
43
|
+
export { default as BrLink } from '#components/BrLink.vue'
|
|
44
|
+
export { default as BrLoader } from '#components/BrLoader.vue'
|
|
45
|
+
export { default as BrOverlay } from '#components/BrOverlay.vue'
|
|
46
|
+
export { default as BrQrCode } from '#components/BrQrCode.vue'
|
|
47
|
+
export { default as BrSkiplink } from '#components/BrSkiplink.vue'
|
|
48
|
+
export { default as BrStatusBars } from '#components/BrStatusBars.vue'
|
|
49
|
+
export { default as BrTableCell } from '#components/BrTableCell.vue'
|
|
50
|
+
export { default as BrTableHeader } from '#components/BrTableHeader.vue'
|
|
51
|
+
export { default as BrTableRow } from '#components/BrTableRow.vue'
|
|
52
|
+
export { default as BrWrap } from '#components/BrWrap.vue'
|
package/package.json
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barbican-reset",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.39.0",
|
|
4
4
|
"description": "Shared design system for Barbican projects, providing SCSS utilities, animations, icons, Vue components, and JS helpers for consistent styling and behaviour.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./index.js",
|
|
8
|
-
"./animations": "./animations/index.js",
|
|
9
8
|
"./lists": "./scss/lists.scss",
|
|
10
9
|
"./reset": "./scss/reset.scss",
|
|
11
10
|
"./supreme": "./scss/supreme.scss",
|
|
12
11
|
"./typography": "./scss/typography.scss",
|
|
13
12
|
"./focus-visible": "./focus-visible.min.js",
|
|
14
13
|
"./icons": "./icons/index.js",
|
|
15
|
-
"./icons/account": "./icons/account/index.js",
|
|
16
|
-
"./icons/confirm": "./icons/confirm/index.js",
|
|
17
|
-
"./icons/stream": "./icons/stream/index.js",
|
|
18
14
|
"./scss": "./scss/index.scss",
|
|
19
15
|
"./scss/functions": "./scss/functions/index.scss",
|
|
20
16
|
"./scss/mixins": "./scss/mixins/index.scss",
|
|
21
17
|
"./scss/helpers": "./scss/_helpers.scss",
|
|
22
|
-
"./
|
|
23
|
-
"./
|
|
18
|
+
"./mixins": "./mixins/inputs.js",
|
|
19
|
+
"./utils": "./utils.js"
|
|
24
20
|
},
|
|
25
21
|
"imports": {
|
|
26
22
|
"#animations/*": "./animations/*.js",
|
|
@@ -28,8 +24,7 @@
|
|
|
28
24
|
"#icons/*": "./icons/*",
|
|
29
25
|
"#mixins/*": "./mixins/*.js",
|
|
30
26
|
"#styles/*": "./scss/*.scss",
|
|
31
|
-
"#
|
|
32
|
-
"#helpers/*": "./scripts/helpers/*.js"
|
|
27
|
+
"#utils/*": "./utils/*.js"
|
|
33
28
|
},
|
|
34
29
|
"scripts": {
|
|
35
30
|
"build:css": "gulp build:css",
|
|
@@ -47,6 +42,7 @@
|
|
|
47
42
|
"luxon": "^3.2.1",
|
|
48
43
|
"nodemon": "^3.1.0",
|
|
49
44
|
"pug": "^3.0.2",
|
|
45
|
+
"qrcode": "^1.5.3",
|
|
50
46
|
"serve-favicon": "^2.5.0"
|
|
51
47
|
},
|
|
52
48
|
"peerDependencies": {
|
|
@@ -55,16 +51,14 @@
|
|
|
55
51
|
"files": [
|
|
56
52
|
"animations/**/*",
|
|
57
53
|
"components/**/*",
|
|
58
|
-
"css/**/*",
|
|
59
|
-
"fonts/*",
|
|
60
54
|
"icons/**/*",
|
|
61
55
|
"mixins/**/*",
|
|
62
56
|
"patterns/**/*",
|
|
63
|
-
"
|
|
64
|
-
"scripts/**/*",
|
|
57
|
+
"utils/**/*",
|
|
65
58
|
"scss/**/*",
|
|
66
59
|
"focus-visible.min.js",
|
|
67
|
-
"index.js"
|
|
60
|
+
"index.js",
|
|
61
|
+
"utils.js"
|
|
68
62
|
],
|
|
69
63
|
"homepage": "https://bitbucket.org/barbicandev/barbican-reset#readme",
|
|
70
64
|
"license": "MIT",
|
package/scss/_atomic.scss
CHANGED
package/scss/_br-button.scss
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
@use "mixins/focus" as *;
|
|
2
2
|
@use "mixins/buttons" as *;
|
|
3
3
|
|
|
4
|
-
button.btn:active {
|
|
5
|
-
transform: var(--scale-click);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
/// Button component setup class.
|
|
9
5
|
/// Used in combination with a button style class
|
|
10
6
|
/// @group Buttons
|
|
@@ -70,14 +66,6 @@ button.btn:active {
|
|
|
70
66
|
@include btn-edit-input;
|
|
71
67
|
}
|
|
72
68
|
|
|
73
|
-
/// Remove button.
|
|
74
|
-
/// Used only by StreamDonation.vue component. Could be deprecated.
|
|
75
|
-
/// Defaults to slim solid grey. Borders grey on focus.
|
|
76
|
-
/// @group Buttons
|
|
77
|
-
.btn.btn-remove {
|
|
78
|
-
@include btn-remove;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
69
|
/// Link button.
|
|
82
70
|
/// Imitates the appearance of an anchor link.
|
|
83
71
|
/// Defaults to transparent fill. Fills grey on focus.
|
|
@@ -86,13 +74,6 @@ button.btn:active {
|
|
|
86
74
|
@include btn-link;
|
|
87
75
|
}
|
|
88
76
|
|
|
89
|
-
/// Video help button.
|
|
90
|
-
/// Apparently no longer used. Could be deprecated.
|
|
91
|
-
/// @group Buttons
|
|
92
|
-
.btn.btn-video-help {
|
|
93
|
-
@include btn-video-help;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
77
|
/// Exit button.
|
|
97
78
|
/// Circular close button. Used in the BrAlert component.
|
|
98
79
|
/// @group Buttons
|
|
@@ -128,6 +109,11 @@ button.btn:active {
|
|
|
128
109
|
@include btn-exit-overlay;
|
|
129
110
|
}
|
|
130
111
|
|
|
112
|
+
/// @group Buttons
|
|
113
|
+
.btn.btn-exit-overlay-bg {
|
|
114
|
+
@include btn-exit-overlay-bg;
|
|
115
|
+
}
|
|
116
|
+
|
|
131
117
|
.btn {
|
|
132
118
|
&.btn-video-login {
|
|
133
119
|
@include btn-video-login;
|
|
@@ -241,6 +227,10 @@ button.btn:active {
|
|
|
241
227
|
@include btn-slim;
|
|
242
228
|
}
|
|
243
229
|
|
|
230
|
+
&.btn-voucher-amount {
|
|
231
|
+
@include btn-voucher-amount;
|
|
232
|
+
}
|
|
233
|
+
|
|
244
234
|
// modifyers
|
|
245
235
|
|
|
246
236
|
&.expand {
|
|
@@ -250,4 +240,8 @@ button.btn:active {
|
|
|
250
240
|
&.expand--mobile {
|
|
251
241
|
@include btn-expand--mobile;
|
|
252
242
|
}
|
|
243
|
+
|
|
244
|
+
&.btn-react:not(:disabled):not([aria-busy=true]):active {
|
|
245
|
+
transform: var(--scale-click);
|
|
246
|
+
}
|
|
253
247
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use "mixins/breakpoints" as *;
|
|
2
|
+
|
|
3
|
+
.br-select-form {
|
|
4
|
+
width: var(--width-select-form);
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.br-select-form-button[aria-expanded='false'] + .br-select-form-list {
|
|
9
|
+
visibility: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.br-select-form-button svg {
|
|
13
|
+
@include large-down {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.br-select-form-list {
|
|
19
|
+
border-bottom-right-radius: var(--border-radius-lg);
|
|
20
|
+
border-bottom-left-radius: var(--border-radius-lg);
|
|
21
|
+
border-width: var(--border-width-sm);
|
|
22
|
+
color: var(--color-form-select-list);
|
|
23
|
+
border-color: currentColor;
|
|
24
|
+
background-color: white;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
position: absolute;
|
|
27
|
+
margin-bottom: 0;
|
|
28
|
+
list-style: none;
|
|
29
|
+
border-top: none;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
padding-left: 0;
|
|
32
|
+
margin-top: 0;
|
|
33
|
+
width: 100%;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.br-select-form-item:not(:last-of-type) {
|
|
38
|
+
border-bottom: 1px solid currentColor;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.br-form-select-link {
|
|
42
|
+
padding: var(--padding-md);
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.br-form-select-link:focus-visible,
|
|
47
|
+
.br-form-select-link:hover {
|
|
48
|
+
background-color: var(--background-color-form-select-link-focus);
|
|
49
|
+
outline-offset: var(--outline-inset-lg);
|
|
50
|
+
outline-color: inherit;
|
|
51
|
+
outline-style: dashed;
|
|
52
|
+
}
|
|
@@ -1,42 +1,54 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "mixins/input/generic" as *;
|
|
2
3
|
@use "mixins/breakpoints" as *;
|
|
3
4
|
|
|
4
5
|
.br-form-toggle label {
|
|
5
6
|
@include generic-input-label;
|
|
6
7
|
|
|
7
|
-
@include small-up {
|
|
8
|
-
max-width: var(--width-layout-xs);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
8
|
& {
|
|
12
|
-
grid-template-columns: auto
|
|
9
|
+
grid-template-columns: auto var(--width-toggle);
|
|
13
10
|
padding-left: var(--padding-md);
|
|
14
11
|
display: inline-grid;
|
|
15
12
|
align-items: center;
|
|
16
13
|
font-weight: normal;
|
|
14
|
+
gap: var(--gap-sm);
|
|
17
15
|
height: initial;
|
|
18
16
|
cursor: pointer;
|
|
19
17
|
width: 100%;
|
|
20
|
-
gap: 0.5em;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
|
|
21
|
+
.br-form-toggle.drawer {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.br-form-toggle.drawer label {
|
|
26
|
+
border-top-right-radius: 0;
|
|
27
|
+
border-top-left-radius: 0;
|
|
28
|
+
border-top-width: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
24
31
|
.br-form-toggle input[type=checkbox] {
|
|
25
|
-
background-color: var(--color-
|
|
32
|
+
background-color: var(--background-color-toggle-unchecked);
|
|
33
|
+
border-color: var(--border-color-toggle-unchecked);
|
|
34
|
+
border-radius: var(--border-radius-toggle);
|
|
26
35
|
transition-property: background-color;
|
|
36
|
+
border-width: var(--border-width-sm);
|
|
27
37
|
transition-duration: 200ms;
|
|
28
|
-
|
|
38
|
+
height: var(--height-toggle);
|
|
39
|
+
width: var(--width-toggle);
|
|
40
|
+
border-style: solid;
|
|
29
41
|
position: relative;
|
|
30
42
|
appearance: none;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: 3.25rem;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: block;
|
|
34
45
|
color: white;
|
|
35
46
|
padding: 0;
|
|
36
47
|
margin: 0;
|
|
37
48
|
|
|
38
|
-
&:
|
|
39
|
-
|
|
49
|
+
&:hover,
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
outline-color: var(--outline-color-toggle-unchecked);
|
|
40
52
|
outline-offset: var(--border-width-lg);
|
|
41
53
|
outline-width: var(--border-width-lg);
|
|
42
54
|
outline-style: solid;
|
|
@@ -44,28 +56,34 @@
|
|
|
44
56
|
}
|
|
45
57
|
|
|
46
58
|
.br-form-toggle input[type=checkbox]:before {
|
|
59
|
+
background-color: var(--background-color-toggle-before-unchecked);
|
|
47
60
|
transition-property: transform;
|
|
48
|
-
transition-duration:
|
|
49
|
-
|
|
61
|
+
transition-duration: 300ms;
|
|
62
|
+
bottom: var(--margin-toggle-before);
|
|
63
|
+
height: var(--width-toggle-before);
|
|
64
|
+
left: var(--margin-toggle-before);
|
|
65
|
+
width: var(--width-toggle-before);
|
|
50
66
|
border-radius: 50%;
|
|
51
67
|
position: absolute;
|
|
52
|
-
height: 1.65em;
|
|
53
|
-
bottom: 0.3em;
|
|
54
|
-
width: 1.65em;
|
|
55
|
-
left: 0.3em;
|
|
56
68
|
content: '';
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
.br-form-toggle input[type=checkbox]:checked:before {
|
|
60
|
-
-webkit-transform: translateX(
|
|
61
|
-
-ms-transform: translateX(
|
|
62
|
-
transform: translateX(
|
|
72
|
+
-webkit-transform: translateX(var(--width-toggle-before));
|
|
73
|
+
-ms-transform: translateX(var(--width-toggle-before));
|
|
74
|
+
transform: translateX(var(--width-toggle-before));
|
|
63
75
|
}
|
|
64
76
|
|
|
65
77
|
.br-form-toggle input[type=checkbox]:checked {
|
|
66
|
-
|
|
78
|
+
border-color: var(--border-color-toggle-checked);
|
|
79
|
+
background-color: var(--background-color-toggle-checked);
|
|
67
80
|
|
|
68
|
-
&:
|
|
69
|
-
|
|
81
|
+
&:hover,
|
|
82
|
+
&:focus-visible {
|
|
83
|
+
outline-color: var(--outline-color-toggle-checked);
|
|
70
84
|
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.br-form-toggle input[type=checkbox]:checked:before {
|
|
88
|
+
background-color: var(--background-color-toggle-before-checked);
|
|
71
89
|
}
|
package/scss/_br-overlay.scss
CHANGED
|
@@ -11,16 +11,41 @@
|
|
|
11
11
|
overflow: scroll;
|
|
12
12
|
position: fixed;
|
|
13
13
|
display: flex;
|
|
14
|
+
z-index: 999;
|
|
14
15
|
height: 100%;
|
|
15
16
|
width: 100%;
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
&.fade-enter-active,
|
|
19
|
+
&.fade-leave-active {
|
|
20
|
+
transition: opacity 0.3s ease;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.fade-enter-from,
|
|
24
|
+
&.fade-leave-to {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
|
|
20
30
|
.br-overlay-content {
|
|
21
|
-
|
|
31
|
+
margin-right: auto;
|
|
22
32
|
position: relative;
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.wrap-overlay-exit-button {
|
|
38
|
+
padding: var(--padding-xxl);
|
|
39
|
+
position: absolute;
|
|
25
40
|
z-index: 2;
|
|
41
|
+
right: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.br-overlay-background {
|
|
45
|
+
@include inset;
|
|
46
|
+
|
|
47
|
+
& {
|
|
48
|
+
position: fixed;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
}
|
|
26
51
|
}
|
package/scss/_br-table-row.scss
CHANGED