Skip to content

Commit 31e3a05

Browse files
author
Momotenko,Natalia(nmomotenko)
committed
Merge pull request #222 from magento-webdev/develop
[UI] MAGETWO-35616: Frontend themes variables inheritance update & documentation update
2 parents eed27d6 + dffb43e commit 31e3a05

File tree

30 files changed

+1251
-178
lines changed

30 files changed

+1251
-178
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// ---------------------------------------------
1313

1414
@import 'source/lib/_lib.less'; // Global lib
15+
@import (reference) 'source/_extends.less';
1516
@import 'source/_theme.less'; // Theme variables overrides
1617
@import 'source/_sources.less'; // Theme
1718

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311

312312
.prices-tier {
313313
&:extend(.abs-reset-list all);
314-
.css(background, @sidebar-background);
314+
.css(background, @sidebar__background-color);
315315
padding: @indent__s (.75 * @indent__base);
316316
margin: @indent__s 0;
317317
.price-tier_price {

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/module/_listings.less

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,29 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@product-name-text-decoration: none;
7-
@product-name-text-decoration-hover: @link__hover__text-decoration;
6+
//
7+
// Variables
8+
// ---------------------------------------------
9+
10+
@product-name-link__color: @text__color;
11+
@product-name-link__color__active: @text__color;
12+
@product-name-link__color__hover: @text__color;
13+
@product-name-link__color__visited: @text__color;
814

15+
@product-name-link__text-decoration: none;
16+
@product-name-link__text-decoration__active: @link__hover__text-decoration;
17+
@product-name-link__text-decoration__hover: @link__hover__text-decoration;
18+
@product-name-link__text-decoration__visited: @link__hover__text-decoration;
19+
20+
//
921

1022
//
1123
// Common
1224
//--------------------------------------
1325

1426
& when (@media-common = true) {
1527

16-
.product-name() {
17-
font-weight: @font-weight__regular;
18-
> a {
19-
.link(
20-
@_link-color: @text__color,
21-
@_link-text-decoration: @product-name-text-decoration,
22-
@_link-color-visited: @text__color,
23-
@_link-text-decoration-visited: @product-name-text-decoration,
24-
@_link-color-hover: @text__color,
25-
@_link-text-decoration-hover: @product-name-text-decoration-hover,
26-
@_link-color-active: @text__color,
27-
@_link-text-decoration-active: @product-name-text-decoration-hover
28-
);
29-
}
30-
}
31-
32-
// Product Lists
28+
// Product Lists
3329
.products {
3430
margin: @indent__l 0;
3531
}
@@ -47,11 +43,11 @@
4743
&:extend(.abs-add-box-sizing all);
4844

4945
&-name {
50-
.product-name();
46+
&:extend(.abs-product-link all);
5147
display: block;
5248
margin: @indent__xs 0;
5349
word-break: break-all;
54-
// Non standard for webkit
50+
// Non standard for webkit
5551
word-break: break-word;
5652
-webkit-hyphens: auto;
5753
-moz-hyphens: auto;
@@ -248,8 +244,8 @@
248244
}
249245

250246
//
251-
// Mobile
252-
//--------------------------------------
247+
// Mobile
248+
// ---------------------------------------------
253249

254250
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
255251
.products-list .product {
@@ -302,8 +298,8 @@
302298
}
303299

304300
//
305-
// Desktop
306-
//--------------------------------------
301+
// Desktop
302+
// ---------------------------------------------
307303

308304
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
309305
.page-products .products-grid .product-item { width: 100%/3 }

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/module/_toolbar.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
}
9595

9696
//
97-
// Mobile
98-
//--------------------------------------
97+
// Mobile
98+
// ---------------------------------------------
9999

100100
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
101101
.page-products .columns {

app/design/frontend/Magento/blank/Magento_Checkout/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
.opc-block-progress:extend(.abs-add-box-sizing all) {
285285
margin-bottom: @indent__l;
286286
> .title {
287-
.css(background, @sidebar-background);
287+
.css(background, @sidebar__background-color);
288288
.heading(h3);
289289
margin: 0;
290290
padding: 15px 15px @indent__base;
@@ -293,7 +293,7 @@
293293
}
294294
}
295295
> .content {
296-
.css(background, @sidebar-background);
296+
.css(background, @sidebar__background-color);
297297
padding: 0 15px @indent__xs;
298298
.item-content.complete {
299299
margin: 0 0 15px;

app/design/frontend/Magento/blank/Magento_Checkout/web/css/source/module/_cart.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Summary block
1717
&-summary {
1818
&:extend(.abs-add-box-sizing all);
19-
.css(background, @sidebar-background);
19+
.css(background, @sidebar__background-color);
2020
margin-bottom: @indent__m;
2121
padding: 1px 15px @indent__m;
2222
> .title {

app/design/frontend/Magento/blank/Magento_Cms/web/css/source/_widgets.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@widgets-indent-bottom: @indent__base;
6+
@widgets-indent__bottom: @indent__base;
77

88
//
99
// Common
@@ -14,7 +14,7 @@
1414
.block-static-block,
1515
.block-cms-link {
1616
&.widget {
17-
.css(margin-bottom, @widgets-indent-bottom);
17+
.css(margin-bottom, @widgets-indent__bottom);
1818
.links & {
1919
margin-bottom: 0;
2020
}

app/design/frontend/Magento/blank/Magento_GiftMessage/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
&:extend(.abs-reset-image-wrapper all);
3737
}
3838
.options-items {
39-
.css(background, @sidebar-background);
39+
.css(background, @sidebar__background-color);
4040
display: block;
4141
margin: @indent__base 0 0;
4242
padding: @indent__base;

app/design/frontend/Magento/blank/Magento_Theme/web/css/source/_module.less

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434

3535
@h1__margin-bottom__desktop: @indent__xl;
3636

37+
//
38+
// Footer
39+
// ---------------------------------------------
40+
41+
@footer__background-color: false;
42+
3743
//
3844
// Common
3945
//--------------------------------------
@@ -136,8 +142,6 @@ body {
136142
// Footer
137143
//--------------------------------------
138144

139-
@footer__background-color: false;
140-
141145
.page-footer {
142146
margin-top: auto;
143147
.css(background-color, @footer__background-color);

app/design/frontend/Magento/blank/Magento_Theme/web/css/source/module/_collapsible_navigation.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@collapsible-nav-background: @sidebar-background;
6+
@collapsible-nav-background: @sidebar__background-color;
77
@collapsible-nav-item-hover: @color-gray91;
88
@collapsible-nav-color: false;
99
@collapsible-nav-current-color: false;

0 commit comments

Comments
 (0)