Skip to content

Commit adc9b18

Browse files
committed
Merge branch '284_Blank_Theme_multiselect_arrows_are_too_small' of https://github.com/magento/magento2 into pap-b2b-prs
2 parents 62b0bd8 + b08738f commit adc9b18

File tree

1 file changed

+158
-0
lines changed

1 file changed

+158
-0
lines changed
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
//
7+
// Actions -> Action select
8+
// _____________________________________________
9+
10+
//
11+
// Variables
12+
// _____________________________________________
13+
14+
@color-blue-pure: #007bdb;
15+
16+
@action__height: 3.2rem;
17+
@action__width: 3.2rem;
18+
19+
// Triangle marker
20+
@button-marker-triangle__height: .5rem;
21+
@button-marker-triangle__width: .8rem;
22+
23+
@button__border-color: @color-gray68;
24+
25+
@action__border-color: @color-gray68;
26+
@action__active__border-color: @action__border-color;
27+
@action__hover__border-color: @action__border-color;
28+
29+
@action-select__disabled__color: @text__color;
30+
@action-select__z-index: @z-index-5;
31+
32+
@field-control__box-shadow: 0 0 3px 1px @color-blue3;
33+
@field-control__active__border-color: @color-blue-pure;
34+
@field-control__hover__border-color: @action__hover__border-color;
35+
36+
@_dropdown__padding-right: @action__height;
37+
@_triangle__height: @button-marker-triangle__height;
38+
@_triangle__width: @button-marker-triangle__width;
39+
40+
// Action select have the same visual styles and functionality as native <select>
41+
.admin__action-group-wrap {
42+
@_action-select__border-color: @button__border-color;
43+
@_action-select__active__border-color: @action__active__border-color;
44+
@_action-select-toggle__size: @action__height;
45+
46+
display: inline-block;
47+
position: relative;
48+
49+
.action-select {
50+
.lib-text-overflow();
51+
52+
background-color: @color-white;
53+
font-weight: @font-weight__regular;
54+
text-align: left;
55+
56+
&:hover {
57+
border-color: @color-gray68;
58+
59+
&:before {
60+
border-color: @field-control__hover__border-color;
61+
}
62+
}
63+
64+
// Toggle action
65+
&:extend(.abs-icon-add all);
66+
67+
&:before {
68+
align-items: center;
69+
content: @icon-down;
70+
display: flex;
71+
font-size: 24px;
72+
justify-content: space-around;
73+
line-height: 1;
74+
position: absolute;
75+
right: 0;
76+
width: @action__width;
77+
}
78+
79+
&._active {
80+
&:before {
81+
content: @icon-up;
82+
}
83+
}
84+
85+
&[disabled] {
86+
color: @action-select__disabled__color;
87+
}
88+
89+
&._mage-error {
90+
border: 1px solid @form-element-validation__border-error;
91+
}
92+
}
93+
94+
&._focus {
95+
.action-select {
96+
&._mage-error {
97+
border: 1px solid @form-element-validation__border-error;
98+
}
99+
}
100+
}
101+
102+
&._active {
103+
z-index: @action-select__z-index;
104+
105+
.action-select {
106+
&:before {
107+
content: @icon-up;
108+
}
109+
}
110+
111+
.action-menu {
112+
.lib-css(box-shadow, @field-control__box-shadow);
113+
}
114+
}
115+
116+
.action-menu {
117+
border: 1px solid @action__border-color;
118+
display: none;
119+
max-height: 45rem;
120+
overflow-y: auto;
121+
122+
&._active {
123+
display: block;
124+
}
125+
126+
._disabled {
127+
&:hover {
128+
background: @color-white;
129+
}
130+
131+
.action-menu-item {
132+
cursor: default;
133+
opacity: .5;
134+
}
135+
}
136+
}
137+
138+
.action-menu-items {
139+
left: 0;
140+
position: absolute;
141+
right: 0;
142+
top: 100%;
143+
144+
> .action-menu {
145+
min-width: 100%;
146+
position: static;
147+
148+
.action-submenu {
149+
position: absolute;
150+
right: -100%;
151+
}
152+
}
153+
}
154+
155+
.validate-select-field {
156+
.lib-visually-hidden();
157+
}
158+
}

0 commit comments

Comments
 (0)