Skip to content

Commit f9f6f13

Browse files
Evgeniy KolesovBogdan Plieshka
authored andcommitted
MAGETWO-34790: [UI] Manage Components
- Added Data Grid styles
1 parent f184bcb commit f9f6f13

File tree

3 files changed

+114
-0
lines changed

3 files changed

+114
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// /**
2+
// * Copyright © 2015 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
@component-indicator__size: 20px;
7+
8+
//
9+
// Component grid elements
10+
// _____________________________________________
11+
12+
.component-indicator {
13+
border-radius: 50%;
14+
cursor: help;
15+
display: inline-block;
16+
height: @component-indicator__size;
17+
text-align: center;
18+
width: @component-indicator__size;
19+
20+
&::before {
21+
background: @color-white;
22+
border-radius: 1px;
23+
border: 1px solid @color-gray68;
24+
box-shadow: 0 0 2px rgba(0,0,0,.4);
25+
content: attr(data-label);
26+
display: block;
27+
font-size: @font-size__s;
28+
margin: 34px 0 0 -10px;
29+
min-width: 50px;
30+
opacity: 0;
31+
padding: 4px 5px;
32+
position: absolute;
33+
transition: opacity .2s linear;
34+
visibility: hidden;
35+
}
36+
&::after {
37+
background: @color-white;
38+
border: 1px solid darken(@color-gray68, 8);
39+
border-width: 1px 0 0 1px;
40+
box-shadow: -1px -1px 1px rgba(0,0,0,.1);
41+
content: '';
42+
display: block;
43+
height: 10px;
44+
margin: 9px 0 0 5px;
45+
opacity: 0;
46+
position: absolute;
47+
transform: rotate(45deg);
48+
transition: opacity .2s linear .1s;
49+
visibility: hidden;
50+
width: 10px;
51+
}
52+
&:hover {
53+
&::before,
54+
&::after {
55+
opacity: 1;
56+
transition: opacity .2s linear 0;
57+
visibility: visible;
58+
}
59+
&::after {
60+
transition: opacity .2s linear 0;
61+
}
62+
}
63+
span {
64+
display: block;
65+
height: @component-indicator__size;
66+
overflow: hidden;
67+
width: @component-indicator__size;
68+
&:before {
69+
content: '';
70+
display: block;
71+
font-family: @icons__font-family;
72+
font-size: 20px;
73+
height: 100%;
74+
line-height: @component-indicator__size;
75+
width: 100%;
76+
}
77+
}
78+
&._on {
79+
background: @color-green-apple;
80+
}
81+
&._off {
82+
background: @color-red10;
83+
span {
84+
&:before {
85+
background: @color-white;
86+
height: 4px;
87+
margin: 8px auto 20px;
88+
width: 12px;
89+
}
90+
}
91+
}
92+
&._info {
93+
background: transparent;
94+
span {
95+
width: 21px;
96+
&:before {
97+
color: @color-blue-dodger;
98+
content: @icon-notice-messages__content;
99+
font-family: @icons__font-family;
100+
font-size: 21px;
101+
}
102+
}
103+
}
104+
}

app/design/adminhtml/Magento/backend/web/app/updater/styles/less/source/_variables.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@
3333
@checkbox-check__font-size: 1.2rem;
3434
@checkbox-check__line-height: 1.2;
3535

36+
//
37+
// Tables
38+
// ---------------------------------------------
39+
@table__color: @color-very-dark-gray-black;

app/design/adminhtml/Magento/backend/web/app/updater/styles/less/updater.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
@import '../../../../../Magento_Backend/web/css/source/module/_header.less';
5050
@import '../../../../../Magento_Backend/web/css/source/module/_menu.less';
5151

52+
@import '../../../../../Magento_Ui/web/css/source/module/_data-grid.less';
53+
@import (reference) '../../../../../web/css/source/forms/_extends.less';
54+
@import '../../../../../web/css/source/forms/_controls.less';
55+
@import '../../../../../web/css/source/forms/_fields.less';
56+
5257
// Inherit Setup components
5358
@import '../../../setup/styles/less/components/_navigation-bar.less';
5459
@import '../../../setup/styles/less/components/_messages.less';
@@ -60,6 +65,7 @@
6065
@import 'components/_menu.less';
6166
@import 'components/_modals.less';
6267
@import 'components/_navigation-bar.less';
68+
@import 'components/_data-grid.less';
6369

6470
//
6571
// Pages

0 commit comments

Comments
 (0)