forked from epartment/magento2-sass-theme-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added magento-ui sass and implemented multiple bug-fixes
- Loading branch information
1 parent
8207ff3
commit 0241268
Showing
47 changed files
with
9,030 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
// | ||
// Actions-toolbar | ||
// _____________________________________________ | ||
|
||
@mixin lib-actions-toolbar( | ||
$_actions-toolbar-actions-position : $actions-toolbar-actions__position, | ||
$_actions-toolbar-actions-reverse : $actions-toolbar-actions__reverse, | ||
$_actions-toolbar-margin : $actions-toolbar__margin, | ||
$_actions-toolbar-padding : $actions-toolbar__padding, | ||
$_actions-toolbar-actions-margin : $actions-toolbar-actions__margin, | ||
$_actions-toolbar-primary-actions-margin : $actions-toolbar-actions-primary__margin, | ||
$_actions-toolbar-secondary-actions-margin : $actions-toolbar-actions-secondary__margin, | ||
$_actions-toolbar-actions-links-margin-top : $actions-toolbar-actions-links__margin-top, | ||
$_actions-toolbar-primary-actions-links-margin-top : $actions-toolbar-actions-links-primary__margin-top, | ||
$_actions-toolbar-secondary-actions-links-margin-top : $actions-toolbar-actions-links-secondary__margin-top | ||
) { | ||
@include lib-clearfix(); | ||
@include lib-css(margin, $_actions-toolbar-margin); | ||
@include lib-css(padding, $_actions-toolbar-padding); | ||
@include _lib-actions-toolbar-align($_actions-toolbar-actions-position); | ||
@include _lib-actions-toolbar-floats($_actions-toolbar-actions-position, $_actions-toolbar-actions-reverse); | ||
.primary, | ||
.secondary { | ||
display: inline-block; | ||
|
||
.action { | ||
@include lib-css(margin, $_actions-toolbar-actions-margin); | ||
} | ||
|
||
a.action { | ||
display: inline-block; | ||
@include lib-css(margin-top, $_actions-toolbar-actions-links-margin-top); | ||
} | ||
} | ||
|
||
.primary { | ||
.action { | ||
@include lib-css(margin, $_actions-toolbar-primary-actions-margin); | ||
} | ||
|
||
a.action { | ||
@include lib-css(margin-top, $_actions-toolbar-primary-actions-links-margin-top); | ||
} | ||
} | ||
|
||
.secondary { | ||
.action { | ||
@include lib-css(margin, $_actions-toolbar-secondary-actions-margin); | ||
} | ||
|
||
a.action { | ||
@include lib-css(margin-top, $_actions-toolbar-secondary-actions-links-margin-top); | ||
} | ||
} | ||
} | ||
|
||
// | ||
// Actions-toolbar-clear-floats | ||
// --------------------------------------------- | ||
|
||
@mixin lib-actions-toolbar-clear-floats() { | ||
.primary, | ||
.secondary { | ||
display: block; | ||
float: none; | ||
} | ||
} | ||
|
||
// | ||
// Internal use mixins | ||
// --------------------------------------------- | ||
|
||
@mixin _lib-actions-toolbar-align($_actions-toolbar-actions-position) { | ||
@if $_actions-toolbar-actions-position != justify { | ||
@include lib-css(text-align, $_actions-toolbar-actions-position); | ||
} | ||
} | ||
|
||
@mixin _lib-actions-toolbar-floats( | ||
$_actions-toolbar-actions-position, | ||
$_actions-toolbar-actions-reverse | ||
) { | ||
@if $_actions-toolbar-actions-position == justify { | ||
@if $_actions-toolbar-actions-reverse { | ||
.primary { | ||
float: right; | ||
} | ||
.secondary { | ||
float: left; | ||
} | ||
} | ||
@else { | ||
.primary { | ||
float: left; | ||
} | ||
.secondary { | ||
float: right; | ||
} | ||
} | ||
} | ||
@else if $_actions-toolbar-actions-position == left { | ||
@if $_actions-toolbar-actions-reverse { | ||
.secondary { | ||
float: left; | ||
} | ||
} | ||
@else { | ||
.primary { | ||
float: left; | ||
} | ||
} | ||
} | ||
@else if $_actions-toolbar-actions-position == right { | ||
@if $_actions-toolbar-actions-reverse { | ||
.primary { | ||
float: right; | ||
} | ||
} | ||
@else { | ||
.secondary { | ||
float: right; | ||
} | ||
} | ||
} | ||
@else if $_actions-toolbar-actions-position == center { | ||
.primary, | ||
.secondary { | ||
vertical-align: top; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
// | ||
// Breadcrumbs | ||
// _____________________________________________ | ||
|
||
@mixin lib-breadcrumbs( | ||
$_breadcrumbs-font-size : $breadcrumbs__font-size, | ||
$_breadcrumbs-display : $breadcrumbs__display, | ||
$_breadcrumbs-container-margin : $breadcrumbs__container-margin, | ||
$_breadcrumbs-padding : $breadcrumbs__padding, | ||
|
||
// Breadcrumbs separating symbol | ||
$_breadcrumbs-separator-symbol : $breadcrumbs-separator__symbol, | ||
$_breadcrumbs-separator-color : $breadcrumbs-separator__color, | ||
|
||
// Use icon as a separating symbol | ||
$_breadcrumbs-icon-use : $breadcrumbs-icon__use, | ||
$_breadcrumbs-icon-font-content : $breadcrumbs-icon__font-content, | ||
$_icon-font : $breadcrumbs-icon__font, | ||
$_icon-font-size : $breadcrumbs-icon__font-size, | ||
$_icon-font-line-height : $breadcrumbs-icon__font-line-height, | ||
$_icon-font-color : $breadcrumbs-icon__font-color, | ||
$_icon-font-margin : $breadcrumbs-icon__font-margin, | ||
$_icon-font-vertical-align : $breadcrumbs-icon__font-vertical-align, | ||
|
||
// Breadcrumbs current | ||
$_breadcrumbs-current-color : $breadcrumbs-current__color, | ||
$_breadcrumbs-current-font-weight : $breadcrumbs-current__font-weight, | ||
$_breadcrumbs-current-background : $breadcrumbs-current__background, | ||
$_breadcrumbs-current-border : $breadcrumbs-current__border, | ||
$_breadcrumbs-current-gradient : $breadcrumbs-current__gradient, | ||
$_breadcrumbs-current-gradient-direction : $breadcrumbs-current__gradient-direction, | ||
$_breadcrumbs-current-gradient-color-start : $breadcrumbs-current__gradient-color-start, | ||
$_breadcrumbs-current-gradient-color-end : $breadcrumbs-current__gradient-color-end, | ||
|
||
// Breadcrumbs link - gradient | ||
$_breadcrumbs-link-gradient : $breadcrumbs-link__gradient, | ||
$_breadcrumbs-link-gradient-direction : $breadcrumbs-link__gradient-direction, | ||
|
||
// Breadcrumbs link color - default | ||
$_breadcrumbs-link-color : $breadcrumbs-link__color, | ||
$_breadcrumbs-link-background : $breadcrumbs-link__background, | ||
$_breadcrumbs-link-border : $breadcrumbs-link__border, | ||
$_breadcrumbs-link-text-decoration : $breadcrumbs-link__text-decoration, | ||
$_breadcrumbs-link-gradient-color-start : $breadcrumbs-link__gradient-color-start, | ||
$_breadcrumbs-link-gradient-color-end : $breadcrumbs-link__gradient-color-end, | ||
|
||
// Breadcrumbs link - visited | ||
$_breadcrumbs-link-color-visited : $breadcrumbs-link__visited__color, | ||
$_breadcrumbs-link-background-visited : $breadcrumbs-link__visited__background, | ||
$_breadcrumbs-link-border-visited : $breadcrumbs-link__visited__border, | ||
$_breadcrumbs-link-text-decoration-visited : $breadcrumbs-link__visited__text-decoration, | ||
$_breadcrumbs-link-gradient-color-start-visited : $breadcrumbs-link__visited__gradient-color-start, | ||
$_breadcrumbs-link-gradient-color-end-visited : $breadcrumbs-link__visited__gradient-color-end, | ||
|
||
// Breadcrumbs link - hover | ||
$_breadcrumbs-link-color-hover : $breadcrumbs-link__hover__color, | ||
$_breadcrumbs-link-background-hover : $breadcrumbs-link__hover__background, | ||
$_breadcrumbs-link-border-hover : $breadcrumbs-link__hover__border, | ||
$_breadcrumbs-link-text-decoration-hover : $breadcrumbs-link__hover__text-decoration, | ||
$_breadcrumbs-link-gradient-color-start-hover : $breadcrumbs-link__hover__gradient-color-start, | ||
$_breadcrumbs-link-gradient-color-end-hover : $breadcrumbs-link__hover__gradient-color-end, | ||
|
||
// Breadcrumbs link - active | ||
$_breadcrumbs-link-color-active : $breadcrumbs-link__active__color, | ||
$_breadcrumbs-link-background-active : $breadcrumbs-link__active__background, | ||
$_breadcrumbs-link-border-active : $breadcrumbs-link__active__border, | ||
$_breadcrumbs-link-text-decoration-active : $breadcrumbs-link__active__text-decoration, | ||
$_breadcrumbs-link-gradient-color-start-active : $breadcrumbs-link__active__gradient-color-start, | ||
$_breadcrumbs-link-gradient-color-end-active : $breadcrumbs-link__active__gradient-color-end | ||
) { | ||
@include lib-css(margin, $_breadcrumbs-container-margin); | ||
.items { | ||
@include lib-font-size($_breadcrumbs-font-size); | ||
@include lib-css(color, $_breadcrumbs-current-color); | ||
@include lib-list-inline(); | ||
} | ||
|
||
.item { | ||
margin: 0; | ||
} | ||
|
||
a { | ||
@include lib-css(background, $_breadcrumbs-link-background); | ||
@include lib-background-gradient( | ||
$_breadcrumbs-link-gradient-color-start, | ||
$_breadcrumbs-link-gradient-color-end, | ||
$_breadcrumbs-link-gradient-direction, | ||
$_breadcrumbs-link-gradient | ||
); | ||
@include lib-css(border, $_breadcrumbs-link-border); | ||
@include lib-css(color, $_breadcrumbs-link-color); | ||
@include lib-css(display, $_breadcrumbs-display); | ||
@include lib-css(padding, $_breadcrumbs-padding); | ||
@include lib-css(text-decoration, $_breadcrumbs-link-text-decoration); | ||
|
||
&:visited { | ||
@include lib-css(background, $_breadcrumbs-link-background-visited); | ||
@include lib-background-gradient( | ||
$_breadcrumbs-link-gradient-color-start-visited, | ||
$_breadcrumbs-link-gradient-color-end-visited, | ||
$_breadcrumbs-link-gradient-direction, | ||
$_breadcrumbs-link-gradient | ||
); | ||
@include lib-css(border, $_breadcrumbs-link-border-visited); | ||
@include lib-css(color, $_breadcrumbs-link-color-visited); | ||
@include lib-css(text-decoration, $_breadcrumbs-link-text-decoration-visited); | ||
} | ||
|
||
&:hover { | ||
@include lib-css(background, $_breadcrumbs-link-background-hover); | ||
@include lib-background-gradient( | ||
$_breadcrumbs-link-gradient-color-start-hover, | ||
$_breadcrumbs-link-gradient-color-end-hover, | ||
$_breadcrumbs-link-gradient-direction, | ||
$_breadcrumbs-link-gradient | ||
); | ||
@include lib-css(border, $_breadcrumbs-link-border-hover); | ||
@include lib-css(color, $_breadcrumbs-link-color-hover); | ||
@include lib-css(text-decoration, $_breadcrumbs-link-text-decoration-hover); | ||
} | ||
|
||
&:active { | ||
@include lib-css(background, $_breadcrumbs-link-background-active); | ||
@include lib-background-gradient( | ||
$_breadcrumbs-link-gradient-color-start-active, | ||
$_breadcrumbs-link-gradient-color-end-active, | ||
$_breadcrumbs-link-gradient-direction, | ||
$_breadcrumbs-link-gradient | ||
); | ||
@include lib-css(border, $_breadcrumbs-link-border-active); | ||
@include lib-css(color, $_breadcrumbs-link-color-active); | ||
@include lib-css(text-decoration, $_breadcrumbs-link-text-decoration-active); | ||
} | ||
} | ||
|
||
strong { | ||
@include lib-css(background, $_breadcrumbs-current-background); | ||
@include lib-background-gradient( | ||
$_breadcrumbs-current-gradient-color-start, | ||
$_breadcrumbs-current-gradient-color-end, | ||
$_breadcrumbs-current-gradient-direction, | ||
$_breadcrumbs-current-gradient | ||
); | ||
@include lib-css(border, $_breadcrumbs-current-border); | ||
@include lib-css(display, $_breadcrumbs-display); | ||
@include lib-css(font-weight, $_breadcrumbs-current-font-weight); | ||
@include lib-css(padding, $_breadcrumbs-padding); | ||
} | ||
|
||
// Insert separating symbol to "content" | ||
@if $_breadcrumbs-separator-symbol != '' and $_breadcrumbs-separator-symbol != false { | ||
.item:not(:last-child) { | ||
&:after { | ||
@include lib-css(color, $_breadcrumbs-separator-color); | ||
@include lib-css(content, $_breadcrumbs-separator-symbol); | ||
} | ||
} | ||
} | ||
|
||
// Use font icon as a separating symbol | ||
@if $_breadcrumbs-icon-use { | ||
.item:not(:last-child) { | ||
@include lib-icon-font( | ||
$_icon-font-content: $_breadcrumbs-icon-font-content, | ||
$_icon-font: $_icon-font, | ||
$_icon-font-size: $_icon-font-size, | ||
$_icon-font-line-height: $_icon-font-line-height, | ||
$_icon-font-color: $_icon-font-color, | ||
$_icon-font-margin: $_icon-font-margin, | ||
$_icon-font-vertical-align: $_icon-font-vertical-align, | ||
$_icon-font-position: after | ||
); | ||
} | ||
} | ||
} |
Oops, something went wrong.