Skip to content

Commit 460b40b

Browse files
zanileevkholoshenko
authored andcommitted
MAGETWO-43380: Style of table is not correct
1 parent b0991e7 commit 460b40b

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

app/design/adminhtml/Magento/backend/web/css/source/_actions.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@import 'actions/_actions-select.less';
1313
@import 'actions/_actions-multicheck.less';
1414
@import 'actions/_actions-multiselect.less';
15+
@import 'actions/_actions-switcher.less';
1516

1617
//
1718
// Extends
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
// /**
2+
// * Copyright © 2015 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Yes/no switcher
8+
// _____________________________________________
9+
10+
// ToDo UI: integrate the switcher to the backend
11+
12+
//
13+
// Variables
14+
// ---------------------------------------------
15+
16+
@actions-switcher-background-color: @color-gray89;
17+
@actions-switcher-border-radius: 12px;
18+
@actions-switcher-border: 1px solid @color-gray65-lighten;
19+
@actions-switcher-control-background-color: @color-white;
20+
@actions-switcher-height: 20px;
21+
@actions-switcher-width: 37px;
22+
23+
//
24+
25+
.actions-switch {
26+
-webkit-user-select: none;
27+
-moz-user-select: none;
28+
-ms-user-select: none;
29+
height: @actions-switcher-height;
30+
margin-right: 30px;
31+
position: relative;
32+
width: @actions-switcher-width;
33+
}
34+
35+
.actions-switch-label {
36+
background: @actions-switcher-background-color;
37+
border-radius: @actions-switcher-border-radius;
38+
border: @actions-switcher-border;
39+
cursor: pointer;
40+
display: block;
41+
overflow: hidden;
42+
}
43+
44+
.actions-switch-inner {
45+
display: block;
46+
margin-left: -100%;
47+
transition: margin 0.3s ease-in 0s;
48+
width: 200%;
49+
&:before,
50+
&:after {
51+
border-radius: @actions-switcher-border-radius;
52+
color: @color-white;
53+
display: block;
54+
float: left;
55+
height: @actions-switcher-height;
56+
line-height: 22px;
57+
padding: 0;
58+
width: 50%;
59+
}
60+
&:before {
61+
background-color: @color-green-apple;
62+
content: "";
63+
}
64+
&:after {
65+
content: "";
66+
text-align: right;
67+
}
68+
}
69+
70+
.actions-switch-indicator {
71+
background: @actions-switcher-control-background-color;
72+
border-radius: @actions-switcher-border-radius;
73+
border: @actions-switcher-border;
74+
bottom: -2px;
75+
display: block;
76+
position: absolute;
77+
right: 15px;
78+
top: 0;
79+
transition: all 0.3s ease-in 0s;
80+
width: 22px;
81+
}
82+
83+
.actions-switch-text {
84+
&:after {
85+
content: attr(data-label-no);
86+
display: block;
87+
left: 32px;
88+
margin-left: 12px;
89+
position: absolute;
90+
}
91+
}
92+
93+
.actions-switch-checkbox {
94+
display: none;
95+
&:checked {
96+
+ .actions-switch-label {
97+
.actions-switch-inner {
98+
margin-left: 0;
99+
}
100+
.actions-switch-indicator {
101+
right: 0;
102+
}
103+
.actions-switch-text {
104+
&:after {
105+
content: attr(data-label-yes);
106+
}
107+
}
108+
}
109+
}
110+
}

0 commit comments

Comments
 (0)