File tree Expand file tree Collapse file tree 11 files changed +250
-0
lines changed
packages/dialtone/lib/build/less Expand file tree Collapse file tree 11 files changed +250
-0
lines changed Original file line number Diff line number Diff line change 75
75
}
76
76
77
77
&__initials {
78
+ position : absolute ;
79
+ z-index : var (--zi-base );
78
80
font-weight : var (--dt-font-weight-bold );
79
81
font-size : var (--avatar-size-text );
80
82
line-height : var (--dt-font-line-height-100 );
81
83
text-transform : uppercase ;
84
+ user-select : none ;
82
85
}
83
86
84
87
&__icon {
Original file line number Diff line number Diff line change 128
128
background-color : var (--dt-color-black-400 );
129
129
}
130
130
131
+ .d-chip__text {
132
+ overflow : hidden ;
133
+ white-space : nowrap ;
134
+ text-overflow : ellipsis ;
135
+ }
136
+
131
137
// ============================================================================
132
138
// $ SIZES
133
139
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: Codeblock
4
+ //
5
+ // These are the styles for codeblock component.
6
+ //
7
+ // TABLE OF CONTENTS
8
+ // • BASE STYLE
9
+ //
10
+ // ============================================================================
11
+ // $ BASE STYLE
12
+ // ----------------------------------------------------------------------------
13
+
14
+ .d-codeblock {
15
+ display : block ;
16
+ padding : var (--dt-space-400 );
17
+ color : var (--dt-color-foreground-secondary );
18
+ font-size : var (--dt-font-size-200 );
19
+ font-family : var (--dt-font-family-mono );
20
+ line-height : var (--dt-font-line-height-400 );
21
+ white-space : pre-wrap ;
22
+ background-color : var (--dt-color-surface-secondary );
23
+ border : var (--dt-size-100 ) solid ;
24
+ border-color : var (--dt-color-border-subtle );
25
+ border-radius : var (--dt-size-radius-400 );
26
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: COLLAPSIBLE
4
+ //
5
+ // These are collapsible classes for Dialpad's design system Dialtone.
6
+ // For further documentation of these and other classes,
7
+ // visit https://dialpad.design/components/collapsible
8
+ //
9
+ // TABLE OF CONTENTS
10
+ // • BASE STYLE
11
+ //
12
+ // ============================================================================
13
+ // $ BASE STYLE
14
+ // ----------------------------------------------------------------------------
15
+ .d-collapsible__icon {
16
+ --icon-base-scale : var (--dt-size-400 );
17
+ --icon-size-300 : calc (var (--icon-base-scale ) * 2.25 );
18
+ --icon-size : var (--icon-size-300 );
19
+
20
+ flex : none ;
21
+ flex-shrink : 0 ;
22
+ width : var (--icon-size );
23
+ height : var (--icon-size );
24
+ margin-right : var (--dt-space-400 );
25
+ fill : currentColor ;
26
+ }
27
+
28
+ .d-collapsible__anchor-text {
29
+ margin-right : auto ;
30
+ overflow : hidden ;
31
+ white-space : nowrap ;
32
+ text-overflow : ellipsis ;
33
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: COMBOBOX
4
+ //
5
+ // These are combobox classes for Dialpad's design system Dialtone.
6
+ // For further documentation of these and other classes,
7
+ // visit https://dialpad.design/components/combobox
8
+ //
9
+ // TABLE OF CONTENTS
10
+ // • EMPTY LIST
11
+ // • LOADING LIST LIST
12
+ //
13
+ // ============================================================================
14
+ // $ EMPTY LIST
15
+ // ----------------------------------------------------------------------------
16
+ .d-combobox__empty-list {
17
+ padding : var (--dt-space-0 );
18
+ }
19
+
20
+ // ============================================================================
21
+ // $ LOADING LIST
22
+ // ----------------------------------------------------------------------------
23
+ .d-combobox__loading-list {
24
+ max-height : var (--dt-size-925 );
25
+ margin-top : var (--dt-space-400 );
26
+ padding : var (--dt-space-0 );
27
+ overflow-y : auto ;
28
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: Image Viewer
4
+ //
5
+ // These are the styles for Image Viewer component.
6
+ //
7
+ // TABLE OF CONTENTS
8
+ // • BASE STYLE
9
+ //
10
+ // ============================================================================
11
+ // $ BASE STYLE
12
+ // ----------------------------------------------------------------------------
13
+ .d-image-viewer__preview-button {
14
+ padding : var (--dt-space-0 );
15
+ cursor : -webkit-zoom-in ;
16
+ cursor : zoom-in ;
17
+ }
18
+
19
+ .d-image-viewer__full {
20
+ max-width : 80% ;
21
+ max-height : 80% ;
22
+ padding : var (--dt-space-0 );
23
+ border-radius : var (--dt-size-radius-0 );
24
+
25
+ &__image {
26
+ max-width : 100% ;
27
+ max-height : 100% ;
28
+ }
29
+ }
30
+
31
+ .d-image-viewer__close-button {
32
+ --fco : 100% ;
33
+
34
+ color : hsla (var (--dt-color-neutral-white-h ) var (--dt-color-neutral-white-s ) var (--dt-color-neutral-white-l ) / var (--fco ));
35
+ }
Original file line number Diff line number Diff line change 114
114
}
115
115
}
116
116
117
+ .d-input__label-text {
118
+ display : flex ;
119
+ flex : 1 0% ;
120
+ align-items : baseline ;
121
+ justify-content : space-between ;
122
+ box-sizing : border-box ;
123
+ margin-bottom : var (--dt-space-300 );
124
+ color : var (--dt-color-foreground-secondary );
125
+ font-weight : var (--dt-font-weight-semi-bold );
126
+ font-size : var (--dt-font-size-200 );
127
+ font-family : inherit ;
128
+ line-height : var (--dt-font-line-height-300 );
129
+ word-break : break-word ;
130
+ overflow-wrap : break-word ;
131
+ }
132
+
133
+ .d-input__description {
134
+ display : flex ;
135
+ flex-direction : column ;
136
+ box-sizing : border-box ;
137
+ color : var (--dt-color-foreground-tertiary );
138
+ font-size : var (--dt-font-size-100 );
139
+ font-family : inherit ;
140
+ line-height : var (--dt-font-line-height-400 );
141
+ fill : currentColor ;
142
+ }
143
+
144
+ .d-input__length-description {
145
+ margin-bottom : var (--dt-space-200 );
146
+ }
147
+
117
148
// $$ INPUT WRAPPER
118
149
// ----------------------------------------------------------------------------
119
150
.d-input__wrapper {
Original file line number Diff line number Diff line change
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: Keyboard Shortcut
4
+ //
5
+ // These are the styles for Keyboard Shortcut component.
6
+ //
7
+ // TABLE OF CONTENTS
8
+ // • BASE STYLE
9
+ //
10
+ // ============================================================================
11
+ // $ BASE STYLE
12
+ // ----------------------------------------------------------------------------
13
+ .d-keyboard-shortcut {
14
+ display : inline-flex ;
15
+ align-items : center ;
16
+ justify-content : center ;
17
+ box-sizing : border-box ;
18
+ padding-right : var (--dt-space-300 );
19
+ padding-left : var (--dt-space-300 );
20
+ font-size : var (--dt-font-size-100 );
21
+ font-family : var (--dt-font-family-body );
22
+ border : var (--dt-size-100 ) solid ;
23
+ border-color : var (--dt-color-border-default );
24
+ border-radius : var (--dt-size-radius-300 );
25
+
26
+ &--inverted {
27
+ border-color : var (--dt-color-border-moderate-inverted );
28
+ }
29
+
30
+ &__icon ,
31
+ &__item {
32
+ margin-right : var (--dt-space-200 );
33
+ color : var (--dt-color-foreground-tertiary );
34
+
35
+ &--inverted {
36
+ color : var (--dt-color-foreground-secondary-inverted );
37
+ }
38
+ }
39
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: List Item Group
4
+ //
5
+ // These are the styles for List Item Group component.
6
+ //
7
+ // TABLE OF CONTENTS
8
+ // • BASE STYLE
9
+ //
10
+ // ============================================================================
11
+ // $ BASE STYLE
12
+ // ----------------------------------------------------------------------------
13
+ .d-list-item-group {
14
+ position : relative ;
15
+ padding-right : var (--dt-space-0 );
16
+ padding-left : var (--dt-space-0 );
17
+ }
Original file line number Diff line number Diff line change 107
107
display : flex ;
108
108
flex-direction : column ;
109
109
align-items : flex-start ;
110
+
111
+ &__label {
112
+ display : flex ;
113
+ flex : 1 0% ;
114
+ align-items : baseline ;
115
+ justify-content : space-between ;
116
+ box-sizing : border-box ;
117
+ margin-bottom : var (--dt-space-300 );
118
+ color : var (--dt-color-foreground-secondary );
119
+ font-weight : var (--dt-font-weight-semi-bold );
120
+ font-size : var (--dt-font-size-200 );
121
+ font-family : inherit ;
122
+ line-height : var (--dt-font-line-height-300 );
123
+ word-break : break-word ;
124
+ overflow-wrap : break-word ;
125
+ }
110
126
}
111
127
112
128
145
161
cursor : pointer ;
146
162
}
147
163
164
+ .d-checkbox__description {
165
+ display : flex ;
166
+ box-sizing : border-box ;
167
+ color : var (--dt-color-foreground-tertiary );
168
+ font-size : var (--dt-font-size-100 );
169
+ font-family : inherit ;
170
+ line-height : var (--dt-font-line-height-400 );
171
+ fill : currentColor ;
172
+ }
173
+
148
174
// ============================================================================
149
175
// $ CHECKBOXES
150
176
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 17
17
@import ' components/button' ;
18
18
@import ' components/card' ;
19
19
@import ' components/chip' ;
20
+ @import ' components/codeblock' ;
21
+ @import ' components/collapsible' ;
22
+ @import ' components/combobox' ;
20
23
@import ' components/datepicker' ;
21
24
@import ' components/emoji-picker' ;
22
25
@import ' components/forms' ;
26
+ @import ' components/image-viewer' ;
23
27
@import ' components/input' ;
28
+ @import ' components/keyboard-shortcut' ;
24
29
@import ' components/link' ;
25
30
@import ' components/list-group' ; // Dialtone 5 shim
31
+ @import ' components/list-item-group' ;
26
32
@import ' components/modal' ;
27
33
@import ' components/notice' ;
28
34
@import ' components/toast' ;
You can’t perform that action at this time.
0 commit comments