Skip to content

Commit 3ca077f

Browse files
author
Serhii Chernenko
committed
reference directive restored for _extends.less. extends replaced to mixins in _extend.less
1 parent 2d44647 commit 3ca077f

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

app/design/frontend/Magento/blank/web/css/source/_extends.less

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,17 @@
177177
// Abstract block title
178178
// ---------------------------------------------
179179

180+
@abs-block-title: {
181+
margin-bottom: 15px;
182+
183+
> strong {
184+
.lib-heading(h3);
185+
}
186+
};
187+
180188
& when (@media-common = true) {
181189
.abs-block-title {
182-
margin-bottom: 15px;
183-
184-
> strong {
185-
.lib-heading(h3);
186-
}
190+
@abs-block-title();
187191
}
188192
}
189193

@@ -194,7 +198,7 @@
194198
& when (@media-common = true) {
195199
.abs-account-blocks {
196200
.block-title {
197-
&:extend(.abs-block-title all);
201+
@abs-block-title();
198202

199203
> .action {
200204
margin-left: 15px;
@@ -330,13 +334,35 @@
330334
}
331335
}
332336

337+
//
338+
// Button as a link
339+
// ---------------------------------------------
340+
341+
@abs-action-button-as-link: {
342+
.lib-button-as-link(@_margin: false);
343+
border-radius: 0;
344+
font-size: inherit;
345+
font-weight: @font-weight__regular;
346+
347+
&:active,
348+
&:not(:focus) {
349+
box-shadow: none;
350+
}
351+
};
352+
353+
& when (@media-common = true) {
354+
.abs-action-button-as-link {
355+
@abs-action-button-as-link();
356+
}
357+
}
358+
333359
//
334360
// Action with icon remove with text
335361
// ---------------------------------------------
336362

337363
& when (@media-common = true) {
338364
.abs-action-remove {
339-
&:extend(.abs-action-button-as-link all);
365+
@abs-action-button-as-link();
340366
left: @indent__s;
341367
margin-left: 70%;
342368
position: absolute;
@@ -677,24 +703,6 @@
677703
}
678704
}
679705

680-
//
681-
// Button as a link
682-
// ---------------------------------------------
683-
684-
& when (@media-common = true) {
685-
.abs-action-button-as-link {
686-
.lib-button-as-link(@_margin: false);
687-
border-radius: 0;
688-
font-size: inherit;
689-
font-weight: @font-weight__regular;
690-
691-
&:active,
692-
&:not(:focus) {
693-
box-shadow: none;
694-
}
695-
}
696-
}
697-
698706
//
699707
// Button revert secondary color
700708
// ---------------------------------------------

app/design/frontend/Magento/blank/web/css/source/_sources.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// */
55

66
@import '_variables.less';
7-
@import '_extends.less';
7+
@import (reference) '_extends.less';
88
@import '_typography.less';
99
@import '_layout.less';
1010
@import '_tables.less';

0 commit comments

Comments
 (0)