@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,71 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
//
|
|
4
|
+
// This file provides CSS classes for Dialtone, the Dialpad design system.
|
|
5
|
+
// For further information about these classes, please visit:
|
|
6
|
+
// https://dialpad.design
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
// ============================================================================
|
|
10
|
+
@import 'dialtone-reset';
|
|
11
|
+
@import 'dialtone-variables';
|
|
12
|
+
|
|
13
|
+
// -- COMPONENTS
|
|
14
|
+
@import 'components/avatar';
|
|
15
|
+
@import 'components/badge';
|
|
16
|
+
@import 'components/breadcrumbs';
|
|
17
|
+
@import 'components/button';
|
|
18
|
+
@import 'components/card';
|
|
19
|
+
@import 'components/chip';
|
|
20
|
+
@import 'components/codeblock';
|
|
21
|
+
@import 'components/collapsible';
|
|
22
|
+
@import 'components/combobox';
|
|
23
|
+
@import 'components/datepicker';
|
|
24
|
+
@import 'components/emoji-picker';
|
|
25
|
+
@import 'components/forms';
|
|
26
|
+
@import 'components/image-viewer';
|
|
27
|
+
@import 'components/input';
|
|
28
|
+
@import 'components/keyboard-shortcut';
|
|
29
|
+
@import 'components/link';
|
|
30
|
+
@import 'components/list-group'; // Dialtone 5 shim
|
|
31
|
+
@import 'components/list-item-group';
|
|
32
|
+
@import 'components/modal';
|
|
33
|
+
@import 'components/notice';
|
|
34
|
+
@import 'components/toast';
|
|
35
|
+
@import 'components/banner';
|
|
36
|
+
@import 'components/pagination';
|
|
37
|
+
@import 'components/popover';
|
|
38
|
+
@import 'components/radio-checkbox';
|
|
39
|
+
@import 'components/selects';
|
|
40
|
+
@import 'components/skeleton';
|
|
41
|
+
@import 'components/table';
|
|
42
|
+
@import 'components/tab-panel';
|
|
43
|
+
@import 'components/tabs';
|
|
44
|
+
@import 'components/tooltip';
|
|
45
|
+
@import 'components/toggle';
|
|
46
|
+
@import 'components/presence';
|
|
47
|
+
@import 'components/icon';
|
|
48
|
+
@import 'components/root-layout';
|
|
49
|
+
@import 'components/stack';
|
|
50
|
+
@import 'components/item-layout';
|
|
51
|
+
|
|
52
|
+
// -- UTILITIES
|
|
53
|
+
@import 'utilities/backgrounds';
|
|
54
|
+
@import 'utilities/borders';
|
|
55
|
+
@import 'utilities/colors';
|
|
56
|
+
@import 'utilities/effects';
|
|
57
|
+
@import 'utilities/flex';
|
|
58
|
+
@import 'utilities/grid';
|
|
59
|
+
@import 'utilities/interactivity';
|
|
60
|
+
@import 'utilities/layout';
|
|
61
|
+
@import 'utilities/sizing';
|
|
62
|
+
@import 'utilities/spacing';
|
|
63
|
+
@import 'utilities/typography';
|
|
64
|
+
|
|
65
|
+
// -- THEMES & GLOBAL SETTINGS
|
|
66
|
+
@import 'dialtone-globals';
|
|
67
|
+
@import 'themes/default';
|
|
68
|
+
|
|
69
|
+
// Tokens
|
|
70
|
+
@import (inline) '@dialpad/dialtone-tokens/dist/css/variables-light.css';
|
|
71
|
+
@import (inline) '@dialpad/dialtone-tokens/dist/css/variables-dark.css';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// THEME VARIABLES
|
|
4
|
+
//
|
|
5
|
+
// This file contains all the theme-able portions of Dialtone.
|
|
6
|
+
// For further information about these classes, please visit:
|
|
7
|
+
// https://dialpad.design/themes
|
|
8
|
+
//
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// THEME VARIABLES
|
|
11
|
+
// The following items are themeable items that will update the imported
|
|
12
|
+
// Dialtone styles and components accordingly.
|
|
13
|
+
//
|
|
14
|
+
// TABLE OF CONTENTS:
|
|
15
|
+
// - SET VARIABLES
|
|
16
|
+
// - Colors
|
|
17
|
+
// - Visual Styles
|
|
18
|
+
// - Theme
|
|
19
|
+
// - OUTPUT VARIABLES
|
|
20
|
+
//
|
|
21
|
+
// ============================================================================
|
|
22
|
+
// $ SET VARIABLES
|
|
23
|
+
// ----------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@theme-vars: {
|
|
27
|
+
primary-color-h: var(--dt-color-purple-400-h);
|
|
28
|
+
primary-color-s: var(--dt-color-purple-400-s);
|
|
29
|
+
primary-color-l: var(--dt-color-purple-400-l);
|
|
30
|
+
primary-color-hsl: var(--primary-color-h) var(--primary-color-s) var(--primary-color-l);
|
|
31
|
+
primary-color: hsl(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l));
|
|
32
|
+
primary-color-hover: hsl(var(--primary-color-h) var(--primary-color-s) calc(var(--primary-color-l) - 10%));
|
|
33
|
+
nav-background-color-h: var(--dt-color-purple-600-h);
|
|
34
|
+
nav-background-color-s: var(--dt-color-purple-600-s);
|
|
35
|
+
nav-background-color-l: var(--dt-color-purple-600-l);
|
|
36
|
+
nav-background-color: hsl(var(--nav-background-color-h) var(--nav-background-color-s) var(--nav-background-color-l));
|
|
37
|
+
|
|
38
|
+
topbar-height: var(--dt-size-700);
|
|
39
|
+
|
|
40
|
+
base--font-size: var(--dt-font-size-200);
|
|
41
|
+
base--font-family: var(--dt-font-family-body);
|
|
42
|
+
base--line-height: var(--dt-font-line-height-300);
|
|
43
|
+
base--corner-radius: 0.25em; // TODO: unused. deprecate or...?
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// ============================================================================
|
|
47
|
+
// $ OUTPUT VARIABLES
|
|
48
|
+
// ============================================================================
|
|
49
|
+
body {
|
|
50
|
+
// $$ COLOR VARS
|
|
51
|
+
// ------------------------------------------------------------------------
|
|
52
|
+
--bgo: 100%; // Background color opacity
|
|
53
|
+
--bco: 100%; // Border color opacity
|
|
54
|
+
--fco: 100%; // Font color opacity
|
|
55
|
+
|
|
56
|
+
// $$ VISUAL STYLES
|
|
57
|
+
// ------------------------------------------------------------------------
|
|
58
|
+
each(@transition, {
|
|
59
|
+
--@{key}: @value;
|
|
60
|
+
});
|
|
61
|
+
each(@background-patterns, {
|
|
62
|
+
--@{key}: @value;
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// $$ GRID
|
|
66
|
+
// ------------------------------------------------------------------------
|
|
67
|
+
each(@grid-vars, {
|
|
68
|
+
--@{key}: @value;
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// $$ TYPE
|
|
72
|
+
// ------------------------------------------------------------------------
|
|
73
|
+
each(@type-styles-vars, {
|
|
74
|
+
--@{key}: @value;
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
// $$ THEME VARS
|
|
78
|
+
// These should always come last
|
|
79
|
+
// ------------------------------------------------------------------------
|
|
80
|
+
each(@theme-vars, {
|
|
81
|
+
--@{key}: @value;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// THEME FILE
|
|
4
|
+
//
|
|
5
|
+
// Use this file to create Dialtone themes..
|
|
6
|
+
// For further information about these theming, please visit:
|
|
7
|
+
// https://dialpad.design/themes
|
|
8
|
+
//
|
|
9
|
+
// TABLE OF CONTENTS:
|
|
10
|
+
// - REFERENCE FILES
|
|
11
|
+
// - THEME VARIABLES
|
|
12
|
+
// - REDECLARE & OUTPUT VARIABLES
|
|
13
|
+
//
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// $ REFERENCE FILES
|
|
16
|
+
// This won't output anything. We need to reference the core colors and the
|
|
17
|
+
// default theme so this file can compile on it's own.
|
|
18
|
+
// ----------------------------------------------------------------------------
|
|
19
|
+
@import (reference) '../dialtone-variables';
|
|
20
|
+
@import (reference) 'default';
|
|
21
|
+
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// $ THEME VARIABLES
|
|
24
|
+
// ============================================================================
|
|
25
|
+
// $$ SET THESE
|
|
26
|
+
// Currently only the following items are themeable in Dialtone.
|
|
27
|
+
//
|
|
28
|
+
// @primary-color: This is used for all selected and primary states
|
|
29
|
+
// in elements and components (i.e. buttons, input focus,
|
|
30
|
+
// links, etc).
|
|
31
|
+
//
|
|
32
|
+
// @primary-color--hover: Hover state color for @primary-color.
|
|
33
|
+
//
|
|
34
|
+
// @nav__background-color: This sets the navigation background color.
|
|
35
|
+
// ----------------------------------------------------------------------------
|
|
36
|
+
@primary-color: var(--dt-color-purple-400);
|
|
37
|
+
@primary-color--hover: darken(@primary-color, 10%);
|
|
38
|
+
@nav__background-color: var(--dt-color-black-400);
|
|
39
|
+
|
|
40
|
+
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
|
41
|
+
// ----------------------------------------------------------------------------
|
|
42
|
+
// $ IGNORE THESE!!!
|
|
43
|
+
// Warning: We use these to extract the HSL values of the HEX code and
|
|
44
|
+
// restate them in the CSS Variables.
|
|
45
|
+
// ----------------------------------------------------------------------------
|
|
46
|
+
@primary-color--h: hue(@primary-color);
|
|
47
|
+
@primary-color--s: saturation(@primary-color);
|
|
48
|
+
@primary-color--l: lightness(@primary-color);
|
|
49
|
+
|
|
50
|
+
@primary-color--hover--h: hue(@primary-color--hover);
|
|
51
|
+
@primary-color--hover--s: saturation(@primary-color--hover);
|
|
52
|
+
@primary-color--hover--l: lightness(@primary-color--hover);
|
|
53
|
+
|
|
54
|
+
@nav__background-color--h: hue(@nav__background-color);
|
|
55
|
+
@nav__background-color--s: saturation(@nav__background-color);
|
|
56
|
+
@nav__background-color--l: lightness(@nav__background-color);
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// -- RE-DECLARE CSS VARIABLES WITH NEW COLORS
|
|
60
|
+
// ----------------------------------------------------------------------------
|
|
61
|
+
@theme-vars: {
|
|
62
|
+
primary-color: @primary-color;
|
|
63
|
+
primary-color--h: @primary-color--h;
|
|
64
|
+
primary-color--s: @primary-color--s;
|
|
65
|
+
primary-color--l: @primary-color--l;
|
|
66
|
+
|
|
67
|
+
primary-color--hover: @primary-color--hover;
|
|
68
|
+
primary-color--hover--h: @primary-color--hover--h;
|
|
69
|
+
primary-color--hover--s: @primary-color--hover--s;
|
|
70
|
+
primary-color--hover--l: @primary-color--l;
|
|
71
|
+
|
|
72
|
+
nav__background-color: @nav__background-color;
|
|
73
|
+
nav__background-color--h: @nav__background-color--h;
|
|
74
|
+
nav__background-color--s: @nav__background-color--s;
|
|
75
|
+
nav__background-color--l: @nav__background-color--l;
|
|
76
|
+
|
|
77
|
+
btn--inverted__bg--hover: fade(mix(#fff, @primary-color, 90%), 25%);
|
|
78
|
+
btn--inverted--primary__bg--hover: mix(#fff, @primary-color, 90%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ============================================================================
|
|
82
|
+
// $ OUTPUT VARIABLES
|
|
83
|
+
// ============================================================================
|
|
84
|
+
:root {
|
|
85
|
+
// Theme Styles
|
|
86
|
+
each(@theme-vars, {
|
|
87
|
+
--@{key}: @value;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// UTILITIES: BACKGROUNDS
|
|
4
|
+
//
|
|
5
|
+
// These are border utility classes for Dialpad's design system Dialtone.
|
|
6
|
+
// For further documentation of these and other classes,
|
|
7
|
+
// visit https://dialpad.design/utilities/borders
|
|
8
|
+
//
|
|
9
|
+
// TABLE OF CONTENTS
|
|
10
|
+
// • BACKGROUND ATTACHMENT
|
|
11
|
+
// • BACKGROUND CLIP
|
|
12
|
+
// • BACKGROUND POSITION
|
|
13
|
+
// • BACKGROUND REPEAT
|
|
14
|
+
// • BACKGROUND SIZE
|
|
15
|
+
// • GRADIENTS
|
|
16
|
+
// • PATTERNS
|
|
17
|
+
//
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// $ BACKGROUND ATTACHMENT
|
|
20
|
+
// ----------------------------------------------------------------------------
|
|
21
|
+
.d-bga-scroll { background-attachment: scroll !important; }
|
|
22
|
+
.d-bga-fixed { background-attachment: fixed !important; }
|
|
23
|
+
.d-bga-local { background-attachment: local !important; }
|
|
24
|
+
.d-bga-unset { background-attachment: unset !important; }
|
|
25
|
+
|
|
26
|
+
// ============================================================================
|
|
27
|
+
// $ BACKGROUND CLIP
|
|
28
|
+
// ----------------------------------------------------------------------------
|
|
29
|
+
.d-bgc-border-box { background-clip: border-box !important; }
|
|
30
|
+
.d-bgc-padding-box { background-clip: padding-box !important; }
|
|
31
|
+
.d-bgc-content-box { background-clip: content-box !important; }
|
|
32
|
+
|
|
33
|
+
.d-bgc-text {
|
|
34
|
+
color: transparent !important;
|
|
35
|
+
-webkit-background-clip: text !important;
|
|
36
|
+
background-clip: text !important;
|
|
37
|
+
}
|
|
38
|
+
.d-bgclip-unset { background-clip: unset !important; }
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// ============================================================================
|
|
42
|
+
// $ BACKGROUND POSITION
|
|
43
|
+
// ----------------------------------------------------------------------------
|
|
44
|
+
.d-bgp-t { background-position: top !important; }
|
|
45
|
+
.d-bgp-tr { background-position: top right !important; }
|
|
46
|
+
.d-bgp-r { background-position: right !important; }
|
|
47
|
+
.d-bgp-br { background-position: bottom right !important; }
|
|
48
|
+
.d-bgp-b { background-position: bottom !important; }
|
|
49
|
+
.d-bgp-bl { background-position: bottom left !important; }
|
|
50
|
+
.d-bgp-l { background-position: left !important; }
|
|
51
|
+
.d-bgp-tl { background-position: top left !important; }
|
|
52
|
+
.d-bgp-center { background-position: center !important; }
|
|
53
|
+
.d-bgp-unset { background-position: unset !important; }
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// ============================================================================
|
|
57
|
+
// $ BACKGROUND REPEAT
|
|
58
|
+
// ----------------------------------------------------------------------------
|
|
59
|
+
.d-bgr-repeat-x { background-repeat: repeat-x !important; }
|
|
60
|
+
.d-bgr-repeat-y { background-repeat: repeat-y !important; }
|
|
61
|
+
.d-bgr-repeat { background-repeat: repeat !important; }
|
|
62
|
+
.d-bgr-space { background-repeat: space !important; }
|
|
63
|
+
.d-bgr-none { background-repeat: no-repeat !important; }
|
|
64
|
+
.d-bgr-unset { background-repeat: unset !important; }
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// ============================================================================
|
|
68
|
+
// $ BACKGROUND SIZE
|
|
69
|
+
// ----------------------------------------------------------------------------
|
|
70
|
+
.d-bgs-contain { background-size: contain !important; }
|
|
71
|
+
.d-bgs-cover { background-size: cover !important; }
|
|
72
|
+
.d-bgs-var { background-size: var(--bgg-size, 100% 100%) !important; }
|
|
73
|
+
.d-bgs-auto { background-size: auto !important; }
|
|
74
|
+
.d-bgs-unset { background-size: unset !important; }
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// $ GRADIENTS
|
|
79
|
+
// ----------------------------------------------------------------------------
|
|
80
|
+
.d-bgg-to-t { background-image: linear-gradient(to top, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
81
|
+
.d-bgg-to-tr { background-image: linear-gradient(to top right, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
82
|
+
.d-bgg-to-r { background-image: linear-gradient(to right, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
83
|
+
.d-bgg-to-br { background-image: linear-gradient(to bottom right, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
84
|
+
.d-bgg-to-b { background-image: linear-gradient(to bottom, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
85
|
+
.d-bgg-to-bl { background-image: linear-gradient(to bottom left, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
86
|
+
.d-bgg-to-l { background-image: linear-gradient(to left, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
87
|
+
.d-bgg-to-tl { background-image: linear-gradient(to top left, var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
88
|
+
.d-bgg-radial { background-image: radial-gradient(var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
89
|
+
.d-bgg-conic { background-image: conic-gradient(var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
|
|
90
|
+
.d-bgg-none { background-image: none !important; }
|
|
91
|
+
.d-bgg-unset { background-image: unset !important; }
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
// ============================================================================
|
|
95
|
+
// $ PATTERNS
|
|
96
|
+
// ----------------------------------------------------------------------------
|
|
97
|
+
// -- BASE CLASS
|
|
98
|
+
.d-bgg-pattern {
|
|
99
|
+
position: relative;
|
|
100
|
+
padding-left: var(--dt-space-550) !important;
|
|
101
|
+
|
|
102
|
+
&::after {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: var(--dt-space-100);
|
|
105
|
+
bottom: var(--dt-space-100);
|
|
106
|
+
left: var(--dt-space-100);
|
|
107
|
+
min-width: 2rem;
|
|
108
|
+
min-height: 2rem;
|
|
109
|
+
background-image: var(--bgg-pattern);
|
|
110
|
+
background-repeat: repeat-y;
|
|
111
|
+
background-position: top left;
|
|
112
|
+
background-clip: content-box;
|
|
113
|
+
border-radius: 0.3rem;
|
|
114
|
+
content: '';
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// -- EACH PATTERN
|
|
119
|
+
.d-bgg-pattern-blob-dark { --bgg-pattern: var(--bgg-pattern-blob-dark) !important; }
|
|
120
|
+
.d-bgg-pattern-chevrons-dark { --bgg-pattern: var(--bgg-pattern-chevrons-dark) !important; }
|
|
121
|
+
.d-bgg-pattern-crosses-dark { --bgg-pattern: var(--bgg-pattern-crosses-dark) !important; }
|
|
122
|
+
.d-bgg-pattern-crosshatch-dark { --bgg-pattern: var(--bgg-pattern-crosshatch-dark) !important; }
|
|
123
|
+
.d-bgg-pattern-dot-dash-dark { --bgg-pattern: var(--bgg-pattern-dot-dash-dark) !important; }
|
|
124
|
+
.d-bgg-pattern-dots-circles-dark { --bgg-pattern: var(--bgg-pattern-dots-circles-dark) !important; }
|
|
125
|
+
.d-bgg-pattern-horz-stripes-dark { --bgg-pattern: var(--bgg-pattern-horz-stripes-dark) !important; }
|
|
126
|
+
.d-bgg-pattern-slanted-stripes-dark { --bgg-pattern: var(--bgg-pattern-slanted-stripes-dark) !important; }
|
|
127
|
+
.d-bgg-pattern-steps-dark { --bgg-pattern: var(--bgg-pattern-steps-dark) !important; }
|
|
128
|
+
.d-bgg-pattern-stripe-dark { --bgg-pattern: var(--bgg-pattern-stripe-dark) !important; }
|
|
129
|
+
|
|
130
|
+
.d-bgg-pattern-blob-light { --bgg-pattern: var(--bgg-pattern-blob-light) !important; }
|
|
131
|
+
.d-bgg-pattern-chevrons-light { --bgg-pattern: var(--bgg-pattern-chevrons-light) !important; }
|
|
132
|
+
.d-bgg-pattern-crosses-light { --bgg-pattern: var(--bgg-pattern-crosses-light) !important; }
|
|
133
|
+
.d-bgg-pattern-crosshatch-light { --bgg-pattern: var(--bgg-pattern-crosshatch-light) !important; }
|
|
134
|
+
.d-bgg-pattern-dot-dash-light { --bgg-pattern: var(--bgg-pattern-dot-dash-light) !important; }
|
|
135
|
+
.d-bgg-pattern-dots-circles-light { --bgg-pattern: var(--bgg-pattern-dots-circles-light) !important; }
|
|
136
|
+
.d-bgg-pattern-horz-stripes-light { --bgg-pattern: var(--bgg-pattern-horz-stripes-light) !important; }
|
|
137
|
+
.d-bgg-pattern-slanted-stripes-light { --bgg-pattern: var(--bgg-pattern-slanted-stripes-light) !important; }
|
|
138
|
+
.d-bgg-pattern-steps-light { --bgg-pattern: var(--bgg-pattern-steps-light) !important; }
|
|
139
|
+
.d-bgg-pattern-stripe-light { --bgg-pattern: var(--bgg-pattern-stripe-light) !important; }
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
//
|
|
2
|
+
// DIALTONE
|
|
3
|
+
// UTILITIES: BORDERS
|
|
4
|
+
//
|
|
5
|
+
// These are border utility classes for Dialpad's design system Dialtone.
|
|
6
|
+
// For further documentation of these and other classes,
|
|
7
|
+
// visit https://dialpad.design/utilities/borders
|
|
8
|
+
//
|
|
9
|
+
// TABLE OF CONTENTS
|
|
10
|
+
// • BORDERS
|
|
11
|
+
// - COLOR
|
|
12
|
+
// - DIRECTION
|
|
13
|
+
// - RADIUS
|
|
14
|
+
// - STYLE
|
|
15
|
+
// - WIDTH
|
|
16
|
+
// • DIVIDERS
|
|
17
|
+
// - VERTICAL DIVIDERS
|
|
18
|
+
// - HORIZONTAL DIVIDERS
|
|
19
|
+
//
|
|
20
|
+
// ============================================================================
|
|
21
|
+
// $ BORDERS
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// $$ DIRECTION
|
|
24
|
+
// ----------------------------------------------------------------------------
|
|
25
|
+
.d-ba { border: var(--dt-size-100) solid !important; }
|
|
26
|
+
.d-bt { border-top: var(--dt-size-100) solid !important; }
|
|
27
|
+
.d-br { border-right: var(--dt-size-100) solid !important; }
|
|
28
|
+
.d-bb { border-bottom: var(--dt-size-100) solid !important; }
|
|
29
|
+
.d-bl { border-left: var(--dt-size-100) solid !important; }
|
|
30
|
+
.d-bx { .d-br(); .d-bl(); }
|
|
31
|
+
.d-by { .d-bt(); .d-bb(); }
|
|
32
|
+
.d-ba-none { border: none !important; }
|
|
33
|
+
.d-ba-unset { border: unset !important; }
|
|
34
|
+
|
|
35
|
+
// ============================================================================
|
|
36
|
+
// $ BORDER RADIUS
|
|
37
|
+
// ============================================================================
|
|
38
|
+
// $$ ALL
|
|
39
|
+
// ----------------------------------------------------------------------------
|
|
40
|
+
.d-bar-circle { border-radius: var(--dt-size-radius-circle) !important; }
|
|
41
|
+
.d-bar-pill { border-radius: var(--dt-size-radius-pill) !important; }
|
|
42
|
+
.d-bar-unset { border-radius: unset !important; }
|
|
43
|
+
|
|
44
|
+
// $$ TOP
|
|
45
|
+
// ----------------------------------------------------------------------------
|
|
46
|
+
.d-btr-circle { border-top-left-radius: var(--dt-size-radius-circle) !important; border-top-right-radius: var(--dt-size-radius-circle) !important; }
|
|
47
|
+
.d-btr-pill { border-top-left-radius: var(--dt-size-radius-pill) !important; border-top-right-radius: var(--dt-size-radius-pill) !important; }
|
|
48
|
+
|
|
49
|
+
// $$ RIGHT
|
|
50
|
+
// ----------------------------------------------------------------------------
|
|
51
|
+
.d-brr-circle { border-top-right-radius: var(--dt-size-radius-circle) !important; border-bottom-right-radius: var(--dt-size-radius-circle) !important; }
|
|
52
|
+
.d-brr-pill { border-top-right-radius: var(--dt-size-radius-pill) !important; border-bottom-right-radius: var(--dt-size-radius-pill) !important; }
|
|
53
|
+
|
|
54
|
+
// $$ BOTTOM
|
|
55
|
+
// ----------------------------------------------------------------------------
|
|
56
|
+
.d-bbr-circle { border-bottom-right-radius: var(--dt-size-radius-circle) !important; border-bottom-left-radius: var(--dt-size-radius-circle) !important; }
|
|
57
|
+
.d-bbr-pill { border-bottom-right-radius: var(--dt-size-radius-pill) !important; border-bottom-left-radius: var(--dt-size-radius-pill) !important; }
|
|
58
|
+
|
|
59
|
+
// $$ RIGHT
|
|
60
|
+
// ----------------------------------------------------------------------------
|
|
61
|
+
.d-blr-circle { border-top-left-radius: var(--dt-size-radius-circle) !important; border-bottom-left-radius: var(--dt-size-radius-circle) !important; }
|
|
62
|
+
.d-blr-pill { border-top-left-radius: var(--dt-size-radius-pill) !important; border-bottom-left-radius: var(--dt-size-radius-pill) !important; }
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// $$ STYLE
|
|
66
|
+
// ----------------------------------------------------------------------------
|
|
67
|
+
.d-bas-dashed { border-style: dashed !important; }
|
|
68
|
+
.d-bts-dashed { border-top-style: dashed !important; }
|
|
69
|
+
.d-brs-dashed { border-right-style: dashed !important; }
|
|
70
|
+
.d-bbs-dashed { border-bottom-style: dashed !important; }
|
|
71
|
+
.d-bls-dashed { border-left-style: dashed !important; }
|
|
72
|
+
|
|
73
|
+
.d-bas-dotted { border-style: dotted !important; }
|
|
74
|
+
.d-bts-dotted { border-top-style: dotted !important; }
|
|
75
|
+
.d-brs-dotted { border-right-style: dotted !important; }
|
|
76
|
+
.d-bbs-dotted { border-bottom-style: dotted !important; }
|
|
77
|
+
.d-bls-dotted { border-left-style: dotted !important; }
|
|
78
|
+
|
|
79
|
+
.d-bas-unset { border-style: unset !important; }
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// $$ WIDTH
|
|
83
|
+
// ----------------------------------------------------------------------------
|
|
84
|
+
.d-baw0 { border-width: 0 !important; }
|
|
85
|
+
.d-baw1 { border-width: var(--dt-size-100) !important; }
|
|
86
|
+
.d-baw2 { border-width: var(--dt-size-200) !important; }
|
|
87
|
+
.d-baw4 { border-width: var(--dt-size-300) !important; }
|
|
88
|
+
.d-baw6 { border-width: var(--dt-size-350) !important; }
|
|
89
|
+
|
|
90
|
+
// -- Top Border width
|
|
91
|
+
.d-btw0 { border-top-width: 0 !important; }
|
|
92
|
+
.d-btw1 { border-top-width: var(--dt-size-100) !important; }
|
|
93
|
+
.d-btw2 { border-top-width: var(--dt-size-200) !important; }
|
|
94
|
+
.d-btw4 { border-top-width: var(--dt-size-300) !important; }
|
|
95
|
+
.d-btw6 { border-top-width: var(--dt-size-350) !important; }
|
|
96
|
+
|
|
97
|
+
// -- Right Border width
|
|
98
|
+
.d-brw0 { border-right-width: 0 !important; }
|
|
99
|
+
.d-brw1 { border-right-width: var(--dt-size-100) !important; }
|
|
100
|
+
.d-brw2 { border-right-width: var(--dt-size-200) !important; }
|
|
101
|
+
.d-brw4 { border-right-width: var(--dt-size-300) !important; }
|
|
102
|
+
.d-brw6 { border-right-width: var(--dt-size-350) !important; }
|
|
103
|
+
|
|
104
|
+
// -- Bottom Border width
|
|
105
|
+
.d-bbw0 { border-bottom-width: 0 !important; }
|
|
106
|
+
.d-bbw1 { border-bottom-width: var(--dt-size-100) !important; }
|
|
107
|
+
.d-bbw2 { border-bottom-width: var(--dt-size-200) !important; }
|
|
108
|
+
.d-bbw4 { border-bottom-width: var(--dt-size-300) !important; }
|
|
109
|
+
.d-bbw6 { border-bottom-width: var(--dt-size-350) !important; }
|
|
110
|
+
|
|
111
|
+
// -- Left Border width
|
|
112
|
+
.d-blw0 { border-left-width: 0 !important; }
|
|
113
|
+
.d-blw1 { border-left-width: var(--dt-size-100) !important; }
|
|
114
|
+
.d-blw2 { border-left-width: var(--dt-size-200) !important; }
|
|
115
|
+
.d-blw4 { border-left-width: var(--dt-size-300) !important; }
|
|
116
|
+
.d-blw6 { border-left-width: var(--dt-size-350) !important; }
|
|
117
|
+
|
|
118
|
+
// -- X Border width
|
|
119
|
+
.d-bxw0 { .d-brw0(); .d-blw0(); }
|
|
120
|
+
.d-bxw1 { .d-brw1(); .d-blw1(); }
|
|
121
|
+
.d-bxw2 { .d-brw2(); .d-blw2(); }
|
|
122
|
+
.d-bxw4 { .d-brw4(); .d-blw4(); }
|
|
123
|
+
.d-bxw6 { .d-brw6(); .d-blw6(); }
|
|
124
|
+
|
|
125
|
+
// -- Y Border width
|
|
126
|
+
.d-byw0 { .d-btw0(); .d-bbw0(); }
|
|
127
|
+
.d-byw1 { .d-btw1(); .d-bbw1(); }
|
|
128
|
+
.d-byw2 { .d-btw2(); .d-bbw2(); }
|
|
129
|
+
.d-byw4 { .d-btw4(); .d-bbw4(); }
|
|
130
|
+
.d-byw6 { .d-btw6(); .d-bbw6(); }
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
// ============================================================================
|
|
134
|
+
// $ DIVIDERS
|
|
135
|
+
// ============================================================================
|
|
136
|
+
// $$ VERTICAL DIVIDERS
|
|
137
|
+
// ----------------------------------------------------------------------------
|
|
138
|
+
.d-divide-y > * + * {
|
|
139
|
+
--divide-y-reverse: 0;
|
|
140
|
+
|
|
141
|
+
border-top: calc(~'1px * (1 - var(--divide-y-reverse))') solid !important;
|
|
142
|
+
border-bottom: calc(~'1px * var(--divide-y-reverse)') solid !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.d-divide-y0 > * + * {
|
|
146
|
+
--divide-y-reverse: 0;
|
|
147
|
+
|
|
148
|
+
border-top: calc(~'0 * (1 - var(--divide-y-reverse))') solid !important;
|
|
149
|
+
border-bottom: calc(~'0 * var(--divide-y-reverse)') solid !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.d-divide-y2 > * + * {
|
|
153
|
+
--divide-y-reverse: 0;
|
|
154
|
+
|
|
155
|
+
border-top: calc(~'2px * (1 - var(--divide-y-reverse))') solid !important;
|
|
156
|
+
border-bottom: calc(~'2px * var(--divide-y-reverse)') solid !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.d-divide-y4 > * + * {
|
|
160
|
+
--divide-y-reverse: 0;
|
|
161
|
+
|
|
162
|
+
border-top: calc(~'4px * (1 - var(--divide-y-reverse))') solid !important;
|
|
163
|
+
border-bottom: calc(~'4px * var(--divide-y-reverse)') solid !important;
|
|
164
|
+
}
|
|
165
|
+
.d-divide-y-reverse > * + * { --divide-y-reverse: 1; }
|
|
166
|
+
|
|
167
|
+
// $$ HORIZONTAL DIVIDERS
|
|
168
|
+
// ----------------------------------------------------------------------------
|
|
169
|
+
.d-divide-x > * + * {
|
|
170
|
+
--divide-x-reverse: 0;
|
|
171
|
+
|
|
172
|
+
border-right: calc(~'1px * var(--divide-x-reverse)') solid !important;
|
|
173
|
+
border-left: calc(~'1px * (1 - var(--divide-x-reverse))') solid !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.d-divide-x0 > * + * {
|
|
177
|
+
--divide-x-reverse: 0;
|
|
178
|
+
|
|
179
|
+
border-right: calc(~'0 * var(--divide-x-reverse)') solid !important;
|
|
180
|
+
border-left: calc(~'0 * (1 - var(--divide-x-reverse))') solid !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.d-divide-x2 > * + * {
|
|
184
|
+
--divide-x-reverse: 0;
|
|
185
|
+
|
|
186
|
+
border-right: calc(~'2px * var(--divide-x-reverse)') solid !important;
|
|
187
|
+
border-left: calc(~'2px * (1 - var(--divide-x-reverse))') solid !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.d-divide-x4 > * + * {
|
|
191
|
+
--divide-x-reverse: 0;
|
|
192
|
+
|
|
193
|
+
border-right: calc(~'4px * var(--divide-x-reverse)') solid !important;
|
|
194
|
+
border-left: calc(~'4px * (1 - var(--divide-x-reverse))') solid !important;
|
|
195
|
+
}
|
|
196
|
+
.d-divide-x-reverse > * + * { --divide-x-reverse: 1; }
|