-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathcommon.less
92 lines (78 loc) · 1.62 KB
/
common.less
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
@import "./lib.less";
@import "./normalize.less";
@import "./scrollbar.less";
@import (reference) "./link.less";
@import (reference) "./drag.less";
/* Overriding est variables */
@support-ie-version: 11;
._veui-output-common(@element) {
.output-selector() when (@element = html) {
@selector: html;
}
.output-selector() when not (@element = html) {
@selector: @element, @veui-overlay-element;
}
.output-selector();
@{selector} {
font-size: @dls-font-size-1;
font-weight: @dls-font-weight-1;
font-family: @dls-font-family;
color: @dls-foreground-color-neutral;
}
// only enable on Retina displays
@media screen and (min-resolution: 2dppx) {
@{selector} {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
._veui-drag-sort();
}
._veui-output-common(html) {
*,
*::before,
*::after {
box-sizing: border-box;
}
._veui-output-common-content();
}
._veui-output-common(@element) when not (@element = html) {
@{element},
@{veui-overlay-element} {
display: block;
&,
* {
&,
&::before,
&::after {
box-sizing: border-box;
}
}
._veui-output-common-content();
}
}
._veui-output-common(@veui-root-element);
// common styles for content
._veui-output-common-content () {
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: @dls-font-weight-2;
}
.@{veui-prefix}-disabled {
cursor: not-allowed !important;
}
.@{veui-prefix}-sr-only {
.veui-invisible();
}
.@{veui-prefix}-hidden {
visibility: hidden;
}
a {
&:extend(._veui-link all);
}
._veui-scrollbar();
}