forked from syncfusion/ej2-javascript-ui-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_layout.scss
181 lines (159 loc) · 5.29 KB
/
_layout.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
@include export-module('badge-layout') {
.e-badge {
background: $badge-base-background-color;
border-color: transparent;
border-radius: $badge-base-border-radius;
box-shadow: 0 0 0 2px transparent;
box-sizing: border-box;
color: $badge-base-text-color;
display: inline-block;
font-family: $font-family;
font-size: $badge-base-font-size;
font-weight: $badge-base-font-weight;
line-height: $badge-base-line-height;
@if ($badge-theme == 'tailwind' or $badge-theme == 'FluentUI' or $badge-theme == 'tailwind-dark' or $badge-theme == 'bootstrap5') {
height: $badge-base-height;
}
overflow: hidden;
padding: $badge-padding;
text-align: center;
text-decoration: none;
text-indent: $badge-base-text-indent;
vertical-align: middle;
&:hover {
text-decoration: none;
}
&.e-badge-pill {
border-radius: $badge-pill-border-radius;
@if ($badge-theme == 'tailwind' or $badge-theme == 'tailwind-dark' or $badge-theme == 'bootstrap5' or $badge-theme == 'FluentUI') {
padding: $badge-pill-padding;
}
}
&.e-badge-ghost {
@if ($badge-theme == 'tailwind' or $badge-theme == 'tailwind-dark' or $badge-theme == 'bootstrap5' or $badge-theme == 'FluentUI') {
line-height: $badge-ghost-line-height;
padding: $badge-ghost-padding;
}
}
&.e-badge-notification {
border-radius: $badge-notification-border-radius;
font-size: $badge-notification-font-size;
height: $badge-notification-height;
left: $badge-notification-left;
line-height: $badge-notification-line-height;
min-width: $badge-notification-min-width;
padding: $badge-notification-padding;
position: absolute;
top: $badge-notification-top;
width: auto;
&.e-badge-ghost {
line-height: $badge-notification-ghost-line-height;
}
}
&.e-badge-circle {
border-radius: $badge-circle-border-radius;
height: $badge-circle-height;
line-height: $badge-circle-line-height;
min-width: $badge-circle-min-width;
padding: $badge-circle-padding;
width: $badge-circle-width;
&.e-badge-ghost {
line-height: $badge-circle-ghost-line-height;
@if ($badge-theme == 'tailwind' or $badge-theme == 'tailwind-dark' or $badge-theme == 'bootstrap5' or $badge-theme == 'FluentUI' or $badge-theme == 'Material3') {
padding: $badge-circle-ghost-padding;
}
}
}
&.e-badge-overlap {
position: absolute;
top: $badge-overlap-top;
transform: $badge-overlap-transform-left;
}
&.e-badge-dot {
border-radius: $badge-dot-border-radius;
box-shadow: $badge-dot-box-shadow;
height: $badge-dot-height;
left: $badge-dot-left;
line-height: $badge-dot-line-height;
margin: 0;
min-width: $badge-dot-min-width;
overflow: visible;
padding: $badge-dot-padding;
position: absolute;
top: $badge-dot-top;
width: $badge-dot-width;
}
&.e-badge-bottom {
&.e-badge-dot {
bottom: 3px;
position: absolute;
top: auto;
}
&.e-badge-notification {
bottom: -3px;
position: absolute;
top: auto;
}
}
@at-root {
button#{''} .e-badge {
@if ($badge-theme == 'tailwind' or $badge-theme == 'tailwind-dark' or $badge-theme == 'bootstrap5' or $badge-theme == 'FluentUI') {
line-height: $leading-none;
}
@else {
line-height: .9;
}
position: relative;
top: $badge-button-top;
&.e-badge-circle {
height: $badge-button-circle-height;
line-height: $badge-button-circle-line-height;
width: $badge-button-circle-width;
&.e-badge-ghost {
line-height: $badge-ghost-circle-line-height;
}
}
}
}
}
.e-bigger .e-badge,
.e-badge.e-bigger {
@if ($badge-theme == 'tailwind' or $badge-theme == 'FluentUI' or $badge-theme == 'tailwind-dark' or $badge-theme == 'bootstrap5' or $badge-theme == 'Material3') {
border-radius: $badge-touch-base-border-radius;
font-size: $badge-touch-base-font-size;
font-weight: $badge-touch-base-font-weight;
height: $badge-touch-base-height;
line-height: $badge-touch-base-line-height;
padding: $badge-touch-padding;
&.e-badge-pill {
border-radius: $badge-pill-border-radius;
padding: $badge-touch-pill-padding;
}
&.e-badge-ghost {
padding: $badge-touch-ghost-padding;
&.e-badge-circle {
padding: $badge-touch-ghost-circle-padding;
}
&.e-badge-notification {
padding: $badge-touch-ghost-notification-padding;
}
}
&.e-badge-notification {
border-radius: $badge-pill-border-radius;
min-width: $badge-touch-notification-min-width;
padding: $badge-touch-pill-padding;
}
&.e-badge-circle {
border-radius: $badge-circle-border-radius;
min-width: $badge-circle-min-width;
padding: $badge-touch-circle-padding;
width: $badge-touch-circle-width;
}
&.e-badge-dot {
border-radius: $badge-dot-border-radius;
height: $badge-touch-dot-height;
width: $badge-touch-dot-width;
}
}
}
}