-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
_extends.less
136 lines (114 loc) · 2.52 KB
/
_extends.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
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
// /**
// * Copyright © Magento, Inc. All rights reserved.
// * See COPYING.txt for license details.
// */
//
// Styles Extends
// _____________________________________________
//
// Icons
// ---------------------------------------------
.abs-icon {
-webkit-font-smoothing: antialiased;
font-family: @icons-admin__font-name;
font-style: normal;
font-weight: normal;
line-height: 1;
speak: none;
}
//
// Forms
// ---------------------------------------------
// Validation
.validation-symbol {
&:after {
color: @validation__color;
content: '*';
font-weight: @font-weight__regular;
margin-left: 3px;
}
}
//
// Modals
// ---------------------------------------------
.abs-modal-overlay {
background: @popup-overlay__background-color;
bottom: 0;
left: 0;
position: fixed;
right: 0;
top: 0;
}
//
// Other
// ---------------------------------------------
// Visually hidden
.abs-visually-hidden {
.lib-visually-hidden();
}
.extend__visually-hidden() {
&:extend(.abs-visually-hidden all);
}
// Revert visually hidden
.abs-visually-hidden-reset {
.lib-visually-hidden-reset();
}
.extend__visually-hidden-reset() {
&:extend(.abs-visually-hidden-reset all);
}
// Clearfixes
.abs-clearfix {
.lib-clearfix();
}
// Clearer - clearing container using only :after element
.abs-clearer {
.lib-clearer();
}
.extend__clearer() {
&:extend(.abs-clearer all);
}
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
.abs-clearer-mobile {
.lib-clearer();
}
}
// Reset list styles
.abs-list-reset-styles {
.lib-list-reset-styles();
}
.extend__list-reset-styles() {
&:extend(.abs-list-reset-styles all);
}
// Draggable handle with an icon
.abs-draggable-handle {
cursor: -moz-grab;
cursor: -webkit-grab;
cursor: move;
display: inline-block;
font-size: 0;
margin-top: -4px;
padding: 0 @indent__s 0 0;
vertical-align: middle;
.lib-icon-font(
@icon-gripper__content,
@_icon-font: @icons-admin__font-name,
@_icon-font-size: 1.8rem,
@_icon-font-color: @color-gray62,
@_icon-font-color-hover: @color-gray52
);
}
.abs-config-scope-label {
bottom: -1.3rem;
color: @field-scope__color;
content: attr(data-config-scope);
font-size: 1.1rem;
font-weight: @font-weight__regular;
min-width: 15rem;
position: absolute;
right: 0;
text-transform: lowercase;
}
// Word wrap
.abs-word-wrap {
.lib-wrap-words();
}