@dolanske/vui 1.0.1 → 1.0.3
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/LICENSE +673 -673
- package/README.md +42 -42
- package/dist/components/Accordion/Accordion.vue.d.ts +2 -3
- package/dist/components/Accordion/AccordionGroup.vue.d.ts +2 -5
- package/dist/components/Alert/Alert.vue.d.ts +2 -3
- package/dist/components/Avatar/Avatar.vue.d.ts +2 -3
- package/dist/components/Badge/Badge.vue.d.ts +2 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +2 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +2 -3
- package/dist/components/Button/Button.vue.d.ts +2 -3
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +2 -3
- package/dist/components/Calendar/Calendar.vue.d.ts +6 -6
- package/dist/components/Card/Card.vue.d.ts +3 -4
- package/dist/components/Checkbox/Checkbox.vue.d.ts +6 -7
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +1 -2
- package/dist/components/Divider/Divider.vue.d.ts +2 -3
- package/dist/components/Drawer/Drawer.vue.d.ts +5 -6
- package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -66
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +2 -3
- package/dist/components/Dropdown/DropdownTitle.vue.d.ts +6 -6
- package/dist/components/Flex/Flex.vue.d.ts +2 -3
- package/dist/components/Grid/Grid.vue.d.ts +2 -3
- package/dist/components/Input/Color.vue.d.ts +5 -5
- package/dist/components/Input/Counter.vue.d.ts +5 -5
- package/dist/components/Input/Dropzone.vue.d.ts +10 -95
- package/dist/components/Input/File.vue.d.ts +3 -4
- package/dist/components/Input/Input.vue.d.ts +6 -7
- package/dist/components/Input/Password.vue.d.ts +1 -1
- package/dist/components/Input/Textarea.vue.d.ts +6 -7
- package/dist/components/Kbd/Kbd.vue.d.ts +1 -1
- package/dist/components/Kbd/KbdGroup.vue.d.ts +1 -2
- package/dist/components/Modal/Confirm.vue.d.ts +5 -6
- package/dist/components/Modal/Modal.vue.d.ts +5 -6
- package/dist/components/OTP/OTP.vue.d.ts +6 -7
- package/dist/components/OTP/OTPItem.vue.d.ts +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +2 -3
- package/dist/components/Popout/Popout.vue.d.ts +2 -3
- package/dist/components/Progress/Progress.vue.d.ts +5 -5
- package/dist/components/Radio/Radio.vue.d.ts +6 -7
- package/dist/components/Radio/RadioGroup.vue.d.ts +6 -7
- package/dist/components/Select/Select.vue.d.ts +8 -4
- package/dist/components/Sheet/Sheet.vue.d.ts +5 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts +6 -7
- package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +6 -7
- package/dist/components/Table/Cell.vue.d.ts +2 -5
- package/dist/components/Table/Head.vue.d.ts +2 -3
- package/dist/components/Table/Root.vue.d.ts +2 -3
- package/dist/components/Table/table.d.ts +2 -2
- package/dist/components/Tabs/Tab.vue.d.ts +2 -3
- package/dist/components/Tabs/Tabs.vue.d.ts +6 -7
- package/dist/components/Toast/toast.d.ts +6 -6
- package/dist/components/Tooltip/Tooltip.vue.d.ts +1 -2
- package/dist/internal/Backdrop/Backdrop.vue.d.ts +2 -3
- package/dist/{vui.css → style.css} +1 -1
- package/dist/vui.js +5318 -5449
- package/package.json +72 -72
- package/src/App.vue +95 -95
- package/src/components/Accordion/Accordion.vue +91 -91
- package/src/components/Accordion/AccordionGroup.vue +43 -43
- package/src/components/Accordion/accordion.scss +82 -82
- package/src/components/Alert/Alert.vue +59 -59
- package/src/components/Alert/alert.scss +161 -161
- package/src/components/Avatar/Avatar.vue +53 -53
- package/src/components/Avatar/avatar.scss +52 -52
- package/src/components/Badge/Badge.vue +21 -21
- package/src/components/Badge/badge.scss +206 -206
- package/src/components/Breadcrumbs/BreadcrumbItem.vue +26 -26
- package/src/components/Breadcrumbs/Breadcrumbs.vue +30 -32
- package/src/components/Breadcrumbs/breadcrumbs.scss +31 -31
- package/src/components/Button/Button.vue +85 -85
- package/src/components/Button/button.scss +279 -279
- package/src/components/ButtonGroup/ButtonGroup.vue +28 -28
- package/src/components/ButtonGroup/button-group.scss +51 -51
- package/src/components/Calendar/Calendar.vue +66 -66
- package/src/components/Calendar/calendar.scss +83 -83
- package/src/components/Card/Card.vue +48 -48
- package/src/components/Card/card.scss +53 -53
- package/src/components/Checkbox/Checkbox.vue +54 -54
- package/src/components/Checkbox/checkbox.scss +80 -80
- package/src/components/CopyClipboard/CopyClipboard.vue +91 -91
- package/src/components/CopyClipboard/copy-clipboard.scss +25 -25
- package/src/components/Divider/Divider.vue +44 -44
- package/src/components/Divider/divider.scss +35 -35
- package/src/components/Drawer/Drawer.vue +97 -97
- package/src/components/Drawer/drawer.scss +37 -37
- package/src/components/Dropdown/Dropdown.vue +135 -135
- package/src/components/Dropdown/DropdownItem.vue +33 -33
- package/src/components/Dropdown/DropdownTitle.vue +14 -14
- package/src/components/Dropdown/dropdown-item.scss +84 -84
- package/src/components/Dropdown/dropdown.scss +53 -53
- package/src/components/Flex/Flex.vue +113 -113
- package/src/components/Grid/Grid.vue +80 -80
- package/src/components/Input/Color.vue +26 -26
- package/src/components/Input/Counter.vue +66 -66
- package/src/components/Input/Dropzone.vue +65 -65
- package/src/components/Input/File.vue +15 -15
- package/src/components/Input/Input.vue +123 -123
- package/src/components/Input/Password.vue +35 -35
- package/src/components/Input/Textarea.vue +78 -78
- package/src/components/Input/input.scss +302 -302
- package/src/components/Kbd/Kbd.vue +48 -48
- package/src/components/Kbd/KbdGroup.vue +27 -27
- package/src/components/Kbd/kbd.scss +19 -19
- package/src/components/Modal/Confirm.vue +56 -56
- package/src/components/Modal/Modal.vue +99 -99
- package/src/components/Modal/modal.scss +54 -54
- package/src/components/OTP/OTP.vue +133 -133
- package/src/components/OTP/OTPItem.vue +37 -37
- package/src/components/OTP/otp.scss +84 -84
- package/src/components/Pagination/Pagination.vue +77 -77
- package/src/components/Pagination/pagination.ts +78 -78
- package/src/components/Popout/Popout.vue +52 -52
- package/src/components/Popout/popout.scss +15 -15
- package/src/components/Progress/Progress.vue +103 -103
- package/src/components/Progress/progress.scss +47 -47
- package/src/components/Radio/Radio.vue +38 -38
- package/src/components/Radio/RadioGroup.vue +40 -40
- package/src/components/Radio/radio.scss +78 -78
- package/src/components/Select/Select.vue +211 -211
- package/src/components/Select/select.scss +77 -77
- package/src/components/Sheet/Sheet.vue +98 -98
- package/src/components/Sheet/sheet.scss +69 -69
- package/src/components/Sidebar/Sidebar.vue +115 -115
- package/src/components/Sidebar/sidebar.scss +124 -124
- package/src/components/Skeleton/Skeleton.vue +43 -43
- package/src/components/Skeleton/skeleton.scss +14 -14
- package/src/components/Spinner/Spinner.vue +42 -42
- package/src/components/Spinner/spinner.scss +47 -47
- package/src/components/Switch/Switch.vue +31 -31
- package/src/components/Switch/switch.scss +93 -93
- package/src/components/Table/Cell.vue +23 -23
- package/src/components/Table/Head.vue +59 -59
- package/src/components/Table/Root.vue +66 -66
- package/src/components/Table/SelectAll.vue +23 -23
- package/src/components/Table/SelectRow.vue +30 -30
- package/src/components/Table/index.ts +7 -7
- package/src/components/Table/table.scss +154 -154
- package/src/components/Table/table.ts +248 -248
- package/src/components/Tabs/Tab.vue +25 -25
- package/src/components/Tabs/Tabs.vue +89 -89
- package/src/components/Tabs/tabs.scss +87 -87
- package/src/components/Toast/Toasts.vue +52 -52
- package/src/components/Toast/toast.scss +45 -45
- package/src/components/Toast/toast.ts +75 -75
- package/src/components/Tooltip/Tooltip.vue +86 -86
- package/src/components/Tooltip/tooltip.scss +8 -8
- package/src/examples/ExampleAccordions.vue +58 -58
- package/src/examples/ExampleAlerts.vue +78 -78
- package/src/examples/ExampleAvatars.vue +44 -44
- package/src/examples/ExampleBadges.vue +48 -48
- package/src/examples/ExampleBreadcrumbs.vue +46 -46
- package/src/examples/ExampleButtons.vue +140 -140
- package/src/examples/ExampleCalendars.vue +40 -40
- package/src/examples/ExampleCards.vue +94 -94
- package/src/examples/ExampleCheckboxes.vue +123 -123
- package/src/examples/ExampleCopyClipboard.vue +47 -47
- package/src/examples/ExampleDividers.vue +39 -39
- package/src/examples/ExampleDrawers.vue +67 -67
- package/src/examples/ExampleDropdowns.vue +114 -114
- package/src/examples/ExampleFlexGrid.vue +122 -122
- package/src/examples/ExampleInputs.vue +234 -234
- package/src/examples/ExampleKBD.vue +65 -65
- package/src/examples/ExampleModals.vue +143 -143
- package/src/examples/ExamplePalette.vue +159 -159
- package/src/examples/ExamplePopouts.vue +41 -41
- package/src/examples/ExampleSheets.vue +77 -77
- package/src/examples/ExampleSidebars.vue +270 -270
- package/src/examples/ExampleSkeletons.vue +26 -26
- package/src/examples/ExampleSpinners.vue +78 -78
- package/src/examples/ExampleTables.vue +195 -195
- package/src/examples/ExampleTabs.vue +119 -119
- package/src/examples/ExampleToasts.vue +96 -96
- package/src/examples/ExampleTooltips.vue +70 -70
- package/src/examples/shared/ExampleColor.vue +28 -28
- package/src/index.scss +1 -1
- package/src/index.ts +116 -116
- package/src/internal/Backdrop/Backdrop.vue +22 -22
- package/src/internal/Backdrop/backdrop.scss +34 -34
- package/src/main.ts +5 -5
- package/src/shared/helpers.ts +117 -117
- package/src/shared/theme.ts +22 -22
- package/src/shared/types.ts +29 -29
- package/src/style/animation.scss +22 -22
- package/src/style/core.scss +125 -125
- package/src/style/layout.scss +233 -233
- package/src/style/media-query.scss +29 -29
- package/src/style/reset.scss +135 -135
- package/src/style/text.scss +124 -92
- package/src/style/theme.scss +195 -195
- package/src/style/tooltip.scss +146 -146
- package/src/style/typography.scss +415 -415
- package/src/style/utils.scss +36 -36
package/src/style/theme.scss
CHANGED
|
@@ -1,195 +1,195 @@
|
|
|
1
|
-
// Light theme
|
|
2
|
-
:root {
|
|
3
|
-
--light-color-bg: rgb(246, 246, 246);
|
|
4
|
-
--light-color-bg-medium: rgb(236, 236, 236);
|
|
5
|
-
--light-color-bg-raised: rgb(222, 222, 222);
|
|
6
|
-
--light-color-bg-lowered: rgb(255, 255, 255);
|
|
7
|
-
|
|
8
|
-
--light-color-text: rgb(8, 8, 8);
|
|
9
|
-
--light-color-text-light: rgb(64, 64, 64);
|
|
10
|
-
--light-color-text-lighter: rgb(92, 92, 92);
|
|
11
|
-
--light-color-text-lightest: rgb(128, 128, 128);
|
|
12
|
-
--light-color-text-invert: rgb(248, 248, 248);
|
|
13
|
-
|
|
14
|
-
--light-color-button-gray: rgb(224, 224, 224);
|
|
15
|
-
--light-color-button-gray-hover: rgb(198, 198, 198);
|
|
16
|
-
|
|
17
|
-
--light-color-button-fill: rgb(12, 12, 12);
|
|
18
|
-
--light-color-button-fill-hover: rgb(52, 52, 52);
|
|
19
|
-
|
|
20
|
-
--light-color-text-red: rgb(209, 60, 52);
|
|
21
|
-
--light-color-bg-red-lowered: rgb(172, 45, 45);
|
|
22
|
-
--light-color-bg-red-raised: rgb(220, 38, 38);
|
|
23
|
-
|
|
24
|
-
--light-color-text-green: rgb(77, 160, 29);
|
|
25
|
-
--light-color-bg-green-lowered: rgb(42, 114, 19);
|
|
26
|
-
--light-color-bg-green-raised: rgb(61, 146, 35);
|
|
27
|
-
|
|
28
|
-
--light-color-text-yellow: rgb(176, 129, 15);
|
|
29
|
-
--light-color-bg-yellow-lowered: rgb(230, 205, 137);
|
|
30
|
-
--light-color-bg-yellow-raised: rgb(253, 200, 86);
|
|
31
|
-
|
|
32
|
-
--light-color-text-blue: rgb(85, 141, 245);
|
|
33
|
-
--light-color-bg-blue-lowered: rgb(196, 214, 255);
|
|
34
|
-
--light-color-bg-blue-raised: rgb(136, 178, 255);
|
|
35
|
-
|
|
36
|
-
--light-color-border: rgb(200, 200, 200);
|
|
37
|
-
--light-color-border-strong: rgb(152, 152, 152);
|
|
38
|
-
--light-color-border-weak: rgb(224, 224, 224);
|
|
39
|
-
|
|
40
|
-
--light-color-accent: rgb(193, 118, 255);
|
|
41
|
-
--light-color-bg-accent-lowered: hsla(from var(--light-color-accent) h s l / 0.6);
|
|
42
|
-
--light-color-bg-accent-raised: hsla(from var(--light-color-accent) h s l / 0.75);
|
|
43
|
-
|
|
44
|
-
--light-box-shadow: 0 2px 12px rgba(8, 8, 8, 0.075);
|
|
45
|
-
--light-box-shadow-strong: 0 4px 15px rgba(8, 8, 8, 0.2);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Dark theme
|
|
49
|
-
:root {
|
|
50
|
-
--dark-color-bg: rgb(17, 17, 17);
|
|
51
|
-
--dark-color-bg-medium: rgb(22, 22, 22);
|
|
52
|
-
--dark-color-bg-raised: rgb(28, 28, 28);
|
|
53
|
-
--dark-color-bg-lowered: rgb(12, 12, 12);
|
|
54
|
-
|
|
55
|
-
--dark-color-text: rgb(231, 231, 231);
|
|
56
|
-
--dark-color-text-light: rgb(180, 180, 180);
|
|
57
|
-
--dark-color-text-lighter: rgb(90, 90, 90);
|
|
58
|
-
--dark-color-text-lightest: rgb(65, 65, 65);
|
|
59
|
-
--dark-color-text-invert: rgb(17, 17, 17);
|
|
60
|
-
|
|
61
|
-
--dark-color-button-gray: rgb(46, 46, 46);
|
|
62
|
-
--dark-color-button-gray-hover: rgb(38, 38, 38);
|
|
63
|
-
|
|
64
|
-
--dark-color-button-fill: rgb(250, 250, 250);
|
|
65
|
-
--dark-color-button-fill-hover: rgb(210, 210, 210);
|
|
66
|
-
|
|
67
|
-
--dark-color-text-red: rgb(243, 78, 70);
|
|
68
|
-
--dark-color-bg-red-lowered: rgb(104, 24, 24);
|
|
69
|
-
--dark-color-bg-red-raised: rgb(127, 29, 29);
|
|
70
|
-
|
|
71
|
-
--dark-color-text-green: rgb(106, 207, 48);
|
|
72
|
-
--dark-color-bg-green-lowered: rgb(40, 95, 8);
|
|
73
|
-
--dark-color-bg-green-raised: rgb(26, 122, 13);
|
|
74
|
-
|
|
75
|
-
--dark-color-text-yellow: rgb(255, 193, 7);
|
|
76
|
-
--dark-color-bg-yellow-lowered: rgb(78, 52, 0);
|
|
77
|
-
--dark-color-bg-yellow-raised: rgb(152, 104, 0);
|
|
78
|
-
|
|
79
|
-
--dark-color-text-blue: rgb(85, 141, 245);
|
|
80
|
-
--dark-color-bg-blue-lowered: rgb(13, 32, 74);
|
|
81
|
-
--dark-color-bg-blue-raised: rgb(26, 59, 119);
|
|
82
|
-
|
|
83
|
-
--dark-color-border: rgb(40, 40, 40);
|
|
84
|
-
--dark-color-border-strong: rgb(54, 54, 54);
|
|
85
|
-
--dark-color-border-weak: rgb(36, 36, 36);
|
|
86
|
-
|
|
87
|
-
--dark-color-accent: rgb(193, 118, 255);
|
|
88
|
-
--dark-color-bg-accent-lowered: hsla(from var(--dark-color-accent) h s l / 0.45);
|
|
89
|
-
--dark-color-bg-accent-raised: hsla(from var(--dark-color-accent) h s l / 0.6);
|
|
90
|
-
|
|
91
|
-
--dark-box-shadow: 0 2px 12px rgba(8, 8, 8, 0.2);
|
|
92
|
-
--dark-box-shadow-strong: 0 4px 15px rgba(8, 8, 8, 0.4);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:root.light {
|
|
96
|
-
color-scheme: light;
|
|
97
|
-
|
|
98
|
-
--color-bg: var(--light-color-bg);
|
|
99
|
-
--color-bg-medium: var(--light-color-bg-medium);
|
|
100
|
-
--color-bg-raised: var(--light-color-bg-raised);
|
|
101
|
-
--color-bg-lowered: var(--light-color-bg-lowered);
|
|
102
|
-
|
|
103
|
-
--color-text: var(--light-color-text);
|
|
104
|
-
--color-text-light: var(--light-color-text-light);
|
|
105
|
-
--color-text-lighter: var(--light-color-text-lighter);
|
|
106
|
-
--color-text-lightest: var(--light-color-text-lightest);
|
|
107
|
-
--color-text-invert: var(--light-color-text-invert);
|
|
108
|
-
|
|
109
|
-
--color-button-gray: var(--light-color-button-gray);
|
|
110
|
-
--color-button-gray-hover: var(--light-color-button-gray-hover);
|
|
111
|
-
|
|
112
|
-
--color-button-fill: var(--light-color-button-fill);
|
|
113
|
-
--color-button-fill-hover: var(--light-color-button-fill-hover);
|
|
114
|
-
|
|
115
|
-
--color-text-red: var(--light-color-text-red);
|
|
116
|
-
--color-bg-red-lowered: var(--light-color-bg-red-lowered);
|
|
117
|
-
--color-bg-red-raised: var(--light-color-bg-red-raised);
|
|
118
|
-
--color-border-red: var(--light-color-border-red);
|
|
119
|
-
|
|
120
|
-
--color-text-green: var(--light-color-text-green);
|
|
121
|
-
--color-bg-green-lowered: var(--light-color-bg-green-lowered);
|
|
122
|
-
--color-bg-green-raised: var(--light-color-bg-green-raised);
|
|
123
|
-
|
|
124
|
-
--color-text-yellow: var(--light-color-text-yellow);
|
|
125
|
-
--color-bg-yellow-lowered: var(--light-color-bg-yellow-lowered);
|
|
126
|
-
--color-bg-yellow-raised: var(--light-color-bg-yellow-raised);
|
|
127
|
-
--color-border-yellow: var(--light-color-border-yellow);
|
|
128
|
-
|
|
129
|
-
--color-text-blue: var(--light-color-text-blue);
|
|
130
|
-
--color-bg-blue-lowered: var(--light-color-bg-blue-lowered);
|
|
131
|
-
--color-bg-blue-raised: var(--light-color-bg-blue-raised);
|
|
132
|
-
--color-border-blue: var(--light-color-border-blue);
|
|
133
|
-
|
|
134
|
-
--color-border: var(--light-color-border);
|
|
135
|
-
--color-border-strong: var(--light-color-border-strong);
|
|
136
|
-
--color-border-weak: var(--light-color-border-weak);
|
|
137
|
-
|
|
138
|
-
--color-accent: var(--light-color-accent);
|
|
139
|
-
--color-bg-accent-lowered: var(--light-color-bg-accent-lowered);
|
|
140
|
-
--color-bg-accent-raised: var(--light-color-bg-accent-raised);
|
|
141
|
-
|
|
142
|
-
--box-shadow: var(--light-box-shadow);
|
|
143
|
-
--box-shadow-strong: var(--light-box-shadow-strong);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
:root.dark {
|
|
147
|
-
color-scheme: dark;
|
|
148
|
-
|
|
149
|
-
--color-bg: var(--dark-color-bg);
|
|
150
|
-
--color-bg-medium: var(--dark-color-bg-medium);
|
|
151
|
-
--color-bg-raised: var(--dark-color-bg-raised);
|
|
152
|
-
--color-bg-lowered: var(--dark-color-bg-lowered);
|
|
153
|
-
|
|
154
|
-
--color-text: var(--dark-color-text);
|
|
155
|
-
--color-text-light: var(--dark-color-text-light);
|
|
156
|
-
--color-text-lighter: var(--dark-color-text-lighter);
|
|
157
|
-
--color-text-lightest: var(--dark-color-text-lightest);
|
|
158
|
-
--color-text-invert: var(--dark-color-text-invert);
|
|
159
|
-
|
|
160
|
-
--color-button-gray: var(--dark-color-button-gray);
|
|
161
|
-
--color-button-gray-hover: var(--dark-color-button-gray-hover);
|
|
162
|
-
|
|
163
|
-
--color-button-fill: var(--dark-color-button-fill);
|
|
164
|
-
--color-button-fill-hover: var(--dark-color-button-fill-hover);
|
|
165
|
-
|
|
166
|
-
--color-text-red: var(--dark-color-text-red);
|
|
167
|
-
--color-bg-red-lowered: var(--dark-color-bg-red-lowered);
|
|
168
|
-
--color-bg-red-raised: var(--dark-color-bg-red-raised);
|
|
169
|
-
--color-border-red: var(--dark-color-border-red);
|
|
170
|
-
|
|
171
|
-
--color-text-green: var(--dark-color-text-green);
|
|
172
|
-
--color-bg-green-lowered: var(--dark-color-bg-green-lowered);
|
|
173
|
-
--color-bg-green-raised: var(--dark-color-bg-green-raised);
|
|
174
|
-
|
|
175
|
-
--color-text-yellow: var(--dark-color-text-yellow);
|
|
176
|
-
--color-bg-yellow-lowered: var(--dark-color-bg-yellow-lowered);
|
|
177
|
-
--color-bg-yellow-raised: var(--dark-color-bg-yellow-raised);
|
|
178
|
-
--color-border-yellow: var(--dark-color-border-yellow);
|
|
179
|
-
|
|
180
|
-
--color-text-blue: var(--dark-color-text-blue);
|
|
181
|
-
--color-bg-blue-lowered: var(--dark-color-bg-blue-lowered);
|
|
182
|
-
--color-bg-blue-raised: var(--dark-color-bg-blue-raised);
|
|
183
|
-
--color-border-blue: var(--dark-color-border-blue);
|
|
184
|
-
|
|
185
|
-
--color-border: var(--dark-color-border);
|
|
186
|
-
--color-border-strong: var(--dark-color-border-strong);
|
|
187
|
-
--color-border-weak: var(--dark-color-border-weak);
|
|
188
|
-
|
|
189
|
-
--color-accent: var(--dark-color-accent);
|
|
190
|
-
--color-bg-accent-lowered: var(--dark-color-bg-accent-lowered);
|
|
191
|
-
--color-bg-accent-raised: var(--dark-color-bg-accent-raised);
|
|
192
|
-
|
|
193
|
-
--box-shadow: var(--dark-box-shadow);
|
|
194
|
-
--box-shadow-strong: var(--dark-box-shadow-strong);
|
|
195
|
-
}
|
|
1
|
+
// Light theme
|
|
2
|
+
:root {
|
|
3
|
+
--light-color-bg: rgb(246, 246, 246);
|
|
4
|
+
--light-color-bg-medium: rgb(236, 236, 236);
|
|
5
|
+
--light-color-bg-raised: rgb(222, 222, 222);
|
|
6
|
+
--light-color-bg-lowered: rgb(255, 255, 255);
|
|
7
|
+
|
|
8
|
+
--light-color-text: rgb(8, 8, 8);
|
|
9
|
+
--light-color-text-light: rgb(64, 64, 64);
|
|
10
|
+
--light-color-text-lighter: rgb(92, 92, 92);
|
|
11
|
+
--light-color-text-lightest: rgb(128, 128, 128);
|
|
12
|
+
--light-color-text-invert: rgb(248, 248, 248);
|
|
13
|
+
|
|
14
|
+
--light-color-button-gray: rgb(224, 224, 224);
|
|
15
|
+
--light-color-button-gray-hover: rgb(198, 198, 198);
|
|
16
|
+
|
|
17
|
+
--light-color-button-fill: rgb(12, 12, 12);
|
|
18
|
+
--light-color-button-fill-hover: rgb(52, 52, 52);
|
|
19
|
+
|
|
20
|
+
--light-color-text-red: rgb(209, 60, 52);
|
|
21
|
+
--light-color-bg-red-lowered: rgb(172, 45, 45);
|
|
22
|
+
--light-color-bg-red-raised: rgb(220, 38, 38);
|
|
23
|
+
|
|
24
|
+
--light-color-text-green: rgb(77, 160, 29);
|
|
25
|
+
--light-color-bg-green-lowered: rgb(42, 114, 19);
|
|
26
|
+
--light-color-bg-green-raised: rgb(61, 146, 35);
|
|
27
|
+
|
|
28
|
+
--light-color-text-yellow: rgb(176, 129, 15);
|
|
29
|
+
--light-color-bg-yellow-lowered: rgb(230, 205, 137);
|
|
30
|
+
--light-color-bg-yellow-raised: rgb(253, 200, 86);
|
|
31
|
+
|
|
32
|
+
--light-color-text-blue: rgb(85, 141, 245);
|
|
33
|
+
--light-color-bg-blue-lowered: rgb(196, 214, 255);
|
|
34
|
+
--light-color-bg-blue-raised: rgb(136, 178, 255);
|
|
35
|
+
|
|
36
|
+
--light-color-border: rgb(200, 200, 200);
|
|
37
|
+
--light-color-border-strong: rgb(152, 152, 152);
|
|
38
|
+
--light-color-border-weak: rgb(224, 224, 224);
|
|
39
|
+
|
|
40
|
+
--light-color-accent: rgb(193, 118, 255);
|
|
41
|
+
--light-color-bg-accent-lowered: hsla(from var(--light-color-accent) h s l / 0.6);
|
|
42
|
+
--light-color-bg-accent-raised: hsla(from var(--light-color-accent) h s l / 0.75);
|
|
43
|
+
|
|
44
|
+
--light-box-shadow: 0 2px 12px rgba(8, 8, 8, 0.075);
|
|
45
|
+
--light-box-shadow-strong: 0 4px 15px rgba(8, 8, 8, 0.2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Dark theme
|
|
49
|
+
:root {
|
|
50
|
+
--dark-color-bg: rgb(17, 17, 17);
|
|
51
|
+
--dark-color-bg-medium: rgb(22, 22, 22);
|
|
52
|
+
--dark-color-bg-raised: rgb(28, 28, 28);
|
|
53
|
+
--dark-color-bg-lowered: rgb(12, 12, 12);
|
|
54
|
+
|
|
55
|
+
--dark-color-text: rgb(231, 231, 231);
|
|
56
|
+
--dark-color-text-light: rgb(180, 180, 180);
|
|
57
|
+
--dark-color-text-lighter: rgb(90, 90, 90);
|
|
58
|
+
--dark-color-text-lightest: rgb(65, 65, 65);
|
|
59
|
+
--dark-color-text-invert: rgb(17, 17, 17);
|
|
60
|
+
|
|
61
|
+
--dark-color-button-gray: rgb(46, 46, 46);
|
|
62
|
+
--dark-color-button-gray-hover: rgb(38, 38, 38);
|
|
63
|
+
|
|
64
|
+
--dark-color-button-fill: rgb(250, 250, 250);
|
|
65
|
+
--dark-color-button-fill-hover: rgb(210, 210, 210);
|
|
66
|
+
|
|
67
|
+
--dark-color-text-red: rgb(243, 78, 70);
|
|
68
|
+
--dark-color-bg-red-lowered: rgb(104, 24, 24);
|
|
69
|
+
--dark-color-bg-red-raised: rgb(127, 29, 29);
|
|
70
|
+
|
|
71
|
+
--dark-color-text-green: rgb(106, 207, 48);
|
|
72
|
+
--dark-color-bg-green-lowered: rgb(40, 95, 8);
|
|
73
|
+
--dark-color-bg-green-raised: rgb(26, 122, 13);
|
|
74
|
+
|
|
75
|
+
--dark-color-text-yellow: rgb(255, 193, 7);
|
|
76
|
+
--dark-color-bg-yellow-lowered: rgb(78, 52, 0);
|
|
77
|
+
--dark-color-bg-yellow-raised: rgb(152, 104, 0);
|
|
78
|
+
|
|
79
|
+
--dark-color-text-blue: rgb(85, 141, 245);
|
|
80
|
+
--dark-color-bg-blue-lowered: rgb(13, 32, 74);
|
|
81
|
+
--dark-color-bg-blue-raised: rgb(26, 59, 119);
|
|
82
|
+
|
|
83
|
+
--dark-color-border: rgb(40, 40, 40);
|
|
84
|
+
--dark-color-border-strong: rgb(54, 54, 54);
|
|
85
|
+
--dark-color-border-weak: rgb(36, 36, 36);
|
|
86
|
+
|
|
87
|
+
--dark-color-accent: rgb(193, 118, 255);
|
|
88
|
+
--dark-color-bg-accent-lowered: hsla(from var(--dark-color-accent) h s l / 0.45);
|
|
89
|
+
--dark-color-bg-accent-raised: hsla(from var(--dark-color-accent) h s l / 0.6);
|
|
90
|
+
|
|
91
|
+
--dark-box-shadow: 0 2px 12px rgba(8, 8, 8, 0.2);
|
|
92
|
+
--dark-box-shadow-strong: 0 4px 15px rgba(8, 8, 8, 0.4);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:root.light {
|
|
96
|
+
color-scheme: light;
|
|
97
|
+
|
|
98
|
+
--color-bg: var(--light-color-bg);
|
|
99
|
+
--color-bg-medium: var(--light-color-bg-medium);
|
|
100
|
+
--color-bg-raised: var(--light-color-bg-raised);
|
|
101
|
+
--color-bg-lowered: var(--light-color-bg-lowered);
|
|
102
|
+
|
|
103
|
+
--color-text: var(--light-color-text);
|
|
104
|
+
--color-text-light: var(--light-color-text-light);
|
|
105
|
+
--color-text-lighter: var(--light-color-text-lighter);
|
|
106
|
+
--color-text-lightest: var(--light-color-text-lightest);
|
|
107
|
+
--color-text-invert: var(--light-color-text-invert);
|
|
108
|
+
|
|
109
|
+
--color-button-gray: var(--light-color-button-gray);
|
|
110
|
+
--color-button-gray-hover: var(--light-color-button-gray-hover);
|
|
111
|
+
|
|
112
|
+
--color-button-fill: var(--light-color-button-fill);
|
|
113
|
+
--color-button-fill-hover: var(--light-color-button-fill-hover);
|
|
114
|
+
|
|
115
|
+
--color-text-red: var(--light-color-text-red);
|
|
116
|
+
--color-bg-red-lowered: var(--light-color-bg-red-lowered);
|
|
117
|
+
--color-bg-red-raised: var(--light-color-bg-red-raised);
|
|
118
|
+
--color-border-red: var(--light-color-border-red);
|
|
119
|
+
|
|
120
|
+
--color-text-green: var(--light-color-text-green);
|
|
121
|
+
--color-bg-green-lowered: var(--light-color-bg-green-lowered);
|
|
122
|
+
--color-bg-green-raised: var(--light-color-bg-green-raised);
|
|
123
|
+
|
|
124
|
+
--color-text-yellow: var(--light-color-text-yellow);
|
|
125
|
+
--color-bg-yellow-lowered: var(--light-color-bg-yellow-lowered);
|
|
126
|
+
--color-bg-yellow-raised: var(--light-color-bg-yellow-raised);
|
|
127
|
+
--color-border-yellow: var(--light-color-border-yellow);
|
|
128
|
+
|
|
129
|
+
--color-text-blue: var(--light-color-text-blue);
|
|
130
|
+
--color-bg-blue-lowered: var(--light-color-bg-blue-lowered);
|
|
131
|
+
--color-bg-blue-raised: var(--light-color-bg-blue-raised);
|
|
132
|
+
--color-border-blue: var(--light-color-border-blue);
|
|
133
|
+
|
|
134
|
+
--color-border: var(--light-color-border);
|
|
135
|
+
--color-border-strong: var(--light-color-border-strong);
|
|
136
|
+
--color-border-weak: var(--light-color-border-weak);
|
|
137
|
+
|
|
138
|
+
--color-accent: var(--light-color-accent);
|
|
139
|
+
--color-bg-accent-lowered: var(--light-color-bg-accent-lowered);
|
|
140
|
+
--color-bg-accent-raised: var(--light-color-bg-accent-raised);
|
|
141
|
+
|
|
142
|
+
--box-shadow: var(--light-box-shadow);
|
|
143
|
+
--box-shadow-strong: var(--light-box-shadow-strong);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:root.dark {
|
|
147
|
+
color-scheme: dark;
|
|
148
|
+
|
|
149
|
+
--color-bg: var(--dark-color-bg);
|
|
150
|
+
--color-bg-medium: var(--dark-color-bg-medium);
|
|
151
|
+
--color-bg-raised: var(--dark-color-bg-raised);
|
|
152
|
+
--color-bg-lowered: var(--dark-color-bg-lowered);
|
|
153
|
+
|
|
154
|
+
--color-text: var(--dark-color-text);
|
|
155
|
+
--color-text-light: var(--dark-color-text-light);
|
|
156
|
+
--color-text-lighter: var(--dark-color-text-lighter);
|
|
157
|
+
--color-text-lightest: var(--dark-color-text-lightest);
|
|
158
|
+
--color-text-invert: var(--dark-color-text-invert);
|
|
159
|
+
|
|
160
|
+
--color-button-gray: var(--dark-color-button-gray);
|
|
161
|
+
--color-button-gray-hover: var(--dark-color-button-gray-hover);
|
|
162
|
+
|
|
163
|
+
--color-button-fill: var(--dark-color-button-fill);
|
|
164
|
+
--color-button-fill-hover: var(--dark-color-button-fill-hover);
|
|
165
|
+
|
|
166
|
+
--color-text-red: var(--dark-color-text-red);
|
|
167
|
+
--color-bg-red-lowered: var(--dark-color-bg-red-lowered);
|
|
168
|
+
--color-bg-red-raised: var(--dark-color-bg-red-raised);
|
|
169
|
+
--color-border-red: var(--dark-color-border-red);
|
|
170
|
+
|
|
171
|
+
--color-text-green: var(--dark-color-text-green);
|
|
172
|
+
--color-bg-green-lowered: var(--dark-color-bg-green-lowered);
|
|
173
|
+
--color-bg-green-raised: var(--dark-color-bg-green-raised);
|
|
174
|
+
|
|
175
|
+
--color-text-yellow: var(--dark-color-text-yellow);
|
|
176
|
+
--color-bg-yellow-lowered: var(--dark-color-bg-yellow-lowered);
|
|
177
|
+
--color-bg-yellow-raised: var(--dark-color-bg-yellow-raised);
|
|
178
|
+
--color-border-yellow: var(--dark-color-border-yellow);
|
|
179
|
+
|
|
180
|
+
--color-text-blue: var(--dark-color-text-blue);
|
|
181
|
+
--color-bg-blue-lowered: var(--dark-color-bg-blue-lowered);
|
|
182
|
+
--color-bg-blue-raised: var(--dark-color-bg-blue-raised);
|
|
183
|
+
--color-border-blue: var(--dark-color-border-blue);
|
|
184
|
+
|
|
185
|
+
--color-border: var(--dark-color-border);
|
|
186
|
+
--color-border-strong: var(--dark-color-border-strong);
|
|
187
|
+
--color-border-weak: var(--dark-color-border-weak);
|
|
188
|
+
|
|
189
|
+
--color-accent: var(--dark-color-accent);
|
|
190
|
+
--color-bg-accent-lowered: var(--dark-color-bg-accent-lowered);
|
|
191
|
+
--color-bg-accent-raised: var(--dark-color-bg-accent-raised);
|
|
192
|
+
|
|
193
|
+
--box-shadow: var(--dark-box-shadow);
|
|
194
|
+
--box-shadow-strong: var(--dark-box-shadow-strong);
|
|
195
|
+
}
|
package/src/style/tooltip.scss
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This is a trick in which you can add simply tooltips to an element without any additional html.
|
|
3
|
-
Simple add data-title-_position_="Hello world" and hover the element.
|
|
4
|
-
|
|
5
|
-
Available tooltip positions:
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
[data-title-left],
|
|
9
|
-
[data-title-right],
|
|
10
|
-
[data-title-bottom],
|
|
11
|
-
[data-title-bottom-left],
|
|
12
|
-
[data-title-bottom-right],
|
|
13
|
-
[data-title-top],
|
|
14
|
-
[data-title-top-left],
|
|
15
|
-
[data-title-top-right] {
|
|
16
|
-
position: relative;
|
|
17
|
-
|
|
18
|
-
&:before {
|
|
19
|
-
font-family: var(--global-font);
|
|
20
|
-
font-weight: var(--font-weight-regular);
|
|
21
|
-
background-color: var(--color-button-gray);
|
|
22
|
-
color: var(--color-text) !important;
|
|
23
|
-
box-shadow: var(--box-shadow-strong);
|
|
24
|
-
|
|
25
|
-
font-size: var(--font-size-m);
|
|
26
|
-
position: absolute;
|
|
27
|
-
padding: 4px 8px;
|
|
28
|
-
line-height: 1.3em;
|
|
29
|
-
border-radius: var(--border-radius-m);
|
|
30
|
-
transition: var(--transition);
|
|
31
|
-
|
|
32
|
-
max-width: 512px;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
cursor: default;
|
|
35
|
-
z-index: -1;
|
|
36
|
-
visibility: hidden;
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
max-width: 256px;
|
|
39
|
-
width: max-content;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
&:before {
|
|
44
|
-
visibility: visible;
|
|
45
|
-
opacity: 1;
|
|
46
|
-
z-index: 99999;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:root.light {
|
|
52
|
-
[data-title-left],
|
|
53
|
-
[data-title-right],
|
|
54
|
-
[data-title-bottom],
|
|
55
|
-
[data-title-bottom-left],
|
|
56
|
-
[data-title-bottom-right],
|
|
57
|
-
[data-title-top],
|
|
58
|
-
[data-title-top-left],
|
|
59
|
-
[data-title-top-right] {
|
|
60
|
-
&:before {
|
|
61
|
-
background-color: var(--color-bg-lowered);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
[data-title-left]:before {
|
|
67
|
-
content: attr(data-title-left);
|
|
68
|
-
top: 50%;
|
|
69
|
-
transform: translateY(-50%);
|
|
70
|
-
z-index: 99999;
|
|
71
|
-
right: calc(100% + 4px);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[data-title-right]:before {
|
|
75
|
-
content: attr(data-title-right);
|
|
76
|
-
top: 50%;
|
|
77
|
-
transform: translateY(-50%);
|
|
78
|
-
z-index: 99999;
|
|
79
|
-
left: calc(100% + 4px);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
[data-title-bottom]:before,
|
|
83
|
-
[data-title-bottom-left]:before,
|
|
84
|
-
[data-title-bottom-right]:before {
|
|
85
|
-
content: attr(data-title-bottom);
|
|
86
|
-
top: calc(100% + 4px);
|
|
87
|
-
transform: translateX(-50%);
|
|
88
|
-
left: 50%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[data-title-bottom-left]:before {
|
|
92
|
-
content: attr(data-title-bottom-left);
|
|
93
|
-
transform: unset;
|
|
94
|
-
left: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
[data-title-bottom-right]:before {
|
|
98
|
-
content: attr(data-title-bottom-right);
|
|
99
|
-
transform: unset;
|
|
100
|
-
left: unset;
|
|
101
|
-
right: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
[data-title-top]:before,
|
|
105
|
-
[data-title-top-left]:before,
|
|
106
|
-
[data-title-top-right]:before {
|
|
107
|
-
content: attr(data-title-top);
|
|
108
|
-
bottom: calc(100% + 4px);
|
|
109
|
-
transform: translateX(-50%);
|
|
110
|
-
left: 50%;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[data-title-top-left]:before {
|
|
114
|
-
content: attr(data-title-top-left);
|
|
115
|
-
transform: unset;
|
|
116
|
-
left: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
[data-title-top-right]:before {
|
|
120
|
-
content: attr(data-title-top-right);
|
|
121
|
-
transform: unset;
|
|
122
|
-
left: unset;
|
|
123
|
-
right: 0;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Hover
|
|
127
|
-
|
|
128
|
-
[data-title-left]:hover:before {
|
|
129
|
-
right: calc(100% + 10px);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
[data-title-right]:hover:before {
|
|
133
|
-
left: calc(100% + 10px);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
[data-title-top]:hover:before,
|
|
137
|
-
[data-title-top-left]:hover:before,
|
|
138
|
-
[data-title-top-right]:hover:before {
|
|
139
|
-
bottom: calc(100% + 10px);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
[data-title-bottom]:hover:before,
|
|
143
|
-
[data-title-bottom-left]:hover:before,
|
|
144
|
-
[data-title-bottom-right]:hover:before {
|
|
145
|
-
top: calc(100% + 10px);
|
|
146
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
This is a trick in which you can add simply tooltips to an element without any additional html.
|
|
3
|
+
Simple add data-title-_position_="Hello world" and hover the element.
|
|
4
|
+
|
|
5
|
+
Available tooltip positions:
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
[data-title-left],
|
|
9
|
+
[data-title-right],
|
|
10
|
+
[data-title-bottom],
|
|
11
|
+
[data-title-bottom-left],
|
|
12
|
+
[data-title-bottom-right],
|
|
13
|
+
[data-title-top],
|
|
14
|
+
[data-title-top-left],
|
|
15
|
+
[data-title-top-right] {
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
&:before {
|
|
19
|
+
font-family: var(--global-font);
|
|
20
|
+
font-weight: var(--font-weight-regular);
|
|
21
|
+
background-color: var(--color-button-gray);
|
|
22
|
+
color: var(--color-text) !important;
|
|
23
|
+
box-shadow: var(--box-shadow-strong);
|
|
24
|
+
|
|
25
|
+
font-size: var(--font-size-m);
|
|
26
|
+
position: absolute;
|
|
27
|
+
padding: 4px 8px;
|
|
28
|
+
line-height: 1.3em;
|
|
29
|
+
border-radius: var(--border-radius-m);
|
|
30
|
+
transition: var(--transition);
|
|
31
|
+
|
|
32
|
+
max-width: 512px;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
cursor: default;
|
|
35
|
+
z-index: -1;
|
|
36
|
+
visibility: hidden;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
max-width: 256px;
|
|
39
|
+
width: max-content;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
&:before {
|
|
44
|
+
visibility: visible;
|
|
45
|
+
opacity: 1;
|
|
46
|
+
z-index: 99999;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:root.light {
|
|
52
|
+
[data-title-left],
|
|
53
|
+
[data-title-right],
|
|
54
|
+
[data-title-bottom],
|
|
55
|
+
[data-title-bottom-left],
|
|
56
|
+
[data-title-bottom-right],
|
|
57
|
+
[data-title-top],
|
|
58
|
+
[data-title-top-left],
|
|
59
|
+
[data-title-top-right] {
|
|
60
|
+
&:before {
|
|
61
|
+
background-color: var(--color-bg-lowered);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-title-left]:before {
|
|
67
|
+
content: attr(data-title-left);
|
|
68
|
+
top: 50%;
|
|
69
|
+
transform: translateY(-50%);
|
|
70
|
+
z-index: 99999;
|
|
71
|
+
right: calc(100% + 4px);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-title-right]:before {
|
|
75
|
+
content: attr(data-title-right);
|
|
76
|
+
top: 50%;
|
|
77
|
+
transform: translateY(-50%);
|
|
78
|
+
z-index: 99999;
|
|
79
|
+
left: calc(100% + 4px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-title-bottom]:before,
|
|
83
|
+
[data-title-bottom-left]:before,
|
|
84
|
+
[data-title-bottom-right]:before {
|
|
85
|
+
content: attr(data-title-bottom);
|
|
86
|
+
top: calc(100% + 4px);
|
|
87
|
+
transform: translateX(-50%);
|
|
88
|
+
left: 50%;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-title-bottom-left]:before {
|
|
92
|
+
content: attr(data-title-bottom-left);
|
|
93
|
+
transform: unset;
|
|
94
|
+
left: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-title-bottom-right]:before {
|
|
98
|
+
content: attr(data-title-bottom-right);
|
|
99
|
+
transform: unset;
|
|
100
|
+
left: unset;
|
|
101
|
+
right: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-title-top]:before,
|
|
105
|
+
[data-title-top-left]:before,
|
|
106
|
+
[data-title-top-right]:before {
|
|
107
|
+
content: attr(data-title-top);
|
|
108
|
+
bottom: calc(100% + 4px);
|
|
109
|
+
transform: translateX(-50%);
|
|
110
|
+
left: 50%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-title-top-left]:before {
|
|
114
|
+
content: attr(data-title-top-left);
|
|
115
|
+
transform: unset;
|
|
116
|
+
left: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-title-top-right]:before {
|
|
120
|
+
content: attr(data-title-top-right);
|
|
121
|
+
transform: unset;
|
|
122
|
+
left: unset;
|
|
123
|
+
right: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Hover
|
|
127
|
+
|
|
128
|
+
[data-title-left]:hover:before {
|
|
129
|
+
right: calc(100% + 10px);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-title-right]:hover:before {
|
|
133
|
+
left: calc(100% + 10px);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[data-title-top]:hover:before,
|
|
137
|
+
[data-title-top-left]:hover:before,
|
|
138
|
+
[data-title-top-right]:hover:before {
|
|
139
|
+
bottom: calc(100% + 10px);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-title-bottom]:hover:before,
|
|
143
|
+
[data-title-bottom-left]:hover:before,
|
|
144
|
+
[data-title-bottom-right]:hover:before {
|
|
145
|
+
top: calc(100% + 10px);
|
|
146
|
+
}
|