@dialpad/dialtone-css 1.0.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/CHANGELOG.json +1 -0
- package/LICENSE.md +21 -0
- package/README.md +64 -0
- package/lib/build/favicons/dialpad/favicon-beta-notification__512.png +0 -0
- package/lib/build/favicons/dialpad/favicon-beta__512.png +0 -0
- package/lib/build/favicons/dialpad/favicon-csr__512.png +0 -0
- package/lib/build/favicons/dialpad/favicon-notification__512.png +0 -0
- package/lib/build/favicons/dialpad/favicon-staging-notification__512.png +0 -0
- package/lib/build/favicons/dialpad/favicon-staging__512.png +0 -0
- package/lib/build/favicons/dialpad/favicon__512.png +0 -0
- package/lib/build/favicons/favicon-dialtone__512.png +0 -0
- package/lib/build/favicons/uberconference/favicon-uberconference__512.png +0 -0
- package/lib/build/fonts/Archivo-Bold.woff2 +0 -0
- package/lib/build/fonts/Archivo-Regular.woff2 +0 -0
- package/lib/build/fonts/Archivo-SemiBold.woff2 +0 -0
- package/lib/build/fonts/ArchivoExpanded-SemiBold.woff2 +0 -0
- package/lib/build/fonts/ArchivoSemiExpanded-Medium.woff2 +0 -0
- package/lib/build/fonts/ArchivoSemiExpanded-SemiBold.woff2 +0 -0
- package/lib/build/js/dialtone_health_check/deprecated_icons.cjs +105 -0
- package/lib/build/js/dialtone_health_check/index.cjs +82 -0
- package/lib/build/js/dialtone_health_check/non_dialtone_properties.cjs +44 -0
- package/lib/build/js/dialtone_migration_helper/configs/box-shadows.mjs +19 -0
- package/lib/build/js/dialtone_migration_helper/configs/colors.mjs +69 -0
- package/lib/build/js/dialtone_migration_helper/configs/fonts.mjs +49 -0
- package/lib/build/js/dialtone_migration_helper/configs/size-and-space.mjs +124 -0
- package/lib/build/js/dialtone_migration_helper/helpers.mjs +212 -0
- package/lib/build/js/dialtone_migration_helper/index.mjs +135 -0
- package/lib/build/less/components/avatar.less +169 -0
- package/lib/build/less/components/badge.less +139 -0
- package/lib/build/less/components/banner.less +77 -0
- package/lib/build/less/components/breadcrumbs.less +88 -0
- package/lib/build/less/components/button.less +554 -0
- package/lib/build/less/components/card.less +56 -0
- package/lib/build/less/components/chip.less +192 -0
- package/lib/build/less/components/codeblock.less +26 -0
- package/lib/build/less/components/collapsible.less +33 -0
- package/lib/build/less/components/combobox.less +28 -0
- package/lib/build/less/components/datepicker.less +146 -0
- package/lib/build/less/components/emoji-picker.less +223 -0
- package/lib/build/less/components/forms.less +153 -0
- package/lib/build/less/components/icon.less +63 -0
- package/lib/build/less/components/image-viewer.less +35 -0
- package/lib/build/less/components/input.less +321 -0
- package/lib/build/less/components/item-layout.less +53 -0
- package/lib/build/less/components/keyboard-shortcut.less +39 -0
- package/lib/build/less/components/link.less +130 -0
- package/lib/build/less/components/list-group.less +48 -0
- package/lib/build/less/components/list-item-group.less +17 -0
- package/lib/build/less/components/modal.less +340 -0
- package/lib/build/less/components/notice.less +171 -0
- package/lib/build/less/components/pagination.less +41 -0
- package/lib/build/less/components/popover.less +99 -0
- package/lib/build/less/components/presence.less +60 -0
- package/lib/build/less/components/radio-checkbox.less +278 -0
- package/lib/build/less/components/root-layout.less +125 -0
- package/lib/build/less/components/selects.less +152 -0
- package/lib/build/less/components/skeleton.less +101 -0
- package/lib/build/less/components/stack.less +129 -0
- package/lib/build/less/components/tab-panel.less +15 -0
- package/lib/build/less/components/table.less +118 -0
- package/lib/build/less/components/tabs.less +219 -0
- package/lib/build/less/components/toast.less +120 -0
- package/lib/build/less/components/toggle.less +173 -0
- package/lib/build/less/components/tooltip.less +267 -0
- package/lib/build/less/dialtone-globals.less +45 -0
- package/lib/build/less/dialtone-reset.less +362 -0
- package/lib/build/less/dialtone-variables.less +16 -0
- package/lib/build/less/dialtone.less +71 -0
- package/lib/build/less/themes/default.less +83 -0
- package/lib/build/less/themes/example.less +89 -0
- package/lib/build/less/utilities/backgrounds.less +139 -0
- package/lib/build/less/utilities/borders.less +196 -0
- package/lib/build/less/utilities/colors.less +122 -0
- package/lib/build/less/utilities/effects.less +210 -0
- package/lib/build/less/utilities/flex.less +227 -0
- package/lib/build/less/utilities/grid.less +244 -0
- package/lib/build/less/utilities/interactivity.less +69 -0
- package/lib/build/less/utilities/layout.less +146 -0
- package/lib/build/less/utilities/lint-staged.config.cjs +5 -0
- package/lib/build/less/utilities/sizing.less +152 -0
- package/lib/build/less/utilities/spacing.less +107 -0
- package/lib/build/less/utilities/typography.less +300 -0
- package/lib/build/less/variables/layout.less +19 -0
- package/lib/build/less/variables/sizes.less +64 -0
- package/lib/build/less/variables/typography.less +46 -0
- package/lib/build/less/variables/visual-styles.less +77 -0
- package/lib/build/svg/spot/blank-space.svg +35 -0
- package/lib/build/svg/spot/browser-list-callout.svg +27 -0
- package/lib/build/svg/spot/browser-table-graph.svg +37 -0
- package/lib/build/svg/spot/female-laptop-typing.svg +21 -0
- package/lib/build/svg/spot/file-upload.svg +50 -0
- package/lib/build/svg/spot/male-laptop-typing.svg +24 -0
- package/lib/build/svg/spot/mind.svg +58 -0
- package/lib/build/svg/spot/publish.svg +54 -0
- package/lib/build/svg/spot/vector-vortex.svg +53 -0
- package/lib/build/svg/spot/wireless-screenshare.svg +30 -0
- package/lib/dist/css/dialtone.css +18711 -0
- package/lib/dist/css/dialtone.min.css +1 -0
- package/lib/dist/fonts/Archivo-Bold.woff2 +0 -0
- package/lib/dist/fonts/Archivo-Regular.woff2 +0 -0
- package/lib/dist/fonts/Archivo-SemiBold.woff2 +0 -0
- package/lib/dist/fonts/ArchivoExpanded-SemiBold.woff2 +0 -0
- package/lib/dist/fonts/ArchivoSemiExpanded-Medium.woff2 +0 -0
- package/lib/dist/fonts/ArchivoSemiExpanded-SemiBold.woff2 +0 -0
- package/lib/dist/js/dialtone_health_check/deprecated_icons.cjs +105 -0
- package/lib/dist/js/dialtone_health_check/index.cjs +82 -0
- package/lib/dist/js/dialtone_health_check/non_dialtone_properties.cjs +44 -0
- package/lib/dist/js/dialtone_migration_helper/configs/box-shadows.mjs +19 -0
- package/lib/dist/js/dialtone_migration_helper/configs/colors.mjs +69 -0
- package/lib/dist/js/dialtone_migration_helper/configs/fonts.mjs +49 -0
- package/lib/dist/js/dialtone_migration_helper/configs/size-and-space.mjs +124 -0
- package/lib/dist/js/dialtone_migration_helper/helpers.mjs +212 -0
- package/lib/dist/js/dialtone_migration_helper/index.mjs +135 -0
- package/lib/dist/svg/spot/blank-space.svg +1 -0
- package/lib/dist/svg/spot/browser-list-callout.svg +1 -0
- package/lib/dist/svg/spot/browser-table-graph.svg +1 -0
- package/lib/dist/svg/spot/female-laptop-typing.svg +1 -0
- package/lib/dist/svg/spot/file-upload.svg +1 -0
- package/lib/dist/svg/spot/male-laptop-typing.svg +1 -0
- package/lib/dist/svg/spot/mind.svg +1 -0
- package/lib/dist/svg/spot/publish.svg +1 -0
- package/lib/dist/svg/spot/vector-vortex.svg +1 -0
- package/lib/dist/svg/spot/wireless-screenshare.svg +1 -0
- package/lib/dist/vue/spot/SpotBlankSpace.vue +3 -0
- package/lib/dist/vue/spot/SpotBrowserListCallout.vue +3 -0
- package/lib/dist/vue/spot/SpotBrowserTableGraph.vue +3 -0
- package/lib/dist/vue/spot/SpotFemaleLaptopTyping.vue +3 -0
- package/lib/dist/vue/spot/SpotFileUpload.vue +3 -0
- package/lib/dist/vue/spot/SpotMaleLaptopTyping.vue +3 -0
- package/lib/dist/vue/spot/SpotMind.vue +3 -0
- package/lib/dist/vue/spot/SpotPublish.vue +3 -0
- package/lib/dist/vue/spot/SpotVectorVortex.vue +3 -0
- package/lib/dist/vue/spot/SpotWirelessScreenshare.vue +3 -0
- package/package.json +115 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// COMPONENTS: TOOLTIPS
|
|
4
|
+
//
|
|
5
|
+
// These are tooltip classes for Dialpad's design system Dialtone.
|
|
6
|
+
// For further documentation of these and other classes,
|
|
7
|
+
// visit https://dialpad.design/components/tooltips
|
|
8
|
+
//
|
|
9
|
+
// TABLE OF CONTENTS
|
|
10
|
+
// • VARIABLES
|
|
11
|
+
// • BASE STYLE
|
|
12
|
+
// • ALTERNATE STYLES
|
|
13
|
+
// • ARROW DIRECTIONS
|
|
14
|
+
// - TOP LEFT
|
|
15
|
+
// - TOP CENTER
|
|
16
|
+
// - TOP RIGHT
|
|
17
|
+
// - RIGHT TOP
|
|
18
|
+
// - RIGHT CENTER
|
|
19
|
+
// - RIGHT BOTTOM
|
|
20
|
+
// - BOTTOM LEFT
|
|
21
|
+
// - BOTTOM CENTER
|
|
22
|
+
// - BOTTOM RIGHT
|
|
23
|
+
// - LEFT TOP
|
|
24
|
+
// - LEFT CENTER
|
|
25
|
+
// - LEFT BOTTOM
|
|
26
|
+
//
|
|
27
|
+
// ============================================================================
|
|
28
|
+
// $ BASE STYLE
|
|
29
|
+
// ----------------------------------------------------------------------------
|
|
30
|
+
.d-tooltip-container {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.d-tooltip {
|
|
38
|
+
// -- COMPONENT CSS VARS
|
|
39
|
+
// -----------------------
|
|
40
|
+
--tooltip-color-background: var(--dt-color-black-800);
|
|
41
|
+
--tooltip-color-text: var(--dt-color-foreground-primary-inverted);
|
|
42
|
+
--tooltip-font-weight: var(--dt-font-weight-medium);
|
|
43
|
+
--tooltip-line-height: var(--dt-font-line-height-300);
|
|
44
|
+
--tooltip-padding-y: var(--dt-space-400); // 8
|
|
45
|
+
--tooltip-padding-x: var(--dt-space-450); // 12
|
|
46
|
+
--tooltip-border-radius: var(--dt-size-radius-300); // 4
|
|
47
|
+
|
|
48
|
+
z-index: var(--zi-tooltip);
|
|
49
|
+
max-width: var(--dt-size-875);
|
|
50
|
+
padding: var(--tooltip-padding-y) var(--tooltip-padding-x);
|
|
51
|
+
color: var(--tooltip-color-text);
|
|
52
|
+
font-weight: var(--tooltip-font-weight);
|
|
53
|
+
font-size: var(--dt-font-size-100);
|
|
54
|
+
line-height: var(--tooltip-line-height);
|
|
55
|
+
letter-spacing: calc(var(--dt-space-100) * 0.25);
|
|
56
|
+
text-align: center;
|
|
57
|
+
background-color: var(--tooltip-color-background);
|
|
58
|
+
border-radius: var(--tooltip-border-radius);
|
|
59
|
+
|
|
60
|
+
&::after {
|
|
61
|
+
position: absolute;
|
|
62
|
+
border: var(--dt-size-350) solid transparent;
|
|
63
|
+
content: '';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ============================================================================
|
|
68
|
+
// $ INVERTED STYLE
|
|
69
|
+
// ----------------------------------------------------------------------------
|
|
70
|
+
.d-tooltip--inverted {
|
|
71
|
+
// -- COMPONENT CSS VARS
|
|
72
|
+
// -----------------------
|
|
73
|
+
--tooltip-color-background: var(--dt-color-black-200);
|
|
74
|
+
--tooltip-color-text: var(--dt-color-foreground-secondary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// $ HIDE STYLE
|
|
79
|
+
// ----------------------------------------------------------------------------
|
|
80
|
+
.d-tooltip--hide {
|
|
81
|
+
visibility: hidden;
|
|
82
|
+
opacity: 0;
|
|
83
|
+
transition:
|
|
84
|
+
visibility 0s 200ms,
|
|
85
|
+
transform 200ms var(--ttf-in-out) 0s,
|
|
86
|
+
opacity 200ms var(--ttf-in-out) 0s;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// ============================================================================
|
|
90
|
+
// $ SHOW STYLE
|
|
91
|
+
// ----------------------------------------------------------------------------
|
|
92
|
+
.d-tooltip--show {
|
|
93
|
+
transform: translate(0, 0);
|
|
94
|
+
visibility: visible;
|
|
95
|
+
opacity: 1;
|
|
96
|
+
transition:
|
|
97
|
+
visibility 0s 0s,
|
|
98
|
+
transform 200ms var(--ttf-in-out) 10ms,
|
|
99
|
+
opacity 200ms var(--ttf-in-out) 10ms;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// ============================================================================
|
|
103
|
+
// $ HOVER AND FOCUS STYLES
|
|
104
|
+
// ----------------------------------------------------------------------------
|
|
105
|
+
.d-tooltip--hover {
|
|
106
|
+
.d-tooltip {
|
|
107
|
+
&:extend(.d-tooltip--hide);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:hover,
|
|
111
|
+
&:focus-visible {
|
|
112
|
+
.d-tooltip {
|
|
113
|
+
&:extend(.d-tooltip--show);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// ============================================================================
|
|
119
|
+
// $ TOOLTIP DIRECTIONS
|
|
120
|
+
// ============================================================================
|
|
121
|
+
// $$ TOP
|
|
122
|
+
// ----------------------------------------------------------------------------
|
|
123
|
+
.d-tooltip__arrow-tippy--bottom-start,
|
|
124
|
+
.d-tooltip__arrow-tippy--bottom,
|
|
125
|
+
.d-tooltip__arrow-tippy--bottom-end,
|
|
126
|
+
.d-tooltip__arrow--top-left,
|
|
127
|
+
.d-tooltip__arrow--top-center,
|
|
128
|
+
.d-tooltip__arrow--top-right {
|
|
129
|
+
top: calc(100% + var(--dt-space-450)); // 100% + 12
|
|
130
|
+
transform: translateY(var(--dt-space-500)); // 16
|
|
131
|
+
|
|
132
|
+
&::after {
|
|
133
|
+
top: var(--dt-space-350-negative); // -6
|
|
134
|
+
border-top-width: 0;
|
|
135
|
+
border-bottom-color: var(--tooltip-color-background);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// $$ BOTTOM
|
|
140
|
+
// ----------------------------------------------------------------------------
|
|
141
|
+
.d-tooltip__arrow-tippy--top-start,
|
|
142
|
+
.d-tooltip__arrow-tippy--top,
|
|
143
|
+
.d-tooltip__arrow-tippy--top-end,
|
|
144
|
+
.d-tooltip__arrow--bottom-left,
|
|
145
|
+
.d-tooltip__arrow--bottom-center,
|
|
146
|
+
.d-tooltip__arrow--bottom-right {
|
|
147
|
+
bottom: calc(100% + var(--dt-space-450)); // 100% + 12
|
|
148
|
+
transform: translateY(var(--dt-space-500-negative)); // -16
|
|
149
|
+
|
|
150
|
+
&::after {
|
|
151
|
+
bottom: var(--dt-space-350-negative); // -6
|
|
152
|
+
border-top-color: var(--tooltip-color-background);
|
|
153
|
+
border-bottom-width: 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// $$ TOP / BOTTOM LEFT
|
|
158
|
+
// ----------------------------------------------------------------------------
|
|
159
|
+
.d-tooltip__arrow-tippy--bottom-start,
|
|
160
|
+
.d-tooltip__arrow-tippy--top-start,
|
|
161
|
+
.d-tooltip__arrow--top-left,
|
|
162
|
+
.d-tooltip__arrow--bottom-left {
|
|
163
|
+
left: var(--dt-space-200-negative); // -2
|
|
164
|
+
|
|
165
|
+
&::after {
|
|
166
|
+
left: var(--dt-space-500); // 16
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// $$ TOP / BOTTOM CENTER
|
|
171
|
+
// ----------------------------------------------------------------------------
|
|
172
|
+
.d-tooltip__arrow-tippy--bottom,
|
|
173
|
+
.d-tooltip__arrow-tippy--top,
|
|
174
|
+
.d-tooltip__arrow--top-center,
|
|
175
|
+
.d-tooltip__arrow--bottom-center {
|
|
176
|
+
&::after {
|
|
177
|
+
left: 50%;
|
|
178
|
+
margin-left: var(--dt-space-350-negative); // -6
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// $$ TOP / BOTTOM RIGHT
|
|
183
|
+
// ----------------------------------------------------------------------------
|
|
184
|
+
.d-tooltip__arrow-tippy--bottom-end,
|
|
185
|
+
.d-tooltip__arrow-tippy--top-end,
|
|
186
|
+
.d-tooltip__arrow--top-right,
|
|
187
|
+
.d-tooltip__arrow--bottom-right {
|
|
188
|
+
right: var(--dt-space-200-negative); // -2
|
|
189
|
+
|
|
190
|
+
&::after {
|
|
191
|
+
right: var(--dt-space-500); // 16
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// $$ RIGHT
|
|
196
|
+
// ----------------------------------------------------------------------------
|
|
197
|
+
.d-tooltip__arrow-tippy--left-start,
|
|
198
|
+
.d-tooltip__arrow-tippy--left,
|
|
199
|
+
.d-tooltip__arrow-tippy--left-end,
|
|
200
|
+
.d-tooltip__arrow--right-top,
|
|
201
|
+
.d-tooltip__arrow--right-center,
|
|
202
|
+
.d-tooltip__arrow--right-bottom {
|
|
203
|
+
right: calc(100% + var(--dt-space-450)); // 100% + 12
|
|
204
|
+
transform: translateX(var(--dt-space-500-negative)); // -16
|
|
205
|
+
|
|
206
|
+
&::after {
|
|
207
|
+
right: var(--dt-space-350-negative); // -6
|
|
208
|
+
border-right-width: 0;
|
|
209
|
+
border-left-color: var(--tooltip-color-background);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// $$ LEFT
|
|
214
|
+
// ----------------------------------------------------------------------------
|
|
215
|
+
.d-tooltip__arrow-tippy--right-start,
|
|
216
|
+
.d-tooltip__arrow-tippy--right,
|
|
217
|
+
.d-tooltip__arrow-tippy--right-end,
|
|
218
|
+
.d-tooltip__arrow--left-top,
|
|
219
|
+
.d-tooltip__arrow--left-center,
|
|
220
|
+
.d-tooltip__arrow--left-bottom {
|
|
221
|
+
left: calc(100% + var(--dt-space-450)); // 100% + 12
|
|
222
|
+
transform: translateX(var(--dt-space-500)); // 16
|
|
223
|
+
|
|
224
|
+
&::after {
|
|
225
|
+
left: var(--dt-space-350-negative); // -6
|
|
226
|
+
border-right-color: var(--tooltip-color-background);
|
|
227
|
+
border-left-width: 0;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// $$ RIGHT / LEFT TOP
|
|
232
|
+
// ----------------------------------------------------------------------------
|
|
233
|
+
.d-tooltip__arrow-tippy--right-start,
|
|
234
|
+
.d-tooltip__arrow-tippy--left-start,
|
|
235
|
+
.d-tooltip__arrow--right-top,
|
|
236
|
+
.d-tooltip__arrow--left-top {
|
|
237
|
+
top: var(--dt-space-100-negative); // -1
|
|
238
|
+
|
|
239
|
+
&::after {
|
|
240
|
+
top: var(--dt-space-400); // 8
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// $$ RIGHT / LEFT CENTER
|
|
245
|
+
// ----------------------------------------------------------------------------
|
|
246
|
+
.d-tooltip__arrow-tippy--right,
|
|
247
|
+
.d-tooltip__arrow-tippy--left,
|
|
248
|
+
.d-tooltip__arrow--right-center,
|
|
249
|
+
.d-tooltip__arrow--left-center {
|
|
250
|
+
&::after {
|
|
251
|
+
top: 50%;
|
|
252
|
+
margin-top: var(--dt-space-350-negative); // -6
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// $$ RIGHT / LEFT BOTTOM
|
|
257
|
+
// ----------------------------------------------------------------------------
|
|
258
|
+
.d-tooltip__arrow-tippy--right-end,
|
|
259
|
+
.d-tooltip__arrow-tippy--left-end,
|
|
260
|
+
.d-tooltip__arrow--right-bottom,
|
|
261
|
+
.d-tooltip__arrow--left-bottom {
|
|
262
|
+
bottom: var(--dt-space-100-negative); // -1
|
|
263
|
+
|
|
264
|
+
&::after {
|
|
265
|
+
bottom: var(--dt-space-400); // 8
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// GLOBALS
|
|
4
|
+
//
|
|
5
|
+
// This file provides global CSS styles for Dialtone. For more Information
|
|
6
|
+
// about Dialtone and these classes, please visit:
|
|
7
|
+
// https://dialpad.design
|
|
8
|
+
//
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// @ RESETS
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// [1] Font size set to 10px to make REM values easier to calculate
|
|
16
|
+
// [2] We don't want 10px to be the default size, so we reset it to
|
|
17
|
+
// the desired 16px size;
|
|
18
|
+
// [3] Prevent adjustments of font size after orientation changes in iOS.
|
|
19
|
+
// ----------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
html,
|
|
22
|
+
body {
|
|
23
|
+
margin: 0;
|
|
24
|
+
/* stylelint-disable-next-line meowtec/no-px */
|
|
25
|
+
font-size: 10px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
body {
|
|
29
|
+
color: var(--dt-color-foreground-primary);
|
|
30
|
+
font-size: var(--dt-typography-body-base-font-size);
|
|
31
|
+
font-family: var(--dt-typography-body-base-font-family);
|
|
32
|
+
line-height: var(--dt-typography-body-base-line-height);
|
|
33
|
+
background-color: var(--dt-color-surface-primary);
|
|
34
|
+
-webkit-text-size-adjust: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ============================================================================
|
|
38
|
+
// @ FOCUS VISIBLE
|
|
39
|
+
// ----------------------------------------------------------------------------
|
|
40
|
+
// This will hide the focus indicator if the element receives focus via the mouse,
|
|
41
|
+
// but it will still show up on keyboard focus.
|
|
42
|
+
//
|
|
43
|
+
.js-focus-visible :focus:not(.focus-visible) {
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Render the `main` element consistently in IE.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
margin: 0.67em 0;
|
|
42
|
+
font-size: 2em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Grouping content
|
|
46
|
+
========================================================================== */
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
+
*/
|
|
63
|
+
// stylelint-disable
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text-level semantics
|
|
70
|
+
========================================================================== */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove the gray background on active links in IE 10.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
abbr[title] {
|
|
86
|
+
border-bottom: none; /* 1 */
|
|
87
|
+
text-decoration: underline; /* 2 */
|
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
b,
|
|
96
|
+
strong {
|
|
97
|
+
font-weight: bolder;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
102
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
code,
|
|
106
|
+
kbd,
|
|
107
|
+
samp {
|
|
108
|
+
font-family: monospace, monospace; /* 1 */
|
|
109
|
+
font-size: 1em; /* 2 */
|
|
110
|
+
}
|
|
111
|
+
//stylelint-enable
|
|
112
|
+
/**
|
|
113
|
+
* Add the correct font size in all browsers.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
small {
|
|
117
|
+
font-size: 80%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
122
|
+
* all browsers.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
sub,
|
|
126
|
+
sup {
|
|
127
|
+
position: relative;
|
|
128
|
+
font-size: 75%;
|
|
129
|
+
line-height: 0;
|
|
130
|
+
vertical-align: baseline;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
sub {
|
|
134
|
+
bottom: -0.25em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
sup {
|
|
138
|
+
top: -0.5em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
ol, ul, li {
|
|
142
|
+
list-style: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Embedded content
|
|
146
|
+
========================================================================== */
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Remove the border on images inside links in IE 10.
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
img {
|
|
153
|
+
border-style: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Forms
|
|
157
|
+
========================================================================== */
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* 1. Change the font styles in all browsers.
|
|
161
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
button,
|
|
165
|
+
input,
|
|
166
|
+
optgroup,
|
|
167
|
+
select,
|
|
168
|
+
textarea {
|
|
169
|
+
margin: 0; /* 2 */
|
|
170
|
+
font-size: 100%; /* 1 */
|
|
171
|
+
font-family: inherit; /* 1 */
|
|
172
|
+
line-height: 1.15; /* 1 */
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Show the overflow in IE.
|
|
177
|
+
* 1. Show the overflow in Edge.
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
button,
|
|
181
|
+
input { /* 1 */
|
|
182
|
+
overflow: visible;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
187
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
button,
|
|
191
|
+
select { /* 1 */
|
|
192
|
+
text-transform: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
button,
|
|
200
|
+
[type="button"],
|
|
201
|
+
[type="reset"],
|
|
202
|
+
[type="submit"] {
|
|
203
|
+
-webkit-appearance: button;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Remove the inner border and padding in Firefox.
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
button::-moz-focus-inner,
|
|
211
|
+
[type="button"]::-moz-focus-inner,
|
|
212
|
+
[type="reset"]::-moz-focus-inner,
|
|
213
|
+
[type="submit"]::-moz-focus-inner {
|
|
214
|
+
padding: 0;
|
|
215
|
+
border-style: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Restore the focus styles unset by the previous rule.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
button:-moz-focusring,
|
|
223
|
+
[type="button"]:-moz-focusring,
|
|
224
|
+
[type="reset"]:-moz-focusring,
|
|
225
|
+
[type="submit"]:-moz-focusring {
|
|
226
|
+
outline: 1px dotted ButtonText;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Correct the padding in Firefox.
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
fieldset {
|
|
234
|
+
padding: 0.35em 0.75em 0.625em;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
239
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
240
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
241
|
+
* `fieldset` elements in all browsers.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
legend {
|
|
245
|
+
display: table; /* 1 */
|
|
246
|
+
box-sizing: border-box; /* 1 */
|
|
247
|
+
max-width: 100%; /* 1 */
|
|
248
|
+
padding: 0; /* 3 */
|
|
249
|
+
color: inherit; /* 2 */
|
|
250
|
+
white-space: normal; /* 1 */
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
progress {
|
|
258
|
+
vertical-align: baseline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
textarea {
|
|
266
|
+
overflow: auto;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* 1. Add the correct box sizing in IE 10.
|
|
271
|
+
* 2. Remove the padding in IE 10.
|
|
272
|
+
*/
|
|
273
|
+
|
|
274
|
+
[type="checkbox"],
|
|
275
|
+
[type="radio"] {
|
|
276
|
+
box-sizing: border-box; /* 1 */
|
|
277
|
+
padding: 0; /* 2 */
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
285
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
286
|
+
height: auto;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
291
|
+
* 2. Correct the outline style in Safari.
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
[type="search"] {
|
|
295
|
+
outline-offset: -2px; /* 2 */
|
|
296
|
+
-webkit-appearance: textfield; /* 1 */
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
301
|
+
*/
|
|
302
|
+
|
|
303
|
+
[type="search"]::-webkit-search-decoration {
|
|
304
|
+
-webkit-appearance: none;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
309
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
::-webkit-file-upload-button {
|
|
313
|
+
font: inherit; /* 2 */
|
|
314
|
+
-webkit-appearance: button; /* 1 */
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Interactive
|
|
318
|
+
========================================================================== */
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
details {
|
|
325
|
+
display: block;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/*
|
|
329
|
+
* Add the correct display in all browsers.
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
summary {
|
|
333
|
+
display: list-item;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Misc
|
|
337
|
+
========================================================================== */
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Add the correct display in IE 10+.
|
|
341
|
+
*/
|
|
342
|
+
|
|
343
|
+
template {
|
|
344
|
+
display: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Add the correct display in IE 10.
|
|
349
|
+
*/
|
|
350
|
+
|
|
351
|
+
[hidden] {
|
|
352
|
+
display: none !important;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Default focus ring
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
:focus-visible {
|
|
360
|
+
outline: 0;
|
|
361
|
+
box-shadow: var(--dt-shadow-focus);
|
|
362
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// DEFINITIONS
|
|
4
|
+
//
|
|
5
|
+
// This file provides the tokens and definitions for Dialtone. This file
|
|
6
|
+
// OUTPUTS NO CSS. Instead use this file as an import for your Vue app.
|
|
7
|
+
// For documentation about these tokens, definitions, and related CSS classes,
|
|
8
|
+
// please visit: https://dialpad.design
|
|
9
|
+
//
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// $ VARIABLES
|
|
12
|
+
// ----------------------------------------------------------------------------
|
|
13
|
+
@import 'variables/layout';
|
|
14
|
+
@import 'variables/typography';
|
|
15
|
+
@import 'variables/visual-styles';
|
|
16
|
+
@import 'variables/sizes';
|