init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Email variable overrides
|
||||
// _____________________________________________
|
||||
|
||||
// This file should be used to set theme-specific variables for emails.
|
||||
// By default, emails will inherit variables from the Magento UI Library and the _theme.less and _variables.less files
|
||||
// in a custom theme. Use this file if you want to set specific variables for emails.
|
||||
// For example, you can make the email font, typography, colors, etc unique from the frontend theme.
|
||||
|
||||
// Example usage:
|
||||
// @link__color: @color-dark-green1;
|
||||
// @link__text-decoration: underline;
|
||||
//
|
||||
// @email__background-color: @color-heathered-grey; // Change background to darker grey color
|
||||
|
||||
// Should be EMPTY.
|
||||
@@ -0,0 +1,10 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Extend fallback
|
||||
// _____________________________________________
|
||||
|
||||
// Magento extend fallback handling. Should be EMPTY.
|
||||
@@ -0,0 +1,10 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Theme overrides fallback
|
||||
// _____________________________________________
|
||||
|
||||
// Magento themes overrides fallback handling. Should be EMPTY.
|
||||
@@ -0,0 +1,10 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Theme variables fallback
|
||||
// _____________________________________________
|
||||
|
||||
// Magento themes variables fallback handling. Should be EMPTY.
|
||||
@@ -0,0 +1,10 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Theme widgets fallback
|
||||
// _____________________________________________
|
||||
|
||||
// Magento themes widgets fallback file. Should be EMPTY.
|
||||
@@ -0,0 +1,263 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Lib -> Components -> Modals
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Variables
|
||||
// ---------------------------------------------
|
||||
|
||||
@import '../../source/_variables.less';
|
||||
|
||||
@modal__background-color: @color-white;
|
||||
@modal__box-shadow: 0 0 12px 2px rgba(0, 0, 0, .35);
|
||||
|
||||
@modal-popup__indent-vertical: 5rem;
|
||||
@modal-popup__padding: 3rem;
|
||||
@modal-popup__width: 75%;
|
||||
@modal-popup__z-index: @modal__z-index;
|
||||
|
||||
@modal-slide__first__indent-left: 14.8rem;
|
||||
@modal-slide__indent-left: 4.5rem;
|
||||
@modal-slide__padding: 2.6rem;
|
||||
@modal-slide__z-index: @modal__z-index;
|
||||
|
||||
@modal-slide-header__padding-vertical: 2.1rem;
|
||||
|
||||
@modal-popup-confirm__width: 50rem;
|
||||
|
||||
@modal-popup-image-box__border-color: @color-gray80;
|
||||
@modal-popup-image-box__max-width: 78rem;
|
||||
|
||||
@modal-popup-image-box-preview__max-width: @modal-popup-image-box-preview-image__max-height + (2 * @indent__base);
|
||||
@modal-popup-image-box-preview-image__max-height: 54rem;
|
||||
|
||||
//
|
||||
// Utilities
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-modal() {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
min-width: 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
-webkit-transition: visibility 0s .3s, opacity .3s ease;
|
||||
transition: visibility 0s .3s, opacity .3s ease;
|
||||
|
||||
&._show {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
-webkit-transition: opacity .3s ease;
|
||||
transition: opacity .3s ease;
|
||||
|
||||
.modal-inner-wrap {
|
||||
-webkit-transform: translate(0, 0);
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.modal-inner-wrap {
|
||||
.lib-css(background-color, @modal__background-color);
|
||||
.lib-css(box-shadow, @modal__box-shadow);
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-modal-slide() {
|
||||
.lib-css(left, @modal-slide__first__indent-left);
|
||||
.lib-css(z-index, @modal-slide__z-index);
|
||||
|
||||
&._show {
|
||||
.modal-inner-wrap {
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.modal-inner-wrap {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
position: static;
|
||||
-webkit-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
-webkit-transition: -webkit-transform .3s ease-in-out;
|
||||
transition: transform .3s ease-in-out;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-modal-popup() {
|
||||
.lib-css(z-index, @modal-popup__z-index);
|
||||
left: 0;
|
||||
overflow-y: auto;
|
||||
|
||||
&.confirm {
|
||||
.modal-inner-wrap {
|
||||
.lib-css(max-width, @modal-popup-confirm__width);
|
||||
}
|
||||
}
|
||||
|
||||
&._show {
|
||||
.modal-inner-wrap {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.modal-inner-wrap {
|
||||
.lib-css(margin, @modal-popup__indent-vertical auto);
|
||||
.lib-css(width, @modal-popup__width);
|
||||
.lib-vendor-prefix-display(flex);
|
||||
.lib-vendor-prefix-flex-direction(column);
|
||||
box-sizing: border-box;
|
||||
height: auto;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
-webkit-transform: translateY(-200%);
|
||||
transform: translateY(-200%);
|
||||
-webkit-transition: -webkit-transform .2s ease;
|
||||
transition: transform .2s ease;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Common
|
||||
// _____________________________________________
|
||||
|
||||
& when (@media-common = true) {
|
||||
body {
|
||||
&._has-modal {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Modals overlay
|
||||
.modals-overlay {
|
||||
.lib-css(z-index, @overlay__z-index);
|
||||
}
|
||||
|
||||
.modal-slide,
|
||||
.modal-popup {
|
||||
.lib-modal();
|
||||
}
|
||||
|
||||
.modal-slide {
|
||||
.lib-modal-slide();
|
||||
&._inner-scroll {
|
||||
.modal-inner-wrap {
|
||||
overflow-y: visible;
|
||||
.lib-vendor-prefix-display(flex);
|
||||
.lib-vendor-prefix-flex-direction(column);
|
||||
}
|
||||
|
||||
.modal-header,
|
||||
.modal-footer {
|
||||
.lib-vendor-prefix-flex-grow(0);
|
||||
.lib-vendor-prefix-flex-shrink(0);
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
margin-top: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-header,
|
||||
.modal-content,
|
||||
.modal-footer {
|
||||
.lib-css(padding, 0 @modal-slide__padding @modal-slide__padding);
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
.lib-css(padding-bottom, @modal-slide-header__padding-vertical);
|
||||
.lib-css(padding-top, @modal-slide-header__padding-vertical);
|
||||
}
|
||||
}
|
||||
|
||||
.modal-popup {
|
||||
.lib-modal-popup();
|
||||
|
||||
// If applied, switching outer popup scroll to inner
|
||||
&._inner-scroll {
|
||||
overflow-y: visible;
|
||||
|
||||
.ie11 & {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-inner-wrap {
|
||||
max-height: 90%;
|
||||
|
||||
.ie11 & {
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-header,
|
||||
.modal-content,
|
||||
.modal-footer {
|
||||
.lib-css(padding-left, @modal-popup__padding);
|
||||
.lib-css(padding-right, @modal-popup__padding);
|
||||
}
|
||||
|
||||
.modal-header,
|
||||
.modal-footer {
|
||||
.lib-vendor-prefix-flex-grow(0);
|
||||
.lib-vendor-prefix-flex-shrink(0);
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
.lib-css(padding-bottom, (@modal-popup__padding / 2.5));
|
||||
.lib-css(padding-top, @modal-popup__padding);
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
margin-top: auto;
|
||||
.lib-css(padding-bottom, @modal-popup__padding);
|
||||
.lib-css(padding-top, @modal-popup__padding);
|
||||
}
|
||||
|
||||
.modal-footer-actions {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Mobile
|
||||
// _____________________________________________
|
||||
|
||||
// Mobile transform to modal-slide
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
|
||||
.modal-popup {
|
||||
&.modal-slide {
|
||||
.lib-modal-slide();
|
||||
|
||||
.modal-inner-wrap {
|
||||
margin: 0;
|
||||
max-height: 90vh; /** iOS webkit fix height problem when added long content **/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Actions-toolbar
|
||||
// _____________________________________________
|
||||
|
||||
.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
|
||||
) {
|
||||
.lib-clearfix();
|
||||
.lib-css(margin, @_actions-toolbar-margin);
|
||||
.lib-css(padding, @_actions-toolbar-padding);
|
||||
._lib-actions-toolbar-align(@_actions-toolbar-actions-position);
|
||||
._lib-actions-toolbar-floats(@_actions-toolbar-actions-position, @_actions-toolbar-actions-reverse);
|
||||
.primary,
|
||||
.secondary {
|
||||
display: inline-block;
|
||||
|
||||
.action {
|
||||
.lib-css(margin, @_actions-toolbar-actions-margin);
|
||||
}
|
||||
|
||||
a.action {
|
||||
display: inline-block;
|
||||
.lib-css(margin-top, @_actions-toolbar-actions-links-margin-top);
|
||||
}
|
||||
}
|
||||
|
||||
.primary {
|
||||
.action {
|
||||
.lib-css(margin, @_actions-toolbar-primary-actions-margin);
|
||||
}
|
||||
|
||||
a.action {
|
||||
.lib-css(margin-top, @_actions-toolbar-primary-actions-links-margin-top);
|
||||
}
|
||||
}
|
||||
|
||||
.secondary {
|
||||
.action {
|
||||
.lib-css(margin, @_actions-toolbar-secondary-actions-margin);
|
||||
}
|
||||
|
||||
a.action {
|
||||
.lib-css(margin-top, @_actions-toolbar-secondary-actions-links-margin-top);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Actions-toolbar-clear-floats
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-actions-toolbar-clear-floats() {
|
||||
.primary,
|
||||
.secondary {
|
||||
display: block;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Internal use mixins
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-actions-toolbar-align(@_actions-toolbar-actions-position) when not (@_actions-toolbar-actions-position = justify) {
|
||||
.lib-css(text-align, @_actions-toolbar-actions-position);
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = justify) and (@_actions-toolbar-actions-reverse = false) {
|
||||
.primary {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.secondary {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = justify) and (@_actions-toolbar-actions-reverse = true) {
|
||||
.primary {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.secondary {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = left) and (@_actions-toolbar-actions-reverse = false) {
|
||||
.primary {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = left) and (@_actions-toolbar-actions-reverse = true) {
|
||||
.secondary {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = right) and (@_actions-toolbar-actions-reverse = false) {
|
||||
.secondary {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = right) and (@_actions-toolbar-actions-reverse = true) {
|
||||
.primary {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-actions-toolbar-floats(
|
||||
@_actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse
|
||||
) when (@_actions-toolbar-actions-position = center) {
|
||||
.primary,
|
||||
.secondary {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Breadcrumbs
|
||||
// _____________________________________________
|
||||
|
||||
.lib-breadcrumbs(
|
||||
@_breadcrumbs-font-size: @breadcrumbs__font-size,
|
||||
@_breadcrumbs-display: @breadcrumbs__display,
|
||||
@_breadcrumbs-container-margin: @breadcrumbs__container-margin,
|
||||
@_breadcrumbs-padding: @breadcrumbs__padding,
|
||||
@_breadcrumbs-min-height: @breadcrumbs__min-height,
|
||||
|
||||
// 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
|
||||
) {
|
||||
.lib-css(margin, @_breadcrumbs-container-margin);
|
||||
.lib-css(min-height, @_breadcrumbs-min-height);
|
||||
.items {
|
||||
.lib-font-size(@_breadcrumbs-font-size);
|
||||
.lib-css(color, @_breadcrumbs-current-color);
|
||||
.lib-list-inline();
|
||||
}
|
||||
|
||||
.item {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
.lib-css(background, @_breadcrumbs-link-background);
|
||||
.lib-background-gradient(
|
||||
@_breadcrumbs-link-gradient-color-start,
|
||||
@_breadcrumbs-link-gradient-color-end,
|
||||
@_breadcrumbs-link-gradient-direction,
|
||||
@_breadcrumbs-link-gradient
|
||||
);
|
||||
.lib-css(border, @_breadcrumbs-link-border);
|
||||
.lib-css(color, @_breadcrumbs-link-color);
|
||||
.lib-css(display, @_breadcrumbs-display);
|
||||
.lib-css(padding, @_breadcrumbs-padding);
|
||||
.lib-css(text-decoration, @_breadcrumbs-link-text-decoration);
|
||||
|
||||
&:visited {
|
||||
.lib-css(background, @_breadcrumbs-link-background-visited);
|
||||
.lib-background-gradient(
|
||||
@_breadcrumbs-link-gradient-color-start-visited,
|
||||
@_breadcrumbs-link-gradient-color-end-visited,
|
||||
@_breadcrumbs-link-gradient-direction,
|
||||
@_breadcrumbs-link-gradient
|
||||
);
|
||||
.lib-css(border, @_breadcrumbs-link-border-visited);
|
||||
.lib-css(color, @_breadcrumbs-link-color-visited);
|
||||
.lib-css(text-decoration, @_breadcrumbs-link-text-decoration-visited);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.lib-css(background, @_breadcrumbs-link-background-hover);
|
||||
.lib-background-gradient(
|
||||
@_breadcrumbs-link-gradient-color-start-hover,
|
||||
@_breadcrumbs-link-gradient-color-end-hover,
|
||||
@_breadcrumbs-link-gradient-direction,
|
||||
@_breadcrumbs-link-gradient
|
||||
);
|
||||
.lib-css(border, @_breadcrumbs-link-border-hover);
|
||||
.lib-css(color, @_breadcrumbs-link-color-hover);
|
||||
.lib-css(text-decoration, @_breadcrumbs-link-text-decoration-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
.lib-css(background, @_breadcrumbs-link-background-active);
|
||||
.lib-background-gradient(
|
||||
@_breadcrumbs-link-gradient-color-start-active,
|
||||
@_breadcrumbs-link-gradient-color-end-active,
|
||||
@_breadcrumbs-link-gradient-direction,
|
||||
@_breadcrumbs-link-gradient
|
||||
);
|
||||
.lib-css(border, @_breadcrumbs-link-border-active);
|
||||
.lib-css(color, @_breadcrumbs-link-color-active);
|
||||
.lib-css(text-decoration, @_breadcrumbs-link-text-decoration-active);
|
||||
}
|
||||
}
|
||||
|
||||
strong {
|
||||
.lib-css(background, @_breadcrumbs-current-background);
|
||||
.lib-background-gradient(
|
||||
@_breadcrumbs-current-gradient-color-start,
|
||||
@_breadcrumbs-current-gradient-color-end,
|
||||
@_breadcrumbs-current-gradient-direction,
|
||||
@_breadcrumbs-current-gradient
|
||||
);
|
||||
.lib-css(border, @_breadcrumbs-current-border);
|
||||
.lib-css(display, @_breadcrumbs-display);
|
||||
.lib-css(font-weight, @_breadcrumbs-current-font-weight);
|
||||
.lib-css(padding, @_breadcrumbs-padding);
|
||||
}
|
||||
|
||||
& when not (@_breadcrumbs-separator-symbol = '') and not (@_breadcrumbs-separator-symbol = false) { // Insert separating symbol to "content"
|
||||
.item:not(:last-child) {
|
||||
&:after {
|
||||
.lib-css(color, @_breadcrumbs-separator-color);
|
||||
.lib-css(content, @_breadcrumbs-separator-symbol);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& when (@_breadcrumbs-icon-use = true) { // Use font icon as a separating symbol
|
||||
.item:not(:last-child) {
|
||||
.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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,441 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Buttons
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Button with solid or picture background
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button(
|
||||
@_button-font-family: @button__font-family,
|
||||
@_button-font-size: @button__font-size,
|
||||
@_button-font-weight: @button__font-weight,
|
||||
@_button-cursor: @button__cursor,
|
||||
@_button-display: @button__display,
|
||||
@_button-disabled-opacity: @button__disabled__opacity,
|
||||
@_button-line-height: @button__line-height,
|
||||
@_button-width: @button__width,
|
||||
@_button-margin: @button__margin,
|
||||
@_button-padding: @button__padding,
|
||||
@_button-color: @button__color,
|
||||
@_button-background: @button__background,
|
||||
@_button-border: @button__border,
|
||||
|
||||
@_button-color-hover: @button__hover__color,
|
||||
@_button-background-hover: @button__hover__background,
|
||||
@_button-border-hover: @button__hover__border,
|
||||
@_button-color-active: @button__active__color,
|
||||
@_button-background-active: @button__active__background,
|
||||
@_button-border-active: @button__active__border,
|
||||
|
||||
@_button-gradient: @button__gradient,
|
||||
@_button-gradient-direction: @button__gradient-direction,
|
||||
@_button-gradient-color-start: @button__gradient-color-start,
|
||||
@_button-gradient-color-end: @button__gradient-color-end,
|
||||
@_button-gradient-color-start-hover: @button__hover__gradient-color-start,
|
||||
@_button-gradient-color-end-hover: @button__hover__gradient-color-end,
|
||||
@_button-gradient-color-start-active: @button__active__gradient-color-start,
|
||||
@_button-gradient-color-end-active: @button__active__gradient-color-end,
|
||||
|
||||
@_button-icon-use: @button-icon__use,
|
||||
@_button-font-content: @button-icon__content,
|
||||
@_button-icon-font: @button-icon__font,
|
||||
@_button-icon-font-size: @button-icon__font-size,
|
||||
@_button-icon-font-line-height: @button-icon__line-height,
|
||||
@_button-icon-font-color: @button-icon__color,
|
||||
@_button-icon-font-color-hover: @button-icon__hover__font-color,
|
||||
@_button-icon-font-color-active: @button-icon__active__font-color,
|
||||
@_button-icon-font-margin: @button-icon__margin,
|
||||
@_button-icon-font-vertical-align: @button-icon__vertical-align,
|
||||
@_button-icon-font-position: @button-icon__position,
|
||||
@_button-icon-font-text-hide: @button-icon__text-hide
|
||||
) {
|
||||
background-image: none; // Reset unusual Firefox-on-Android default style
|
||||
.lib-css(background, @_button-background);
|
||||
.lib-background-gradient(
|
||||
@_button-gradient-color-start,
|
||||
@_button-gradient-color-end,
|
||||
@_button-gradient-direction,
|
||||
@_button-gradient
|
||||
);
|
||||
.lib-css(border, @_button-border);
|
||||
.lib-css(color, @_button-color);
|
||||
.lib-css(cursor, @_button-cursor);
|
||||
.lib-css(display, @_button-display);
|
||||
.lib-css(font-family, @_button-font-family);
|
||||
.lib-css(font-weight, @_button-font-weight);
|
||||
.lib-css(margin, @_button-margin);
|
||||
.lib-css(padding, @_button-padding);
|
||||
.lib-css(width, @_button-width);
|
||||
.lib-font-size(@_button-font-size);
|
||||
.lib-line-height(@_button-line-height);
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
|
||||
._lib-button-icon (
|
||||
@_button-icon-use: @_button-icon-use,
|
||||
@_icon-font-content: @_button-font-content,
|
||||
@_icon-font: @_button-icon-font,
|
||||
@_icon-font-size: @_button-icon-font-size,
|
||||
@_icon-font-line-height: @_button-icon-font-line-height,
|
||||
@_icon-font-color: @_button-icon-font-color,
|
||||
@_icon-font-color-hover: @_button-icon-font-color-hover,
|
||||
@_icon-font-color-active: @_button-icon-font-color-active,
|
||||
@_icon-font-margin: @_button-icon-font-margin,
|
||||
@_icon-font-vertical-align: @_button-icon-font-vertical-align,
|
||||
@_icon-font-position: @_button-icon-font-position,
|
||||
@_icon-font-text-hide: @_button-icon-font-text-hide
|
||||
);
|
||||
|
||||
&:focus,
|
||||
&:active {
|
||||
.lib-css(background, @_button-background-active);
|
||||
.lib-background-gradient(
|
||||
@_button-gradient-color-start-active,
|
||||
@_button-gradient-color-end-active,
|
||||
@_button-gradient-direction,
|
||||
@_button-gradient
|
||||
);
|
||||
.lib-css(border, @_button-border-active);
|
||||
.lib-css(color, @_button-color-active);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.lib-css(background, @_button-background-hover);
|
||||
.lib-background-gradient(
|
||||
@_button-gradient-color-start-hover,
|
||||
@_button-gradient-color-end-hover,
|
||||
@_button-gradient-direction,
|
||||
@_button-gradient
|
||||
);
|
||||
.lib-css(border, @_button-border-hover);
|
||||
.lib-css(color, @_button-color-hover);
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
fieldset[disabled] & {
|
||||
.lib-css(opacity, @_button-disabled-opacity);
|
||||
cursor: default;
|
||||
pointer-events: none; // Disabling of clicks
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Button size
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-size(
|
||||
@_button-line-height: @button__line-height,
|
||||
@_button-padding: @button__padding
|
||||
){
|
||||
.lib-line-height(@_button-line-height);
|
||||
.lib-css(padding, @_button-padding);
|
||||
}
|
||||
|
||||
//
|
||||
// Large buttons
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-l(
|
||||
@_button-l-font-size: @button__font-size__l,
|
||||
@_button-l-height: @button__line-height__l,
|
||||
@_button-l-padding: @button__padding__l
|
||||
) {
|
||||
.lib-button-size(
|
||||
@_button-line-height: @_button-l-height,
|
||||
@_button-padding: @_button-l-padding
|
||||
);
|
||||
.lib-font-size(@_button-l-font-size);
|
||||
}
|
||||
|
||||
//
|
||||
// Small buttons
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-s(
|
||||
@_button-s-font-size: @button__font-size__s,
|
||||
@_button-s-height: @button__line-height__s,
|
||||
@_button-s-padding: @button__padding__s
|
||||
) {
|
||||
.lib-button-size(
|
||||
@_button-line-height: @_button-s-height,
|
||||
@_button-padding: @_button-s-padding
|
||||
);
|
||||
.lib-font-size(@_button-s-font-size);
|
||||
}
|
||||
|
||||
//
|
||||
// Link as button
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-link-as-button() {
|
||||
.lib-css(display, @button__display);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Button as link
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-as-link(
|
||||
@_link-color: @link__color,
|
||||
@_link-color-hover: @link__hover__color,
|
||||
@_line-height: @line-height__base,
|
||||
@_disabled_opacity: @button__disabled__opacity,
|
||||
@_margin: 0,
|
||||
@_padding: 0
|
||||
) {
|
||||
.lib-css(line-height, @_line-height);
|
||||
.lib-css(margin, @_margin);
|
||||
.lib-css(padding, @_padding);
|
||||
.lib-link(
|
||||
@_link-color: @_link-color,
|
||||
@_link-color-hover: @_link-color-hover
|
||||
);
|
||||
background: none;
|
||||
border: 0;
|
||||
display: inline;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
background: none;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
fieldset[disabled] & {
|
||||
.lib-css(color, @_link-color);
|
||||
.lib-css(opacity, @_disabled_opacity);
|
||||
cursor: default;
|
||||
pointer-events: none; // Disabling of clicks
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Responsive
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-responsive() {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
//
|
||||
// Button reset
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-reset() {
|
||||
background-image: none; // Reset unusual Firefox-on-Android default style
|
||||
background: none;
|
||||
-moz-box-sizing: content-box; // Hack: fix Firefox button line-height problem
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
text-shadow: none;
|
||||
.lib-css(font-weight, @font-weight__regular);
|
||||
|
||||
&:focus,
|
||||
&:active {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
fieldset[disabled] & {
|
||||
pointer-events: none; // Disabling of all pointer events
|
||||
.lib-css(opacity, @button__disabled__opacity);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Button primary
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-primary(
|
||||
@_button-font-family: @button-primary__font-family,
|
||||
@_button-font-size: @button-primary__font-size,
|
||||
@_button-font-weight: @button-primary__font-weight,
|
||||
@_button-line-height: @button-primary__line-height,
|
||||
@_button-width: @button-primary__width,
|
||||
@_button-margin: @button-primary__margin,
|
||||
@_button-padding: @button-primary__padding,
|
||||
@_button-color: @button-primary__color,
|
||||
@_button-background: @button-primary__background,
|
||||
@_button-border: @button-primary__border,
|
||||
@_button-gradient-color-start: @button-primary__gradient-color-start,
|
||||
@_button-gradient-color-end: @button-primary__gradient-color-end,
|
||||
@_button-color-hover: @button-primary__hover__color,
|
||||
@_button-background-hover: @button-primary__hover__background,
|
||||
@_button-border-hover: @button-primary__hover__border,
|
||||
@_button-gradient-color-start-hover: @button-primary__hover__gradient-color-start,
|
||||
@_button-gradient-color-end-hover: @button-primary__hover__gradient-color-end,
|
||||
@_button-color-active: @button-primary__active__color,
|
||||
@_button-background-active: @button-primary__active__background,
|
||||
@_button-border-active: @button-primary__active__border,
|
||||
@_button-gradient-color-start-active: @button-primary__active__gradient-color-start,
|
||||
@_button-gradient-color-end-active: @button-primary__active__gradient-color-end,
|
||||
@_button-gradient: @button-primary__gradient,
|
||||
@_button-gradient-direction: @button-primary__gradient-direction
|
||||
) {
|
||||
.lib-button(
|
||||
@_button-font-family: @_button-font-family,
|
||||
@_button-font-size: @_button-font-size,
|
||||
@_button-font-weight: @_button-font-weight,
|
||||
@_button-line-height: @_button-line-height,
|
||||
@_button-width: @_button-width,
|
||||
@_button-margin: @_button-margin,
|
||||
@_button-padding: @_button-padding,
|
||||
@_button-color: @_button-color,
|
||||
@_button-background: @_button-background,
|
||||
@_button-border: @_button-border,
|
||||
@_button-color-hover: @_button-color-hover,
|
||||
@_button-background-hover: @_button-background-hover,
|
||||
@_button-border-hover: @_button-border-hover,
|
||||
@_button-color-active: @_button-color-active,
|
||||
@_button-background-active: @_button-background-active,
|
||||
@_button-border-active: @_button-border-active,
|
||||
@_button-gradient: @_button-gradient,
|
||||
@_button-gradient-direction: @_button-gradient-direction,
|
||||
@_button-gradient-color-start: @_button-gradient-color-start,
|
||||
@_button-gradient-color-end: @_button-gradient-color-end,
|
||||
@_button-gradient-color-start-hover: @_button-gradient-color-start-hover,
|
||||
@_button-gradient-color-end-hover: @_button-gradient-color-end-hover,
|
||||
@_button-gradient-color-start-active: @_button-gradient-color-start-active,
|
||||
@_button-gradient-color-end-active: @_button-gradient-color-end-active
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Button revert secondary color
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-revert-secondary-color(
|
||||
@_button-color: @button__color,
|
||||
@_button-background: @button__background,
|
||||
@_button-border: @button__border,
|
||||
|
||||
@_button-color-hover: @button__hover__color,
|
||||
@_button-background-hover: @button__hover__background,
|
||||
@_button-border-hover: @button__hover__border,
|
||||
|
||||
@_button-color-active: @button__active__color,
|
||||
@_button-background-active: @button__active__background,
|
||||
@_button-border-active: @button__active__border
|
||||
) {
|
||||
.lib-css(background, @_button-background);
|
||||
.lib-css(border, @_button-border);
|
||||
.lib-css(color, @_button-color);
|
||||
|
||||
&:focus,
|
||||
&:active {
|
||||
.lib-css(background, @_button-background-active);
|
||||
.lib-css(border, @_button-border-active);
|
||||
.lib-css(color, @_button-color-active);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.lib-css(background, @_button-background-hover);
|
||||
.lib-css(border, @_button-border-hover);
|
||||
.lib-css(color, @_button-color-hover);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Button revert secondary size
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-button-revert-secondary-size(
|
||||
@_button-font-size: @button__font-size,
|
||||
@_button-line-height: @button__line-height,
|
||||
@_button-padding: @button__padding
|
||||
) {
|
||||
.lib-font-size(@_button-font-size);
|
||||
.lib-button-size(
|
||||
@_button-line-height: @_button-line-height,
|
||||
@_button-padding: @_button-padding
|
||||
)
|
||||
}
|
||||
|
||||
//
|
||||
// Inner buttons mixins
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-button-icon (
|
||||
@_button-icon-use: @button-icon__use,
|
||||
@_icon-font-content: @button-icon__content,
|
||||
@_icon-font: @button-icon__font,
|
||||
@_icon-font-size: @button-icon__font-size,
|
||||
@_icon-font-line-height: @button-icon__line-height,
|
||||
@_icon-font-color: @button-icon__color,
|
||||
@_icon-font-color-hover: @button-icon__hover__font-color,
|
||||
@_icon-font-color-active: @button-icon__active__font-color,
|
||||
@_icon-font-margin: @button-icon__margin,
|
||||
@_icon-font-vertical-align: @button-icon__vertical-align,
|
||||
@_icon-font-position: @button-icon__position,
|
||||
@_icon-font-text-hide: @button-icon__text-hide
|
||||
) when (@_button-icon-use = true) {
|
||||
.lib-button-icon (
|
||||
@_icon-font-content: @_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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
|
||||
.lib-button-icon (
|
||||
@_icon-font-content,
|
||||
@_icon-font: @button-icon__font,
|
||||
@_icon-font-size: @button-icon__font-size,
|
||||
@_icon-font-line-height: @button-icon__line-height,
|
||||
@_icon-font-color: @button-icon__color,
|
||||
@_icon-font-color-hover: @button-icon__hover__font-color,
|
||||
@_icon-font-color-active: @button-icon__active__font-color,
|
||||
@_icon-font-margin: @button-icon__margin,
|
||||
@_icon-font-vertical-align: @button-icon__vertical-align,
|
||||
@_icon-font-position: @button-icon__position,
|
||||
@_icon-font-text-hide: @button-icon__text-hide
|
||||
) {
|
||||
.lib-icon-font(
|
||||
@_icon-font-content: @_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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,624 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Dropdowns
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Simple dropdown
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-dropdown(
|
||||
@_toggle-selector : ~".action.toggle",
|
||||
@_options-selector : ~"ul.dropdown",
|
||||
|
||||
@_dropdown-actions-padding: @dropdown-actions__padding,
|
||||
@_dropdown-list-min-width: @dropdown-list__min-width,
|
||||
@_dropdown-list-width: @dropdown-list__width,
|
||||
@_dropdown-list-height: @dropdown-list__height,
|
||||
@_dropdown-list-margin-top: @dropdown-list__margin-top,
|
||||
@_dropdown-list-position-top: @dropdown-list__position-top,
|
||||
@_dropdown-list-position-bottom: @dropdown-list__position-bottom,
|
||||
@_dropdown-list-position-left: @dropdown-list__position-left,
|
||||
@_dropdown-list-position-right: @dropdown-list__position-right,
|
||||
@_dropdown-list-background: @dropdown-list__background,
|
||||
@_dropdown-list-border: @dropdown-list__border,
|
||||
@_dropdown-list-pointer: @dropdown-list__pointer,
|
||||
@_dropdown-list-pointer-border: @dropdown-list-pointer__border,
|
||||
@_dropdown-list-pointer-position: @dropdown-list-pointer__position,
|
||||
@_dropdown-list-pointer-position-top: @dropdown-list-pointer__position-top,
|
||||
@_dropdown-list-pointer-position-left-right: @dropdown-list-pointer__position-left-right,
|
||||
@_dropdown-list-item-border: @dropdown-list-item__border,
|
||||
@_dropdown-list-item-padding: @dropdown-list-item__padding,
|
||||
@_dropdown-list-item-margin: @dropdown-list-item__margin,
|
||||
@_dropdown-list-item-hover: @dropdown-list-item__hover,
|
||||
@_dropdown-list-shadow: @dropdown-list__shadow,
|
||||
@_dropdown-list-z-index: @dropdown-list__z-index,
|
||||
|
||||
@_dropdown-toggle-icon-content: @dropdown-toggle-icon__content,
|
||||
@_dropdown-toggle-active-icon-content: @dropdown-toggle-icon__active__content,
|
||||
|
||||
@_icon-font: @dropdown-toggle-icon__font,
|
||||
@_icon-font-size: @dropdown-toggle-icon__font-size,
|
||||
@_icon-font-line-height: @dropdown-toggle-icon__font-line-height,
|
||||
@_icon-font-color: @dropdown-toggle-icon__font-color,
|
||||
@_icon-font-color-hover: @dropdown-toggle-icon__font-color-hover,
|
||||
@_icon-font-color-active: @dropdown-toggle-icon__font-color-active,
|
||||
@_icon-font-margin: @dropdown-toggle-icon__font-margin,
|
||||
@_icon-font-position: @dropdown-toggle-icon__position,
|
||||
@_icon-font-vertical-align: @dropdown-toggle-icon__font-vertical-align,
|
||||
@_icon-font-text-hide: @dropdown-toggle-icon__text-hide
|
||||
) {
|
||||
.lib-clearfix();
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
@{_toggle-selector} {
|
||||
.lib-css(padding, @_dropdown-actions-padding);
|
||||
cursor: pointer;
|
||||
|
||||
._lib-dropdown-icon(
|
||||
@_dropdown-toggle-icon-content,
|
||||
@_dropdown-toggle-active-icon-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-color-hover,
|
||||
@_icon-font-color-active,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align,
|
||||
@_icon-font-position,
|
||||
@_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
|
||||
._lib-dropdown-styles(
|
||||
@_options-selector: @_options-selector,
|
||||
@_dropdown-list-min-width,
|
||||
@_dropdown-list-width,
|
||||
@_dropdown-list-height,
|
||||
@_dropdown-list-margin-top,
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-border,
|
||||
@_dropdown-list-z-index,
|
||||
@_dropdown-list-shadow,
|
||||
@_dropdown-list-item-padding,
|
||||
@_dropdown-list-item-margin,
|
||||
@_dropdown-list-item-border,
|
||||
@_dropdown-list-item-hover,
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right,
|
||||
@_dropdown-list-pointer,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Split dropdown
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-dropdown-split(
|
||||
@_toggle-selector : ~".action.toggle",
|
||||
@_options-selector : ~"ul.dropdown",
|
||||
@_button-selector : ~".action.split",
|
||||
|
||||
@_dropdown-split-actions-padding: @dropdown-split-actions__padding,
|
||||
@_dropdown-split-button-actions-padding: @dropdown-split-button__actions__padding,
|
||||
@_dropdown-split-toggle-actions-padding: @dropdown-split-toggle__actions__padding,
|
||||
@_dropdown-split-toggle-position: @dropdown-split-toggle__position,
|
||||
@_dropdown-split-list-min-width: @dropdown-split-list__min-width,
|
||||
@_dropdown-split-list-width: @dropdown-split-list__width,
|
||||
@_dropdown-split-list-height: @dropdown-split-list__height,
|
||||
@_dropdown-split-list-margin-top: @dropdown-split-list__margin-top,
|
||||
@_dropdown-split-list-position-top: @dropdown-split-list__position-top,
|
||||
@_dropdown-split-list-position-bottom: @dropdown-split-list__position-bottom,
|
||||
@_dropdown-split-list-position-left: @dropdown-split-list__position-left,
|
||||
@_dropdown-split-list-position-right: @dropdown-split-list__position-right,
|
||||
@_dropdown-split-list-background: @dropdown-split-list__background,
|
||||
@_dropdown-split-list-border: @dropdown-split-list__border,
|
||||
@_dropdown-split-list-pointer: @dropdown-split-list__pointer,
|
||||
@_dropdown-split-list-pointer-border: @dropdown-split-list__pointer-border,
|
||||
@_dropdown-split-list-pointer-position: @dropdown-split-list__pointer-position,
|
||||
@_dropdown-split-list-pointer-position-top: @dropdown-split-list__pointer-position-top,
|
||||
@_dropdown-split-list-pointer-position-left-right: @dropdown-split-list__pointer-position-left-right,
|
||||
@_dropdown-split-list-item-border: @dropdown-split-list__item-border,
|
||||
@_dropdown-split-list-item-padding: @dropdown-split-list__item-padding,
|
||||
@_dropdown-split-list-item-margin: @dropdown-split-list__item-margin,
|
||||
@_dropdown-split-list-item-hover: @dropdown-split-list__item-hover,
|
||||
@_dropdown-split-button-border-radius-fix: @dropdown-split-button__border-radius-fix,
|
||||
@_dropdown-split-list-shadow: @dropdown-split-list__shadow,
|
||||
@_dropdown-split-list-z-index: @dropdown-split-list__z-index,
|
||||
|
||||
@_dropdown-split-toggle-icon-content: @dropdown-split-toggle-icon__content,
|
||||
@_dropdown-split-toggle-active-icon-content: @dropdown-split-toggle-icon__active__content,
|
||||
|
||||
@_icon-font: @dropdown-split-toggle-icon__font,
|
||||
@_icon-font-size: @dropdown-split-toggle-icon__font-size,
|
||||
@_icon-font-line-height: @dropdown-split-toggle-icon__font-line-height,
|
||||
@_icon-font-color: @dropdown-split-toggle-icon__font-color,
|
||||
@_icon-font-color-hover: @dropdown-split-toggle-icon__font-color-hover,
|
||||
@_icon-font-color-active: @dropdown-split-toggle-icon__font-color-active,
|
||||
@_icon-font-margin: @dropdown-split-toggle-icon__font-margin,
|
||||
@_icon-font-vertical-align: @dropdown-split-toggle-icon__font-vertical-align,
|
||||
@_icon-font-position: @dropdown-split-toggle-icon__position,
|
||||
@_icon-font-text-hide: @dropdown-split-toggle-icon__text-hide
|
||||
) {
|
||||
.lib-clearfix();
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
._lib-dropdown-split-toggle-position(
|
||||
@_button-selector,
|
||||
@_toggle-selector,
|
||||
@_dropdown-split-toggle-position,
|
||||
@_dropdown-split-button-border-radius-fix
|
||||
);
|
||||
|
||||
@{_button-selector} {
|
||||
.lib-css(padding, @_dropdown-split-button-actions-padding);
|
||||
}
|
||||
|
||||
@{_toggle-selector} {
|
||||
.lib-css(padding, @_dropdown-split-toggle-actions-padding);
|
||||
._lib-dropdown-split-icon(
|
||||
@_dropdown-split-toggle-icon-content,
|
||||
@_dropdown-split-toggle-active-icon-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-color-hover,
|
||||
@_icon-font-color-active,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align,
|
||||
@_icon-font-position,
|
||||
@_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
|
||||
._lib-dropdown-styles(
|
||||
@_options-selector: @_options-selector,
|
||||
@_dropdown-split-list-min-width,
|
||||
@_dropdown-split-list-width,
|
||||
@_dropdown-split-list-height,
|
||||
@_dropdown-split-list-margin-top,
|
||||
@_dropdown-split-list-background,
|
||||
@_dropdown-split-list-border,
|
||||
@_dropdown-split-list-z-index,
|
||||
@_dropdown-split-list-shadow,
|
||||
@_dropdown-split-list-item-padding,
|
||||
@_dropdown-split-list-item-margin,
|
||||
@_dropdown-split-list-item-border,
|
||||
@_dropdown-split-list-item-hover,
|
||||
@_dropdown-split-list-position-top,
|
||||
@_dropdown-split-list-position-bottom,
|
||||
@_dropdown-split-list-position-left,
|
||||
@_dropdown-split-list-position-right,
|
||||
@_dropdown-split-list-pointer,
|
||||
@_dropdown-split-list-pointer-border,
|
||||
@_dropdown-split-list-pointer-position,
|
||||
@_dropdown-split-list-pointer-position-top,
|
||||
@_dropdown-split-list-pointer-position-left-right
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Internal use mixins
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-dropdown-styles(
|
||||
@_options-selector,
|
||||
@_dropdown-list-min-width,
|
||||
@_dropdown-list-width,
|
||||
@_dropdown-list-height,
|
||||
@_dropdown-list-margin-top,
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-border,
|
||||
@_dropdown-list-z-index,
|
||||
@_dropdown-list-shadow,
|
||||
@_dropdown-list-item-padding,
|
||||
@_dropdown-list-item-margin,
|
||||
@_dropdown-list-item-border,
|
||||
@_dropdown-list-item-hover,
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right,
|
||||
@_dropdown-list-pointer,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
) {
|
||||
@{_options-selector} {
|
||||
.lib-list-reset-styles();
|
||||
.lib-css(background, @_dropdown-list-background);
|
||||
.lib-css(border, @_dropdown-list-border);
|
||||
.lib-css(height, @_dropdown-list-height);
|
||||
.lib-css(margin-top, @_dropdown-list-margin-top);
|
||||
.lib-css(min-width, @_dropdown-list-min-width);
|
||||
.lib-css(width, @_dropdown-list-width);
|
||||
.lib-css(z-index, @_dropdown-list-z-index);
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
||||
._lib-dropdown-list-position(
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right
|
||||
);
|
||||
|
||||
._lib-dropdown-list-shadow(@_dropdown-list-shadow);
|
||||
|
||||
li {
|
||||
.lib-css(margin, @_dropdown-list-item-margin);
|
||||
.lib-css(padding, @_dropdown-list-item-padding);
|
||||
|
||||
._lib-dropdown-list-item-border(
|
||||
@_dropdown-list-item-border
|
||||
);
|
||||
|
||||
&:hover {
|
||||
.lib-css(background, @_dropdown-list-item-hover);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-dropdown-list-pointer(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
);
|
||||
}
|
||||
|
||||
&.active {
|
||||
overflow: visible;
|
||||
|
||||
@{_options-selector} {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Dropdown list position
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-dropdown-list-position(
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right
|
||||
) when not (@_dropdown-list-position-top = false) and not (@_dropdown-list-position-top = auto) {
|
||||
.lib-css(top, @_dropdown-list-position-top);
|
||||
}
|
||||
|
||||
._lib-dropdown-list-position(
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right
|
||||
) when not (@_dropdown-list-position-bottom = false) and not (@_dropdown-list-position-bottom = auto) {
|
||||
.lib-css(bottom, @_dropdown-list-position-bottom);
|
||||
}
|
||||
|
||||
._lib-dropdown-list-position(
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right
|
||||
) when not (@_dropdown-list-position-left = false) and not (@_dropdown-list-position-left = auto) {
|
||||
.lib-css(left, @_dropdown-list-position-left);
|
||||
}
|
||||
|
||||
._lib-dropdown-list-position(
|
||||
@_dropdown-list-position-top,
|
||||
@_dropdown-list-position-bottom,
|
||||
@_dropdown-list-position-left,
|
||||
@_dropdown-list-position-right
|
||||
) when not (@_dropdown-list-position-right = false) and not (@_dropdown-list-position-right = auto) {
|
||||
.lib-css(right, @_dropdown-list-position-right);
|
||||
}
|
||||
|
||||
//
|
||||
// Simple dropdown icon
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-dropdown-icon(
|
||||
@_dropdown-toggle-icon-content,
|
||||
@_dropdown-toggle-active-icon-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-color-hover,
|
||||
@_icon-font-color-active,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align,
|
||||
@_icon-font-position,
|
||||
@_icon-font-text-hide
|
||||
) {
|
||||
.lib-icon-font(
|
||||
@_icon-font-content: @_dropdown-toggle-icon-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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
|
||||
&.active {
|
||||
.lib-icon-font(
|
||||
@_icon-font-content: @_dropdown-toggle-active-icon-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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Split dropdowns
|
||||
// ---------------------------------------------
|
||||
|
||||
// Split dropdown icon
|
||||
._lib-dropdown-split-icon(
|
||||
@_dropdown-toggle-icon-content,
|
||||
@_dropdown-toggle-active-icon-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-color-hover,
|
||||
@_icon-font-color-active,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align,
|
||||
@_icon-font-position,
|
||||
@_icon-font-text-hide
|
||||
) {
|
||||
.lib-button-icon(
|
||||
@_icon-font-content: @_dropdown-toggle-icon-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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
|
||||
&.active {
|
||||
.lib-button-icon(
|
||||
@_icon-font-content: @_dropdown-toggle-active-icon-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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Split dropdown toggle position = left
|
||||
._lib-dropdown-split-toggle-position(
|
||||
@_button-selector,
|
||||
@_toggle-selector,
|
||||
@_dropdown-split-toggle-position,
|
||||
@_dropdown-split-button-border-radius-fix
|
||||
) when (@_dropdown-split-toggle-position = left) {
|
||||
@{_button-selector} {
|
||||
float: right;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@{_toggle-selector} {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Split dropdown toggle position = right
|
||||
._lib-dropdown-split-toggle-position(
|
||||
@_button-selector,
|
||||
@_toggle-selector,
|
||||
@_dropdown-split-toggle-position,
|
||||
@_dropdown-split-button-border-radius-fix
|
||||
) when (@_dropdown-split-toggle-position = right) {
|
||||
@{_button-selector} {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@{_toggle-selector} {
|
||||
float: right;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Split dropdown toggle position = right
|
||||
// and
|
||||
// Dropdown-split-button-border-radius-fix = true
|
||||
|
||||
._lib-dropdown-split-toggle-position(
|
||||
@_button-selector,
|
||||
@_toggle-selector,
|
||||
@_dropdown-split-toggle-position,
|
||||
@_dropdown-split-button-border-radius-fix
|
||||
) when (@_dropdown-split-toggle-position = right) and (@_dropdown-split-button-border-radius-fix = true) {
|
||||
button@{_button-selector} {
|
||||
border-bottom-right-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
button + @{_toggle-selector} {
|
||||
border-bottom-left-radius: 0;
|
||||
border-left: 0;
|
||||
border-top-left-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Split dropdown toggle position = left
|
||||
// and
|
||||
// Dropdown-split-button-border-radius-fix = true
|
||||
|
||||
._lib-dropdown-split-toggle-position(
|
||||
@_button-selector,
|
||||
@_toggle-selector,
|
||||
@_dropdown-split-toggle-position,
|
||||
@_dropdown-split-button-border-radius-fix
|
||||
) when (@_dropdown-split-toggle-position = left) and (@_dropdown-split-button-border-radius-fix = true) {
|
||||
button@{_button-selector} {
|
||||
border-bottom-left-radius: 0;
|
||||
border-top-left-radius: 0;
|
||||
}
|
||||
|
||||
button + @{_toggle-selector} {
|
||||
border-bottom-right-radius: 0;
|
||||
border-right: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Dropdown show pointer
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-dropdown-list-pointer(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
) when (@_dropdown-list-pointer = true) {
|
||||
._lib-dropdown-pointer(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
);
|
||||
}
|
||||
|
||||
._lib-dropdown-pointer(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
) when (@_dropdown-list-pointer-position = left) {
|
||||
._lib-dropdown-pointer-default(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border
|
||||
);
|
||||
|
||||
&:before {
|
||||
.lib-css(left, @_dropdown-list-pointer-position-left-right);
|
||||
.lib-css(top, @_dropdown-list-pointer-position-top);
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(left, @_dropdown-list-pointer-position-left-right - 1);
|
||||
.lib-css(top, @_dropdown-list-pointer-position-top - 2);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-dropdown-pointer(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border,
|
||||
@_dropdown-list-pointer-position,
|
||||
@_dropdown-list-pointer-position-top,
|
||||
@_dropdown-list-pointer-position-left-right
|
||||
) when (@_dropdown-list-pointer-position = right) {
|
||||
._lib-dropdown-pointer-default(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border
|
||||
);
|
||||
|
||||
&:before {
|
||||
.lib-css(right, @_dropdown-list-pointer-position-left-right);
|
||||
.lib-css(top, @_dropdown-list-pointer-position-top);
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(right, @_dropdown-list-pointer-position-left-right - 1);
|
||||
.lib-css(top, @_dropdown-list-pointer-position-top - 2);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-dropdown-pointer-default(
|
||||
@_dropdown-list-background,
|
||||
@_dropdown-list-pointer-border
|
||||
) {
|
||||
&:before,
|
||||
&:after {
|
||||
border-bottom-style: solid;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border: 6px solid;
|
||||
.lib-css(border-color, transparent transparent @_dropdown-list-background transparent);
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
&:after {
|
||||
border: 7px solid;
|
||||
.lib-css(border-color, transparent transparent @_dropdown-list-pointer-border transparent);
|
||||
z-index: 98;
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown list item border != 0
|
||||
._lib-dropdown-list-item-border(
|
||||
@_dropdown-list-item-border
|
||||
) when not (@_dropdown-list-item-border = 0) and not (@_dropdown-list-item-border = false) and not (@_dropdown-list-item-border = '') {
|
||||
.lib-css(border-top, @_dropdown-list-item-border);
|
||||
|
||||
&:first-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown list shadow
|
||||
._lib-dropdown-list-shadow(
|
||||
@_dropdown-list-shadow
|
||||
) when not (@_dropdown-list-shadow = '') and not (@_dropdown-list-shadow = none) {
|
||||
.lib-css(box-shadow, @_dropdown-list-shadow);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,247 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Grid mixins
|
||||
// _____________________________________________
|
||||
|
||||
// You shouldn't need to touch this! Internal use only.
|
||||
@column-width: 1;
|
||||
@total-columns: 1;
|
||||
@gutter-width: 1;
|
||||
@grid-width: (@column-width*@total-columns) + (@gutter-width*(@total-columns - 1));
|
||||
|
||||
.lib-column-wrapper() {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.lib-inline-column-wrapper() when not (@using-ieclasses) {
|
||||
letter-spacing: -.31em;
|
||||
*letter-spacing: normal;
|
||||
word-spacing: -.43em;
|
||||
}
|
||||
|
||||
.lib-inline-column-wrapper() when (@using-ieclasses) {
|
||||
letter-spacing: -.31em;
|
||||
word-spacing: -.43em;
|
||||
}
|
||||
|
||||
.lib-column() {
|
||||
float: left;
|
||||
.lib-column-gutter();
|
||||
}
|
||||
|
||||
.lib-column(@span) when (@span = false) {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.lib-column(
|
||||
@span,
|
||||
@total-columns: @total-columns,
|
||||
@end-column: false
|
||||
) when (isnumber(@span)) and (isnumber(@total-columns)) and not (isnumber(@end-column)) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-column(@showgutter);
|
||||
.lib-span(@span, @total-columns);
|
||||
}
|
||||
|
||||
.lib-column(
|
||||
@span,
|
||||
@total-columns: @total-columns,
|
||||
@end-column: false
|
||||
) when (isnumber(@span)) and (isnumber(@total-columns)) and (@end-column = true) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-column(@showgutter);
|
||||
.lib-span(
|
||||
@span,
|
||||
@total-columns
|
||||
);
|
||||
.lib-end-column();
|
||||
}
|
||||
|
||||
.lib-column(
|
||||
@span,
|
||||
@end-column
|
||||
) when (isnumber(@span)) and not (isnumber(@end-column)) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-column(@showgutter);
|
||||
.lib-span(@span);
|
||||
}
|
||||
|
||||
.lib-column(
|
||||
@span,
|
||||
@end-column
|
||||
) when (isnumber(@span)) and ( @end-column = true ) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-column(@showgutter);
|
||||
.lib-span(@span);
|
||||
.lib-end-column();
|
||||
}
|
||||
|
||||
.lib-inline-column() {
|
||||
.lib-column-gutter();
|
||||
display: inline-block;
|
||||
letter-spacing: normal;
|
||||
vertical-align: top;
|
||||
word-spacing: normal;
|
||||
}
|
||||
|
||||
.lib-inline-column(@span) when (@span = false) {
|
||||
display: inline-block;
|
||||
letter-spacing: normal;
|
||||
vertical-align: top;
|
||||
word-spacing: normal;
|
||||
}
|
||||
|
||||
.lib-inline-column(
|
||||
@span,
|
||||
@total-columns: @total-columns,
|
||||
@end-column: false
|
||||
) when (isnumber(@span)) and (isnumber(@total-columns)) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-inline-column(@showgutter);
|
||||
.lib-span(
|
||||
@span,
|
||||
@total-columns
|
||||
);
|
||||
}
|
||||
|
||||
.lib-inline-column(
|
||||
@span,
|
||||
@total-columns: @total-columns,
|
||||
@end-column: false
|
||||
) when (isnumber(@span)) and (@end-column = true) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-inline-column(@showgutter);
|
||||
.lib-span(
|
||||
@span,
|
||||
@total-columns
|
||||
);
|
||||
.lib-inline-end-column();
|
||||
}
|
||||
|
||||
.lib-inline-column(
|
||||
@span,
|
||||
@end-column
|
||||
) when not (isnumber(@end-column)) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-inline-column(@showgutter);
|
||||
.lib-span(@span);
|
||||
}
|
||||
|
||||
.lib-inline-column(
|
||||
@span,
|
||||
@end-column
|
||||
) when (@end-column = true) {
|
||||
@showgutter: false;
|
||||
|
||||
.lib-inline-column(@showgutter);
|
||||
.lib-span(@span);
|
||||
.lib-inline-end-column();
|
||||
}
|
||||
|
||||
.lib-end-column() {
|
||||
margin-right: 0;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.lib-inline-end-column() {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.lib-span(@span) {
|
||||
.lib-column-width(
|
||||
@span,
|
||||
@total-columns
|
||||
);
|
||||
}
|
||||
|
||||
.lib-span(
|
||||
@span,
|
||||
@total-columns
|
||||
) when (isnumber(@total-columns)) {
|
||||
.lib-column-width(
|
||||
@span,
|
||||
@total-columns
|
||||
);
|
||||
.lib-column-gutter(@total-columns);
|
||||
}
|
||||
|
||||
.lib-pre-pad(
|
||||
@span,
|
||||
@total-columns: @total-columns
|
||||
) {
|
||||
@calc-column-width: 100%*((((@gutter-width+@column-width)*@span)) / @grid-width);
|
||||
|
||||
.lib-css(padding-left, @calc-column-width);
|
||||
}
|
||||
|
||||
.lib-post-pad(
|
||||
@span,
|
||||
@total-columns: @total-columns
|
||||
) {
|
||||
@calc-column-width: 100%*((((@gutter-width+@column-width)*@span)) / @grid-width);
|
||||
|
||||
.lib-css(padding-right, @calc-column-width);
|
||||
}
|
||||
|
||||
.lib-pre-push(
|
||||
@span,
|
||||
@total-columns: @total-columns
|
||||
) {
|
||||
@calc-column-width: 100%*((((@gutter-width+@column-width)*@span)) / @grid-width);
|
||||
|
||||
.lib-css(margin-left, @calc-column-width);
|
||||
}
|
||||
|
||||
.lib-post-push(
|
||||
@span,
|
||||
@total-columns: @total-columns
|
||||
) {
|
||||
@calc-column-width: 100%*((((@gutter-width+@column-width)*@span)+@gutter-width) / @grid-width);
|
||||
|
||||
.lib-css(margin-right, @calc-column-width);
|
||||
}
|
||||
|
||||
.lib-post-push-end(
|
||||
@span,
|
||||
@total-columns: @total-columns
|
||||
) {
|
||||
@calc-column-width: 100%*((((@gutter-width+@column-width)*@span)) / @grid-width);
|
||||
|
||||
.lib-css(margin-right, @calc-column-width);
|
||||
}
|
||||
|
||||
.lib-column-width(
|
||||
@span,
|
||||
@total-columns: @total-columns
|
||||
) {
|
||||
@calc-column-width: 100%*((((@gutter-width+@column-width)*@span)-@gutter-width) / @grid-width);
|
||||
|
||||
.lib-css(width, @calc-column-width);
|
||||
}
|
||||
|
||||
.lib-column-gutter(
|
||||
@total-columns: @total-columns,
|
||||
@end-column: false
|
||||
) when (@end-column) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.lib-column-gutter(
|
||||
@total-columns: @total-columns,
|
||||
@end-column: false
|
||||
) when not (@end-column) {
|
||||
@calc-gutter-width: 100%*(@gutter-width/@grid-width);
|
||||
|
||||
.lib-css(margin-right, @calc-gutter-width);
|
||||
}
|
||||
@@ -0,0 +1,378 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Icons
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Icons using font
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-icon-font(
|
||||
@_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-color-hover: @icon-font__color-hover,
|
||||
@_icon-font-color-active: @icon-font__color-active,
|
||||
@_icon-font-margin: @icon-font__margin,
|
||||
@_icon-font-vertical-align: @icon-font__vertical-align,
|
||||
@_icon-font-position: @icon-font__position,
|
||||
@_icon-font-text-hide: @icon-font__text-hide,
|
||||
@_icon-font-display: @icon-font__display
|
||||
) when (@_icon-font-position = before) {
|
||||
.lib-css(display, @_icon-font-display);
|
||||
text-decoration: none;
|
||||
|
||||
& when not (@_icon-font-content = false) {
|
||||
._lib-icon-text-hide(@_icon-font-text-hide);
|
||||
}
|
||||
|
||||
&:before {
|
||||
._lib-icon-font(
|
||||
@_icon-font-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align
|
||||
);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:before {
|
||||
.lib-css(color, @_icon-font-color-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:before {
|
||||
.lib-css(color, @_icon-font-color-active);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-font(
|
||||
@_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-color-hover: @icon-font__color-hover,
|
||||
@_icon-font-color-active: @icon-font__color-active,
|
||||
@_icon-font-margin: @icon-font__margin,
|
||||
@_icon-font-vertical-align: @icon-font__vertical-align,
|
||||
@_icon-font-position: @icon-font__position,
|
||||
@_icon-font-text-hide: @icon-font__text-hide,
|
||||
@_icon-font-display: @icon-font__display
|
||||
) when (@_icon-font-position = after) {
|
||||
.lib-css(display, @_icon-font-display);
|
||||
text-decoration: none;
|
||||
|
||||
& when not (@_icon-font-content = false) {
|
||||
._lib-icon-text-hide(@_icon-font-text-hide);
|
||||
}
|
||||
|
||||
&:after {
|
||||
._lib-icon-font(
|
||||
@_icon-font-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align
|
||||
);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:after {
|
||||
.lib-css(color, @_icon-font-color-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:after {
|
||||
.lib-css(color, @_icon-font-color-active);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-font-size(
|
||||
@_icon-font-size: @icon-font__size,
|
||||
@_icon-font-line-height: @icon-font__line-height,
|
||||
@_icon-font-position: @icon-font__position
|
||||
) when (@_icon-font-position = before) {
|
||||
&:before {
|
||||
._lib-icon-font-size(@_icon-font-size, @_icon-font-line-height);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-font-size(
|
||||
@_icon-font-size: @icon-font__size,
|
||||
@_icon-font-line-height: @icon-font__line-height,
|
||||
@_icon-font-position: @icon-font__position
|
||||
) when (@_icon-font-position = after) {
|
||||
&:after {
|
||||
._lib-icon-font-size(@_icon-font-size, @_icon-font-line-height);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-font-symbol(
|
||||
@_icon-font-content,
|
||||
@_icon-font-position: @icon-font__position
|
||||
) when (@_icon-font-position = before) {
|
||||
&:before {
|
||||
.lib-css(content, @_icon-font-content);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-font-symbol(
|
||||
@_icon-font-content,
|
||||
@_icon-font-position: @icon-font__position
|
||||
) when (@_icon-font-position = after) {
|
||||
&:after {
|
||||
.lib-css(content, @_icon-font-content);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Icons using image or sprite
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-icon-image(
|
||||
@_icon-image,
|
||||
@_icon-image-width: @icon__width,
|
||||
@_icon-image-height: @icon__height,
|
||||
@_icon-image-margin: @icon__margin,
|
||||
@_icon-image-vertical-align: @icon__vertical-align,
|
||||
@_icon-image-position-x: @icon-image__position-x,
|
||||
@_icon-image-position-y: @icon-image__position-y,
|
||||
@_icon-image-position: @icon__position,
|
||||
@_icon-image-text-hide: @icon__text-hide
|
||||
) when (@_icon-image-position = before) {
|
||||
display: inline-block;
|
||||
|
||||
& when not (@_icon-image = false) {
|
||||
._lib-icon-text-hide(@_icon-image-text-hide);
|
||||
}
|
||||
|
||||
&:before {
|
||||
._lib-icon-image(
|
||||
@_icon-image,
|
||||
@_icon-image-width,
|
||||
@_icon-image-height,
|
||||
@_icon-image-margin,
|
||||
@_icon-image-vertical-align,
|
||||
@_icon-image-position-x,
|
||||
@_icon-image-position-y
|
||||
);
|
||||
.lib-css(margin, @_icon-image-margin);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-image(
|
||||
@_icon-image,
|
||||
@_icon-image-width: @icon__width,
|
||||
@_icon-image-height: @icon__height,
|
||||
@_icon-image-margin: @icon__margin,
|
||||
@_icon-image-vertical-align: @icon__vertical-align,
|
||||
@_icon-image-position-x: @icon-image__position-x,
|
||||
@_icon-image-position-y: @icon-image__position-y,
|
||||
@_icon-image-position: @icon__position,
|
||||
@_icon-image-text-hide: @icon__text-hide
|
||||
) when (@_icon-image-position = after) {
|
||||
display: inline-block;
|
||||
|
||||
& when not (@_icon-image = false) {
|
||||
._lib-icon-text-hide(@_icon-image-text-hide);
|
||||
}
|
||||
|
||||
&:after {
|
||||
._lib-icon-image(
|
||||
@_icon-image,
|
||||
@_icon-image-width,
|
||||
@_icon-image-height,
|
||||
@_icon-image-margin,
|
||||
@_icon-image-vertical-align,
|
||||
@_icon-image-position-x,
|
||||
@_icon-image-position-y
|
||||
);
|
||||
.lib-css(margin, @_icon-image-margin);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-image-position(
|
||||
@_icon-image-position-x: @icon-image__position-x,
|
||||
@_icon-image-position-y: @icon-image__position-y,
|
||||
@_icon-image-position: @icon__position
|
||||
) when (@_icon-image-position = before) {
|
||||
&:before {
|
||||
._lib-icon-image-position(
|
||||
@_icon-image-position-x,
|
||||
@_icon-image-position-y
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-image-position(
|
||||
@_icon-image-position-x: @icon-image__position-x,
|
||||
@_icon-image-position-y: @icon-image__position-y,
|
||||
@_icon-image-position: @icon__position
|
||||
) when (@_icon-image-position = after) {
|
||||
&:after {
|
||||
._lib-icon-image-position(
|
||||
@_icon-image-position-x,
|
||||
@_icon-image-position-y
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-sprite-position(
|
||||
@_icon-sprite-position-x: @icon-sprite__position-x,
|
||||
@_icon-sprite-position-y: @icon-sprite__position-y,
|
||||
@_icon-sprite-grid: @icon-sprite__grid,
|
||||
@_icon-sprite-position: @icon__position
|
||||
) when (@_icon-sprite-position = before) {
|
||||
&:before {
|
||||
._lib-icon-sprite-position(
|
||||
@_icon-sprite-position-x,
|
||||
@_icon-sprite-position-y,
|
||||
@_icon-sprite-grid
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-sprite-position(
|
||||
@_icon-sprite-position-x: @icon-sprite__position-x,
|
||||
@_icon-sprite-position-y: @icon-sprite__position-y,
|
||||
@_icon-sprite-grid: @icon-sprite__grid,
|
||||
@_icon-sprite-position: @icon__position
|
||||
) when (@_icon-sprite-position = after) {
|
||||
&:after {
|
||||
._lib-icon-sprite-position(
|
||||
@_icon-sprite-position-x,
|
||||
@_icon-sprite-position-y,
|
||||
@_icon-sprite-grid
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-image-size(
|
||||
@_icon-image-width: @icon__width,
|
||||
@_icon-image-height: @icon__height,
|
||||
@_icon-image-position: @icon__position
|
||||
) when (@_icon-image-position = before) {
|
||||
&:before {
|
||||
._lib-icon-image-size(@_icon-image-width, @_icon-image-height);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-image-size(
|
||||
@_icon-image-width: @icon__width,
|
||||
@_icon-image-height: @icon__height,
|
||||
@_icon-image-position: @icon__position
|
||||
) when (@_icon-image-position = before) {
|
||||
&:after {
|
||||
._lib-icon-image-size(@_icon-image-width, @_icon-image-height);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-text-hide() {
|
||||
> span {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Internal use mixins
|
||||
// ---------------------------------------------
|
||||
|
||||
._lib-icon-text-hide(@_icon-text-hide) when (@_icon-text-hide = true) {
|
||||
.lib-icon-text-hide();
|
||||
}
|
||||
|
||||
._lib-icon-image-url(@_path) when not (@_path = false) {
|
||||
.lib-css(background-image, url(@_path));
|
||||
}
|
||||
|
||||
._lib-icon-image(
|
||||
@_icon-image,
|
||||
@_icon-image-width,
|
||||
@_icon-image-height,
|
||||
@_icon-image-margin,
|
||||
@_icon-image-vertical-align,
|
||||
@_icon-image-position-x,
|
||||
@_icon-image-position-y
|
||||
) {
|
||||
._lib-icon-image-url(@_icon-image);
|
||||
.lib-css(background-position-x, @_icon-image-position-x);
|
||||
.lib-css(background-position-y, @_icon-image-position-y);
|
||||
.lib-css(line-height, @_icon-image-height);
|
||||
.lib-css(margin, @_icon-image-margin);
|
||||
.lib-css(vertical-align, @_icon-image-vertical-align);
|
||||
._lib-icon-image-size(
|
||||
@_icon-image-width,
|
||||
@_icon-image-height
|
||||
);
|
||||
background-repeat: no-repeat;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
._lib-icon-image-position(
|
||||
@_icon-image-position-x,
|
||||
@_icon-image-position-y
|
||||
) {
|
||||
.lib-css(background-position, @_icon-image-position-x @_icon-image-position-y);
|
||||
}
|
||||
|
||||
._lib-icon-image-size(
|
||||
@icon__width,
|
||||
@icon__height
|
||||
) {
|
||||
.lib-css(height, @icon__height);
|
||||
.lib-css(width, @icon__width);
|
||||
}
|
||||
|
||||
._lib-icon-sprite-position(
|
||||
@_icon-sprite-position-x,
|
||||
@_icon-sprite-position-y,
|
||||
@_icon-sprite-grid
|
||||
) {
|
||||
.lib-css(background-position, -(@_icon-sprite-position-x*@_icon-sprite-grid) -(@_icon-sprite-position-y*@_icon-sprite-grid));
|
||||
}
|
||||
|
||||
._lib-icon-font(
|
||||
@_icon-font-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align
|
||||
) {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
._lib-icon-font-size(@_icon-font-size, @_icon-font-line-height);
|
||||
.lib-css(color, @_icon-font-color);
|
||||
.lib-css(content, @_icon-font-content);
|
||||
.lib-css(font-family, @_icon-font);
|
||||
.lib-css(margin, @_icon-font-margin);
|
||||
.lib-css(vertical-align, @_icon-font-vertical-align);
|
||||
display: inline-block;
|
||||
font-weight: normal;
|
||||
overflow: hidden;
|
||||
speak: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
._lib-icon-font-size(@_icon-font-size, @_icon-font-line-height) {
|
||||
.lib-css(font-size, @_icon-font-size);
|
||||
.lib-css(line-height, @_icon-font-line-height);
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Layout
|
||||
// _____________________________________________
|
||||
|
||||
// Page Width mixin
|
||||
.lib-layout-width(
|
||||
@_layout__min-width: @layout__min-width,
|
||||
@_layout__max-width: @layout__max-width,
|
||||
@_layout__indent: @layout-indent__width
|
||||
) when not (@responsive = true) {
|
||||
._lib-layout-width(@_layout__min-width, @_layout__max-width);
|
||||
.lib-css(padding-left, @layout-indent__width);
|
||||
.lib-css(padding-right, @layout-indent__width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
._lib-layout-width(
|
||||
@_layout__min-width: @layout__min-width,
|
||||
@_layout__max-width: @layout__max-width
|
||||
) when (@_layout__min-width = @_layout__max-width) {
|
||||
.lib-css(width, @_layout__min-width);
|
||||
}
|
||||
|
||||
._lib-layout-width(
|
||||
@_layout__min-width: @layout__min-width,
|
||||
@_layout__max-width: @layout__max-width
|
||||
) when not (@_layout__min-width = @_layout__max-width) {
|
||||
.lib-css(max-width, @_layout__max-width);
|
||||
.lib-css(min-width, @_layout__min-width);
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#lib-layout-columns() {
|
||||
& when (@use-flex = true) {
|
||||
.lib-vendor-prefix-display(flex);
|
||||
.lib-vendor-prefix-flex-wrap(wrap);
|
||||
box-sizing: border-box;
|
||||
};
|
||||
&:after {
|
||||
clear: both;
|
||||
content: ' ';
|
||||
display: block;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
}
|
||||
.main() {
|
||||
.@{layout-class-1column} & {
|
||||
.lib-layout-column(1, 2, 100%);
|
||||
}
|
||||
.@{layout-class-3columns} & {
|
||||
.lib-layout-column(3, 2, @layout-column-main__width-3);
|
||||
}
|
||||
.@{layout-class-2columns__left} & {
|
||||
.lib-layout-column(2, 2, @layout-column-main__width-2-left);
|
||||
}
|
||||
.@{layout-class-2columns__right} & {
|
||||
.lib-layout-column(2, 1, @layout-column-main__width-2-right);
|
||||
}
|
||||
}
|
||||
|
||||
.left() {
|
||||
.@{layout-class-3columns} & {
|
||||
.lib-layout-column(3, 1, @layout-column__left-width);
|
||||
}
|
||||
.@{layout-class-2columns__left} & {
|
||||
.lib-layout-column(2, 1, @layout-column__left-width);
|
||||
}
|
||||
.@{layout-class-2columns__right} & {
|
||||
.lib-layout-column(2, 1, @layout-column__left-width);
|
||||
}
|
||||
}
|
||||
|
||||
.right() {
|
||||
.@{layout-class-3columns} & {
|
||||
.lib-layout-column(3, 3, @layout-column__right-width);
|
||||
}
|
||||
.@{layout-class-2columns__left} & {
|
||||
.lib-layout-column(2, 2, @layout-column__right-width);
|
||||
}
|
||||
.@{layout-class-2columns__right} & {
|
||||
.lib-layout-column(2, 2, @layout-column__right-width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
._lib-column-width(@_width, @_check, @_index) when (@_check = false) and (@_index = 1) {
|
||||
.lib-column-width(@_width);
|
||||
}
|
||||
|
||||
._lib-column-width(@_width, @_check, @_index) when (@_check = true), (@_width = auto) {
|
||||
.lib-css(width, @_width);
|
||||
@_index: 1;
|
||||
}
|
||||
|
||||
._lib-set-column-width(@_index, @_width) when (@_index > 0) {
|
||||
@_checkUnit: isunit(@_width, extract(@_units, @_index));
|
||||
._lib-column-width(@_width, @_checkUnit, @_index);
|
||||
._lib-set-column-width(@_index - 1, @_width);
|
||||
}
|
||||
|
||||
.lib-layout-column(@_total-columns, @_order, @_width) {
|
||||
@_units: "px","%","em","rem","pt";
|
||||
._lib-set-column-width(length(@_units), @_width);
|
||||
.lib-flex-degradation(@_total-columns, @_order);
|
||||
& when (@use-flex = true) {
|
||||
.lib-vendor-prefix-order(@_order);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-flex-degradation(@_total-columns, @_order) when (@_order = 1) {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.lib-flex-degradation(@_total-columns, @_order) when (@_order = @_total-columns) {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.lib-flex-degradation(@_total-columns, @_order) when (@_total-columns = 3) and (@_order = 2) {
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Global lib
|
||||
// _____________________________________________
|
||||
|
||||
@import '_actions-toolbar.less';
|
||||
@import '_breadcrumbs.less';
|
||||
@import '_buttons.less';
|
||||
@import '_dropdowns.less';
|
||||
@import '_forms.less';
|
||||
@import '_grids.less';
|
||||
@import '_icons.less';
|
||||
@import '_layout.less';
|
||||
@import '_loaders.less';
|
||||
@import '_messages.less';
|
||||
@import '_navigation.less';
|
||||
@import '_pages.less';
|
||||
@import '_popups.less';
|
||||
@import '_rating.less';
|
||||
@import '_resets.less';
|
||||
@import '_sections.less';
|
||||
@import '_tables.less';
|
||||
@import '_tooltips.less';
|
||||
@import '_typography.less';
|
||||
@import '_utilities.less';
|
||||
@import '_variables.less';
|
||||
@@ -0,0 +1,96 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Loaders
|
||||
// _____________________________________________
|
||||
|
||||
.lib-loader(
|
||||
@_loader-overlay-background-color: @loader-overlay__background-color,
|
||||
@_loader-overlay-z-index: @loader-overlay__z-index,
|
||||
@_loader-icon-width: @loader-icon__width,
|
||||
@_loader-icon-height: @loader-icon__height,
|
||||
@_loader-icon-background-color: @loader-icon__background-color,
|
||||
@_loader-icon-background-image: @loader-icon__background-image,
|
||||
@_loader-icon-background-position: @loader-icon__background-position,
|
||||
@_loader-icon-border-radius: @loader-icon__border-radius,
|
||||
@_loader-icon-padding: @loader-icon__padding,
|
||||
@_loader-text: @loader-text,
|
||||
@_loader-text-color: @loader-text__color,
|
||||
@_loader-text-font-size: @loader-text__font-size,
|
||||
@_loader-text-font-family: @loader-text__font-family,
|
||||
@_loader-text-font-weight: @loader-text__font-weight,
|
||||
@_loader-text-font-style: @loader-text__font-style,
|
||||
@_loader-text-padding: @loader-text__padding
|
||||
) {
|
||||
.lib-css(background-color, @_loader-overlay-background-color);
|
||||
.lib-css(z-index, @_loader-overlay-z-index);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
||||
&:before {
|
||||
._lib-loader-text(@_loader-text);
|
||||
.lib-css(background, @_loader-icon-background-color @_loader-icon-background-image no-repeat @_loader-icon-background-position);
|
||||
.lib-css(border-radius, @_loader-icon-border-radius);
|
||||
.lib-css(height, @_loader-icon-height);
|
||||
.lib-css(padding, @_loader-icon-padding);
|
||||
.lib-css(width, @_loader-icon-width);
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
content: '';
|
||||
left: 0;
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-loader-text(
|
||||
@_loader-text
|
||||
) when (@_loader-text = true) {
|
||||
.lib-css(padding, @_loader-text-padding);
|
||||
content: attr(data-text);
|
||||
text-align: center;
|
||||
vertical-align: baseline;
|
||||
|
||||
.lib-typography(
|
||||
@_color: @_loader-text-color,
|
||||
@_font-size: @_loader-text-font-size,
|
||||
@_font-family: @_loader-text-font-family,
|
||||
@_font-weight: @_loader-text-font-weight,
|
||||
@_font-style: @_loader-text-font-style
|
||||
);
|
||||
}
|
||||
|
||||
.lib-loading(
|
||||
@_loading-background-color: @loading__background-color,
|
||||
@_loading-background-image: @loading__background-image
|
||||
) {
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
.lib-css(background, @_loading-background-color @_loading-background-image no-repeat 50% 50%);
|
||||
bottom: 0;
|
||||
content: '';
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-loading-mask() {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
@@ -0,0 +1,281 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Messages
|
||||
// _____________________________________________
|
||||
|
||||
.lib-message(@_message-type: info) {
|
||||
@_message-background: "message-@{_message-type}__background";
|
||||
@_message-border-color: "message-@{_message-type}__border-color";
|
||||
@_message-color: "message-@{_message-type}__color";
|
||||
@_message-link-color: "message-@{_message-type}-link__color";
|
||||
@_message-link-color-hover: "message-@{_message-type}-link__color-hover";
|
||||
@_message-link-color-active: "message-@{_message-type}-link__color-active";
|
||||
@_message-icon-top: "message-@{_message-type}-icon__top";
|
||||
@_message-icon-right: "message-@{_message-type}-icon__right";
|
||||
@_message-icon-bottom: "message-@{_message-type}-icon__bottom";
|
||||
@_message-icon-left: "message-@{_message-type}-icon__left";
|
||||
._lib-message();
|
||||
._lib-message-style(
|
||||
@_message-color: @@_message-color,
|
||||
@_message-background: @@_message-background,
|
||||
@_message-link-color: @@_message-link-color,
|
||||
@_message-link-color-hover: @@_message-link-color-hover,
|
||||
@_message-link-color-active: @@_message-link-color-active,
|
||||
@_message-border-color: @@_message-border-color
|
||||
);
|
||||
}
|
||||
|
||||
._lib-message(
|
||||
@_message-padding: @message__padding,
|
||||
@_message-margin: @message__margin,
|
||||
@_message-border-radius: @message__border-radius
|
||||
) {
|
||||
.lib-css(border-radius, @_message-border-radius);
|
||||
.lib-css(margin, @_message-margin);
|
||||
.lib-css(padding, @_message-padding);
|
||||
display: block;
|
||||
.lib-typography(
|
||||
@_color: @message__color,
|
||||
@_font-size: @message__font-size,
|
||||
@_font-family: @message__font-family,
|
||||
@_font-weight: @message__font-weight,
|
||||
@_font-style: @message__font-style,
|
||||
@_line-height: @message__line-height
|
||||
);
|
||||
._lib-message-border(@message__border-width, @message__border-style);
|
||||
}
|
||||
|
||||
._lib-message-style(
|
||||
@_message-background: @message-info__background,
|
||||
@_message-color: @message-info__color,
|
||||
@_message-link-color: @message-info-link__color,
|
||||
@_message-link-color-hover: @message-info-link__color-hover,
|
||||
@_message-link-color-active: @message-info-link__color-active,
|
||||
@_message-border-color: @message-info__border-color
|
||||
) {
|
||||
.lib-css(background, @_message-background);
|
||||
.lib-css(border-color, @_message-border-color);
|
||||
.lib-css(color, @_message-color);
|
||||
|
||||
a {
|
||||
.lib-css(color, @_message-link-color);
|
||||
|
||||
&:hover {
|
||||
.lib-css(color, @_message-link-color-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
.lib-css(color, @_message-link-color-active);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
._lib-message-border(
|
||||
@_message-border-width: @message__border-width,
|
||||
@_message-border-style: @message__border-style
|
||||
) when not (@_message-border-width = 0)
|
||||
and not (@_message-border-width = false)
|
||||
and not (@_message-border-style = false) {
|
||||
.lib-css(border, @_message-border-width @_message-border-style);
|
||||
}
|
||||
|
||||
// Messages with lateral icon
|
||||
.lib-message-icon-lateral(@_message-type: info, @_message-position: right) {
|
||||
.lib-message(@_message-type);
|
||||
@_message-icon-position: @_message-position;
|
||||
@_message-icon: "message-@{_message-type}-icon";
|
||||
@_message-icon-color: "message-@{_message-type}-icon__color-lateral";
|
||||
@_message-icon-background: "message-@{_message-type}-icon__background";
|
||||
@_message-icon-top: "message-@{_message-type}-icon__top";
|
||||
@_message-icon-right: "message-@{_message-type}-icon__right";
|
||||
@_message-icon-bottom: "message-@{_message-type}-icon__bottom";
|
||||
@_message-icon-left: "message-@{_message-type}-icon__left";
|
||||
._lib-message-icon-lateral(
|
||||
@_message-icon-position,
|
||||
@@_message-icon,
|
||||
@@_message-icon-color,
|
||||
@@_message-icon-background,
|
||||
@@_message-icon-top,
|
||||
@@_message-icon-left,
|
||||
@@_message-icon-bottom,
|
||||
@@_message-icon-right
|
||||
);
|
||||
}
|
||||
|
||||
// Messages with inner icon
|
||||
.lib-message-icon-inner(@_message-type: info) {
|
||||
.lib-message(@_message-type);
|
||||
@_message-icon: "message-@{_message-type}-icon";
|
||||
@_message-icon-color: "message-@{_message-type}-icon__color-inner";
|
||||
@_message-icon-background: "message-@{_message-type}-icon__background";
|
||||
@_message-icon-top: "message-@{_message-type}-icon__top";
|
||||
@_message-icon-right: "message-@{_message-type}-icon__right";
|
||||
@_message-icon-bottom: "message-@{_message-type}-icon__bottom";
|
||||
@_message-icon-left: "message-@{_message-type}-icon__left";
|
||||
._lib-message-icon-inner(
|
||||
@@_message-icon,
|
||||
@@_message-icon-color,
|
||||
@@_message-icon-background,
|
||||
@@_message-icon-top,
|
||||
@@_message-icon-left,
|
||||
@@_message-icon-bottom,
|
||||
@@_message-icon-right
|
||||
);
|
||||
}
|
||||
|
||||
// Private mixins
|
||||
._lib-message-icon-lateral(
|
||||
@_message-icon-position,
|
||||
@_message-icon,
|
||||
@_message-icon-color,
|
||||
@_message-icon-background,
|
||||
@_message-icon-top,
|
||||
@_message-icon-left,
|
||||
@_message-icon-bottom,
|
||||
@_message-icon-right
|
||||
) {
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
.lib-css(background, @_message-icon-background);
|
||||
.lib-css(width, @message-icon__lateral-width);
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
&:before {
|
||||
.lib-css(margin-top, -@message-icon__lateral-arrow-size);
|
||||
content: '';
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
&:after {
|
||||
._lib-icon-font(
|
||||
@_icon-font-content: @_message-icon,
|
||||
@_icon-font: @icon-font,
|
||||
@_icon-font-size: @message-icon__font-size,
|
||||
@_icon-font-line-height: @message-icon__font-line-height,
|
||||
@_icon-font-color: @_message-icon-color,
|
||||
@_icon-font-margin: (-@message-icon__font-size/2) 0 0,
|
||||
@_icon-font-vertical-align: @icon-font__vertical-align
|
||||
);
|
||||
.lib-css(bottom, @_message-icon-bottom);
|
||||
.lib-css(left, @_message-icon-left);
|
||||
.lib-css(right, @_message-icon-right);
|
||||
.lib-css(top, @_message-icon-top);
|
||||
.lib-css(width, @message-icon__lateral-width);
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-message-icon-lateral-position(
|
||||
@_message-icon-position,
|
||||
@_message-icon-background
|
||||
);
|
||||
}
|
||||
|
||||
._lib-message-icon-lateral-position(
|
||||
@_message-icon-position,
|
||||
@_message-icon-background
|
||||
) when (@_message-icon-position = right) {
|
||||
.lib-css(padding-right, @message-icon__lateral-width + @indent__s);
|
||||
|
||||
&:before {
|
||||
right: 0;
|
||||
|
||||
._lib-message-icon-lateral-border-radius(@_message-icon-position);
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
&:before {
|
||||
.lib-arrow(left, @message-icon__lateral-arrow-size, @_message-icon-background);
|
||||
.lib-css(right, @message-icon__lateral-width);
|
||||
}
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
&:after {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
._lib-message-icon-lateral-position(
|
||||
@_message-icon-position,
|
||||
@_message-icon-background
|
||||
) when (@_message-icon-position = left) {
|
||||
.lib-css(padding-left, @message-icon__lateral-width + @indent__s);
|
||||
|
||||
&:before {
|
||||
left: 0;
|
||||
._lib-message-icon-lateral-border-radius(@_message-icon-position);
|
||||
}
|
||||
|
||||
> *:first-child:before {
|
||||
.lib-arrow(right, @message-icon__lateral-arrow-size, @_message-icon-background);
|
||||
.lib-css(left, @message-icon__lateral-width);
|
||||
}
|
||||
|
||||
> *:first-child:after {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-message-icon-lateral-border-radius(
|
||||
@_message-icon-position
|
||||
) when (@_message-icon-position = left) and not (@message__border-radius = false) and not (@message__border-width = false) {
|
||||
.lib-css(border-radius, (@message__border-radius - @message__border-width) 0 0 (@message__border-radius - @message__border-width));
|
||||
}
|
||||
|
||||
._lib-message-icon-lateral-border-radius(
|
||||
@_message-icon-position
|
||||
) when (@_message-icon-position = right) and not (@message__border-radius = false) and not (@message__border-width = false) {
|
||||
.lib-css(border-radius, 0 (@message__border-radius - @message__border-width) (@message__border-radius - @message__border-width) 0);
|
||||
}
|
||||
|
||||
._lib-message-icon-inner(
|
||||
@_message-icon,
|
||||
@_message-icon-color,
|
||||
@_message-icon-background,
|
||||
@_message-icon-top,
|
||||
@_message-icon-left,
|
||||
@_message-icon-bottom,
|
||||
@_message-icon-right
|
||||
) {
|
||||
.lib-css(padding-left, @message-icon__inner-padding-left);
|
||||
position: relative;
|
||||
|
||||
> *:first-child:before {
|
||||
._lib-icon-font(
|
||||
@_icon-font-content: @_message-icon,
|
||||
@_icon-font: @icon-font,
|
||||
@_icon-font-size: @message-icon__font-size,
|
||||
@_icon-font-line-height: @message-icon__font-line-height,
|
||||
@_icon-font-color: @_message-icon-color,
|
||||
@_icon-font-margin: (-@message-icon__font-size/2) 0 0,
|
||||
@_icon-font-vertical-align: @icon-font__vertical-align
|
||||
);
|
||||
.lib-css(bottom, @_message-icon-bottom);
|
||||
.lib-css(left, @_message-icon-left);
|
||||
.lib-css(right, @_message-icon-right);
|
||||
.lib-css(top, @_message-icon-top);
|
||||
.lib-css(width, @message-icon__inner-padding-left);
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,604 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Navigation
|
||||
// _____________________________________________
|
||||
|
||||
.lib-main-navigation(
|
||||
@_nav__indent-side: 15px,
|
||||
@_nav-background-color: @navigation__background,
|
||||
@_nav-border: @navigation__border,
|
||||
@_nav-level0-font-size: @navigation-level0-item__font-size,
|
||||
@_nav-level0-font-weight: @navigation-level0-item__font-weight,
|
||||
@_nav-level0-item-line-height: @navigation-level0-item__line-height,
|
||||
@_nav-level0-item-margin: @navigation-level0-item__margin,
|
||||
@_nav-level0-item-padding: @navigation-level0-item__padding,
|
||||
@_nav-level0-text-transform: @navigation-level0-item__text-transform,
|
||||
|
||||
@_nav-level0-item-background-color: @navigation-level0-item__background,
|
||||
@_nav-level0-item-border: @navigation-level0-item__border,
|
||||
@_nav-level0-item-color: @navigation-level0-item__color,
|
||||
@_nav-level0-item-text-decoration: @navigation-level0-item__text-decoration,
|
||||
|
||||
@_nav-level0-item-background-color-active: @navigation-level0-item__active__background,
|
||||
@_nav-level0-item__active__border-color: @navigation-level0-item__active__border-color,
|
||||
@_nav-level0-item__active__border-style: @navigation-level0-item__active__border-style,
|
||||
@_nav-level0-item__active__border-width: @navigation-level0-item__active__border-width,
|
||||
@_nav-level0-item-color-active: @navigation-level0-item__active__color,
|
||||
@_nav-level0-item-text-decoration-active: @navigation-level0-item__active__text-decoration,
|
||||
|
||||
@_submenu-background-color: @submenu__background,
|
||||
@_submenu-border: @submenu__border,
|
||||
@_submenu-font-size: @submenu__font-size,
|
||||
@_submenu-font-weight: @submenu__font-weight,
|
||||
@_submenu-line-height: @submenu-item__line-height,
|
||||
@_submenu-item__padding-top: @submenu__padding-top,
|
||||
@_submenu-item__padding-right: @submenu__padding-right,
|
||||
@_submenu-item__padding-bottom: @submenu__padding-bottom,
|
||||
@_submenu-item__padding-left: @submenu__padding-left,
|
||||
|
||||
@_submenu-item-background-color: @submenu-item__background,
|
||||
@_submenu-item-border: @submenu-item__border,
|
||||
@_submenu-item-color: @submenu-item__color,
|
||||
@_submenu-item-text-decoration: @submenu-item__text-decoration,
|
||||
|
||||
@_submenu-item-background-color-active: @submenu-item__active__background,
|
||||
@_submenu-item__active__border: @submenu-item__active__border,
|
||||
@_submenu-item__active__border-color: @submenu-item__active__border-color,
|
||||
@_submenu-item__active__border-style: @submenu-item__active__border-style,
|
||||
@_submenu-item__active__border-width: @submenu-item__active__border-width,
|
||||
@_submenu-item-color-active: @submenu-item__active__color,
|
||||
@_submenu-item-text-decoration-active: @submenu-item__active__text-decoration
|
||||
) {
|
||||
.navigation {
|
||||
.lib-css(background, @_nav-background-color);
|
||||
.lib-css(border, @_nav-border);
|
||||
box-sizing: border-box;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
.lib-css(padding-top, @_submenu-item__padding-top);
|
||||
.lib-css(padding-right, @_submenu-item__padding-right);
|
||||
.lib-css(padding-bottom, @_submenu-item__padding-bottom);
|
||||
.lib-css(padding-left, @_submenu-item__padding-left);
|
||||
}
|
||||
|
||||
a,
|
||||
a:hover {
|
||||
.lib-css(color, @_nav-level0-item-color);
|
||||
.lib-css(text-decoration, @_nav-level0-item-text-decoration);
|
||||
}
|
||||
|
||||
.level0 {
|
||||
.lib-css(border-top, @_nav-level0-item-border);
|
||||
.lib-font-size(@_nav-level0-font-size);
|
||||
|
||||
> .level-top {
|
||||
.lib-css(background, @_nav-level0-item-background-color);
|
||||
.lib-css(font-weight, @_nav-level0-font-weight);
|
||||
.lib-css(line-height, @_nav-level0-item-line-height);
|
||||
.lib-css(padding, @_nav-level0-item-padding);
|
||||
.lib-css(text-transform, @_nav-level0-text-transform);
|
||||
word-wrap: break-word;
|
||||
&:hover {
|
||||
.lib-css(color, @navigation-level0-item__hover__color);
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
.all-category {
|
||||
.ui-state-focus {
|
||||
.lib-css(background, @_nav-level0-item-background-color-active);
|
||||
.lib-css(border-color, @_nav-level0-item__active__border-color);
|
||||
.lib-css(border-style, @_nav-level0-item__active__border-style);
|
||||
.lib-css(border-width, @_nav-level0-item__active__border-width);
|
||||
.lib-css(color, @_nav-level0-item-color-active);
|
||||
.lib-css(padding-left, @_nav__indent-side - @_submenu-item__active__border);
|
||||
.lib-css(text-decoration, @_nav-level0-item-text-decoration-active);
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .level1 {
|
||||
.lib-css(font-weight, @font-weight__semibold);
|
||||
}
|
||||
|
||||
&.active,
|
||||
&.has-active { // ToDo UI: remove "has_active" here, when mobile navigation default open state is implemented
|
||||
> a:not(.ui-state-active) {
|
||||
.lib-css(background, @_nav-level0-item-background-color-active);
|
||||
.lib-css(border-color, @_nav-level0-item__active__border-color);
|
||||
.lib-css(border-style, @_nav-level0-item__active__border-style);
|
||||
.lib-css(border-width, @_nav-level0-item__active__border-width);
|
||||
.lib-css(color, @_nav-level0-item-color-active);
|
||||
.lib-css(text-decoration, @_nav-level0-item-text-decoration-active);
|
||||
|
||||
span:not(.ui-menu-icon) {
|
||||
.lib-css(margin-left, -@_submenu-item__active__border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.level0 {
|
||||
&:last-child {
|
||||
.lib-css(border-bottom, @_nav-level0-item-border);
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
> li {
|
||||
word-wrap: break-word;
|
||||
> a {
|
||||
&:hover {
|
||||
.lib-css(color, @navigation-level0-item__hover__color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:first-child) {
|
||||
.lib-css(background, @_submenu-background-color);
|
||||
.lib-css(border, @_submenu-border);
|
||||
.lib-css(font-size, @_submenu-font-size);
|
||||
.lib-css(font-weight, @_submenu-font-weight);
|
||||
.lib-css(line-height, @_submenu-line-height);
|
||||
left: auto !important;
|
||||
overflow-x: hidden;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
top: auto !important;
|
||||
transition: left .3s ease-out;
|
||||
|
||||
> li {
|
||||
> a {
|
||||
.lib-css(padding-left, @_nav__indent-side);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
display: block;
|
||||
.lib-css(padding-left, @_submenu-item__padding-left);
|
||||
|
||||
> li {
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
.lib-css(background, @_submenu-item-background-color);
|
||||
.lib-css(border, @_submenu-item-border);
|
||||
.lib-css(color, @_submenu-item-color);
|
||||
.lib-css(text-decoration, @_submenu-item-text-decoration);
|
||||
display: block;
|
||||
line-height: normal;
|
||||
&:hover {
|
||||
.lib-css(color, @navigation-level0-item__hover__color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.expanded {
|
||||
display: block !important;
|
||||
padding-right: 0;
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
.active {
|
||||
> a {
|
||||
.lib-css(background, @_submenu-item-background-color-active);
|
||||
.lib-css(border-color, @_submenu-item__active__border-color);
|
||||
.lib-css(border-style, @_submenu-item__active__border-style);
|
||||
.lib-css(border-width, @_submenu-item__active__border-width);
|
||||
.lib-css(color, @_submenu-item-color-active);
|
||||
.lib-css(padding-left, @_nav__indent-side - @_submenu-item__active__border);
|
||||
.lib-css(text-decoration, @_submenu-item-text-decoration-active);
|
||||
}
|
||||
}
|
||||
|
||||
.level1 {
|
||||
&.active {
|
||||
> a {
|
||||
.lib-css(padding-left, @_nav__indent-side - @_submenu-item__active__border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Desktop
|
||||
// _____________________________________________
|
||||
|
||||
.lib-main-navigation-desktop(
|
||||
@_nav-background-color: @navigation-desktop__background,
|
||||
@_nav-border: @navigation-desktop__border,
|
||||
@_nav-font-size: @navigation-desktop__font-size,
|
||||
@_nav-font-weight: @navigation-desktop__font-weight,
|
||||
|
||||
@_nav-level0-item-line-height: @navigation-desktop-level0-item__line-height,
|
||||
@_nav-level0-item-margin: @navigation-desktop-level0-item__margin,
|
||||
@_nav-level0-item-padding: @navigation-desktop-level0-item__padding,
|
||||
|
||||
@_nav-level0-item-background-color: @navigation-desktop-level0-item__background,
|
||||
@_nav-level0-item-border: @navigation-desktop-level0-item__border,
|
||||
@_nav-level0-item-color: @navigation-desktop-level0-item__color,
|
||||
@_nav-level0-item-text-decoration: @navigation-desktop-level0-item__text-decoration,
|
||||
|
||||
@_nav-level0-item-background-color-hover: @navigation-desktop-level0-item__hover__background,
|
||||
@_nav-level0-item-border-hover: @navigation-desktop-level0-item__hover__border,
|
||||
@_nav-level0-item-color-hover: @navigation-desktop-level0-item__hover__color,
|
||||
@_nav-level0-item-text-decoration-hover: @navigation-desktop-level0-item__hover__text-decoration,
|
||||
|
||||
@_nav-level0-item-background-color-active: @navigation-desktop-level0-item__active__background,
|
||||
@_nav-level0-item__active__border-color: @navigation-desktop-level0-item__active__border-color,
|
||||
@_nav-level0-item__active__border-style: @navigation-desktop-level0-item__active__border-style,
|
||||
@_nav-level0-item__active__border-width: @navigation-desktop-level0-item__active__border-width,
|
||||
@_nav-level0-item-color-active: @navigation-desktop-level0-item__active__color,
|
||||
@_nav-level0-item-text-decoration-active: @navigation-desktop-level0-item__active__text-decoration,
|
||||
|
||||
@_submenu-background-color: @submenu-desktop__background,
|
||||
@_submenu-border-width: @submenu-desktop__border-width,
|
||||
@_submenu-border-style: @submenu-desktop__border-style,
|
||||
@_submenu-border-color: @submenu-desktop__border-color,
|
||||
@_submenu-box-shadow: @submenu-desktop__box-shadow,
|
||||
@_submenu-font-size: @submenu-desktop__font-size,
|
||||
@_submenu-font-weight: @submenu-desktop__font-weight,
|
||||
@_submenu-min-width: @submenu-desktop__min-width,
|
||||
@_submenu-padding: @submenu-desktop__padding,
|
||||
|
||||
@_submenu-arrow: @submenu-desktop-arrow,
|
||||
@_submenu-arrow-size: @submenu-desktop-arrow__size,
|
||||
@_submenu-arrow-left: @submenu-desktop-arrow__left,
|
||||
|
||||
@_submenu-item-padding: @submenu-desktop-item__padding,
|
||||
@_submenu-item-background-color: @submenu-desktop-item__background,
|
||||
@_submenu-item-border: @submenu-desktop-item__border,
|
||||
@_submenu-item-color: @submenu-desktop-item__color,
|
||||
@_submenu-item-text-decoration: @submenu-desktop-item__text-decoration,
|
||||
|
||||
@_submenu-item__hover__background-color: @submenu-desktop-item__hover__background,
|
||||
@_submenu-item-border-hover: @submenu-desktop-item__hover__border,
|
||||
@_submenu-item-color-hover: @submenu-desktop-item__hover__color,
|
||||
@_submenu-item-text-decoration-hover: @submenu-desktop-item__hover__text-decoration,
|
||||
|
||||
@_submenu-item-background-color-active: @submenu-desktop-item__active__background,
|
||||
@_submenu-item__active__border-color: @submenu-desktop-item__active__border-color,
|
||||
@_submenu-item__active__border-style: @submenu-desktop-item__active__border-style,
|
||||
@_submenu-item__active__border-width: @submenu-desktop-item__active__border-width,
|
||||
@_submenu-item-color-active: @submenu-desktop-item__active__color,
|
||||
@_submenu-item-text-decoration-active: @submenu-desktop-item__active__text-decoration
|
||||
) {
|
||||
|
||||
.navigation {
|
||||
.lib-css(background, @_nav-background-color);
|
||||
.lib-css(border, @_nav-border);
|
||||
.lib-css(font-size, @_nav-font-size);
|
||||
.lib-css(font-weight, @_nav-font-weight);
|
||||
height: inherit;
|
||||
left: auto;
|
||||
overflow: inherit;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
li.level0 {
|
||||
.lib-css(border-top, none);
|
||||
}
|
||||
|
||||
li.level1 {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.level0 {
|
||||
.lib-css(margin, @_nav-level0-item-margin);
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
width: 10px;
|
||||
height: calc(~'100% + 3px');
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
> .level-top {
|
||||
.lib-css(background, @_nav-level0-item-background-color);
|
||||
.lib-css(border, @_nav-level0-item-border);
|
||||
.lib-css(color, @_nav-level0-item-color);
|
||||
.lib-css(line-height, @_nav-level0-item-line-height);
|
||||
.lib-css(padding, @_nav-level0-item-padding);
|
||||
.lib-css(text-decoration, @_nav-level0-item-text-decoration);
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
&:hover, &.ui-state-focus {
|
||||
.lib-css(background, @_nav-level0-item-background-color-hover);
|
||||
.lib-css(border, @_nav-level0-item-border-hover);
|
||||
.lib-css(color, @_nav-level0-item-color-hover);
|
||||
.lib-css(text-decoration, @_nav-level0-item-text-decoration-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&.active,
|
||||
&.has-active {
|
||||
> .level-top {
|
||||
.lib-css(background, @_nav-level0-item-background-color-active);
|
||||
.lib-css(border-color, @_nav-level0-item__active__border-color);
|
||||
.lib-css(border-style, @_nav-level0-item__active__border-style);
|
||||
.lib-css(border-width, @_nav-level0-item__active__border-width);
|
||||
.lib-css(color, @_nav-level0-item-color-active);
|
||||
.lib-css(text-decoration, @_nav-level0-item-text-decoration-active);
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
&.parent:hover > .submenu {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
&.parent {
|
||||
> .level-top {
|
||||
padding-right: 20px;
|
||||
|
||||
> .ui-menu-icon {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
||||
.lib-icon-font(
|
||||
@icon-down,
|
||||
@_icon-font-size: 12px,
|
||||
@_icon-font-line-height: 20px,
|
||||
@_icon-font-text-hide: true,
|
||||
@_icon-font-position: after
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
.lib-css(background, @_submenu-background-color);
|
||||
.lib-css(border, @_submenu-border-width @_submenu-border-style @_submenu-border-color);
|
||||
.lib-css(box-shadow, @_submenu-box-shadow);
|
||||
.lib-css(font-size, @_submenu-font-size);
|
||||
.lib-css(font-weight, @_submenu-font-weight);
|
||||
.lib-css(min-width, @_submenu-min-width);
|
||||
.lib-css(padding, @_submenu-padding);
|
||||
display: none;
|
||||
left: 0;
|
||||
margin: 0 !important;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
|
||||
._lib-submenu-arrow(
|
||||
@_submenu-arrow,
|
||||
@_bg: @_submenu-background-color,
|
||||
@_border: @_submenu-border-color,
|
||||
@_size: @_submenu-arrow-size,
|
||||
@_left: @_submenu-arrow-left
|
||||
);
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
left: 0;
|
||||
top: -4px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
line-height: inherit;
|
||||
.lib-css(background, @_submenu-item-background-color);
|
||||
.lib-css(border, @_submenu-item-border);
|
||||
.lib-css(color, @_submenu-item-color);
|
||||
.lib-css(padding, @_submenu-item-padding);
|
||||
.lib-css(text-decoration, @_submenu-item-text-decoration);
|
||||
|
||||
&:hover,
|
||||
&.ui-state-focus {
|
||||
.lib-css(background, @_submenu-item__hover__background-color);
|
||||
.lib-css(border, @_submenu-item-border-hover);
|
||||
.lib-css(color, @_submenu-item-color-hover);
|
||||
.lib-css(text-decoration, @_submenu-item-text-decoration-hover);
|
||||
}
|
||||
}
|
||||
|
||||
.active > a {
|
||||
.lib-css(background, @_submenu-item-background-color-active);
|
||||
.lib-css(border-color, @_submenu-item__active__border-color);
|
||||
.lib-css(border-style, @_submenu-item__active__border-style);
|
||||
.lib-css(border-width, @_submenu-item__active__border-width);
|
||||
.lib-css(color, @_submenu-item-color-active);
|
||||
.lib-css(text-decoration, @_submenu-item-text-decoration-active);
|
||||
}
|
||||
|
||||
.submenu {
|
||||
top: -1px !important;
|
||||
left: 100% !important;
|
||||
}
|
||||
|
||||
.submenu-reverse{
|
||||
left: auto !important;
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
position: relative;
|
||||
|
||||
&.parent {
|
||||
> a {
|
||||
> .ui-menu-icon {
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
|
||||
.lib-icon-font(
|
||||
@icon-next,
|
||||
@_icon-font-size: 12px,
|
||||
@_icon-font-line-height: 20px,
|
||||
@_icon-font-text-hide: true,
|
||||
@_icon-font-position: after
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.more {
|
||||
position: relative;
|
||||
.lib-icon-font(
|
||||
@icon-pointer-down,
|
||||
@_icon-font-size: 26px,
|
||||
@_icon-font-position: after
|
||||
);
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:after {
|
||||
cursor: pointer;
|
||||
padding: 8px 12px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&:hover > .submenu {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
li {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Submenu arrow
|
||||
._lib-submenu-arrow(
|
||||
@_submenu-arrow,
|
||||
@_bg,
|
||||
@_border,
|
||||
@_size,
|
||||
@_left
|
||||
) when (@_submenu-arrow = true) {
|
||||
& when (iscolor(@_bg)) and (iscolor(@_border)) {
|
||||
@_outer-size: @_size + 1;
|
||||
@_outer-left: @_left - 1;
|
||||
.lib-css(margin-top, @_outer-size);
|
||||
|
||||
> ul {
|
||||
.lib-css(margin-top, @_outer-size);
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(color, @_bg);
|
||||
.lib-css(left, @_left);
|
||||
.lib-css(top, -@_size*2);
|
||||
.lib-arrow(up, @_size, @_bg);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-arrow(up, @_outer-size, @_border);
|
||||
.lib-css(color, @_border);
|
||||
.lib-css(left, @_outer-left);
|
||||
.lib-css(top, -@_outer-size*2);
|
||||
z-index: 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
& when (iscolor(@_bg)) and not (iscolor(@_border)) {
|
||||
.lib-css(margin-top, -@_size);
|
||||
|
||||
> ul {
|
||||
.lib-css(margin-top, @_size);
|
||||
|
||||
&:before {
|
||||
.lib-arrow(up, @_size, @_bg);
|
||||
.lib-css(color, @_bg);
|
||||
.lib-css(left, @_left);
|
||||
.lib-css(top, -@_size*2);
|
||||
content: '';
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
& when (iscolor(@_border)) and not (iscolor(@_bg)) {
|
||||
.lib-css(margin-top, -@_size);
|
||||
|
||||
> ul {
|
||||
.lib-css(margin-top, @_size);
|
||||
|
||||
&:before {
|
||||
.lib-arrow(up, @_size, @_border);
|
||||
.lib-css(color, @_border);
|
||||
.lib-css(left, @_left);
|
||||
.lib-css(top, -@_size*2);
|
||||
content: '';
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,455 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Pager
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// When pager items have solid or don't have background
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-pager(
|
||||
@_pager-label-display: @pager-label__display,
|
||||
@_pager-item-display: @pager-item__display,
|
||||
@_pager-reset-spaces: @pager-reset-spaces,
|
||||
@_pager-font-size: @pager__font-size,
|
||||
@_pager-font-weight: @pager__font-weight,
|
||||
@_pager-line-height: @pager__line-height,
|
||||
@_pager-item-margin: @pager-item__margin,
|
||||
@_pager-item-padding: @pager-item__padding,
|
||||
@_pager-actions-padding: @pager-actions__padding,
|
||||
|
||||
// Page current
|
||||
@_pager-current-font-weight: @pager-current__font-weight,
|
||||
@_pager-current-color: @pager-current__color,
|
||||
@_pager-current-background: @pager-current__background,
|
||||
@_pager-current-border: @pager-current__border,
|
||||
@_pager-current-gradient: @pager-current__gradient,
|
||||
@_pager-current-gradient-direction: @pager-current__gradient-direction,
|
||||
@_pager-current-gradient-color-start: @pager-current__gradient-color-start,
|
||||
@_pager-current-gradient-color-end: @pager-current__gradient-color-end,
|
||||
|
||||
// Page item - text color
|
||||
@_pager-color: @pager__color,
|
||||
@_pager-color-visited: @pager__visited__color,
|
||||
@_pager-color-hover: @pager__hover__color,
|
||||
@_pager-color-active: @pager__active__color,
|
||||
|
||||
// Page item - background
|
||||
@_pager-background: @pager__background,
|
||||
@_pager-background-visited: @pager__visited__background,
|
||||
@_pager-background-hover: @pager__hover__background,
|
||||
@_pager-background-active: @pager__active__background,
|
||||
|
||||
// Page item - border
|
||||
@_pager-border: @pager__border,
|
||||
@_pager-border-visited: @pager__visited__border,
|
||||
@_pager-border-hover: @pager__hover__border,
|
||||
@_pager-border-active: @pager__active__border,
|
||||
|
||||
// Page item - text decoration
|
||||
@_pager-text-decoration: @pager__text-decoration,
|
||||
@_pager-text-decoration-hover: @pager__text-decoration,
|
||||
|
||||
// Page item gradient
|
||||
@_pager-gradient: @pager__gradient,
|
||||
@_pager-gradient-direction: @pager__gradient-direction,
|
||||
@_pager-gradient-color-start: @pager__gradient-color-start,
|
||||
@_pager-gradient-color-end: @pager__gradient-color-end,
|
||||
@_pager-gradient-color-start-visited: @pager__visited__gradient-color-start,
|
||||
@_pager-gradient-color-end-visited: @pager__visited__gradient-color-end,
|
||||
@_pager-gradient-color-start-hover: @pager__hover__gradient-color-start,
|
||||
@_pager-gradient-color-end-hover: @pager__hover__gradient-color-end,
|
||||
@_pager-gradient-color-start-active: @pager__active__gradient-color-start,
|
||||
@_pager-gradient-color-end-active: @pager__active__gradient-color-end,
|
||||
|
||||
// Page action item (previous-next)
|
||||
@_pager-action-text-decoration: @pager-action__text-decoration,
|
||||
@_pager-action-text-decoration-hover: @pager-action__hover__text-decoration,
|
||||
|
||||
// Page action item (previous-next) - default
|
||||
@_pager-action-color: @pager-action__color,
|
||||
@_pager-action-border: @pager-action__border,
|
||||
@_pager-action-background: @pager-action__background,
|
||||
@_pager-action-gradient-color-start: @pager__gradient-color-start,
|
||||
@_pager-action-gradient-color-end: @pager__gradient-color-end,
|
||||
@_pager-action-text-decoration: @pager-action__text-decoration,
|
||||
|
||||
// Page action item (previous-next) - visited
|
||||
@_pager-action-color-visited: @pager-action__visited__color,
|
||||
@_pager-action-border-visited: @pager-action__visited__border,
|
||||
@_pager-action-background-visited: @pager-action__visited__background,
|
||||
@_pager-action-gradient-color-start-visited: @pager__visited__gradient-color-start,
|
||||
@_pager-action-gradient-color-end-visited: @pager__visited__gradient-color-end,
|
||||
|
||||
// Page action item (previous-next) - hover
|
||||
@_pager-action-color-hover: @pager-action__hover__color,
|
||||
@_pager-action-border-hover: @pager-action__hover__border,
|
||||
@_pager-action-background-hover: @pager-action__hover__background,
|
||||
@_pager-action-gradient-color-start-hover: @pager__hover__gradient-color-start,
|
||||
@_pager-action-gradient-color-end-hover: @pager__hover__gradient-color-end,
|
||||
@_pager-action-text-decoration-hover: @pager-action__text-decoration,
|
||||
|
||||
// Page action item (previous-next) - active
|
||||
@_pager-action-color-active: @pager-action__active__color,
|
||||
@_pager-action-border-active: @pager-action__active__border,
|
||||
@_pager-action-background-active: @pager-action__active__background,
|
||||
@_pager-action-gradient-color-start-active: @pager__active__gradient-color-start,
|
||||
@_pager-action-gradient-color-end-active: @pager__active__gradient-color-end,
|
||||
|
||||
// Page action item (previous-next) - gradient
|
||||
@_pager-action-gradient: @pager__gradient,
|
||||
@_pager-action-gradient-direction: @pager__gradient-direction,
|
||||
|
||||
// Page action icons
|
||||
@_pager-icon-use: @pager-icon__use,
|
||||
@_pager-icon-previous-content: @pager-icon__previous-content,
|
||||
@_pager-icon-next-content: @pager-icon__next-content,
|
||||
@_pager-icon-font: @pager-icon__font,
|
||||
@_pager-icon-font-size: @pager-icon__font-size,
|
||||
@_pager-icon-font-line-height: @pager-icon__font-line-height,
|
||||
@_pager-icon-font-margin: @pager-icon__font-margin,
|
||||
@_pager-icon-font-vertical-align: @pager-icon__font-vertical-align,
|
||||
@_pager-icon-font-position: @pager-icon__position,
|
||||
@_pager-icon-font-text-hide: @pager-icon__text-hide
|
||||
) {
|
||||
._lib-pager-label-display( // To hide or to display label
|
||||
@_pager-label-display: @_pager-label-display,
|
||||
@_pager-font-size: @_pager-font-size,
|
||||
@_pager-font-weight: @_pager-font-weight,
|
||||
@_pager-line-height: @_pager-line-height
|
||||
);
|
||||
|
||||
.items {
|
||||
._lib-pager-inline-block-spaces-container(
|
||||
@_pager-reset-spaces,
|
||||
@_pager-item-display
|
||||
);
|
||||
.lib-list-reset-styles();
|
||||
.lib-css(display, @_pager-item-display);
|
||||
.lib-css(font-weight, @_pager-font-weight);
|
||||
}
|
||||
|
||||
.item {
|
||||
._lib-pager-inline-block-spaces-item(
|
||||
@_pager-reset-spaces,
|
||||
@_pager-item-display,
|
||||
@_pager-font-size,
|
||||
@_pager-line-height
|
||||
);
|
||||
.lib-css(margin, @_pager-item-margin);
|
||||
.lib-css(display, @_pager-item-display);
|
||||
|
||||
.label {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
|
||||
a.page {
|
||||
.lib-css(background, @_pager-background);
|
||||
.lib-background-gradient(
|
||||
@_pager-gradient-color-start,
|
||||
@_pager-gradient-color-end,
|
||||
@_pager-gradient-direction,
|
||||
@_pager-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-border);
|
||||
.lib-css(color, @_pager-color);
|
||||
.lib-css(display, @_pager-item-display);
|
||||
.lib-css(padding, @_pager-item-padding);
|
||||
.lib-css(text-decoration, @_pager-text-decoration);
|
||||
|
||||
&:visited {
|
||||
.lib-css(background, @_pager-background-visited);
|
||||
.lib-background-gradient(
|
||||
@_pager-gradient-color-start-visited,
|
||||
@_pager-gradient-color-end-visited,
|
||||
@_pager-gradient-direction,
|
||||
@_pager-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-border-visited);
|
||||
.lib-css(color, @_pager-color-visited);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.lib-css(background, @_pager-background-hover);
|
||||
.lib-background-gradient(
|
||||
@_pager-gradient-color-start-hover,
|
||||
@_pager-gradient-color-end-hover,
|
||||
@_pager-gradient-direction,
|
||||
@_pager-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-border-hover);
|
||||
.lib-css(color, @_pager-color-hover);
|
||||
.lib-css(text-decoration, @_pager-text-decoration-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
.lib-css(background, @_pager-background-active);
|
||||
.lib-background-gradient(
|
||||
@_pager-gradient-color-start-active,
|
||||
@_pager-gradient-color-end-active,
|
||||
@_pager-gradient-direction,
|
||||
@_pager-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-border-active);
|
||||
.lib-css(color, @_pager-color-active);
|
||||
}
|
||||
}
|
||||
|
||||
strong.page {
|
||||
.lib-css(background, @_pager-current-background);
|
||||
.lib-background-gradient(
|
||||
@_pager-current-gradient-color-start,
|
||||
@_pager-current-gradient-color-end,
|
||||
@_pager-current-gradient-direction,
|
||||
@_pager-current-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-current-border);
|
||||
._lib-pager-inline-block-spaces-item(
|
||||
@_pager-reset-spaces,
|
||||
@_pager-item-display,
|
||||
@_pager-font-size,
|
||||
@_pager-line-height
|
||||
);
|
||||
.lib-css(color, @_pager-current-color);
|
||||
.lib-css(display, @_pager-item-display);
|
||||
.lib-css(font-weight, @_pager-current-font-weight);
|
||||
.lib-css(padding, @_pager-item-padding);
|
||||
}
|
||||
|
||||
.action {
|
||||
.lib-css(background, @_pager-action-background);
|
||||
.lib-background-gradient(
|
||||
@_pager-action-gradient-color-start,
|
||||
@_pager-action-gradient-color-end,
|
||||
@_pager-gradient-direction,
|
||||
@_pager-action-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-action-border);
|
||||
.lib-css(color, @_pager-action-color);
|
||||
.lib-css(display, @_pager-item-display);
|
||||
.lib-css(padding, @_pager-actions-padding);
|
||||
.lib-css(text-decoration, @_pager-action-text-decoration);
|
||||
|
||||
&:visited {
|
||||
.lib-css(background, @_pager-action-background-visited);
|
||||
.lib-background-gradient(
|
||||
@_pager-action-gradient-color-start-visited,
|
||||
@_pager-action-gradient-color-end-visited,
|
||||
@_pager-action-gradient-direction,
|
||||
@_pager-action-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-action-border-visited);
|
||||
.lib-css(color, @_pager-action-color-visited);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.lib-css(background, @_pager-action-background-hover);
|
||||
.lib-background-gradient(
|
||||
@_pager-action-gradient-color-start-hover,
|
||||
@_pager-action-gradient-color-end-hover,
|
||||
@_pager-action-gradient-direction,
|
||||
@_pager-action-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-action-border-hover);
|
||||
.lib-css(color, @_pager-action-color-hover);
|
||||
.lib-css(text-decoration, @_pager-action-text-decoration-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
.lib-css(background, @_pager-action-background-active);
|
||||
.lib-background-gradient(
|
||||
@_pager-action-gradient-color-start-active,
|
||||
@_pager-action-gradient-color-end-active,
|
||||
@_pager-action-gradient-direction,
|
||||
@_pager-action-gradient
|
||||
);
|
||||
.lib-css(border, @_pager-action-border-active);
|
||||
.lib-css(color, @_pager-action-color-active);
|
||||
}
|
||||
|
||||
&.next {
|
||||
._lib-pager-icon (
|
||||
@_icon-font-content: @_pager-icon-next-content,
|
||||
@_pager-icon-use: @_pager-icon-use,
|
||||
@_icon-font: @_pager-icon-font,
|
||||
@_icon-font-size: @_pager-icon-font-size,
|
||||
@_icon-font-line-height: @_pager-icon-font-line-height,
|
||||
@_icon-font-color: @_pager-action-color,
|
||||
@_icon-font-color-visited: @_pager-action-color-visited,
|
||||
@_icon-font-color-hover: @_pager-action-color-hover,
|
||||
@_icon-font-color-active: @_pager-action-color-active,
|
||||
@_icon-font-margin: @_pager-icon-font-margin,
|
||||
@_icon-font-vertical-align: @_pager-icon-font-vertical-align,
|
||||
@_icon-font-position: @_pager-icon-font-position,
|
||||
@_icon-font-text-hide: @_pager-icon-font-text-hide
|
||||
);
|
||||
}
|
||||
|
||||
&.previous {
|
||||
._lib-pager-icon (
|
||||
@_icon-font-content: @_pager-icon-previous-content,
|
||||
@_pager-icon-use: @_pager-icon-use,
|
||||
@_icon-font: @_pager-icon-font,
|
||||
@_icon-font-size: @_pager-icon-font-size,
|
||||
@_icon-font-line-height: @_pager-icon-font-line-height,
|
||||
@_icon-font-color: @_pager-action-color,
|
||||
@_icon-font-color-visited: @_pager-action-color-visited,
|
||||
@_icon-font-color-hover: @_pager-action-color-hover,
|
||||
@_icon-font-color-active: @_pager-action-color-active,
|
||||
@_icon-font-margin: @_pager-icon-font-margin,
|
||||
@_icon-font-vertical-align: @_pager-icon-font-vertical-align,
|
||||
@_icon-font-position: @_pager-icon-font-position,
|
||||
@_icon-font-text-hide: @_pager-icon-font-text-hide
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Delete spaces between elements when pager items have display: inline-block
|
||||
._lib-pager-inline-block-spaces-container(
|
||||
@_pager-reset-spaces,
|
||||
@_pager-item-display
|
||||
) when (@_pager-reset-spaces = true) and (@_pager-item-display = inline-block) {
|
||||
.lib-inline-block-space-container();
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
._lib-pager-inline-block-spaces-item(
|
||||
@_pager-reset-spaces,
|
||||
@_pager-item-display,
|
||||
@_pager-font-size,
|
||||
@_pager-line-height
|
||||
) when (@_pager-reset-spaces = true) and (@_pager-item-display = inline-block) {
|
||||
.lib-inline-block-space-item(
|
||||
@_font-size: @_pager-font-size,
|
||||
@_line-height: @_pager-line-height
|
||||
);
|
||||
}
|
||||
|
||||
// Display or hide "page" label
|
||||
._lib-pager-label-display(
|
||||
@_pager-label-display,
|
||||
@_pager-font-size,
|
||||
@_pager-font-weight,
|
||||
@_pager-line-height
|
||||
) when not (@_pager-label-display = none){
|
||||
> .label {
|
||||
.lib-css(display, @_pager-label-display);
|
||||
.lib-css(font-weight, @_pager-font-weight);
|
||||
.lib-inline-block-space-item(
|
||||
@_font-size: @_pager-font-size,
|
||||
@_line-height: @_pager-line-height
|
||||
);
|
||||
|
||||
&:after {
|
||||
content: ': ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
._lib-pager-label-display(
|
||||
@_pager-label-display,
|
||||
@_pager-font-size,
|
||||
@_pager-font-weight,
|
||||
@_pager-line-height
|
||||
) when (@_pager-label-display = none) {
|
||||
> .label {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
|
||||
._lib-pager-label-display(
|
||||
@_pager-label-display,
|
||||
@_pager-font-size,
|
||||
@_pager-font-weight,
|
||||
@_pager-line-height
|
||||
) when (@_pager-label-display = false) {
|
||||
> .label {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
|
||||
._lib-pager-icon (
|
||||
@_pager-icon-use,
|
||||
@_icon-font-content,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-color-visited,
|
||||
@_icon-font-color-hover,
|
||||
@_icon-font-color-active,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align,
|
||||
@_icon-font-position,
|
||||
@_icon-font-text-hide
|
||||
) when (@_pager-icon-use = true) and (@_icon-font-position = before) {
|
||||
&:visited {
|
||||
&:before {
|
||||
.lib-css(color, @_icon-font-color-visited);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:before {
|
||||
.lib-css(color, @_icon-font-color-active);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-icon-font(
|
||||
@_icon-font-content: @_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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
}
|
||||
|
||||
._lib-pager-icon (
|
||||
@_icon-font-content,
|
||||
@_pager-icon-use,
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-font-line-height,
|
||||
@_icon-font-color,
|
||||
@_icon-font-color-visited,
|
||||
@_icon-font-color-hover,
|
||||
@_icon-font-color-active,
|
||||
@_icon-font-margin,
|
||||
@_icon-font-vertical-align,
|
||||
@_icon-font-position,
|
||||
@_icon-font-text-hide
|
||||
) when (@_pager-icon-use = true) and (@_icon-font-position = after) {
|
||||
.lib-icon-font(
|
||||
@_icon-font-content: @_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-color-hover: @_icon-font-color-hover,
|
||||
@_icon-font-color-active: @_icon-font-color-active,
|
||||
@_icon-font-margin: @_icon-font-margin,
|
||||
@_icon-font-vertical-align: @_icon-font-vertical-align,
|
||||
@_icon-font-position: @_icon-font-position,
|
||||
@_icon-font-text-hide: @_icon-font-text-hide
|
||||
);
|
||||
|
||||
&:visited:after {
|
||||
.lib-css(color, @_icon-font-color-visited);
|
||||
}
|
||||
|
||||
&:active:after {
|
||||
.lib-css(color, @_icon-font-color-active);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,317 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Popups
|
||||
// _____________________________________________
|
||||
|
||||
.lib-popup(
|
||||
@_popup-width: @popup__width,
|
||||
@_popup-height: @popup__height,
|
||||
@_popup-padding: @popup__padding,
|
||||
@_popup-background: @popup__background,
|
||||
@_popup-border: @popup__border,
|
||||
@_popup-shadow: @popup__shadow,
|
||||
@_popup-fade: @popup__fade,
|
||||
@_popup-z-index: @popup__z-index,
|
||||
|
||||
@_popup-position: @popup__position,
|
||||
@_popup-position-top: @popup__position-top,
|
||||
@_popup-position-right: @popup__position-right,
|
||||
@_popup-position-bottom: @popup__position-bottom,
|
||||
@_popup-position-left: @popup__position-left,
|
||||
|
||||
@_popup-margin-top: @popup__margin-top,
|
||||
@_popup-margin-right: @popup__margin-right,
|
||||
@_popup-margin-bottom: @popup__margin-bottom,
|
||||
@_popup-margin-left: @popup__margin-left,
|
||||
|
||||
@_popup-content-height: @popup-content__height,
|
||||
@_popup-header-margin: @popup-header__margin,
|
||||
@_popup-content-margin: @popup-content__margin,
|
||||
@_popup-footer-margin: @popup-footer__margin,
|
||||
|
||||
@_popup-title-headings: @popup-title-headings,
|
||||
@_popup-title-headings-level: @popup-title-headings__level,
|
||||
|
||||
// Icons parameters
|
||||
@_popup-button-close-icon: @popup-button-close__icon,
|
||||
@_popup-button-close-reset: @popup-button-close__reset,
|
||||
@_popup-button-close-position: @popup-button-close__position,
|
||||
@_popup-button-close-position-top: @popup-button-close__position-top,
|
||||
@_popup-button-close-position-right: @popup-button-close__position-right,
|
||||
@_popup-button-close-position-bottom: @popup-button-close__position-bottom,
|
||||
@_popup-button-close-position-left: @popup-button-close__position-left,
|
||||
@_popup-icon-font-content: @popup-icon-font__content,
|
||||
@_popup-icon-font: @popup-icon-font,
|
||||
@_popup-icon-font-size: @popup-icon-font__size,
|
||||
@_popup-icon-font-line-height: @popup-icon-font__line-height,
|
||||
@_popup-icon-font-color: @popup-icon-font__color,
|
||||
@_popup-icon-font-color-hover: @popup-icon-font__color-hover,
|
||||
@_popup-icon-font-color-active: @popup-icon-font__color-active,
|
||||
@_popup-icon-font-margin: @popup-icon-font__margin,
|
||||
@_popup-icon-font-vertical-align: @popup-icon-font__vertical-align,
|
||||
@_popup-icon-font-position: @popup-icon-font__position,
|
||||
@_popup-icon-font-text-hide: @popup-icon-font__text-hide,
|
||||
|
||||
// Actions toolbar parameters
|
||||
@_popup-actions-toolbar: @popup-actions-toolbar,
|
||||
@_popup-actions-toolbar-actions-position: @popup-actions-toolbar-actions__position,
|
||||
@_popup-actions-toolbar-actions-reverse: @popup-actions-toolbar-actions__reverse,
|
||||
@_popup-actions-toolbar-margin: @popup-actions-toolbar__margin,
|
||||
@_popup-actions-toolbar-padding: @popup-actions-toolbar__padding,
|
||||
@_popup-actions-toolbar-actions-margin: @popup-actions-toolbar-actions__margin,
|
||||
@_popup-actions-toolbar-primary-actions-margin: @popup-actions-toolbar-actions-primary__margin,
|
||||
@_popup-actions-toolbar-secondary-actions-margin: @popup-actions-toolbar-actions-secondary__margin,
|
||||
@_popup-actions-toolbar-actions-links-margin-top: @popup-actions-toolbar-actions-links__margin-top,
|
||||
@_popup-actions-toolbar-primary-actions-links-margin-top: @popup-actions-toolbar-actions-links-primary__margin-top,
|
||||
@_popup-actions-toolbar-secondary-actions-links-margin-top: @popup-actions-toolbar-actions-links-secondary__margin-top
|
||||
) {
|
||||
.lib-css(background, @_popup-background);
|
||||
.lib-css(border, @_popup-border);
|
||||
.lib-css(padding, @_popup-padding);
|
||||
.lib-css(width, @_popup-width);
|
||||
._lib-popup-height(@_popup-height);
|
||||
._lib-popup-shadow(@_popup-shadow);
|
||||
._lib-popup-action-toolbar(
|
||||
@_popup-actions-toolbar,
|
||||
@_popup-actions-toolbar-actions-position,
|
||||
@_popup-actions-toolbar-actions-reverse,
|
||||
@_popup-actions-toolbar-margin,
|
||||
@_popup-actions-toolbar-padding,
|
||||
@_popup-actions-toolbar-actions-margin,
|
||||
@_popup-actions-toolbar-primary-actions-margin,
|
||||
@_popup-actions-toolbar-secondary-actions-margin,
|
||||
@_popup-actions-toolbar-actions-links-margin-top,
|
||||
@_popup-actions-toolbar-primary-actions-links-margin-top,
|
||||
@_popup-actions-toolbar-secondary-actions-links-margin-top
|
||||
);
|
||||
|
||||
.popup-header {
|
||||
.lib-css(margin, @_popup-header-margin);
|
||||
|
||||
.title {
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
);
|
||||
}
|
||||
|
||||
.lib-css(padding-right, @_popup-icon-font-size)
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
._lib-popup-height(@_popup-content-height);
|
||||
.lib-css(margin, @_popup-content-margin);
|
||||
}
|
||||
|
||||
.popup-footer {
|
||||
.lib-css(margin, @_popup-footer-margin);
|
||||
}
|
||||
|
||||
.popup-actions {
|
||||
.action.close {
|
||||
.lib-css(position, @_popup-button-close-position);
|
||||
.lib-popup-button-close-icon(
|
||||
@_popup-button-close-icon,
|
||||
@_popup-icon-font-content,
|
||||
@_popup-icon-font,
|
||||
@_popup-icon-font-size,
|
||||
@_popup-icon-font-line-height,
|
||||
@_popup-icon-font-color,
|
||||
@_popup-icon-font-color-hover,
|
||||
@_popup-icon-font-color-active,
|
||||
@_popup-icon-font-margin,
|
||||
@_popup-icon-font-vertical-align,
|
||||
@_popup-icon-font-position,
|
||||
@_popup-icon-font-text-hide
|
||||
);
|
||||
._lib-popup-button-close-reset(
|
||||
@_popup-button-close-reset
|
||||
);
|
||||
.lib-css(bottom, @_popup-button-close-position-bottom);
|
||||
.lib-css(left, @_popup-button-close-position-left);
|
||||
.lib-css(right, @_popup-button-close-position-right);
|
||||
.lib-css(top, @_popup-button-close-position-top);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-popup-fade(@_popup-fade);
|
||||
|
||||
.lib-css(bottom, @_popup-position-bottom);
|
||||
.lib-css(left, @_popup-position-left);
|
||||
.lib-css(margin-bottom, @_popup-margin-bottom);
|
||||
.lib-css(margin-left, @_popup-margin-left);
|
||||
.lib-css(margin-right, @_popup-margin-right);
|
||||
.lib-css(margin-top, @_popup-margin-top);
|
||||
.lib-css(position, @_popup-position);
|
||||
.lib-css(right, @_popup-position-right);
|
||||
.lib-css(top, @_popup-position-top);
|
||||
.lib-css(z-index, @_popup-z-index);
|
||||
display: none;
|
||||
opacity: 0;
|
||||
|
||||
&.active {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-window-overlay(
|
||||
@_overlay-background: @overlay__background,
|
||||
@_overlay-opacity: @overlay__opacity,
|
||||
@_overlay-opacity-old: @overlay__opacity-old,
|
||||
@_overlay-fade: @overlay__fade,
|
||||
@_overlay-z-index: @overlay__z-index
|
||||
) {
|
||||
._lib-popup-fade(@_overlay-fade);
|
||||
.lib-css(background, @_overlay-background);
|
||||
.lib-css(z-index, @_overlay-z-index);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
||||
&.active {
|
||||
.lib-css(opacity, @_overlay-opacity);
|
||||
|
||||
& when not (@_overlay-opacity-old = false) {
|
||||
filter: alpha(opacity=@_overlay-opacity-old);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Internal use mixins
|
||||
// ---------------------------------------------
|
||||
|
||||
// Popup fade
|
||||
._lib-popup-fade(@_popup-fade) when not (@_popup-fade = '') {
|
||||
.lib-css(transition, @_popup-fade);
|
||||
}
|
||||
|
||||
// Popup shadow
|
||||
._lib-popup-shadow(@_popup-shadow) when not (@_popup-shadow = '') and not (@_popup-shadow = none) {
|
||||
.lib-css(box-shadow, @_popup-shadow);
|
||||
}
|
||||
|
||||
// Popup height
|
||||
._lib-popup-height(@_popup-height) when not (@_popup-height = auto) {
|
||||
overflow-y: auto;
|
||||
.lib-css(max-height, @_popup-height);
|
||||
}
|
||||
|
||||
// Popup Headings
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
) when (@_popup-title-headings = true) and (@_popup-title-headings-level = h1) {
|
||||
.lib-heading(h1);
|
||||
}
|
||||
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
) when (@_popup-title-headings = true) and (@_popup-title-headings-level = h2) {
|
||||
.lib-heading(h2);
|
||||
}
|
||||
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
) when (@_popup-title-headings = true) and (@_popup-title-headings-level = h3) {
|
||||
.lib-heading(h3);
|
||||
}
|
||||
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
) when (@_popup-title-headings = true) and (@_popup-title-headings-level = h4) {
|
||||
.lib-heading(h4);
|
||||
}
|
||||
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
) when (@_popup-title-headings = true) and (@_popup-title-headings-level = h5) {
|
||||
.lib-heading(h5);
|
||||
}
|
||||
|
||||
._lib-popup-headings(
|
||||
@_popup-title-headings,
|
||||
@_popup-title-headings-level
|
||||
) when (@_popup-title-headings = true) and (@_popup-title-headings-level = h6) {
|
||||
.lib-heading(h6);
|
||||
}
|
||||
|
||||
// Popup action-toolbar
|
||||
._lib-popup-action-toolbar(
|
||||
@_popup-actions-toolbar,
|
||||
@_popup-actions-toolbar-actions-position,
|
||||
@_popup-actions-toolbar-actions-reverse,
|
||||
@_popup-actions-toolbar-margin,
|
||||
@_popup-actions-toolbar-padding,
|
||||
@_popup-actions-toolbar-actions-margin,
|
||||
@_popup-actions-toolbar-primary-actions-margin,
|
||||
@_popup-actions-toolbar-secondary-actions-margin,
|
||||
@_popup-actions-toolbar-actions-links-margin-top,
|
||||
@_popup-actions-toolbar-primary-actions-links-margin-top,
|
||||
@_popup-actions-toolbar-secondary-actions-links-margin-top
|
||||
) when (@_popup-actions-toolbar = true) {
|
||||
.popup-footer {
|
||||
.actions.toolbar {
|
||||
.lib-actions-toolbar(
|
||||
@_actions-toolbar-actions-position: @_popup-actions-toolbar-actions-position,
|
||||
@_actions-toolbar-actions-reverse: @_popup-actions-toolbar-actions-reverse,
|
||||
@_actions-toolbar-margin: @_popup-actions-toolbar-margin,
|
||||
@_actions-toolbar-padding: @_popup-actions-toolbar-padding,
|
||||
@_actions-toolbar-actions-margin: @_popup-actions-toolbar-actions-margin,
|
||||
@_actions-toolbar-primary-actions-margin: @_popup-actions-toolbar-primary-actions-margin,
|
||||
@_actions-toolbar-secondary-actions-margin: @_popup-actions-toolbar-secondary-actions-margin,
|
||||
@_actions-toolbar-actions-links-margin-top: @_popup-actions-toolbar-actions-links-margin-top,
|
||||
@_actions-toolbar-primary-actions-links-margin-top: @_popup-actions-toolbar-primary-actions-links-margin-top,
|
||||
@_actions-toolbar-secondary-actions-links-margin-top: @_popup-actions-toolbar-secondary-actions-links-margin-top
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Popup close button use icon
|
||||
.lib-popup-button-close-icon(
|
||||
@_popup-button-close-icon,
|
||||
@_popup-icon-font-content,
|
||||
@_popup-icon-font,
|
||||
@_popup-icon-font-size,
|
||||
@_popup-icon-font-line-height,
|
||||
@_popup-icon-font-color,
|
||||
@_popup-icon-font-color-hover,
|
||||
@_popup-icon-font-color-active,
|
||||
@_popup-icon-font-margin,
|
||||
@_popup-icon-font-vertical-align,
|
||||
@_popup-icon-font-position,
|
||||
@_popup-icon-font-text-hide
|
||||
) when (@_popup-button-close-icon = true) {
|
||||
.lib-button-icon(
|
||||
@_icon-font-content: @_popup-icon-font-content,
|
||||
@_icon-font: @_popup-icon-font,
|
||||
@_icon-font-size: @_popup-icon-font-size,
|
||||
@_icon-font-line-height: @_popup-icon-font-line-height,
|
||||
@_icon-font-color: @_popup-icon-font-color,
|
||||
@_icon-font-color-hover: @_popup-icon-font-color-hover,
|
||||
@_icon-font-color-active: @_popup-icon-font-color-active,
|
||||
@_icon-font-margin: @_popup-icon-font-margin,
|
||||
@_icon-font-vertical-align: @_popup-icon-font-vertical-align,
|
||||
@_icon-font-position: @_popup-icon-font-position,
|
||||
@_icon-font-text-hide: @_popup-icon-font-text-hide
|
||||
);
|
||||
}
|
||||
|
||||
// Popup close button reset
|
||||
._lib-popup-button-close-reset (
|
||||
@_popup-button-close-reset
|
||||
) when (@_popup-button-close-reset = true) {
|
||||
.lib-button-reset();
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Ratings
|
||||
// _____________________________________________
|
||||
|
||||
// Rating-vote mixin
|
||||
.lib-rating-vote(
|
||||
@_icon-count: @rating-icon__count,
|
||||
@_icon-content: @rating-icon__content,
|
||||
@_icon-font: @rating-icon__font,
|
||||
@_icon-font-size: @rating-icon__font-size,
|
||||
@_icon-letter-spacing: @rating-icon__letter-spacing,
|
||||
@_icon-color: @rating-icon__color,
|
||||
@_icon-color-active: @rating-icon__active__color
|
||||
) {
|
||||
overflow: hidden;
|
||||
|
||||
&:before {
|
||||
._lib-rating-icon-defalt(
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-letter-spacing,
|
||||
@_icon-color
|
||||
);
|
||||
.lib-rating-icons-content(
|
||||
@_icon-count,
|
||||
@_icon-content
|
||||
);
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
.lib-visually-hidden();
|
||||
|
||||
&:hover,
|
||||
&:checked {
|
||||
+ label {
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
||||
span {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
|
||||
&:before {
|
||||
._lib-rating-icon-defalt(
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-letter-spacing,
|
||||
@_icon-color-active
|
||||
);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
~ label {
|
||||
&:before {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
._lib-rating-iteration(
|
||||
@_icon-content,
|
||||
@_icon-count
|
||||
);
|
||||
}
|
||||
|
||||
// Rating-summary mixin
|
||||
.lib-rating-summary(
|
||||
@_icon-count: @rating-icon__count,
|
||||
@_icon-content: @rating-icon__content,
|
||||
@_icon-font: @rating-icon__font,
|
||||
@_icon-font-size: @rating-icon__font-size,
|
||||
@_icon-letter-spacing: @rating-icon__letter-spacing,
|
||||
@_icon-color: @rating-icon__color,
|
||||
@_icon-color-active: @rating-icon__active__color,
|
||||
@_label-hide: @rating-label__hide
|
||||
) {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
._lib-rating-label-hide(@_label-hide);
|
||||
|
||||
.rating-result {
|
||||
.lib-css(width, (@_icon-font-size * @_icon-count) + ceil(@_icon-letter-spacing * (@_icon-count - 1)));
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
|
||||
&:before {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
._lib-rating-summary-icon-default(
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-letter-spacing,
|
||||
@_icon-count,
|
||||
@_icon-content,
|
||||
@_icon-color
|
||||
);
|
||||
}
|
||||
|
||||
> span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
|
||||
&:before {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
._lib-rating-summary-icon-default(
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-letter-spacing,
|
||||
@_icon-count,
|
||||
@_icon-content,
|
||||
@_icon-color-active
|
||||
);
|
||||
}
|
||||
|
||||
span {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-rating-summary-label-hide() {
|
||||
.label {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
|
||||
// Internal use mixins
|
||||
._lib-rating-label-hide(@_label-hide) when (@_label-hide = true) {
|
||||
.lib-rating-summary-label-hide();
|
||||
}
|
||||
|
||||
._lib-rating-iteration(
|
||||
@_icon-content,
|
||||
@_icon-count
|
||||
) {
|
||||
.loopingClass (@_index) when (@_index > 0) {
|
||||
.rating-@{_index} {
|
||||
z-index: @_icon-count - (@_index - 2);
|
||||
|
||||
&:before {
|
||||
.lib-rating-icons-content(@_index, @_icon-content);
|
||||
}
|
||||
}
|
||||
// Next iteration
|
||||
.loopingClass(@_index - 1);
|
||||
}
|
||||
|
||||
.loopingClass (0) {}
|
||||
.loopingClass (@_icon-count);
|
||||
}
|
||||
|
||||
._lib-rating-icon-defalt(
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-letter-spacing,
|
||||
@_icon-color
|
||||
) {
|
||||
.lib-css(color, @_icon-color);
|
||||
.lib-css(font-family, @_icon-font);
|
||||
.lib-css(font-size, @_icon-font-size);
|
||||
.lib-css(height, @_icon-font-size);
|
||||
.lib-css(letter-spacing, @_icon-letter-spacing);
|
||||
.lib-css(line-height, @_icon-font-size);
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
vertical-align: top;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
._lib-rating-summary-icon-default(
|
||||
@_icon-font,
|
||||
@_icon-font-size,
|
||||
@_icon-letter-spacing,
|
||||
@_icon-count,
|
||||
@_icon-content,
|
||||
@_icon-color
|
||||
) {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
.lib-css(color, @_icon-color);
|
||||
.lib-css(font-family, @_icon-font);
|
||||
.lib-css(font-size, @_icon-font-size);
|
||||
.lib-css(height, @_icon-font-size);
|
||||
.lib-css(letter-spacing, @_icon-letter-spacing);
|
||||
.lib-css(line-height, @_icon-font-size);
|
||||
.lib-rating-icons-content(@_icon-count, @_icon-content);
|
||||
display: block;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
}
|
||||
|
||||
.lib-rating-icons-content(
|
||||
@_icon-count: @rating-icon__count,
|
||||
@_icon-content: @rating-icon__content
|
||||
) when (@_icon-count > 0) {
|
||||
.lib-rating-icons-content((@_icon-count - 1),@_icon-content);
|
||||
content+_: @_icon-content;
|
||||
}
|
||||
@@ -0,0 +1,521 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Resets
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Magento reset
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-magento-reset() {
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
main,
|
||||
footer,
|
||||
header,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
video {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
nav ul,
|
||||
nav ol {
|
||||
list-style: none none;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
video,
|
||||
embed,
|
||||
object {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.lib-typography-all();
|
||||
|
||||
table {
|
||||
.lib-table();
|
||||
}
|
||||
|
||||
button {
|
||||
.lib-button();
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-form-element-all();
|
||||
form {
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
}
|
||||
|
||||
address {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
* {
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
._keyfocus *,
|
||||
input:not([disabled]),
|
||||
textarea:not([disabled]),
|
||||
select:not([disabled]) {
|
||||
&:focus {
|
||||
.lib-css(box-shadow, @focus__box-shadow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Normalize
|
||||
// ---------------------------------------------
|
||||
|
||||
// ToDo UI: delete with old admin styles
|
||||
.lib-normalize() {
|
||||
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
font-size-adjust: 100%;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
main,
|
||||
footer,
|
||||
header,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: .67em 0;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: @color-black;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -.25em;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
hr {
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
input[type="search"] {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: .35em .625em .75em;
|
||||
}
|
||||
|
||||
legend {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Reset
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-reset() {
|
||||
/* http://meyerweb.com/eric/tools/css/reset/
|
||||
v2.0 | 20110126
|
||||
License: none (public domain)
|
||||
*/
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, main, footer, header,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
article, aside, details, figcaption, figure, main,
|
||||
footer, header, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Universal Selector ‘*’ Reset
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-universal() {
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Html5doctor Reset Stylesheet
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-html5doctor-reset() {
|
||||
/*
|
||||
html5doctor.com Reset Stylesheet - http://html5doctor.com/html-5-reset-stylesheet
|
||||
v1.6.1
|
||||
Last Updated: 2010-09-17
|
||||
Author: Richard Clark - http://richclarkdesign.com
|
||||
Twitter: @rich_clark
|
||||
*/
|
||||
html, body, div, span, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
abbr, address, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, samp,
|
||||
small, strong, sub, sup, var,
|
||||
b, i,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, figcaption, figure, main,
|
||||
footer, header, menu, nav, section, summary,
|
||||
time, mark, audio, video {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
article, aside, details, figcaption, figure, main,
|
||||
footer, header, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
font-size: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
ins {
|
||||
background-color: #ff9;
|
||||
color: @color-black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: #ff9;
|
||||
color: @color-black;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
del {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
abbr[title], dfn[title] {
|
||||
border-bottom: 1px dotted;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
display: block;
|
||||
height: 1px;
|
||||
margin: 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input, select {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Global border-box
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-set-default-border-box() {
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Responsive
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Media variables, that can be used for splitting styles into several files
|
||||
// ---------------------------------------------
|
||||
|
||||
@media-common: true; // Sets whether to output common styles (true|false)
|
||||
@media-target: 'all'; // Sets target device for styles output (all|desktop|mobile)
|
||||
|
||||
//
|
||||
// Media width mixin used to group styles output based on media queries
|
||||
// ---------------------------------------------
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
|
||||
}
|
||||
|
||||
//
|
||||
// Style groups for 'mobile' devices
|
||||
// ---------------------------------------------
|
||||
|
||||
& when (@media-target = 'mobile'), (@media-target = 'all') {
|
||||
|
||||
@media only screen and (max-width: (@screen__m + 1)) {
|
||||
.media-width('max', (@screen__m + 1));
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @screen__m) {
|
||||
.media-width('max', @screen__m);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: (@screen__s - 1)) {
|
||||
.media-width('max', @screen__s);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: (@screen__xs - 1)) {
|
||||
.media-width('max', @screen__xs);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: (@screen__xxs - 1)) {
|
||||
.media-width('max', @screen__xxs);
|
||||
}
|
||||
|
||||
@media all and (min-width: @screen__s) {
|
||||
.media-width('min', @screen__s);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// Style groups for 'desktop' devices
|
||||
// ---------------------------------------------
|
||||
|
||||
& when (@media-target = 'desktop'), (@media-target = 'all') {
|
||||
|
||||
@media all and (min-width: (@screen__m + 1)),
|
||||
print {
|
||||
.media-width('min', (@screen__m + 1));
|
||||
}
|
||||
|
||||
@media all and (min-width: (@screen__m + 1)),
|
||||
print {
|
||||
.media-width('min', (@screen__m));
|
||||
}
|
||||
|
||||
@media all and (min-width: @screen__l),
|
||||
print {
|
||||
.media-width('min', @screen__l);
|
||||
}
|
||||
|
||||
@media all and (min-width: @screen__xl),
|
||||
print {
|
||||
.media-width('min', @screen__xl);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Sections
|
||||
// _____________________________________________
|
||||
|
||||
.lib-data-tabs__base(@_tab-control-height__base: @tab-control__height__base) {
|
||||
.lib-clearfix();
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
> .item.title {
|
||||
float: left;
|
||||
width: auto;
|
||||
|
||||
> .switch {
|
||||
.lib-css(height, @_tab-control-height__base);
|
||||
display: block;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
> .item.content {
|
||||
.lib-clearfix();
|
||||
.lib-css(margin-top, @_tab-control-height__base);
|
||||
box-sizing: border-box;
|
||||
float: right;
|
||||
margin-left: -100%;
|
||||
width: 100%;
|
||||
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-data-tabs(
|
||||
@_tab-control-font-family: @tab-control__font-family,
|
||||
@_tab-control-font-size: @tab-control__font-size,
|
||||
@_tab-control-font-style: @tab-control__font-style,
|
||||
@_tab-control-font-weight: @tab-control__font-weight,
|
||||
@_tab-control-line-height: @tab-control__line-height,
|
||||
|
||||
@_tab-control-background-color: @tab-control__background-color,
|
||||
@_tab-control-color: @tab-control__color,
|
||||
@_tab-control-text-decoration: @tab-control__text-decoration,
|
||||
|
||||
@_tab-control-color-visited: @tab-control__visited__color,
|
||||
@_tab-control-text-decoration-visited: @tab-control__visited__text-decoration,
|
||||
|
||||
@_tab-control-background-color-hover: @tab-control__hover__background-color,
|
||||
@_tab-control-color-hover: @tab-control__hover__color,
|
||||
@_tab-control-text-decoration-hover: @tab-control__hover__text-decoration,
|
||||
|
||||
@_tab-control-background-color-active: @tab-control__active__background-color,
|
||||
@_tab-control-color-active: @tab-control__active__color,
|
||||
@_tab-control-text-decoration-active: @tab-control__active__text-decoration,
|
||||
|
||||
@_tab-control-height: @tab-control__height,
|
||||
@_tab-control-margin-right: @tab-control__margin-right,
|
||||
|
||||
@_tab-control-padding-top: @tab-control__padding-top,
|
||||
@_tab-control-padding-right: @tab-control__padding-right,
|
||||
@_tab-control-padding-bottom: @tab-control__padding-bottom,
|
||||
@_tab-control-padding-left: @tab-control__padding-left,
|
||||
|
||||
@_tab-control-border-width: @tab-control__border-width,
|
||||
@_tab-control-border-color: @tab-control__border-color,
|
||||
|
||||
@_tab-content-background-color: @tab-content__background-color,
|
||||
@_tab-content-border: @tab-content__border,
|
||||
@_tab-content-border-top-status: @tab-content__border-top-status,
|
||||
@_tab-content-margin-top: @tab-content__margin-top,
|
||||
|
||||
@_tab-content-padding-top: @tab-content__padding-top,
|
||||
@_tab-content-padding-right: @tab-content__padding-right,
|
||||
@_tab-content-padding-bottom: @tab-content__padding-bottom,
|
||||
@_tab-content-padding-left: @tab-content__padding-left
|
||||
) {
|
||||
.lib-data-tabs__base();
|
||||
> .item.title {
|
||||
.lib-css(margin, 0 @_tab-control-margin-right 0 0);
|
||||
> .switch {
|
||||
.lib-typography(
|
||||
@_color: @_tab-control-color,
|
||||
@_font-size: @_tab-control-font-size,
|
||||
@_font-family: @_tab-control-font-family,
|
||||
@_font-weight: @_tab-control-font-weight,
|
||||
@_font-style: @_tab-control-font-style,
|
||||
@_line-height: @_tab-control-line-height
|
||||
);
|
||||
.lib-link(
|
||||
@_link-color: @_tab-control-color,
|
||||
@_link-text-decoration: @_tab-control-text-decoration,
|
||||
@_link-color-visited: @_tab-control-color-visited,
|
||||
@_link-text-decoration-visited: @_tab-control-text-decoration-visited,
|
||||
@_link-color-hover: @_tab-control-color-hover,
|
||||
@_link-text-decoration-hover: @_tab-control-text-decoration-hover,
|
||||
@_link-color-active: @_tab-control-color-active,
|
||||
@_link-text-decoration-active: @_tab-control-text-decoration-active
|
||||
);
|
||||
.lib-css(background, @_tab-control-background-color);
|
||||
.lib-css(border, @_tab-content-border);
|
||||
border-bottom: none;
|
||||
.lib-css(height, @_tab-control-height);
|
||||
.lib-css(padding, @_tab-control-padding-top @_tab-control-padding-right @_tab-control-padding-bottom @_tab-control-padding-left);
|
||||
}
|
||||
|
||||
&:not(.disabled) > .switch:focus,
|
||||
&:not(.disabled) > .switch:hover {
|
||||
.lib-css(background, @_tab-control-background-color-hover);
|
||||
}
|
||||
|
||||
&:not(.disabled) > .switch:active,
|
||||
&.active > .switch,
|
||||
&.active > .switch:focus,
|
||||
&.active > .switch:hover {
|
||||
.lib-css(background, @_tab-control-background-color-active);
|
||||
.lib-css(color, @_tab-control-color-active);
|
||||
.lib-css(text-decoration, @_tab-control-text-decoration-active);
|
||||
}
|
||||
|
||||
&.active > .switch,
|
||||
&.active > .switch:focus,
|
||||
&.active > .switch:hover {
|
||||
.lib-css(padding-bottom, @_tab-control-padding-bottom + @_tab-control-border-width);
|
||||
}
|
||||
}
|
||||
|
||||
> .item.content {
|
||||
.lib-css(background, @_tab-content-background-color);
|
||||
margin-top: @_tab-content-margin-top;
|
||||
padding: @_tab-content-padding-top @_tab-content-padding-right @_tab-content-padding-bottom @_tab-content-padding-left;
|
||||
|
||||
._lib-tab-content-border(
|
||||
@_tab-content-border-top-status: @_tab-content-border-top-status,
|
||||
@_tab-content-border: @_tab-content-border
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-tab-content-border(
|
||||
@_tab-content-border-top-status,
|
||||
@_tab-content-border
|
||||
) when (@_tab-content-border-top-status = false){
|
||||
.lib-css(border, @_tab-content-border);
|
||||
}
|
||||
|
||||
._lib-tab-content-border(
|
||||
@_tab-content-border-top-status,
|
||||
@_tab-content-border
|
||||
) when (@_tab-content-border-top-status = true){
|
||||
border: 0;
|
||||
.lib-css(border-top, @_tab-content-border);
|
||||
}
|
||||
|
||||
.lib-data-accordion__base() {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
> .item.title {
|
||||
box-sizing: border-box;
|
||||
float: none;
|
||||
width: 100%;
|
||||
|
||||
> .switch {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
> .item.content {
|
||||
.lib-clearfix();
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
float: none;
|
||||
margin: 0;
|
||||
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-data-accordion(
|
||||
@_accordion-control-font-family: @accordion-control__font-family,
|
||||
@_accordion-control-font-size: @accordion-control__font-size,
|
||||
@_accordion-control-font-style: @accordion-control__font-style,
|
||||
@_accordion-control-font-weight: @accordion-control__font-weight,
|
||||
@_accordion-control-line-height: @accordion-control__line-height,
|
||||
|
||||
@_accordion-control-border-top: @accordion-control__border-top,
|
||||
@_accordion-control-border-right: @accordion-control__border-right,
|
||||
@_accordion-control-border-bottom: @accordion-control__border-bottom,
|
||||
@_accordion-control-border-left: @accordion-control__border-left,
|
||||
|
||||
@_accordion-control-background-color: @accordion-control__background-color,
|
||||
@_accordion-control-color: @accordion-control__color,
|
||||
@_accordion-control-text-decoration: @accordion-control__text-decoration,
|
||||
|
||||
@_accordion-control-color-visited: @accordion-control__visited__color,
|
||||
@_accordion-control-text-decoration-visited: @accordion-control__visited__text-decoration,
|
||||
|
||||
@_accordion-control-background-color-hover: @accordion-control__hover__background-color,
|
||||
@_accordion-control-color-hover: @accordion-control__hover__color,
|
||||
@_accordion-control-text-decoration-hover: @accordion-control__hover__text-decoration,
|
||||
|
||||
@_accordion-control-background-color-active: @accordion-control__active__background-color,
|
||||
@_accordion-control-color-active: @accordion-control__active__color,
|
||||
@_accordion-control-text-decoration-active: @accordion-control__active__text-decoration,
|
||||
|
||||
@_accordion-control-height: @accordion-control__height,
|
||||
@_accordion-control-margin-bottom: @accordion-control__margin-bottom,
|
||||
|
||||
@_accordion-control-padding-top: @accordion-control__padding-top,
|
||||
@_accordion-control-padding-right: @accordion-control__padding-right,
|
||||
@_accordion-control-padding-bottom: @accordion-control__padding-bottom,
|
||||
@_accordion-control-padding-left: @accordion-control__padding-left,
|
||||
|
||||
@_accordion-content-background-color: @accordion-content__background-color,
|
||||
@_accordion-content-border: @accordion-content__border,
|
||||
|
||||
@_accordion-content-margin: @accordion-content__margin,
|
||||
@_accordion-content-padding: @accordion-content__padding
|
||||
) {
|
||||
.lib-data-accordion__base();
|
||||
& when (@_accordion-control-margin-bottom = 0) {
|
||||
> .item.title {
|
||||
.lib-css(margin, 0);
|
||||
}
|
||||
}
|
||||
& when not (@_accordion-control-margin-bottom = 0) {
|
||||
> .item.title {
|
||||
.lib-css(margin, 0 0 @_accordion-control-margin-bottom);
|
||||
}
|
||||
}
|
||||
> .item.title {
|
||||
> .switch {
|
||||
.lib-css(background, @_accordion-control-background-color);
|
||||
.lib-css(border-bottom,@_accordion-control-border-bottom);
|
||||
.lib-css(border-left,@_accordion-control-border-left);
|
||||
.lib-css(border-right,@_accordion-control-border-right);
|
||||
.lib-css(border-top,@_accordion-control-border-top);
|
||||
.lib-css(height, @_accordion-control-height);
|
||||
.lib-css(padding, @_accordion-control-padding-top @_accordion-control-padding-right @_accordion-control-padding-bottom @_accordion-control-padding-left);
|
||||
.lib-typography(
|
||||
@_color: @_accordion-control-color,
|
||||
@_font-family: @_accordion-control-font-family,
|
||||
@_font-size: @_accordion-control-font-size,
|
||||
@_font-style: @_accordion-control-font-style,
|
||||
@_font-weight: @_accordion-control-font-weight,
|
||||
@_line-height: @_accordion-control-line-height
|
||||
);
|
||||
.lib-link(
|
||||
@_link-color: @_accordion-control-color,
|
||||
@_link-text-decoration: @_accordion-control-text-decoration,
|
||||
@_link-color-visited: @_accordion-control-color-visited,
|
||||
@_link-text-decoration-visited: @_accordion-control-text-decoration-visited,
|
||||
@_link-color-hover: @_accordion-control-color-hover,
|
||||
@_link-text-decoration-hover: @_accordion-control-text-decoration-hover,
|
||||
@_link-color-active: @_accordion-control-color-active,
|
||||
@_link-text-decoration-active: @_accordion-control-text-decoration-active
|
||||
);
|
||||
}
|
||||
|
||||
&:not(.disabled) > .switch:focus,
|
||||
&:not(.disabled) > .switch:hover {
|
||||
.lib-css(background, @_accordion-control-background-color-hover);
|
||||
}
|
||||
|
||||
&:not(.disabled) > .switch:active,
|
||||
&.active > .switch,
|
||||
&.active > .switch:focus,
|
||||
&.active > .switch:hover {
|
||||
.lib-css(background, @_accordion-control-background-color-active);
|
||||
.lib-css(color, @_accordion-control-color-active);
|
||||
.lib-css(text-decoration, @_accordion-control-text-decoration-active);
|
||||
.lib-css(padding-bottom, @_accordion-control-padding-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
> .item.content {
|
||||
.lib-css(background, @_accordion-content-background-color);
|
||||
.lib-css(border, @_accordion-content-border);
|
||||
.lib-css(margin, @_accordion-content-margin);
|
||||
.lib-css(padding, @_accordion-content-padding);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,554 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Tables
|
||||
// _____________________________________________
|
||||
|
||||
.lib-table(
|
||||
@_table-width: @table__width,
|
||||
@_cell-padding-vertical: @table-cell__padding-vertical,
|
||||
@_cell-padding-horizontal: @table-cell__padding-horizontal,
|
||||
@_table-margin-bottom: @table__margin-bottom
|
||||
) {
|
||||
.lib-css(margin-bottom, @_table-margin-bottom);
|
||||
.lib-css(width, @_table-width);
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
max-width: 100%;
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> thead > tr {
|
||||
> th,
|
||||
> td {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
.lib-css(padding, @_cell-padding-vertical @_cell-padding-horizontal);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-typography(
|
||||
@_table-td-font-size: @table-td__font-size,
|
||||
@_table-td-color: @table-td__color,
|
||||
@_table-td-font-family: @table-td__font-family,
|
||||
@_table-td-font-weight: @table-td__font-weight,
|
||||
@_table-td-line-height: @table-td__line-height,
|
||||
@_table-td-font-style: @table-td__font-style,
|
||||
@_table-th-font-size: @table-th__font-size,
|
||||
@_table-th-color: @table-th__color,
|
||||
@_table-th-font-family: @table-th__font-family,
|
||||
@_table-th-font-weight: @table-th__font-weight,
|
||||
@_table-th-line-height: @table-th__line-height,
|
||||
@_table-th-font-style: @table-th__font-style
|
||||
) {
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> td {
|
||||
.lib-typography(
|
||||
@_font-size: @_table-td-font-size,
|
||||
@_color: @_table-td-color,
|
||||
@_font-family: @_table-td-font-family,
|
||||
@_font-weight: @_table-td-font-weight,
|
||||
@_line-height: @_table-td-line-height,
|
||||
@_font-style: @_table-td-font-style
|
||||
);
|
||||
}
|
||||
|
||||
> th {
|
||||
.lib-typography(
|
||||
@_font-size: @_table-th-font-size,
|
||||
@_color: @_table-th-color,
|
||||
@_font-family: @_table-th-font-family,
|
||||
@_font-weight: @_table-th-font-weight,
|
||||
@_line-height: @_table-th-line-height,
|
||||
@_font-style: @_table-th-font-style
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-background-color(
|
||||
@_table-background-color: @table__background-color,
|
||||
@_table-head-background-color: @table-head__background-color,
|
||||
@_table-foot-background-color: @table-foot__background-color,
|
||||
@_table-td-background-color: @table-td__background-color,
|
||||
@_table-body-th-background-color: @table-body-th__background-color
|
||||
) {
|
||||
.lib-css(background, @_table-background-color);
|
||||
|
||||
> thead {
|
||||
.lib-css(background, @_table-head-background-color);
|
||||
}
|
||||
|
||||
> tfoot {
|
||||
.lib-css(background, @_table-foot-background-color);
|
||||
}
|
||||
|
||||
> tbody > tr > td {
|
||||
.lib-css(background, @_table-td-background-color);
|
||||
}
|
||||
|
||||
> tbody > tr >th {
|
||||
.lib-css(background, @_table-body-th-background-color);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-resize(
|
||||
@_td-padding-top: (@table-cell__padding-vertical / 2),
|
||||
@_td-padding-right: (@table-cell__padding-horizontal / 2),
|
||||
@_td-padding-bottom: @_td-padding-top,
|
||||
@_td-padding-left: @_td-padding-right,
|
||||
@_th-padding-top: @_td-padding-top,
|
||||
@_th-padding-right: @_td-padding-right,
|
||||
@_th-padding-bottom: @_td-padding-top,
|
||||
@_th-padding-left: @_td-padding-right
|
||||
) {
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> td {
|
||||
.lib-css(padding, @_td-padding-top @_td-padding-right @_td-padding-bottom @_td-padding-left);
|
||||
}
|
||||
> th {
|
||||
.lib-css(padding, @_th-padding-top @_th-padding-right @_th-padding-bottom @_th-padding-left);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-bordered(
|
||||
@_table_type: normal,
|
||||
@_table_border-width: @table__border-width,
|
||||
@_table_border-style: @table__border-style,
|
||||
@_table_border-color: @table__border-color
|
||||
) when (@_table_type = normal){
|
||||
.lib-css(border, @_table_border-width @_table_border-style @_table_border-color);
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
.lib-css(border, @_table_border-width @_table_border-style @_table_border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-bordered(
|
||||
@_table_type: normal,
|
||||
@_table_border-width: @table__border-width,
|
||||
@_table_border-style: @table__border-style,
|
||||
@_table_border-color: @table__border-color
|
||||
) when (@_table_type = horizontal){
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
.lib-css(border-top, @_table_border-width @_table_border-style @_table_border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> caption + thead,
|
||||
> colgroup + thead,
|
||||
> thead:first-child {
|
||||
> tr:first-child {
|
||||
> th,
|
||||
> td {
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> tbody + tbody {
|
||||
.lib-css(border-top, @_table_border-width @_table_border-style @_table_border-color);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-bordered(
|
||||
@_table_type: normal,
|
||||
@_table_border-width: @table__border-width,
|
||||
@_table_border-style: @table__border-style,
|
||||
@_table_border-color: @table__border-color
|
||||
) when (@_table_type = horizontal_body){
|
||||
> tbody {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
.lib-css(border-top, @_table_border-width @_table_border-style @_table_border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> tbody + tbody {
|
||||
.lib-css(border-top, @_table_border-width @_table_border-style @_table_border-color);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-bordered(
|
||||
@_table_type: normal,
|
||||
@_table_border-width: @table__border-width,
|
||||
@_table_border-style: @table__border-style,
|
||||
@_table_border-color: @table__border-color
|
||||
) when (@_table_type = vertical){
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
.lib-css(border-left, @_table_border-width @_table_border-style @_table_border-color);
|
||||
&:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-bordered(
|
||||
@_table_type: normal,
|
||||
@_table_border-width: @table__border-width,
|
||||
@_table_border-style: @table__border-style,
|
||||
@_table_border-color: @table__border-color
|
||||
) when (@_table_type = light){
|
||||
border: none;
|
||||
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> thead {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
.lib-css(border-bottom, @_table_border-width @_table_border-style @_table_border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-bordered(
|
||||
@_table_type: normal,
|
||||
@_table_border-width: @table__border-width,
|
||||
@_table_border-style: @table__border-style,
|
||||
@_table_border-color: @table__border-color
|
||||
) when (@_table_type = clear){
|
||||
border: none;
|
||||
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th,
|
||||
> td {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-striped(
|
||||
@_stripped-background-color: @table-cell-stripped__background-color,
|
||||
@_stripped-color: @table-cell-stripped__color,
|
||||
@_stripped-direction: horizontal,
|
||||
@_stripped-highlight: odd
|
||||
) when (@_stripped-highlight = odd) and (@_stripped-direction = horizontal){
|
||||
> tbody > tr:nth-child(odd) {
|
||||
> td,
|
||||
> th {
|
||||
.lib-css(background, @_stripped-background-color);
|
||||
.lib-css(color, @_stripped-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-striped(
|
||||
@_stripped-background-color: @table-cell-stripped__background-color,
|
||||
@_stripped-color: @table-cell-stripped__color,
|
||||
@_stripped-direction: horizontal,
|
||||
@_stripped-highlight: odd
|
||||
) when (@_stripped-highlight = even) and (@_stripped-direction = horizontal) {
|
||||
> tbody > tr:nth-child(even) {
|
||||
> td,
|
||||
> th {
|
||||
.lib-css(background, @_stripped-background-color);
|
||||
.lib-css(color, @_stripped-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-striped(
|
||||
@_stripped-background-color: @table-cell-stripped__background-color,
|
||||
@_stripped-color: @table-cell-stripped__color,
|
||||
@_stripped-direction: horizontal,
|
||||
@_stripped-highlight: odd
|
||||
) when (@_stripped-highlight = odd) and (@_stripped-direction = vertical) {
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th:nth-child(odd),
|
||||
> td:nth-child(odd) {
|
||||
.lib-css(background, @_stripped-background-color);
|
||||
.lib-css(color, @_stripped-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-striped(
|
||||
@_stripped-background-color: @table-cell-stripped__background-color,
|
||||
@_stripped-color: @table-cell-stripped__color,
|
||||
@_stripped-direction: horizontal,
|
||||
@_stripped-highlight: odd
|
||||
) when (@_stripped-highlight = even) and (@_stripped-direction = vertical) {
|
||||
> thead,
|
||||
> tbody,
|
||||
> tfoot {
|
||||
> tr {
|
||||
> th:nth-child(even),
|
||||
> td:nth-child(even) {
|
||||
.lib-css(background, @_stripped-background-color);
|
||||
.lib-css(color, @_stripped-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-hover(
|
||||
@_table_cell-background-color-hover: @table-cell__hover__background-color,
|
||||
@_table_cell-odd-background-color-hover: @_table_cell-background-color-hover
|
||||
) {
|
||||
> tbody > tr:nth-child(even):hover {
|
||||
> td,
|
||||
> th {
|
||||
.lib-css(background, @_table_cell-background-color-hover);
|
||||
}
|
||||
}
|
||||
|
||||
> tbody > tr:nth-child(odd):hover {
|
||||
> td,
|
||||
> th {
|
||||
.lib-css(background, @_table_cell-odd-background-color-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-overflow() {
|
||||
.lib-css(margin-bottom, @table__margin-bottom);
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
width: 100%;
|
||||
-ms-overflow-style: -ms-autohiding-scrollbar;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.lib-table-responsive(
|
||||
@_table-background-color-responsive: @table-responsive__background-color,
|
||||
@_table-th-background-color-responsive: @table-responsive-th__background-color,
|
||||
@_reset-table-striped: false,
|
||||
@_reset-table-hover: false,
|
||||
@_table-responsive-cell-padding: @table-responsive-cell__padding
|
||||
) when (@_reset-table-striped = false) and (@_reset-table-hover = false){
|
||||
._lib-responsive-table(
|
||||
@_table-background-color-responsive: @_table-background-color-responsive,
|
||||
@_table-responsive-cell-padding: @_table-responsive-cell-padding
|
||||
);
|
||||
|
||||
> tbody > tr > th {
|
||||
.lib-css(background-color, @_table-th-background-color-responsive);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-responsive(
|
||||
@_table-background-color-responsive: @table-responsive__background-color,
|
||||
@_table-th-background-color-responsive: @table-responsive-th__background-color,
|
||||
@_reset-table-striped: false,
|
||||
@_reset-table-hover: false,
|
||||
@_table-responsive-cell-padding: @table-responsive-cell__padding
|
||||
) when (@_reset-table-striped = true) and (@_reset-table-hover = true){
|
||||
.lib-table-striped(@_stripped-background-color: @_table-background-color-responsive);
|
||||
.lib-table-hover(
|
||||
@_table_cell-background-color-hover: @_table-background-color-responsive,
|
||||
@_table_cell-odd-background-color-hover: @_table-background-color-responsive
|
||||
);
|
||||
|
||||
._lib-responsive-table(
|
||||
@_table-background-color-responsive: @_table-background-color-responsive,
|
||||
@_table-responsive-cell-padding: @_table-responsive-cell-padding
|
||||
);
|
||||
|
||||
> tbody > tr > th {
|
||||
.lib-css(background-color, @_table-th-background-color-responsive ~'!important');
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-responsive(
|
||||
@_table-background-color-responsive: @table-responsive__background-color,
|
||||
@_table-th-background-color-responsive: @table-responsive-th__background-color,
|
||||
@_reset-table-striped: false,
|
||||
@_reset-table-hover: false,
|
||||
@_table-responsive-cell-padding: @table-responsive-cell__padding
|
||||
) when (@_reset-table-striped = true) and (@_reset-table-hover = false){
|
||||
.lib-table-striped(@_stripped-background-color: @_table-background-color-responsive);
|
||||
|
||||
._lib-responsive-table(
|
||||
@_table-background-color-responsive: @_table-background-color-responsive,
|
||||
@_table-responsive-cell-padding: @_table-responsive-cell-padding
|
||||
);
|
||||
|
||||
.lib-css(background-color, @_table-th-background-color-responsive);
|
||||
}
|
||||
|
||||
.lib-table-responsive(
|
||||
@_table-background-color-responsive: @table-responsive__background-color,
|
||||
@_table-th-background-color-responsive: @table-responsive-th__background-color,
|
||||
@_reset-table-striped: false,
|
||||
@_reset-table-hover: false,
|
||||
@_table-responsive-cell-padding: @table-responsive-cell__padding
|
||||
) when (@_reset-table-striped = false) and (@_reset-table-hover = true){
|
||||
.lib-table-hover(
|
||||
@_table_cell-background-color-hover: @_table-background-color-responsive,
|
||||
@_table_cell-odd-background-color-hover: @_table-background-color-responsive
|
||||
);
|
||||
|
||||
._lib-responsive-table(
|
||||
@_table-background-color-responsive: @_table-background-color-responsive,
|
||||
@_table-responsive-cell-padding: @_table-responsive-cell-padding
|
||||
);
|
||||
|
||||
> tbody > tr > th {
|
||||
.lib-css(background-color, @_table-th-background-color-responsive ~'!important');
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-caption(
|
||||
@_table-caption-hide: @table-caption__hide,
|
||||
@_table-caption-font-size: @table-caption__font-size,
|
||||
@_table-caption-color: @table-caption__color,
|
||||
@_table-caption-font-family: @table-caption__font-family,
|
||||
@_table-caption-font-weight: @table-caption__font-weight,
|
||||
@_table-caption-font-style: @table-caption__font-style,
|
||||
@_table-caption-line-height: @table-caption__line-height,
|
||||
@_table-caption-alignment: @table-caption__alignment,
|
||||
@_table-caption-margin-top: @table-caption__margin-top,
|
||||
@_table-caption-margin-bottom: @table-caption__margin-bottom
|
||||
) when (@_table-caption-hide = false){
|
||||
> caption {
|
||||
.lib-typography(
|
||||
@_table-caption-font-size,
|
||||
@_table-caption-color,
|
||||
@_table-caption-font-family,
|
||||
@_table-caption-font-weight,
|
||||
@_table-caption-line-height,
|
||||
@_table-caption-font-style
|
||||
);
|
||||
.lib-css(margin-bottom, @_table-caption-margin-bottom);
|
||||
.lib-css(margin-top, @_table-caption-margin-top);
|
||||
.lib-css(text-align, @_table-caption-alignment);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-table-caption(
|
||||
@_table-caption-hide: @table-caption__hide,
|
||||
@_table-caption-font-size: @table-caption__font-size,
|
||||
@_table-caption-color: @table-caption__color,
|
||||
@_table-caption-font-family: @table-caption__font-family,
|
||||
@_table-caption-font-weight: @table-caption__font-weight,
|
||||
@_table-caption-line-height: @table-caption__line-height,
|
||||
@_table-caption-font-style: @table-caption__font-style,
|
||||
@_table-caption-alignment: @table-caption__alignment,
|
||||
@_table-caption-margin-top: @table-caption__margin-top,
|
||||
@_table-caption-margin-bottom: @table-caption__margin-bottom
|
||||
) when (@_table-caption-hide = true) {
|
||||
> caption {
|
||||
.lib-visually-hidden();
|
||||
}
|
||||
}
|
||||
|
||||
._lib-responsive-table(
|
||||
@_table-background-color-responsive: @_table-background-color-responsive,
|
||||
@_table-responsive-cell-padding: @_table-responsive-cell-padding
|
||||
) {
|
||||
.lib-css(background, @_table-background-color-responsive);
|
||||
border: none;
|
||||
display: block;
|
||||
|
||||
> thead > tr > th {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> tbody {
|
||||
display: block;
|
||||
|
||||
> tr {
|
||||
display: block;
|
||||
|
||||
td,
|
||||
th {
|
||||
border-bottom: none;
|
||||
display: block;
|
||||
.lib-css(padding, @_table-responsive-cell-padding);
|
||||
|
||||
&[data-th]:before {
|
||||
.lib-css(padding-right, @table-cell__padding-horizontal);
|
||||
content: attr(data-th)': ';
|
||||
display: inline-block;
|
||||
|
||||
.lib-typography(
|
||||
@_font-size: @table-th__font-size,
|
||||
@_color: @table-th__color,
|
||||
@_font-family: @table-th__font-family,
|
||||
@_font-weight: @table-th__font-weight,
|
||||
@_line-height: @table-th__line-height,
|
||||
@_font-style: @table-th__font-style
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
.lib-css(background, @_table-background-color-responsive);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Tooltips
|
||||
// _____________________________________________
|
||||
|
||||
.lib-tooltip(
|
||||
@_tooltip-position: top,
|
||||
@_tooltip-selector-toggle: ~".tooltip-toggle",
|
||||
@_tooltip-selector-content: ~".tooltip-content",
|
||||
@_tooltip-background: @tooltip__background,
|
||||
@_tooltip-border-color: @tooltip__border-color,
|
||||
@_tooltip-border-width: @tooltip__border-width,
|
||||
@_tooltip-border-radius: @tooltip__border-radius,
|
||||
@_tooltip-color: @tooltip__color,
|
||||
@_tooltip-cursor: @tooltip__cursor,
|
||||
@_tooltip-font-size: @tooltip__font-size,
|
||||
@_tooltip-font-family: @tooltip__font-family,
|
||||
@_tooltip-font-weight: @tooltip__font-weight,
|
||||
@_tooltip-line-height: @tooltip__line-height,
|
||||
@_tooltip-font-style: @tooltip__font-style,
|
||||
@_tooltip-margin: @tooltip__margin,
|
||||
@_tooltip-padding: @tooltip__padding,
|
||||
@_tooltip-min-width: @tooltip__min-width,
|
||||
@_tooltip-max-width: @tooltip__max-width,
|
||||
@_tooltip-arrow-size: @tooltip-arrow__size,
|
||||
@_tooltip-arrow-offset: @tooltip-arrow__offset,
|
||||
@_tooltip-z-index: @tooltip__z-index
|
||||
) {
|
||||
position: relative;
|
||||
|
||||
@{_tooltip-selector-content} {
|
||||
.lib-css(background, @_tooltip-background);
|
||||
.lib-css(border-radius, @_tooltip-border-radius);
|
||||
.lib-css(margin, @_tooltip-margin);
|
||||
.lib-css(max-width, @_tooltip-max-width);
|
||||
.lib-css(min-width, @_tooltip-min-width);
|
||||
.lib-css(padding, @_tooltip-padding);
|
||||
.lib-css(z-index, @_tooltip-z-index);
|
||||
display: none;
|
||||
position: absolute;
|
||||
text-align: left;
|
||||
|
||||
.lib-typography(
|
||||
@_color: @_tooltip-color,
|
||||
@_font-size: @_tooltip-font-size,
|
||||
@_font-family: @_tooltip-font-family,
|
||||
@_font-weight: @_tooltip-font-weight,
|
||||
@_line-height: @_tooltip-line-height,
|
||||
@_font-style: @_tooltip-font-style
|
||||
);
|
||||
|
||||
._lib-tooltip-border(@_tooltip-border-width, @_tooltip-border-color);
|
||||
|
||||
@_tooltip-arrow-after-margin: @_tooltip-arrow-size * -1px;
|
||||
@_tooltip-arrow-before-margin: (@_tooltip-arrow-size + round(@_tooltip-border-width * 1.41421356)) * -1px;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
border: solid transparent;
|
||||
content: '';
|
||||
height: 0;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(border-width, @_tooltip-arrow-size);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(border-width, @_tooltip-arrow-before-margin * -1);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
._lib-tooltip-arrow-position(
|
||||
@_tooltip-position,
|
||||
@_tooltip-arrow-size,
|
||||
@_tooltip-background,
|
||||
@_tooltip-arrow-after-margin,
|
||||
@_tooltip-arrow-before-margin,
|
||||
@_tooltip-arrow-offset,
|
||||
@_tooltip-border-color
|
||||
);
|
||||
}
|
||||
|
||||
& @{_tooltip-selector-toggle} {
|
||||
.lib-css(cursor, @_tooltip-cursor);
|
||||
}
|
||||
|
||||
& @{_tooltip-selector-toggle}:hover + @{_tooltip-selector-content},
|
||||
& @{_tooltip-selector-toggle}:focus + @{_tooltip-selector-content},
|
||||
&:hover @{_tooltip-selector-content} {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
._lib-tooltip-border(
|
||||
@_tooltip-border-width,
|
||||
@_tooltip-border-color
|
||||
) when not (@_tooltip-border-width = 0) and not (@_tooltip-border-width = false) and not (@_tooltip-border-color = false) {
|
||||
.lib-css(border, @_tooltip-border-width solid @_tooltip-border-color);
|
||||
}
|
||||
|
||||
._lib-tooltip-arrow-position(
|
||||
@_tooltip-position,
|
||||
@_tooltip-arrow-size,
|
||||
@_tooltip-background,
|
||||
@_tooltip-arrow-after-margin,
|
||||
@_tooltip-arrow-before-margin,
|
||||
@_tooltip-arrow-offset,
|
||||
@_tooltip-border-color
|
||||
) when (@_tooltip-position = top) {
|
||||
.lib-css(margin-bottom, @_tooltip-arrow-size);
|
||||
bottom: 100%;
|
||||
left: 0;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
top: 100%;
|
||||
}
|
||||
&:after {
|
||||
.lib-css(border-top-color, @_tooltip-background);
|
||||
.lib-css(left, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
.lib-css(margin-left, @_tooltip-arrow-after-margin);
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(border-top-color, @_tooltip-border-color);
|
||||
.lib-css(left, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
.lib-css(margin-left, @_tooltip-arrow-before-margin);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-tooltip-arrow-position(
|
||||
@_tooltip-position,
|
||||
@_tooltip-arrow-size,
|
||||
@_tooltip-background,
|
||||
@_tooltip-arrow-after-margin,
|
||||
@_tooltip-arrow-before-margin,
|
||||
@_tooltip-arrow-offset,
|
||||
@_tooltip-border-color
|
||||
) when (@_tooltip-position = left) {
|
||||
.lib-css(margin-right, @_tooltip-arrow-size);
|
||||
right: 100%;
|
||||
top: 0;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(border-left-color, @_tooltip-background);
|
||||
.lib-css(margin-top, @_tooltip-arrow-after-margin);
|
||||
.lib-css(top, @_tooltip-arrow-offset + @_tooltip-arrow-size)
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(border-left-color, @_tooltip-border-color);
|
||||
.lib-css(margin-top, @_tooltip-arrow-before-margin);
|
||||
.lib-css(top, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-tooltip-arrow-position(
|
||||
@_tooltip-position,
|
||||
@_tooltip-arrow-size,
|
||||
@_tooltip-background,
|
||||
@_tooltip-arrow-after-margin,
|
||||
@_tooltip-arrow-before-margin,
|
||||
@_tooltip-arrow-offset,
|
||||
@_tooltip-border-color
|
||||
) when (@_tooltip-position = right) {
|
||||
.lib-css(margin-left, @_tooltip-arrow-size);
|
||||
left: 100%;
|
||||
top: 0;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(border-right-color, @_tooltip-background);
|
||||
.lib-css(margin-top, @_tooltip-arrow-after-margin);
|
||||
.lib-css(top, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(border-right-color, @_tooltip-border-color);
|
||||
.lib-css(margin-top, @_tooltip-arrow-before-margin);
|
||||
.lib-css(top, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
}
|
||||
}
|
||||
|
||||
._lib-tooltip-arrow-position(
|
||||
@_tooltip-position,
|
||||
@_tooltip-arrow-size,
|
||||
@_tooltip-background,
|
||||
@_tooltip-arrow-after-margin,
|
||||
@_tooltip-arrow-before-margin,
|
||||
@_tooltip-arrow-offset,
|
||||
@_tooltip-border-color
|
||||
) when (@_tooltip-position = bottom) {
|
||||
.lib-css(margin-top, @_tooltip-arrow-size);
|
||||
left: 0;
|
||||
top: 100%;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
bottom: 100%;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(border-bottom-color, @_tooltip-background);
|
||||
.lib-css(left, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
.lib-css(margin-left, @_tooltip-arrow-after-margin);
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(border-bottom-color, @_tooltip-border-color);
|
||||
.lib-css(left, @_tooltip-arrow-offset + @_tooltip-arrow-size);
|
||||
.lib-css(margin-left, @_tooltip-arrow-before-margin);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,579 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Typography
|
||||
// _____________________________________________
|
||||
|
||||
.lib-font-face(
|
||||
@family-name,
|
||||
@font-path,
|
||||
@font-format: false,
|
||||
@font-weight: normal,
|
||||
@font-style: normal,
|
||||
@font-display: auto,
|
||||
@font-type: false
|
||||
) when (@font-format = false) {
|
||||
@font-face {
|
||||
font-family: @family-name;
|
||||
src: url('@{font-path}.woff2') format('woff2'),
|
||||
url('@{font-path}.woff') format('woff');
|
||||
font-weight: @font-weight;
|
||||
font-style: @font-style;
|
||||
font-display: @font-display;
|
||||
}
|
||||
}
|
||||
|
||||
// When need specify font format also should define font type include
|
||||
// The available types for @font-type are 'woff', 'woff2', 'truetype', 'opentype', 'embedded-opentype', and 'svg'
|
||||
// Enclose it in single quotes
|
||||
// _____________________________________________
|
||||
|
||||
.lib-font-face(
|
||||
@family-name,
|
||||
@font-path,
|
||||
@font-format: false,
|
||||
@font-weight: normal,
|
||||
@font-style: normal,
|
||||
@font-display: auto,
|
||||
@font-type: false
|
||||
) when not (@font-format = false) and not (@font-type = false) {
|
||||
@font-face {
|
||||
font-family: @family-name;
|
||||
src: url('@{font-path}.@{font-format}') format(@font-type);
|
||||
font-weight: @font-weight;
|
||||
font-style: @font-style;
|
||||
font-display: @font-display;
|
||||
}
|
||||
}
|
||||
|
||||
// Rem font size
|
||||
.lib-font-size(@sizeValue) when not (ispercentage(@sizeValue)) and not (@sizeValue = false) and (isunit(@sizeValue, @font-size-unit)) {
|
||||
.lib-css(font-size, @sizeValue);
|
||||
}
|
||||
|
||||
.lib-font-size(@sizeValue) when not (ispercentage(@sizeValue)) and not (@sizeValue = false) and (isunit(@sizeValue, em)) {
|
||||
.lib-css(font-size, @sizeValue);
|
||||
}
|
||||
|
||||
.lib-font-size(@sizeValue) when not (ispercentage(@sizeValue)) and not (@sizeValue = false) and not (isunit(@sizeValue, em)) and not (isunit(@sizeValue, @font-size-unit)) {
|
||||
.lib-font-size-value(@sizeValue);
|
||||
.lib-css(font-size, @fontValue);
|
||||
}
|
||||
|
||||
// Rem line height
|
||||
.lib-line-height(@heightValue) when not (@heightValue = false) and not (@heightValue = normal) and not (ispercentage(@heightValue)) {
|
||||
.lib-font-size-value(@heightValue);
|
||||
.lib-css(line-height, @fontValue);
|
||||
}
|
||||
|
||||
.lib-line-height(@heightValue) when (ispercentage(@heightValue)) and not (@heightValue = false) {
|
||||
.lib-css(line-height, @heightValue);
|
||||
}
|
||||
|
||||
.lib-line-height(@heightValue) when (@heightValue = normal) {
|
||||
.lib-css(line-height, @heightValue);
|
||||
}
|
||||
|
||||
.lib-wrap-words() {
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-word;
|
||||
.lib-hyphens();
|
||||
}
|
||||
|
||||
.lib-text-overflow() {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.lib-text-hide() {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
color: transparent;
|
||||
font: ~'0/0' a;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
// Optional hyphenation
|
||||
.lib-hyphens(@mode: auto) {
|
||||
-webkit-hyphens: @mode;
|
||||
-moz-hyphens: @mode;
|
||||
-ms-hyphens: @mode; // IE10+
|
||||
hyphens: @mode;
|
||||
}
|
||||
|
||||
.lib-typography(
|
||||
@_font-size: @font-size__base,
|
||||
@_color: @text__color,
|
||||
@_font-family: @font-family__base,
|
||||
@_font-weight: @font-weight__regular,
|
||||
@_line-height: @line-height__base,
|
||||
@_font-style: @font-style__base
|
||||
) {
|
||||
.lib-css(color, @_color);
|
||||
.lib-css(font-family, @_font-family);
|
||||
.lib-css(font-style, @_font-style);
|
||||
.lib-css(font-weight, @_font-weight);
|
||||
.lib-css(line-height, @_line-height);
|
||||
.lib-font-size(@_font-size);
|
||||
}
|
||||
|
||||
.lib-list-reset-styles(@_margin: 0, @_padding: 0) {
|
||||
.lib-css(margin, @_margin);
|
||||
.lib-css(padding, @_padding);
|
||||
list-style: none none;
|
||||
}
|
||||
|
||||
.lib-list-inline() {
|
||||
.lib-list-reset-styles();
|
||||
|
||||
> li {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-link(
|
||||
@_link-color: @link__color,
|
||||
@_link-text-decoration: @link__text-decoration,
|
||||
@_link-color-visited: @link__visited__color,
|
||||
@_link-text-decoration-visited: @link__visited__text-decoration,
|
||||
@_link-color-hover: @link__hover__color,
|
||||
@_link-text-decoration-hover: @link__hover__text-decoration,
|
||||
@_link-color-active: @link__active__color,
|
||||
@_link-text-decoration-active: @link__active__text-decoration
|
||||
) {
|
||||
.lib-css(color, @_link-color);
|
||||
.lib-css(text-decoration, @_link-text-decoration);
|
||||
|
||||
&:visited {
|
||||
.lib-css(color, @_link-color-visited);
|
||||
.lib-css(text-decoration, @_link-text-decoration-visited);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.lib-css(color, @_link-color-hover);
|
||||
.lib-css(text-decoration, @_link-text-decoration-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
.lib-css(color,@_link-color-active);
|
||||
.lib-css(text-decoration, @_link-text-decoration-active);
|
||||
}
|
||||
}
|
||||
|
||||
.lib-heading(@_heading_level: h1) {
|
||||
@_font-color: "@{_heading_level}__font-color";
|
||||
@_font-size: "@{_heading_level}__font-size";
|
||||
@_font-family: "@{_heading_level}__font-family";
|
||||
@_font-weight: "@{_heading_level}__font-weight";
|
||||
@_line-height: "@{_heading_level}__line-height";
|
||||
@_font-style: "@{_heading_level}__font-style";
|
||||
@_margin-top: "@{_heading_level}__margin-top";
|
||||
@_margin-bottom: "@{_heading_level}__margin-bottom";
|
||||
.lib-typography(
|
||||
@@_font-size,
|
||||
@@_font-color,
|
||||
@@_font-family,
|
||||
@@_font-weight,
|
||||
@@_line-height,
|
||||
@@_font-style
|
||||
);
|
||||
|
||||
& {
|
||||
.lib-font-size-value(@@_margin-top);
|
||||
.lib-css(margin-top, @fontValue);
|
||||
}
|
||||
|
||||
& {
|
||||
.lib-font-size-value(@@_margin-bottom);
|
||||
.lib-css(margin-bottom, @fontValue);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Base typography
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography__base(
|
||||
@_abbr-border-color: @abbr__border-color,
|
||||
@_dfn-font-style: @font-style__emphasis,
|
||||
@_emphasis-font-style: @font-style__emphasis,
|
||||
@_hr-border-color: @hr__border-color,
|
||||
@_hr-border-style: @hr__border-style,
|
||||
@_hr-border-width: @hr__border-width,
|
||||
@_hr-margin-bottom: @line-height__computed,
|
||||
@_hr-margin-top: @line-height__computed,
|
||||
@_mark-background-color: @mark__background-color,
|
||||
@_mark-color: @mark__color,
|
||||
@_p-margin-bottom: @p__margin-bottom,
|
||||
@_p-margin-top: @p__margin-top,
|
||||
@_root-font-size: @root__font-size,
|
||||
@_small-font-size: @font-size__s,
|
||||
@_strong-font-weight: @font-weight__bold,
|
||||
@_sub-sup-font-size: (@font-size__xs/@font-size__base)*100%
|
||||
) {
|
||||
html {
|
||||
.lib-css(font-size, @_root-font-size);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
font-size-adjust: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
.lib-typography();
|
||||
}
|
||||
|
||||
p {
|
||||
& {
|
||||
.lib-font-size-value(@_p-margin-top);
|
||||
.lib-css(margin-top, @fontValue);
|
||||
}
|
||||
|
||||
& {
|
||||
.lib-font-size-value(@_p-margin-bottom);
|
||||
.lib-css(margin-bottom, @fontValue);
|
||||
}
|
||||
}
|
||||
|
||||
// Abbreviations and acronyms
|
||||
abbr[title] {
|
||||
.lib-css(border-bottom, 1px dotted @_abbr-border-color);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
.lib-css(font-weight, @_strong-font-weight);
|
||||
}
|
||||
|
||||
em,
|
||||
i {
|
||||
.lib-css(font-style, @_emphasis-font-style);
|
||||
}
|
||||
|
||||
mark {
|
||||
.lib-css(background, @_mark-background-color);
|
||||
.lib-css(color, @_mark-color);
|
||||
}
|
||||
|
||||
small,
|
||||
.small {
|
||||
.lib-css(font-size, @_small-font-size);
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
.lib-css(border-top, @_hr-border-width @_hr-border-style @_hr-border-color);
|
||||
.lib-css(margin-bottom, @_hr-margin-bottom);
|
||||
.lib-css(margin-top, @_hr-margin-top);
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
.lib-css(font-size, @_sub-sup-font-size);
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -.25em;
|
||||
}
|
||||
|
||||
dfn {
|
||||
.lib-css(font-style, @_dfn-font-style);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Headings
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography-headings(
|
||||
@_heading-small-color: @heading__small-color,
|
||||
@_heading-small-line-height: @heading__small-line-height,
|
||||
@_heading-small-size: @heading__small-size
|
||||
) {
|
||||
h1 {
|
||||
.lib-heading(h1);
|
||||
}
|
||||
|
||||
h2 {
|
||||
.lib-heading(h2);
|
||||
}
|
||||
|
||||
h3 {
|
||||
.lib-heading(h3);
|
||||
}
|
||||
|
||||
h4 {
|
||||
.lib-heading(h4);
|
||||
}
|
||||
|
||||
h5 {
|
||||
.lib-heading(h5);
|
||||
}
|
||||
|
||||
h6 {
|
||||
.lib-heading(h6);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
small,
|
||||
.small {
|
||||
.lib-typography(
|
||||
@_heading-small-size,
|
||||
@_heading-small-color,
|
||||
@_line-height: @_heading-small-line-height
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Links
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography-links() {
|
||||
a,
|
||||
.alink {
|
||||
.lib-link();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Unordered and Ordered lists
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography-lists(
|
||||
@_list-margin-bottom: @list__margin-bottom,
|
||||
@_list-margin-top: @list__margin-top,
|
||||
@_list-item-margin-bottom: @list-item__margin-bottom,
|
||||
@_list-item-margin-top: @list-item__margin-top,
|
||||
@_dl-margin-bottom: @dl__margin-bottom,
|
||||
@_dl-margin-top: @dl__margin-top,
|
||||
@_dd-margin-bottom: @dd__margin-bottom,
|
||||
@_dd-margin-top: @dd__margin-top,
|
||||
@_dt-font-weight: @dt__font-weight,
|
||||
@_dt-margin-bottom: @dt__margin-bottom,
|
||||
@_dt-margin-top: @dt__margin-top
|
||||
) {
|
||||
ul,
|
||||
ol {
|
||||
& {
|
||||
.lib-font-size-value(@_list-margin-top);
|
||||
.lib-css(margin-top, @fontValue);
|
||||
}
|
||||
|
||||
& {
|
||||
.lib-font-size-value(@_list-margin-bottom);
|
||||
.lib-css(margin-bottom, @fontValue);
|
||||
}
|
||||
|
||||
> li {
|
||||
& {
|
||||
.lib-font-size-value(@_list-item-margin-top);
|
||||
.lib-css(margin-top, @fontValue);
|
||||
}
|
||||
|
||||
& {
|
||||
.lib-font-size-value(@_list-item-margin-bottom);
|
||||
.lib-css(margin-bottom, @fontValue);
|
||||
}
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
dl {
|
||||
.lib-css(margin-bottom, @_dl-margin-bottom);
|
||||
.lib-css(margin-top, @_dl-margin-top);
|
||||
}
|
||||
|
||||
dt {
|
||||
.lib-css(font-weight, @_dt-font-weight);
|
||||
.lib-css(margin-bottom, @_dt-margin-bottom);
|
||||
.lib-css(margin-top, @_dt-margin-top);
|
||||
}
|
||||
|
||||
dd {
|
||||
.lib-css(margin-bottom, @_dd-margin-bottom);
|
||||
.lib-css(margin-top, @_dd-margin-top);
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Code (inline and block)
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography-code(
|
||||
@_font-family-monospace: @font-family__monospace,
|
||||
@_code-background-color: @code__background-color,
|
||||
@_code-color: @code__color,
|
||||
@_code-font-size: @code__font-size,
|
||||
@_code-padding: @code__padding,
|
||||
@_kbd-background-color: @kbd__background-color,
|
||||
@_kbd-color: @kbd__color,
|
||||
@_kbd-font-size: @code__font-size,
|
||||
@_kbd-padding: @code__padding,
|
||||
@_pre-background-color: @pre__background-color,
|
||||
@_pre-border-color: @pre__border-color,
|
||||
@_pre-border-width: @pre__border-width,
|
||||
@_pre-color: @pre__color,
|
||||
@_pre-font-size: @code__font-size,
|
||||
@_pre-line-height: @line-height__base,
|
||||
@_pre-margin: 0 0 @indent__s,
|
||||
@_pre-padding: @indent__s
|
||||
) {
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
.lib-css(font-family, @_font-family-monospace);
|
||||
}
|
||||
|
||||
// Inline code
|
||||
code {
|
||||
.lib-css(background, @_code-background-color);
|
||||
.lib-css(color, @_code-color);
|
||||
.lib-css(padding, @_code-padding);
|
||||
.lib-font-size(@_code-font-size);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// User input typically entered via keyboard
|
||||
kbd {
|
||||
.lib-css(background, @_kbd-background-color);
|
||||
.lib-css(color, @_kbd-color);
|
||||
.lib-css(padding, @_kbd-padding);
|
||||
.lib-font-size(@_kbd-font-size);
|
||||
}
|
||||
|
||||
// Blocks of code
|
||||
pre {
|
||||
.lib-css(background, @_pre-background-color);
|
||||
.lib-css(border, @_pre-border-width solid @_pre-border-color);
|
||||
.lib-css(color, @_pre-color);
|
||||
.lib-css(line-height, @_pre-line-height);
|
||||
.lib-css(margin, @_pre-margin);
|
||||
.lib-css(padding, @_pre-padding);
|
||||
.lib-font-size(@_pre-font-size);
|
||||
display: block;
|
||||
word-wrap: break-word;
|
||||
|
||||
code {
|
||||
background-color: transparent;
|
||||
border-radius: 0;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
padding: 0;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Blockquotes
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography-blockquote(
|
||||
@_blockquote-border-color: @blockquote__border-color,
|
||||
@_blockquote-border-width: @blockquote__border-width,
|
||||
@_blockquote-font-size: @blockquote__font-size,
|
||||
@_blockquote-font-style: @blockquote__font-style,
|
||||
@_blockquote-margin: @blockquote__margin,
|
||||
@_blockquote-padding: @blockquote__padding,
|
||||
@_blockquote-small-before-content: @blockquote__content-before,
|
||||
@_blockquote-small-color: @blockquote-small__color,
|
||||
@_blockquote-small-font-size: @blockquote-small__font-size,
|
||||
@_blockquote-small-line-height: @line-height__base,
|
||||
@_blockquote-cite: @cite__font-style,
|
||||
@_cite: @cite__font-style
|
||||
) {
|
||||
blockquote {
|
||||
.lib-css(border-left, @_blockquote-border-width solid @_blockquote-border-color);
|
||||
.lib-css(margin, @_blockquote-margin);
|
||||
.lib-css(padding, @_blockquote-padding);
|
||||
.lib-typography(
|
||||
@_font-size: @_blockquote-font-size,
|
||||
@_font-style: @_blockquote-font-style
|
||||
);
|
||||
|
||||
p,
|
||||
ul,
|
||||
ol {
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
footer,
|
||||
small,
|
||||
.small {
|
||||
.lib-css(color, @_blockquote-small-color);
|
||||
.lib-css(line-height, @_blockquote-small-line-height);
|
||||
.lib-font-size(@_blockquote-small-font-size);
|
||||
display: block;
|
||||
|
||||
&:before {
|
||||
.lib-css(content, @_blockquote-small-before-content);
|
||||
}
|
||||
}
|
||||
|
||||
cite {
|
||||
.lib-css(font-style, @_blockquote-cite);
|
||||
}
|
||||
}
|
||||
|
||||
// Quotes
|
||||
blockquote {
|
||||
&:before,
|
||||
&:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
||||
q {
|
||||
quotes: none;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Undo browser default styling
|
||||
cite {
|
||||
.lib-css(font-style, @_cite);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// All typography
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-typography-all() {
|
||||
.lib-typography__base();
|
||||
.lib-typography-headings();
|
||||
.lib-typography-links();
|
||||
.lib-typography-lists();
|
||||
.lib-typography-code();
|
||||
.lib-typography-blockquote();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,527 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Utilities
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Convert values to unit specified in typography variables
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-font-size-value(
|
||||
@_value
|
||||
) when not (@_value = false) and not (@_value = '') and (@font-size-unit-convert) {
|
||||
@fontValue: (unit(((@_value) * 1), @font-size-unit) / @font-size-unit-ratio);
|
||||
}
|
||||
.lib-font-size-value(
|
||||
@_value
|
||||
) when (@font-size-unit-convert = false) {
|
||||
@fontValue: @_value;
|
||||
}
|
||||
|
||||
.lib-visibility-hidden() {
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.lib-visually-hidden() {
|
||||
border: 0;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.lib-visually-hidden-reset() {
|
||||
clip: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
position: static;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
//
|
||||
// Clearfix
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-clearfix() {
|
||||
&:before,
|
||||
&:after {
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
|
||||
&:after {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
.lib-clearer() {
|
||||
&:after {
|
||||
clear: both;
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Gradient
|
||||
// ---------------------------------------------
|
||||
|
||||
#lib-gradient {
|
||||
// Horizontal gradient, from left to right
|
||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||
// Color stops are not available in IE9 and below.
|
||||
// Filters are enabled
|
||||
.horizontal(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when not (@disable-filters) and (@_background-color-position = true) {
|
||||
background-color: @_end-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(left, color-stop(@_start-color @_start-percent), color-stop(@_end-color @_end-percent)); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to right, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)", @_start-color, @_end-color)); // IE9 and down
|
||||
}
|
||||
|
||||
.horizontal(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when not (@disable-filters) and (@_background-color-position = false) {
|
||||
background-color: @_start-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(left, color-stop(@_start-color @_start-percent), color-stop(@_end-color @_end-percent)); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to right, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)", @_start-color, @_end-color)); // IE9 and down
|
||||
}
|
||||
|
||||
// Horizontal gradient, from left to right
|
||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||
// Color stops are not available in IE9 and below.
|
||||
// Filters are disabled
|
||||
.horizontal(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when (@disable-filters) and (@_background-color-position = true) {
|
||||
background-color: @_end-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(left, color-stop(@_start-color @_start-percent), color-stop(@_end-color @_end-percent)); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to right, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
}
|
||||
|
||||
.horizontal(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when (@disable-filters) and (@_background-color-position = false) {
|
||||
background-color: @_start-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(left, color-stop(@_start-color @_start-percent), color-stop(@_end-color @_end-percent)); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to right, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
}
|
||||
|
||||
// Vertical gradient, from top to bottom
|
||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||
// Color stops are not available in IE9 and below.
|
||||
// Filters are enabled
|
||||
.vertical(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when not (@disable-filters) and (@_background-color-position = true) {
|
||||
background-color: @_end-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(top, @_start-color @_start-percent, @_end-color @_end-percent); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to bottom, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)", @_start-color, @_end-color)); // IE9 and down
|
||||
}
|
||||
|
||||
.vertical(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when not (@disable-filters) and (@_background-color-position = false) {
|
||||
background-color: @_start-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(top, @_start-color @_start-percent, @_end-color @_end-percent); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to bottom, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)", @_start-color, @_end-color)); // IE9 and down
|
||||
}
|
||||
|
||||
// Vertical gradient, from top to bottom
|
||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||
// Color stops are not available in IE9 and below.
|
||||
// Filters are disabled
|
||||
.vertical(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when (@disable-filters) and (@_background-color-position = true) {
|
||||
background-color: @_end-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(top, @_start-color @_start-percent, @_end-color @_end-percent); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to bottom, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
}
|
||||
|
||||
.vertical(
|
||||
@_start-color,
|
||||
@_end-color,
|
||||
@_start-percent: 0%,
|
||||
@_end-percent: 100%,
|
||||
@_background-color-position: true
|
||||
) when (@disable-filters) and (@_background-color-position = false) {
|
||||
background-color: @_start-color;
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient(top, @_start-color @_start-percent, @_end-color @_end-percent); // Safari 5.1-6, Chrome 10+
|
||||
background-image: linear-gradient(to bottom, @_start-color @_start-percent, @_end-color @_end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Custom background gradient
|
||||
// ---------------------------------------------
|
||||
|
||||
// Pager gradient - horizontal
|
||||
.lib-background-gradient(
|
||||
@_background-gradient-color-start,
|
||||
@_background-gradient-color-end,
|
||||
@_background-gradient-direction,
|
||||
@_background-gradient,
|
||||
@_background-gradient-color-position: true
|
||||
) when (@_background-gradient-direction = horizontal) and (@_background-gradient = true) {
|
||||
#lib-gradient > .horizontal(
|
||||
@_start-color: @_background-gradient-color-start,
|
||||
@_end-color: @_background-gradient-color-end,
|
||||
@_background-color-position: @_background-gradient-color-position
|
||||
);
|
||||
}
|
||||
|
||||
// Pager gradient - vertical
|
||||
.lib-background-gradient(
|
||||
@_background-gradient-color-start,
|
||||
@_background-gradient-color-end,
|
||||
@_background-gradient-direction,
|
||||
@_background-gradient,
|
||||
@_background-gradient-color-position: true
|
||||
) when (@_background-gradient-direction = vertical) and (@_background-gradient = true) {
|
||||
#lib-gradient > .vertical(
|
||||
@_start-color: @_background-gradient-color-start,
|
||||
@_end-color: @_background-gradient-color-end,
|
||||
@_background-color-position: @_background-gradient-color-position
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Rotate
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-rotate(@_rotation) {
|
||||
-webkit-transform: rotate(@_rotation); // Use in 8 Safari
|
||||
-ms-transform: rotate(@_rotation); // Use in 9 IE
|
||||
transform: rotate(@_rotation);
|
||||
}
|
||||
|
||||
//
|
||||
// Remove spaces between elements with display: inline-block
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-inline-block-space-container() {
|
||||
font-size: 0;
|
||||
letter-spacing: -1px;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.lib-inline-block-space-item(
|
||||
@_font-size: @font-size__base,
|
||||
@_line-height: normal
|
||||
) {
|
||||
.lib-font-size(@_font-size);
|
||||
.lib-line-height(@_line-height);
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
//
|
||||
// Add any css property
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-css(
|
||||
@_property,
|
||||
@_value,
|
||||
@_prefix: 0
|
||||
) when (@_prefix = 1)
|
||||
and not (@_value = '')
|
||||
and not (@_value = false)
|
||||
and not (extract(@_value, 1) = false)
|
||||
and not (extract(@_value, 2) = false)
|
||||
and not (extract(@_value, 3) = false)
|
||||
and not (extract(@_value, 4) = false)
|
||||
and not (extract(@_value, 5) = false) {
|
||||
-webkit-@{_property}: @_value;
|
||||
-moz-@{_property}: @_value;
|
||||
-ms-@{_property}: @_value;
|
||||
}
|
||||
|
||||
.lib-css(
|
||||
@_property,
|
||||
@_value,
|
||||
@_prefix: 0
|
||||
) when not (@_value = '')
|
||||
and not (@_value = false)
|
||||
and not (extract(@_value, 1) = false)
|
||||
and not (extract(@_value, 2) = false)
|
||||
and not (extract(@_value, 3) = false)
|
||||
and not (extract(@_value, 4) = false)
|
||||
and not (extract(@_value, 5) = false) {
|
||||
@{_property}: @_value;
|
||||
}
|
||||
|
||||
//
|
||||
// Add url to property
|
||||
// ---------------------------------------------
|
||||
|
||||
// usage:
|
||||
// .column.left {
|
||||
// .lib-url('images/fallback.png');
|
||||
// background:url("@{url}") repeat-y;
|
||||
// }
|
||||
// .columns {
|
||||
// .lib-url('images/fallback.png', 'Magento_Catalog');
|
||||
// background:url("@{url}") repeat;
|
||||
// }
|
||||
|
||||
@urls-resolved: false;
|
||||
|
||||
.lib-url(@_path) {
|
||||
@url: "@{baseDir}@{_path}";
|
||||
}
|
||||
|
||||
.lib-url(
|
||||
@_path,
|
||||
@_module
|
||||
) when not (@_module = false) and not (@_module = '') and (@urls-resolved = false) {
|
||||
@url: "@{_module}::@{_path}";
|
||||
}
|
||||
|
||||
.lib-url(
|
||||
@_path,
|
||||
@_module
|
||||
) when not (@_module = false) and not (@_module = '') and (@urls-resolved = true) {
|
||||
@url: "@{baseDir}@{_module}/@{_path}";
|
||||
}
|
||||
|
||||
//
|
||||
// Arrow
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-arrow(
|
||||
@_position,
|
||||
@_size,
|
||||
@_color
|
||||
) {
|
||||
border: @_size solid transparent;
|
||||
height: 0;
|
||||
width: 0;
|
||||
._lib-abbor_el(@_position, @_color);
|
||||
}
|
||||
|
||||
._lib-abbor_el(
|
||||
@_position,
|
||||
@_color
|
||||
) when (@_position = left) {
|
||||
.lib-css(border-right-color, @_color);
|
||||
}
|
||||
|
||||
._lib-abbor_el(
|
||||
@_position,
|
||||
@_color
|
||||
) when (@_position = right) {
|
||||
.lib-css(border-left-color, @_color);
|
||||
}
|
||||
|
||||
._lib-abbor_el(
|
||||
@_position,
|
||||
@_color
|
||||
) when (@_position = up) {
|
||||
.lib-css(border-bottom-color, @_color);
|
||||
}
|
||||
|
||||
._lib-abbor_el(
|
||||
@_position,
|
||||
@_color
|
||||
) when (@_position = down) {
|
||||
.lib-css(border-top-color, @_color);
|
||||
}
|
||||
|
||||
//
|
||||
// Input placeholder
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-input-placeholder(
|
||||
@_input-placeholder-color: @form-element-input-placeholder__color,
|
||||
@_input-placeholder-font-weight: @form-element-input__font-weight
|
||||
) {
|
||||
&::-webkit-input-placeholder {
|
||||
.lib-css(color, @_input-placeholder-color);
|
||||
.lib-css(font-weight, @_input-placeholder-font-weight);
|
||||
}
|
||||
|
||||
&:-moz-placeholder {
|
||||
.lib-css(color, @_input-placeholder-color);
|
||||
.lib-css(font-weight, @_input-placeholder-font-weight);
|
||||
}
|
||||
|
||||
&::-moz-placeholder {
|
||||
.lib-css(color, @_input-placeholder-color);
|
||||
.lib-css(font-weight, @_input-placeholder-font-weight);
|
||||
}
|
||||
|
||||
&:-ms-input-placeholder {
|
||||
.lib-css(color, @_input-placeholder-color);
|
||||
.lib-css(font-weight, @_input-placeholder-font-weight);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Flex layout
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-vendor-prefix-display(
|
||||
@_value: flex
|
||||
) {
|
||||
display: ~"-webkit-@{_value}";
|
||||
display: ~"-ms-@{_value}box";
|
||||
display: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-flex-grow(
|
||||
@_value: 0
|
||||
) {
|
||||
-webkit-flex-grow: @_value;
|
||||
flex-grow: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-flex-shrink (
|
||||
@_value: 1
|
||||
) {
|
||||
-webkit-flex-shrink: @_value;
|
||||
flex-shrink: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-flex-basis (
|
||||
@_value: auto
|
||||
) {
|
||||
-webkit-flex-basis: @_value;
|
||||
flex-basis: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-flex-wrap (
|
||||
@_value: wrap
|
||||
) {
|
||||
-webkit-flex-wrap: @_value;
|
||||
flex-wrap: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-flex-direction (
|
||||
@_value: column
|
||||
) {
|
||||
-webkit-flex-direction: @_value;
|
||||
-ms-flex-direction: @_value;
|
||||
flex-direction: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-order (
|
||||
@_value: 0
|
||||
) {
|
||||
-ms-flex-order: @_value;
|
||||
-webkit-order: @_value;
|
||||
order: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-box-align (
|
||||
@_value: stretch
|
||||
) {
|
||||
-webkit-align-items: @_value;
|
||||
-ms-align-items: @_value;
|
||||
align-items: @_value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-appearance (
|
||||
@value: none
|
||||
) {
|
||||
-webkit-appearance: @value;
|
||||
-moz-appearance: @value;
|
||||
appearance: @value;
|
||||
}
|
||||
|
||||
.lib-vendor-prefix-column-count (
|
||||
@_value
|
||||
) {
|
||||
-webkit-column-count: @_value;
|
||||
-moz-column-count: @_value;
|
||||
column-count: @_value;
|
||||
}
|
||||
|
||||
//
|
||||
// Pointer for popups or dropdowns
|
||||
// ---------------------------------------------
|
||||
|
||||
.lib-pointer(
|
||||
@_size: 6px,
|
||||
@_background-color: @color-white,
|
||||
@_border-color: @color-gray-light3,
|
||||
@_position__vertical: top,
|
||||
@_position__horizontal: left,
|
||||
@_position__vertical__value: -12px,
|
||||
@_position__horizontal__value: @indent__s,
|
||||
@_z-index: 99
|
||||
) {
|
||||
&:before,
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
|
||||
&:before {
|
||||
.lib-css(@_position__horizontal, @_position__horizontal__value);
|
||||
.lib-css(@_position__vertical, @_position__vertical__value);
|
||||
.lib-css(border, solid @_size - 1);
|
||||
.lib-css(border-color, transparent transparent @_background-color transparent);
|
||||
.lib-css(z-index, @_z-index);
|
||||
}
|
||||
|
||||
&:after {
|
||||
.lib-css(@_position__horizontal, @_position__horizontal__value - 1);
|
||||
.lib-css(@_position__vertical, @_position__vertical__value - 2);
|
||||
.lib-css(border, solid @_size);
|
||||
.lib-css(border-color, transparent transparent @_border-color transparent);
|
||||
.lib-css(z-index, @_z-index - 1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Variables
|
||||
// _____________________________________________
|
||||
|
||||
@baseDir: "../"; // Base directory path
|
||||
|
||||
@import 'variables/_colors.less';
|
||||
@import 'variables/_typography.less';
|
||||
@import 'variables/_tables.less';
|
||||
@import 'variables/_layout.less';
|
||||
@import 'variables/_responsive.less';
|
||||
@import 'variables/_navigation.less';
|
||||
@import 'variables/_sections.less';
|
||||
@import 'variables/_buttons.less';
|
||||
@import 'variables/_icons.less';
|
||||
@import 'variables/_messages.less';
|
||||
@import 'variables/_tooltips.less';
|
||||
@import 'variables/_loaders.less';
|
||||
@import 'variables/_forms.less';
|
||||
@import 'variables/_pages.less';
|
||||
@import 'variables/_rating.less';
|
||||
@import 'variables/_dropdowns.less';
|
||||
@import 'variables/_actions-toolbar.less';
|
||||
@import 'variables/_breadcrumbs.less';
|
||||
@import 'variables/_popups.less';
|
||||
@import 'variables/_structure.less';
|
||||
@import 'variables/_components.less';
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Actions-toolbar variables
|
||||
// _____________________________________________
|
||||
|
||||
@actions-toolbar__margin: false;
|
||||
@actions-toolbar__padding: false;
|
||||
|
||||
@actions-toolbar-actions__position: justify; // [left|right|center|justify]
|
||||
@actions-toolbar-actions__reverse: false; // [true|false]
|
||||
@actions-toolbar-actions__margin: false;
|
||||
|
||||
@actions-toolbar-actions-primary__margin: 0 @indent__xs 0 0;
|
||||
@actions-toolbar-actions-secondary__margin: false;
|
||||
|
||||
@actions-toolbar-actions-links__margin-top: false;
|
||||
@actions-toolbar-actions-links-primary__margin-top: false;
|
||||
@actions-toolbar-actions-links-secondary__margin-top: 6px;
|
||||
@@ -0,0 +1,77 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Breadcrumbs variables
|
||||
// _____________________________________________
|
||||
|
||||
@breadcrumbs__font-size: @font-size__s;
|
||||
@breadcrumbs__display: false;
|
||||
@breadcrumbs__container-margin: 0 0 @indent__base;
|
||||
@breadcrumbs__padding: false;
|
||||
@breadcrumbs__min-height: 24px;
|
||||
|
||||
@breadcrumbs-separator__symbol: false;
|
||||
@breadcrumbs-separator__color: @breadcrumbs-current__color;
|
||||
|
||||
@breadcrumbs-icon__use: true;
|
||||
@breadcrumbs-icon__font-content: @icon-next;
|
||||
@breadcrumbs-icon__font: @icon-font;
|
||||
@breadcrumbs-icon__font-size: 24px;
|
||||
@breadcrumbs-icon__font-line-height: 18px;
|
||||
@breadcrumbs-icon__font-color: false;
|
||||
@breadcrumbs-icon__font-margin: 0;
|
||||
@breadcrumbs-icon__font-vertical-align: top;
|
||||
|
||||
// Current page
|
||||
@breadcrumbs-current__color: @color-gray64;
|
||||
@breadcrumbs-current__font-weight: @font-weight__regular;
|
||||
@breadcrumbs-current__background: false;
|
||||
@breadcrumbs-current__border: false;
|
||||
|
||||
// Current page - gradient background
|
||||
@breadcrumbs-current__gradient: false;
|
||||
@breadcrumbs-current__gradient-direction: vertical;
|
||||
@breadcrumbs-current__gradient-color-start: false;
|
||||
@breadcrumbs-current__gradient-color-end: false;
|
||||
|
||||
//
|
||||
// Link
|
||||
// ---------------------------------------------
|
||||
|
||||
// Gradient
|
||||
@breadcrumbs-link__gradient: false; // [true|false]
|
||||
@breadcrumbs-link__gradient-direction: false; // [true|false]
|
||||
|
||||
@breadcrumbs-link__color: @primary__color;
|
||||
@breadcrumbs-link__background: false;
|
||||
@breadcrumbs-link__border: false;
|
||||
@breadcrumbs-link__text-decoration: none;
|
||||
@breadcrumbs-link__gradient-color-start: false;
|
||||
@breadcrumbs-link__gradient-color-end: false;
|
||||
|
||||
// Visited
|
||||
@breadcrumbs-link__visited__color: @primary__color;
|
||||
@breadcrumbs-link__visited__background: @breadcrumbs-link__background;
|
||||
@breadcrumbs-link__visited__border: @breadcrumbs-link__border;
|
||||
@breadcrumbs-link__visited__text-decoration: none;
|
||||
@breadcrumbs-link__visited__gradient-color-start: false;
|
||||
@breadcrumbs-link__visited__gradient-color-end: false;
|
||||
|
||||
// Hover
|
||||
@breadcrumbs-link__hover__color: @primary__color;
|
||||
@breadcrumbs-link__hover__background: false;
|
||||
@breadcrumbs-link__hover__border: @breadcrumbs-link__border;
|
||||
@breadcrumbs-link__hover__text-decoration: underline;
|
||||
@breadcrumbs-link__hover__gradient-color-start: false;
|
||||
@breadcrumbs-link__hover__gradient-color-end: false;
|
||||
|
||||
// Active
|
||||
@breadcrumbs-link__active__color: @primary__color;
|
||||
@breadcrumbs-link__active__background: @breadcrumbs-link__background;
|
||||
@breadcrumbs-link__active__border: @breadcrumbs-link__border;
|
||||
@breadcrumbs-link__active__text-decoration: none;
|
||||
@breadcrumbs-link__active__gradient-color-start: false;
|
||||
@breadcrumbs-link__active__gradient-color-end: false;
|
||||
@@ -0,0 +1,105 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Buttons variables
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Buttons
|
||||
// ---------------------------------------------
|
||||
|
||||
// Font style
|
||||
@button__font-family: @font-family__base;
|
||||
@button__font-size: @font-size__base;
|
||||
@button__font-weight: @font-weight__bold;
|
||||
@button__line-height: @font-size__base + 2;
|
||||
@button__margin: 0;
|
||||
@button__padding: 7px 15px; // is set up to false when buttons don't depend on side paddings or have fixed width
|
||||
@button__width: false; // is set up to false when buttons depend on side paddings or to fixed value when needed
|
||||
|
||||
// Display settings
|
||||
@button__display: inline-block;
|
||||
@button__cursor: pointer;
|
||||
@button__border-radius: 3px;
|
||||
|
||||
@button__disabled__opacity: .5;
|
||||
|
||||
// Default = secondary button
|
||||
@button__color: @primary__color;
|
||||
@button__background: @color-gray95;
|
||||
@button__border: 1px solid @color-gray-darken2;
|
||||
@button__gradient-color-start: false;
|
||||
@button__gradient-color-end: false;
|
||||
|
||||
@button__hover__color: @color-gray-darken3;
|
||||
@button__hover__background: @color-gray-darken1;
|
||||
@button__hover__border: @button__border;
|
||||
@button__hover__gradient-color-start: false;
|
||||
@button__hover__gradient-color-end: false;
|
||||
|
||||
@button__active__color: @button__color;
|
||||
@button__active__background: @button__hover__background;
|
||||
@button__active__border: @button__border;
|
||||
@button__active__gradient-color-start: false;
|
||||
@button__active__gradient-color-end: false;
|
||||
|
||||
// Primary button
|
||||
@button-primary__font-family: @button__font-family;
|
||||
@button-primary__font-size: @button__font-size;
|
||||
@button-primary__font-weight: @button__font-weight;
|
||||
@button-primary__line-height: false;
|
||||
@button-primary__width: false;
|
||||
@button-primary__margin: false;
|
||||
@button-primary__padding: @button__padding;
|
||||
@button-primary__gradient: false;
|
||||
@button-primary__gradient-direction: false;
|
||||
|
||||
@button-primary__background: @theme__color__primary;
|
||||
@button-primary__border: 1px solid @theme__color__primary;
|
||||
@button-primary__color: @color-white;
|
||||
@button-primary__gradient-color-start: false;
|
||||
@button-primary__gradient-color-end: false;
|
||||
|
||||
@button-primary__hover__background: @theme__color__primary-alt;
|
||||
@button-primary__hover__border: 1px solid @theme__color__primary-alt;
|
||||
@button-primary__hover__color: @button-primary__color;
|
||||
@button-primary__hover__gradient-color-start: false;
|
||||
@button-primary__hover__gradient-color-end: false;
|
||||
|
||||
@button-primary__active__background: @button-primary__hover__background;
|
||||
@button-primary__active__border: @button-primary__hover__border;
|
||||
@button-primary__active__color: @button-primary__color;
|
||||
@button-primary__active__gradient-color-start: false;
|
||||
@button-primary__active__gradient-color-end: false;
|
||||
|
||||
// Gradient button
|
||||
@button__gradient: false; // [true|false] - button has a gradient background
|
||||
@button__gradient-direction: false; // button gradient direction if button has a gradient background
|
||||
|
||||
// Button with icon
|
||||
@button-icon__use: false;
|
||||
@button-icon__content: @icon-settings;
|
||||
@button-icon__font: @icon-font;
|
||||
@button-icon__font-size: 22px;
|
||||
@button-icon__line-height: @button-icon__font-size;
|
||||
@button-icon__color: inherit;
|
||||
@button-icon__margin: 0;
|
||||
@button-icon__vertical-align: top;
|
||||
@button-icon__position: @icon__position;
|
||||
@button-icon__text-hide: false;
|
||||
|
||||
@button-icon__hover__font-color: inherit;
|
||||
@button-icon__active__font-color: inherit;
|
||||
|
||||
// Large button
|
||||
@button__font-size__l: @font-size__l;
|
||||
@button__line-height__l: @font-size__l + 4;
|
||||
@button__padding__l: 14px 17px;
|
||||
|
||||
// Small button
|
||||
@button__font-size__s: 11px;
|
||||
@button__line-height__s: @button__font-size__s + 1;
|
||||
@button__padding__s: @indent__xs 8px;
|
||||
@@ -0,0 +1,122 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Color variables
|
||||
// _____________________________________________
|
||||
|
||||
@color-blue-dodger: #008bdb;
|
||||
@color-black_dark: #333333;
|
||||
|
||||
@color-white: #fff;
|
||||
@color-black: #000;
|
||||
|
||||
@color-darkie-gray: #8a837f;
|
||||
@color-gray19: #303030;
|
||||
@color-gray20: #333;
|
||||
@color-gray34: #575757;
|
||||
@color-gray37: #5e5e5e;
|
||||
@color-gray40: #666;
|
||||
@color-gray43: #6d6d6d;
|
||||
@color-gray46: #757575;
|
||||
@color-gray52: #858585;
|
||||
@color-gray55: #8c8c8c;
|
||||
@color-gray56: #8f8f8f;
|
||||
@color-gray60: #999;
|
||||
@color-gray62: #9e9e9e;
|
||||
@color-gray64: #a3a3a3;
|
||||
@color-gray68: #adadad;
|
||||
@color-gray76: #c2c2c2;
|
||||
@color-gray78: #c7c7c7;
|
||||
@color-gray79: #c9c9c9;
|
||||
@color-gray80: #ccc;
|
||||
@color-gray82: #d1d1d1;
|
||||
@color-gray83: #d4d4d4;
|
||||
@color-gray89: #e3e3e3;
|
||||
@color-gray90: #e5e5e5;
|
||||
@color-gray91: #e8e8e8;
|
||||
@color-gray92: #ebebeb;
|
||||
@color-gray94: #f0f0f0;
|
||||
@color-gray95: #f2f2f2;
|
||||
@color-gray_light: #cccccc;
|
||||
@color-lighter-grayish: #cacaca;
|
||||
@color-very-dark-gray: #666;
|
||||
@color-white-smoke: #f5f5f5;
|
||||
@color-white-dark-smoke: #efefef;
|
||||
@color-white-fog: #f8f8f8;
|
||||
|
||||
@color-gray-light0: #f6f6f6;
|
||||
@color-gray-light01: #f4f4f4;
|
||||
@color-gray-light1: #e5efe5;
|
||||
@color-gray-light2: #bbb;
|
||||
@color-gray-light3: #aeaeae;
|
||||
@color-gray-light4: #cecece;
|
||||
@color-gray-light5: #c1c1c1;
|
||||
@color-gray-light6: #c5c5c5;
|
||||
|
||||
@color-gray-middle1: #e4e4e4;
|
||||
@color-gray-middle2: #c6c6c6;
|
||||
@color-gray-middle3: #7e807e;
|
||||
@color-gray-middle4: #6e716e;
|
||||
@color-gray-middle5: #707070;
|
||||
|
||||
@color-gray-darken0: #eee;
|
||||
@color-gray-darken1: #e2e2e2;
|
||||
@color-gray-darken2: #cdcdcd;
|
||||
@color-gray-darken3: #555;
|
||||
@color-gray-darken4: #494949;
|
||||
|
||||
@color-red9: #ff0101;
|
||||
@color-red10: #e02b27;
|
||||
@color-red11: #b30000;
|
||||
@color-red12: #d10029;
|
||||
|
||||
@color-orange-red1: #ff5501;
|
||||
@color-orange-red2: #ff5601; // Legacy orange
|
||||
@color-orange-red3: #ff5700; // Legacy orange
|
||||
@color-orange-red4: #fc5e10; // Legacy orange
|
||||
|
||||
@color-dark-green1: #006400;
|
||||
|
||||
@color-blue1: #1979c3;
|
||||
@color-blue2: #006bb4;
|
||||
@color-blue3: #00699D;
|
||||
@color-sky-blue1: #68a8e0;
|
||||
|
||||
@color-pink1: #fae5e5;
|
||||
@color-dark-pink1: #800080; // Legacy pink
|
||||
|
||||
@color-brownie: #514943;
|
||||
@color-brownie-vanilla: #736963;
|
||||
@color-brownie1: #6f4400;
|
||||
@color-brownie-light1: #c07600;
|
||||
|
||||
@color-yellow-light1: #fdf0d5;
|
||||
@color-yellow-light2: #ffee9c;
|
||||
@color-yellow-light3: #d6ca8e;
|
||||
@color-yellow1: #ff0;
|
||||
|
||||
//
|
||||
// Color nesting
|
||||
// ---------------------------------------------
|
||||
|
||||
@theme__color__primary: @color-blue1;
|
||||
@theme__color__primary-alt: @color-blue2;
|
||||
@theme__color__secondary: @color-orange-red1;
|
||||
|
||||
@primary__color: @color-gray20;
|
||||
@primary__color__dark: darken(@primary__color, 35%); // #000
|
||||
@primary__color__darker: darken(@primary__color, 13.5%); // #111
|
||||
@primary__color__lighter: lighten(@primary__color, 29%); // #7d7d7d
|
||||
@primary__color__light: lighten(@primary__color, 45%); // #a6a6a6
|
||||
|
||||
@secondary__color: @color-gray91;
|
||||
@secondary__color__light: lighten(@secondary__color, 5%);
|
||||
|
||||
@page__background-color: @color-white;
|
||||
@panel__background-color: darken(@page__background-color, 6%);
|
||||
|
||||
@active__color: @theme__color__secondary;
|
||||
@error__color: @color-red10;
|
||||
@@ -0,0 +1,13 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Lib -> Components -> Variables
|
||||
// _____________________________________________
|
||||
|
||||
@component__box-shadow__base: 1px 1px @component__shadow-size__base rgba(0, 0, 0, .5);
|
||||
@component__shadow-size__base: 5px;
|
||||
|
||||
@component-modal__opacity: .98;
|
||||
@@ -0,0 +1,99 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Dropdowns variables
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Variables simple dropdown
|
||||
// ---------------------------------------------
|
||||
|
||||
@dropdown-actions__padding: false;
|
||||
|
||||
@dropdown-list__min-width: 100%;
|
||||
@dropdown-list__width: false;
|
||||
@dropdown-list__height: false;
|
||||
@dropdown-list__margin-top: 4px;
|
||||
@dropdown-list__position-top: 100%;
|
||||
@dropdown-list__position-right: false;
|
||||
@dropdown-list__position-bottom: false;
|
||||
@dropdown-list__position-left: false;
|
||||
@dropdown-list__pointer: true; // [true|false]
|
||||
@dropdown-list__background: @color-white;
|
||||
@dropdown-list__border: 1px solid @color-gray-light2;
|
||||
@dropdown-list__shadow: 0 3px 3px rgba(0,0,0,.15); // [''|none|value]
|
||||
@dropdown-list__z-index: 100;
|
||||
|
||||
@dropdown-list-pointer__border: @color-gray-light2;
|
||||
@dropdown-list-pointer__position: left; // [left|right]
|
||||
@dropdown-list-pointer__position-top: -12px;
|
||||
@dropdown-list-pointer__position-left-right: 10px;
|
||||
|
||||
@dropdown-list-item__border: 0;
|
||||
@dropdown-list-item__padding: 3px @indent__xs;
|
||||
@dropdown-list-item__margin: 0;
|
||||
@dropdown-list-item__hover: @color-gray91;
|
||||
|
||||
@dropdown-toggle-icon__content: @icon-pointer-down;
|
||||
@dropdown-toggle-icon__font: @button-icon__font;
|
||||
@dropdown-toggle-icon__font-size: @button-icon__font-size;
|
||||
@dropdown-toggle-icon__font-line-height: @button-icon__line-height;
|
||||
@dropdown-toggle-icon__font-color: @button-icon__color;
|
||||
@dropdown-toggle-icon__font-color-hover: @button-icon__hover__font-color;
|
||||
@dropdown-toggle-icon__font-color-active: @button-icon__active__font-color;
|
||||
@dropdown-toggle-icon__font-margin: @button-icon__margin;
|
||||
@dropdown-toggle-icon__position: after;
|
||||
@dropdown-toggle-icon__font-vertical-align: @button-icon__vertical-align;
|
||||
@dropdown-toggle-icon__text-hide: @button-icon__text-hide;
|
||||
|
||||
@dropdown-toggle-icon__active__content: @icon-pointer-up;
|
||||
|
||||
//
|
||||
// Variables split dropdown
|
||||
// ---------------------------------------------
|
||||
|
||||
@dropdown-split-actions__padding: 0 @indent__xs;
|
||||
@dropdown-split-toggle__actions__padding: 4px @indent__xs;
|
||||
@dropdown-split-button__actions__padding: false;
|
||||
@dropdown-split-toggle__position: right;
|
||||
|
||||
@dropdown-split-list__min-width: @dropdown-list__min-width;
|
||||
@dropdown-split-list__width: @dropdown-list__width;
|
||||
@dropdown-split-list__height: @dropdown-list__height;
|
||||
@dropdown-split-list__margin-top: @dropdown-list__margin-top;
|
||||
@dropdown-split-list__position-top: @dropdown-list__position-top;
|
||||
@dropdown-split-list__position-right: @dropdown-list__position-right;
|
||||
@dropdown-split-list__position-bottom: @dropdown-list__position-bottom;
|
||||
@dropdown-split-list__position-left: @dropdown-list__position-left;
|
||||
@dropdown-split-list__background: @dropdown-list__background;
|
||||
@dropdown-split-list__border: @dropdown-list__border;
|
||||
@dropdown-split-list__pointer: @dropdown-list__pointer;
|
||||
@dropdown-split-list__pointer-border: @dropdown-list-pointer__border;
|
||||
@dropdown-split-list__pointer-position: @dropdown-split-toggle__position;
|
||||
@dropdown-split-list__pointer-position-top: @dropdown-list-pointer__position-top;
|
||||
@dropdown-split-list__pointer-position-left-right: @dropdown-list-pointer__position-left-right;
|
||||
@dropdown-split-list__item-border: @dropdown-list-item__border;
|
||||
@dropdown-split-list__item-padding: @dropdown-list-item__padding;
|
||||
@dropdown-split-list__item-margin: @dropdown-list-item__margin;
|
||||
@dropdown-split-list__item-hover: @dropdown-list-item__hover;
|
||||
|
||||
@dropdown-split-button__border-radius-fix: false;
|
||||
@dropdown-split-list__shadow: @dropdown-list__shadow; // [''|none|value]
|
||||
@dropdown-split-list__z-index: @dropdown-list__z-index;
|
||||
|
||||
@dropdown-split-toggle-icon__content: @dropdown-toggle-icon__content;
|
||||
@dropdown-split-toggle-icon__font: @button-icon__font;
|
||||
@dropdown-split-toggle-icon__font-size: @button-icon__font-size;
|
||||
@dropdown-split-toggle-icon__font-line-height: @button-icon__line-height;
|
||||
@dropdown-split-toggle-icon__font-color: @button-icon__color;
|
||||
@dropdown-split-toggle-icon__font-color-hover: @button-icon__hover__font-color;
|
||||
@dropdown-split-toggle-icon__font-color-active: @button-icon__active__font-color;
|
||||
@dropdown-split-toggle-icon__font-margin: @button-icon__margin;
|
||||
@dropdown-split-toggle-icon__font-vertical-align: @button-icon__vertical-align;
|
||||
@dropdown-split-toggle-icon__position: @dropdown-toggle-icon__position;
|
||||
@dropdown-split-toggle-icon__text-hide: true; // [true|false]
|
||||
|
||||
@dropdown-split-toggle-icon__active__content: @dropdown-toggle-icon__active__content;
|
||||
@@ -0,0 +1,32 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Email variables
|
||||
// _____________________________________________
|
||||
|
||||
// Base URL path
|
||||
@baseUrl: "{{base_url_path}}/";
|
||||
|
||||
// Structure
|
||||
@email-body__width: 600px;
|
||||
@email-body__padding: @indent__s;
|
||||
|
||||
// Content
|
||||
@email-content__padding__base: @indent__s;
|
||||
@email-content__padding__s: @indent__xs;
|
||||
@email-content__padding__m: @indent__base;
|
||||
@email-content__padding__l: @indent__l;
|
||||
@email-content__padding__xl: @indent__xl;
|
||||
|
||||
// Colors
|
||||
@email__background-color: @color-white;
|
||||
@email-content__background-color: @color-white;
|
||||
|
||||
// Messages
|
||||
@message-email__color: @text__color;
|
||||
@message-email__background: @message-info__background;
|
||||
@message-email__border-color: @message-info__border-color;
|
||||
@message-email-link__color: @message-info-link__color;
|
||||
@@ -0,0 +1,315 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Form variables
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Form elements inputs default variables
|
||||
// ---------------------------------------------
|
||||
|
||||
@form-element-input-type: ''; // [input-text|select|textarea|input-radio|input-checkbox]
|
||||
@form-element-input__background: @color-white;
|
||||
@form-element-input__border-color: @color-gray76;
|
||||
@form-element-input__border: 1px solid @form-element-input__border-color;
|
||||
@form-element-input__border-radius: 1px;
|
||||
@form-element-input__height: 32px;
|
||||
@form-element-input__width: 100%;
|
||||
@form-element-input__margin: false;
|
||||
@form-element-input__padding: 0 9px;
|
||||
@form-element-input__vertical-align: baseline;
|
||||
@form-element-input__background-clip: padding-box; // [border-box|content-box|padding-box]
|
||||
@form-element-input__font-size: @font-size__base;
|
||||
@form-element-input__color: false;
|
||||
@form-element-input__font-family: @font-family__base;
|
||||
@form-element-input__font-weight: false;
|
||||
@form-element-input__font-style: false;
|
||||
@form-element-input__line-height: @line-height__base;
|
||||
|
||||
// Placeholder
|
||||
@form-element-input-placeholder__color: @color-gray76;
|
||||
@form-element-input-placeholder__font-style: @form-element-input__font-style;
|
||||
|
||||
// Disabled state
|
||||
@form-element-input__disabled__background: @form-element-input__background;
|
||||
@form-element-input__disabled__border: @form-element-input__border;
|
||||
@form-element-input__disabled__opacity: .5;
|
||||
@form-element-input__disabled__color: @form-element-input__color;
|
||||
@form-element-input__disabled__font-style: @form-element-input__font-style;
|
||||
|
||||
// Focus state
|
||||
@form-element-input__focus__background: @form-element-input__background;
|
||||
@form-element-input__focus__border: @form-element-input__border;
|
||||
@form-element-input__focus__color: @form-element-input__color;
|
||||
@form-element-input__focus__font-style: @form-element-input__font-style;
|
||||
|
||||
// Form elements choice default variables
|
||||
@form-element-choice__type: ''; // [radio|checkbox]
|
||||
@form-element-choice__vertical-align: false;
|
||||
@form-element-choice__margin: 2px @indent__xs 0 0;
|
||||
@form-element-choice__disabled__opacity: @form-element-input__disabled__opacity;
|
||||
|
||||
//
|
||||
// Input-text
|
||||
// ---------------------------------------------
|
||||
|
||||
@input-text__background: @form-element-input__background;
|
||||
@input-text__border: @form-element-input__border;
|
||||
@input-text__border-radius: @form-element-input__border-radius;
|
||||
@input-text__height: @form-element-input__height;
|
||||
@input-text__width: @form-element-input__width;
|
||||
@input-text__margin: @form-element-input__margin;
|
||||
@input-text__padding: @form-element-input__padding;
|
||||
@input-text__vertical-align: @form-element-input__vertical-align;
|
||||
@input-text__background-clip: @form-element-input__background-clip; // [border-box|content-box|padding-box]
|
||||
@input-text__font-size: @form-element-input__font-size;
|
||||
@input-text__color: @form-element-input__color;
|
||||
@input-text__font-family: @form-element-input__font-family;
|
||||
@input-text__font-weight: @form-element-input__font-weight;
|
||||
@input-text__font-style: @form-element-input__font-style;
|
||||
@input-text__line-height: @form-element-input__line-height;
|
||||
|
||||
// Placeholder
|
||||
@input-text-placeholder__color: @form-element-input-placeholder__color;
|
||||
@input-text-placeholder__font-style: @form-element-input-placeholder__font-style;
|
||||
|
||||
// Disabled state
|
||||
@input-text__disabled__background: @form-element-input__disabled__background;
|
||||
@input-text__disabled__border: @form-element-input__disabled__border;
|
||||
@input-text__disabled__opacity: @form-element-input__disabled__opacity;
|
||||
@input-text__disabled__color: @form-element-input__disabled__color;
|
||||
@input-text__disabled__font-style: @form-element-input__disabled__font-style;
|
||||
|
||||
// Focus state
|
||||
@input-text__focus__background: @form-element-input__focus__background;
|
||||
@input-text__focus__border: @form-element-input__focus__border;
|
||||
@input-text__focus__color: @form-element-input__focus__color;
|
||||
@input-text__focus__font-style: @form-element-input__focus__font-style;
|
||||
|
||||
//
|
||||
// Select
|
||||
// ---------------------------------------------
|
||||
|
||||
@select__background: @form-element-input__background;
|
||||
@select__border: @form-element-input__border;
|
||||
@select__border-radius: @form-element-input__border-radius;
|
||||
@select__height: @form-element-input__height;
|
||||
@select__width: @form-element-input__width;
|
||||
@select__margin: @form-element-input__margin;
|
||||
@select__padding: @indent__xs @indent__s 4px;
|
||||
@select__vertical-align: @form-element-input__vertical-align;
|
||||
@select__background-clip: @form-element-input__background-clip; // [border-box|content-box|padding-box]
|
||||
@select__font-size: @form-element-input__font-size;
|
||||
@select__color: @form-element-input__color;
|
||||
@select__font-family: @form-element-input__font-family;
|
||||
@select__font-weight: @form-element-input__font-weight;
|
||||
@select__font-style: @form-element-input__font-style;
|
||||
@select__line-height: @form-element-input__line-height;
|
||||
|
||||
// Placeholder
|
||||
@select-placeholder__color: false;
|
||||
@select-placeholder__font-style: false;
|
||||
|
||||
// Disabled state
|
||||
@select__disabled__background: @form-element-input__disabled__background;
|
||||
@select__disabled__border: @form-element-input__disabled__border;
|
||||
@select__disabled__opacity: @form-element-input__disabled__opacity;
|
||||
@select__disabled__color: @form-element-input__disabled__color;
|
||||
@select__disabled__font-style: @form-element-input__disabled__font-style;
|
||||
|
||||
// Focus state
|
||||
@select__focus__background: false;
|
||||
@select__focus__border: @form-element-input__focus__border;
|
||||
@select__focus__color: @form-element-input__focus__color;
|
||||
@select__focus__font-style: @form-element-input__focus__font-style;
|
||||
|
||||
//
|
||||
// Textarea
|
||||
// ---------------------------------------------
|
||||
|
||||
@textarea__background: @form-element-input__background;
|
||||
@textarea__border: @form-element-input__border;
|
||||
@textarea__border-radius: @form-element-input__border-radius;
|
||||
@textarea__height: auto;
|
||||
@textarea__width: @form-element-input__width;
|
||||
@textarea__padding: @indent__s;
|
||||
@textarea__margin: 0;
|
||||
@textarea__vertical-align: @form-element-input__vertical-align;
|
||||
@textarea__background-clip: @form-element-input__background-clip; // [border-box|content-box|padding-box]
|
||||
@textarea__font-size: @form-element-input__font-size;
|
||||
@textarea__color: @form-element-input__color;
|
||||
@textarea__font-family: @form-element-input__font-family;
|
||||
@textarea__font-weight: @form-element-input__font-weight;
|
||||
@textarea__font-style: @form-element-input__font-style;
|
||||
@textarea__line-height: @form-element-input__line-height;
|
||||
@textarea__resize: vertical; // [none|both|horizontal|vertical|inherit]
|
||||
|
||||
// Placeholder
|
||||
@textarea-placeholder__color: @form-element-input-placeholder__color;
|
||||
@textarea-placeholder__font-style: @form-element-input-placeholder__font-style;
|
||||
|
||||
// Disabled state
|
||||
@textarea__disabled__background: @form-element-input__disabled__background;
|
||||
@textarea__disabled__border: @form-element-input__disabled__border;
|
||||
@textarea__disabled__opacity: @form-element-input__disabled__opacity;
|
||||
@textarea__disabled__color: @form-element-input__disabled__color;
|
||||
@textarea__disabled__font-style: @form-element-input__disabled__font-style;
|
||||
|
||||
// Focus state
|
||||
@textarea__focus__background: @form-element-input__focus__background;
|
||||
@textarea__focus__border: @form-element-input__focus__border;
|
||||
@textarea__focus__color: @form-element-input__focus__color;
|
||||
@textarea__focus__font-style: @form-element-input__focus__font-style;
|
||||
|
||||
//
|
||||
// Radio
|
||||
// ---------------------------------------------
|
||||
|
||||
@input-radio__vertical-align: @form-element-choice__vertical-align;
|
||||
@input-radio__margin: @form-element-choice__margin;
|
||||
|
||||
@input-radio__disabled__opacity: @form-element-choice__disabled__opacity;
|
||||
|
||||
//
|
||||
// Checkbox
|
||||
// ---------------------------------------------
|
||||
|
||||
@input-checkbox__vertical-align: @form-element-choice__vertical-align;
|
||||
@input-checkbox__margin: @form-element-choice__margin;
|
||||
|
||||
@input-checkbox__disabled__opacity: @form-element-choice__disabled__opacity;
|
||||
|
||||
//
|
||||
// Validation
|
||||
// ---------------------------------------------
|
||||
|
||||
@form-validation-note__color-error: @error__color;
|
||||
@form-validation-note__font-size: @font-size__s;
|
||||
@form-validation-note__font-family: false;
|
||||
@form-validation-note__font-style: false;
|
||||
@form-validation-note__font-weight: false;
|
||||
@form-validation-note__line-height: false;
|
||||
@form-validation-note__margin: 3px 0 0;
|
||||
@form-validation-note__padding: false;
|
||||
|
||||
@form-validation-note-icon__use: false;
|
||||
@form-validation-note-icon__font-content: @icon-pointer-up;
|
||||
@form-validation-note-icon__font: @icon-font;
|
||||
@form-validation-note-icon__font-size: @form-validation-note__font-size * 2;
|
||||
@form-validation-note-icon__font-line-height: @form-validation-note__font-size;
|
||||
@form-validation-note-icon__font-color: @form-validation-note__color-error;
|
||||
@form-validation-note-icon__font-color-hover: false;
|
||||
@form-validation-note-icon__font-color-active: false;
|
||||
@form-validation-note-icon__font-margin: false;
|
||||
@form-validation-note-icon__font-vertical-align: @icon-font__vertical-align;
|
||||
@form-validation-note-icon__font-position: @icon-font__position;
|
||||
@form-validation-note-icon__font-text-hide: @icon-font__text-hide;
|
||||
|
||||
@form-element-validation__color-error: false;
|
||||
@form-element-validation__color-valid: false;
|
||||
@form-element-validation__border-error: lighten(@form-validation-note__color-error, 20%);
|
||||
@form-element-validation__border-valid: false;
|
||||
@form-element-validation__background-error: false;
|
||||
@form-element-validation__background-valid: false;
|
||||
|
||||
//
|
||||
// Fieldset
|
||||
// ---------------------------------------------
|
||||
|
||||
@form-fieldset__border: 0;
|
||||
@form-fieldset__margin: 0 0 @indent__xl;
|
||||
@form-fieldset__padding: 0;
|
||||
@form-fieldset-legend__color: false;
|
||||
@form-fieldset-legend__font-size: 20px;
|
||||
@form-fieldset-legend__font-family: false;
|
||||
@form-fieldset-legend__font-weight: false;
|
||||
@form-fieldset-legend__font-style: false;
|
||||
@form-fieldset-legend__line-height: 1.2;
|
||||
@form-fieldset-legend__margin: 0 0 @indent__m;
|
||||
@form-fieldset-legend__padding: 0;
|
||||
@form-fieldset-legend__width: false;
|
||||
|
||||
//
|
||||
// Field
|
||||
// ---------------------------------------------
|
||||
|
||||
@form-field-type: block; // [inline|block]
|
||||
@form-field-type-revert: inline; // [inline|block|false]
|
||||
@form-field__border: false;
|
||||
@form-field__vertical-indent: @indent__base;
|
||||
@form-field__additional-vertical-indent: (@form-field__vertical-indent/2);
|
||||
@form-field-type-block__margin: 0 0 @form-field__vertical-indent;
|
||||
@form-field-type-inline__margin: 0 0 @form-field__vertical-indent;
|
||||
|
||||
@form-field-column: false;
|
||||
@form-field-column__padding: 0 12px 0 0;
|
||||
@form-field-column__number: 2;
|
||||
|
||||
// Form field label
|
||||
@form-field-label__align: false;
|
||||
@form-field-label__color: false;
|
||||
@form-field-label__font-size: false;
|
||||
@form-field-label__font-family: false;
|
||||
@form-field-label__font-weight: @font-weight__bold;
|
||||
@form-field-label__font-style: false;
|
||||
@form-field-label__line-height: false;
|
||||
|
||||
@form-field-type-label-inline__margin: false;
|
||||
@form-field-type-label-inline__padding-top: 6px;
|
||||
@form-field-type-label-inline__padding: @form-field-type-label-inline__padding-top 15px 0 0;
|
||||
@form-field-type-label-inline__width: 25.8%;
|
||||
@form-field-type-label-inline__align: right;
|
||||
|
||||
@form-field-type-label-block__margin: 0 0 @indent__xs;
|
||||
@form-field-type-label-block__padding: false;
|
||||
@form-field-type-label-block__align: @form-field-label__align;
|
||||
|
||||
// Form field control
|
||||
@form-field-type-control-inline__width: 74.2%;
|
||||
|
||||
// Form field label asterisk
|
||||
@form-field-label-asterisk__color: @color-red10;
|
||||
@form-field-label-asterisk__font-size: @font-size__s;
|
||||
@form-field-label-asterisk__font-family: false;
|
||||
@form-field-label-asterisk__font-weight: false;
|
||||
@form-field-label-asterisk__font-style: false;
|
||||
@form-field-label-asterisk__line-height: false;
|
||||
@form-field-label-asterisk__margin: 0 0 0 @indent__xs;
|
||||
|
||||
// Form field note
|
||||
@form-field-note__color: false;
|
||||
@form-field-note__font-size: @font-size__s;
|
||||
@form-field-note__font-family: false;
|
||||
@form-field-note__font-weight: false;
|
||||
@form-field-note__font-style: false;
|
||||
@form-field-note__line-height: false;
|
||||
@form-field-note__margin: 3px 0 0;
|
||||
@form-field-note__padding: 0;
|
||||
|
||||
// Form field note icon
|
||||
@form-field-note-icon-font: @icon-font;
|
||||
@form-field-note-icon-font__content: @icon-pointer-up;
|
||||
@form-field-note-icon-font__size: @form-field-note__font-size * 2;
|
||||
@form-field-note-icon-font__line-height: @form-field-note__font-size;
|
||||
@form-field-note-icon-font__color: @form-field-note__color;
|
||||
@form-field-note-icon-font__color-hover: false;
|
||||
@form-field-note-icon-font__color-active: false;
|
||||
@form-field-note-icon-font__margin: false;
|
||||
@form-field-note-icon-font__vertical-align: @icon-font__vertical-align;
|
||||
@form-field-note-icon-font__position: @icon-font__position;
|
||||
@form-field-note-icon-font__text-hide: @icon-font__text-hide;
|
||||
|
||||
// Hasrequired
|
||||
@form-hasrequired__position: top; // [top|bottom]
|
||||
@form-hasrequired__color: @form-field-label-asterisk__color;
|
||||
@form-hasrequired__font-size: @font-size__s;
|
||||
@form-hasrequired__font-family: false;
|
||||
@form-hasrequired__font-weight: false;
|
||||
@form-hasrequired__font-style: false;
|
||||
@form-hasrequired__line-height: false;
|
||||
@form-hasrequired__border: false;
|
||||
@form-hasrequired__margin: @indent__s 0 0;
|
||||
@form-hasrequired__padding: false;
|
||||
@@ -0,0 +1,85 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Icons variables
|
||||
// _____________________________________________
|
||||
|
||||
@icon__position: before;
|
||||
@icon__text-hide: false;
|
||||
@icon__height: 26px;
|
||||
@icon__width: 26px;
|
||||
@icon__margin: '';
|
||||
@icon__vertical-align: middle;
|
||||
|
||||
@icon-image__position-x: 0;
|
||||
@icon-image__position-y: 0;
|
||||
|
||||
@icon-sprite__position-x: 0;
|
||||
@icon-sprite__position-y: 0;
|
||||
@icon-sprite__grid: 26px;
|
||||
|
||||
@icon-font: @icons__font-name;
|
||||
@icon-font__position: @icon__position;
|
||||
@icon-font__text-hide: @icon__text-hide;
|
||||
@icon-font__margin: @icon__margin;
|
||||
@icon-font__size: inherit;
|
||||
@icon-font__line-height: @icon-font__size;
|
||||
@icon-font__color: inherit;
|
||||
@icon-font__color-hover: false;
|
||||
@icon-font__color-active: false;
|
||||
@icon-font__vertical-align: @icon__vertical-align;
|
||||
@icon-font__display: inline-block;
|
||||
|
||||
@icon-calendar__font-size: 40px;
|
||||
|
||||
//
|
||||
// Variables for icons-blank-theme
|
||||
// ---------------------------------------------
|
||||
|
||||
// ToDo UI: move it to blank theme variables
|
||||
@icon-wishlist-full: '\e600';
|
||||
@icon-wishlist-empty: '\e601';
|
||||
@icon-warning: '\e602';
|
||||
@icon-update: '\e603';
|
||||
@icon-trash: '\e604';
|
||||
@icon-star: '\e605';
|
||||
@icon-settings: '\e606';
|
||||
@icon-pointer-down: '\e607';
|
||||
@icon-next: '\e608';
|
||||
@icon-menu: '\e609';
|
||||
@icon-location: '\e60a';
|
||||
@icon-list: '\e60b';
|
||||
@icon-info: '\e60c';
|
||||
@icon-grid: '\e60d';
|
||||
@icon-comment-reflected: '\e60e';
|
||||
@icon-collapse: '\e60f';
|
||||
@icon-checkmark: '\e610';
|
||||
@icon-cart: '\e611';
|
||||
@icon-calendar: '\e612';
|
||||
@icon-arrow-up: '\e613';
|
||||
@icon-arrow-down: '\e614';
|
||||
@icon-search: '\e615';
|
||||
@icon-remove: '\e616';
|
||||
@icon-prev: '\e617';
|
||||
@icon-pointer-up: '\e618';
|
||||
@icon-pointer-right: '\e619';
|
||||
@icon-pointer-left: '\e61a';
|
||||
@icon-flag: '\e61b';
|
||||
@icon-expand: '\e61c';
|
||||
@icon-envelope: '\e61d';
|
||||
@icon-compare-full: '\e61e';
|
||||
@icon-compare-empty: '\e61f';
|
||||
@icon-comment: '\e620';
|
||||
@icon-up: '\e621';
|
||||
@icon-down: '\e622';
|
||||
@icon-help: '\e623';
|
||||
@icon-arrow-right-thin: '\e624';
|
||||
@icon-arrow-left-thin: '\e625';
|
||||
@icon-arrow-down-thin: '\e626';
|
||||
@icon-account: '\e627';
|
||||
@icon-gift-registry: '\e628';
|
||||
@icon-present: '\e629';
|
||||
@icon-arrow-up-thin: '\e633';
|
||||
@@ -0,0 +1,40 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Layout variables
|
||||
// _____________________________________________
|
||||
|
||||
// Widths
|
||||
@layout__width: ''; // for the fixed width layout
|
||||
@layout__max-width: 1280px;
|
||||
@layout-indent__width: 20px;
|
||||
@layout__width-xs-indent: 15px;
|
||||
|
||||
// Classnames defining different layouts
|
||||
@layout-class-1column: page-layout-1column;
|
||||
@layout-class-2columns__left: page-layout-2columns-left;
|
||||
@layout-class-2columns__right: page-layout-2columns-right;
|
||||
@layout-class-3columns: page-layout-3columns;
|
||||
|
||||
// Variables used for layout grid
|
||||
@total-columns: 12;
|
||||
@gutter-width: 0;
|
||||
|
||||
// Variables for layout columns
|
||||
@layout-column__width: @total-columns;
|
||||
@layout-column__sidebar-width: 2;
|
||||
@layout-column__left-width: @layout-column__sidebar-width;
|
||||
@layout-column__right-width: @layout-column__sidebar-width;
|
||||
|
||||
// Variables for layout columns depending on layout used
|
||||
@layout-column-main__width-1: 100%;
|
||||
@layout-column-main__width-2-left: @layout-column__width - @layout-column__left-width;
|
||||
@layout-column-main__width-2-right: @layout-column__width - @layout-column__right-width;
|
||||
@layout-column-main__width-3: @layout-column__width - @layout-column__left-width - @layout-column__right-width;
|
||||
|
||||
// Checkout columns width
|
||||
@layout-column-checkout__width-left: 3;
|
||||
@layout-column-checkout__width-main: @layout-column__width - @layout-column-checkout__width-left;
|
||||
@@ -0,0 +1,30 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Loader variables
|
||||
// _____________________________________________
|
||||
|
||||
@loader-overlay__background-color: rgba(255, 255, 255, .5);
|
||||
@loader-overlay__z-index: 9999;
|
||||
|
||||
@loader-icon__width: 160px;
|
||||
@loader-icon__height: 160px;
|
||||
@loader-icon__background-color: transparent;
|
||||
@loader-icon__background-image: url('@{baseDir}images/loader-2.gif');
|
||||
@loader-icon__background-position: 50% 50%;
|
||||
@loader-icon__border-radius: 5px;
|
||||
@loader-icon__padding: '';
|
||||
|
||||
@loader-text: false;
|
||||
@loader-text__color: @primary__color;
|
||||
@loader-text__font-size: @font-size__base;
|
||||
@loader-text__font-family: @font-family__base;
|
||||
@loader-text__font-weight: @font-weight__regular;
|
||||
@loader-text__font-style: @font-style__base;
|
||||
@loader-text__padding: 130px 0 0;
|
||||
|
||||
@loading__background-color: @loader-overlay__background-color;
|
||||
@loading__background-image: @loader-icon__background-image;
|
||||
@@ -0,0 +1,123 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Messages variables
|
||||
// _____________________________________________
|
||||
|
||||
@message__padding: @indent__s @indent__base;
|
||||
@message__margin: 0 0 @indent__s;
|
||||
|
||||
@message__color: false; // Each message type has its own message color
|
||||
@message__font-size: 13px;
|
||||
@message__font-family: false;
|
||||
@message__font-style: false;
|
||||
@message__font-weight: false;
|
||||
@message__line-height: 1.2em;
|
||||
|
||||
@message-icon__font-size: ceil(@message__font-size * 2 + 2);
|
||||
@message-icon__font-line-height: @message-icon__font-size;
|
||||
@message-icon__inner-padding-left: 40px;
|
||||
@message-icon__lateral-width: 30px;
|
||||
@message-icon__lateral-arrow-size: 5px;
|
||||
@message-icon__top: 18px;
|
||||
@message-icon__right: false;
|
||||
@message-icon__bottom: false;
|
||||
@message-icon__left: 0;
|
||||
|
||||
@message__border-width: false;
|
||||
@message__border-color: false;
|
||||
@message__border-style: false;
|
||||
@message__border-radius: false;
|
||||
|
||||
// Information message
|
||||
@message-info__color: @color-brownie1;
|
||||
@message-info__background: @color-yellow-light1;
|
||||
@message-info__border-color: @message__border-color;
|
||||
|
||||
@message-info-link__color: @link__color;
|
||||
@message-info-link__color-hover: @link__hover__color;
|
||||
@message-info-link__color-active: @link__hover__color;
|
||||
|
||||
@message-info-icon: @icon-warning;
|
||||
@message-info-icon__color-inner: @color-brownie-light1;
|
||||
@message-info-icon__color-lateral: @color-white;
|
||||
@message-info-icon__background: @color-brownie1;
|
||||
@message-info-icon__top: @message-icon__top;
|
||||
@message-info-icon__right: @message-icon__right;
|
||||
@message-info-icon__bottom: @message-icon__bottom;
|
||||
@message-info-icon__left: @message-icon__left;
|
||||
|
||||
// Warning message
|
||||
@message-warning__color: @message-info__color;
|
||||
@message-warning__background: @message-info__background;
|
||||
@message-warning__border-color: @message-info__border-color;
|
||||
|
||||
@message-warning-link__color: @message-info-link__color;
|
||||
@message-warning-link__color-hover: @message-info-link__color-hover;
|
||||
@message-warning-link__color-active: @message-info-link__color-active;
|
||||
|
||||
@message-warning-icon: @message-info-icon;
|
||||
@message-warning-icon__color-inner: @message-info-icon__color-inner;
|
||||
@message-warning-icon__color-lateral: @message-info-icon__color-lateral;
|
||||
@message-warning-icon__background: @message-info-icon__background;
|
||||
@message-warning-icon__top: @message-icon__top;
|
||||
@message-warning-icon__right: @message-icon__right;
|
||||
@message-warning-icon__bottom: @message-icon__bottom;
|
||||
@message-warning-icon__left: @message-icon__left;
|
||||
|
||||
// Error message
|
||||
@message-error__color: @error__color;
|
||||
@message-error__background: @color-pink1;
|
||||
@message-error__border-color: @message__border-color;
|
||||
|
||||
@message-error-link__color: @link__color;
|
||||
@message-error-link__color-hover: @link__hover__color;
|
||||
@message-error-link__color-active: @link__hover__color;
|
||||
|
||||
@message-error-icon: @icon-warning;
|
||||
@message-error-icon__color-inner: @color-red11;
|
||||
@message-error-icon__color-lateral: @color-white;
|
||||
@message-error-icon__background: @color-red11;
|
||||
@message-error-icon__top: @message-icon__top;
|
||||
@message-error-icon__right: @message-icon__right;
|
||||
@message-error-icon__bottom: @message-icon__bottom;
|
||||
@message-error-icon__left: @message-icon__left;
|
||||
|
||||
// Success message
|
||||
@message-success__color: @color-dark-green1;
|
||||
@message-success__background: @color-gray-light1;
|
||||
@message-success__border-color: @message__border-color;
|
||||
|
||||
@message-success-link__color: @link__color;
|
||||
@message-success-link__color-hover: @link__hover__color;
|
||||
@message-success-link__color-active: @link__hover__color;
|
||||
|
||||
@message-success-icon: @icon-checkmark;
|
||||
@message-success-icon__color-inner: @color-dark-green1;
|
||||
@message-success-icon__color-lateral: @color-white;
|
||||
@message-success-icon__background: @color-dark-green1;
|
||||
@message-success-icon__top: @message-icon__top;
|
||||
@message-success-icon__right: @message-icon__right;
|
||||
@message-success-icon__bottom: @message-icon__bottom;
|
||||
@message-success-icon__left: @message-icon__left;
|
||||
|
||||
// Notice message
|
||||
@message-notice__color: @message-info__color;
|
||||
@message-notice__background: @message-info__background;
|
||||
@message-notice__border-color: @message-info__border-color;
|
||||
|
||||
@message-notice-link__color: @message-info-link__color;
|
||||
@message-notice-link__color-hover: @message-info-link__color-hover;
|
||||
@message-notice-link__color-active: @message-info-link__color-active;
|
||||
|
||||
@message-notice-icon: @message-info-icon;
|
||||
@message-notice-icon__color-inner: @message-info-icon__color-inner;
|
||||
@message-notice-icon__color-lateral: @message-info-icon__color-lateral;
|
||||
@message-notice-icon__background: @message-info-icon__background;
|
||||
@message-notice-icon__top: @message-icon__top;
|
||||
@message-notice-icon__right: @message-icon__right;
|
||||
@message-notice-icon__bottom: @message-icon__bottom;
|
||||
@message-notice-icon__left: @message-icon__left;
|
||||
@@ -0,0 +1,116 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Navigation variables
|
||||
// _____________________________________________
|
||||
|
||||
@navigation__background: @secondary__color__light;
|
||||
@navigation__border: '';
|
||||
|
||||
@navigation-level0-item__font-size: 16;
|
||||
@navigation-level0-item__font-weight: @font-weight__bold;
|
||||
@navigation-level0-item__line-height: false;
|
||||
@navigation-level0-item__margin: 0;
|
||||
@navigation-level0-item__padding: 8px @indent__xl 8px 15px;
|
||||
@navigation-level0-item__text-transform: uppercase;
|
||||
|
||||
@navigation-level0-item__background: '';
|
||||
@navigation-level0-item__border: 1px solid @color-gray82;
|
||||
@navigation-level0-item__color: @color-gray34;
|
||||
@navigation-level0-item__text-decoration: none;
|
||||
|
||||
@navigation-level0-item__active__background: '';
|
||||
@navigation-level0-item__active__border-color: @active__color;
|
||||
@navigation-level0-item__active__border-style: solid;
|
||||
@navigation-level0-item__active__border-width: 0 0 0 8px;
|
||||
@navigation-level0-item__active__color: '';
|
||||
@navigation-level0-item__active__text-decoration: '';
|
||||
@navigation-level0-item__hover__color: @primary__color;
|
||||
|
||||
@submenu__background: '';
|
||||
@submenu__border: '';
|
||||
@submenu__padding-top: @indent__s;
|
||||
@submenu__padding-right: 0;
|
||||
@submenu__padding-bottom: @indent__s;
|
||||
@submenu__padding-left: 15px;
|
||||
@submenu__font-size: '';
|
||||
@submenu__font-weight: @font-weight__regular;
|
||||
@submenu-item__line-height: 1.3;
|
||||
|
||||
@submenu-item__background: '';
|
||||
@submenu-item__border: '';
|
||||
@submenu-item__color: @color-gray34;
|
||||
@submenu-item__text-decoration: '';
|
||||
|
||||
@submenu-item__active__background: '';
|
||||
@submenu-item__active__border: 8px;
|
||||
@submenu-item__active__border-color: @active__color;
|
||||
@submenu-item__active__border-style: solid;
|
||||
@submenu-item__active__border-width: 0 0 0 @submenu-item__active__border;
|
||||
@submenu-item__active__color: '';
|
||||
@submenu-item__active__text-decoration: '';
|
||||
|
||||
//
|
||||
// Desktop navigation
|
||||
// ---------------------------------------------
|
||||
|
||||
@navigation-desktop__background: @navigation__background;
|
||||
@navigation-desktop__border: '';
|
||||
@navigation-desktop__font-size: '';
|
||||
@navigation-desktop__font-weight: @font-weight__bold;
|
||||
|
||||
@navigation-desktop-level0-item__line-height: 53px;
|
||||
@navigation-desktop-level0-item__margin: 0 @indent__s 0 0;
|
||||
@navigation-desktop-level0-item__padding: 0 12px;
|
||||
|
||||
@navigation-desktop-level0-item__background: '';
|
||||
@navigation-desktop-level0-item__border: '';
|
||||
@navigation-desktop-level0-item__color: @color-gray34;
|
||||
@navigation-desktop-level0-item__text-decoration: none;
|
||||
|
||||
@navigation-desktop-level0-item__hover__background: '';
|
||||
@navigation-desktop-level0-item__hover__border: '';
|
||||
@navigation-desktop-level0-item__hover__color: @primary__color;
|
||||
@navigation-desktop-level0-item__hover__text-decoration: @navigation-desktop-level0-item__text-decoration;
|
||||
|
||||
@navigation-desktop-level0-item__active__background: '';
|
||||
@navigation-desktop-level0-item__active__border-color: @active__color;
|
||||
@navigation-desktop-level0-item__active__border-style: solid;
|
||||
@navigation-desktop-level0-item__active__border-width: 0 0 3px;
|
||||
@navigation-desktop-level0-item__active__color: @navigation-desktop-level0-item__hover__color;
|
||||
@navigation-desktop-level0-item__active__text-decoration: @navigation-desktop-level0-item__text-decoration;
|
||||
|
||||
@submenu-desktop__background: @page__background-color;
|
||||
@submenu-desktop__border-width: @border-width__base;
|
||||
@submenu-desktop__border-style: solid;
|
||||
@submenu-desktop__border-color: @border-color__base;
|
||||
@submenu-desktop__box-shadow: 0 @indent__xs @indent__xs rgba(0, 0, 0, .19);
|
||||
@submenu-desktop__font-size: '';
|
||||
@submenu-desktop__font-weight: @font-weight__bold;
|
||||
@submenu-desktop__min-width: 230px;
|
||||
@submenu-desktop__padding: 0;
|
||||
|
||||
@submenu-desktop-arrow: true; // [true|false]
|
||||
@submenu-desktop-arrow__size: 10px;
|
||||
@submenu-desktop-arrow__left: 20px;
|
||||
|
||||
@submenu-desktop-item__padding: 8px @indent__base;
|
||||
@submenu-desktop-item__background: '';
|
||||
@submenu-desktop-item__border: '';
|
||||
@submenu-desktop-item__color: @navigation-desktop-level0-item__color;
|
||||
@submenu-desktop-item__text-decoration: '';
|
||||
|
||||
@submenu-desktop-item__hover__background: @secondary__color;
|
||||
@submenu-desktop-item__hover__border: '';
|
||||
@submenu-desktop-item__hover__color: @navigation-desktop-level0-item__hover__color;
|
||||
@submenu-desktop-item__hover__text-decoration: @navigation-desktop-level0-item__text-decoration;
|
||||
|
||||
@submenu-desktop-item__active__background: '';
|
||||
@submenu-desktop-item__active__border-color: @active__color;
|
||||
@submenu-desktop-item__active__border-style: solid;
|
||||
@submenu-desktop-item__active__border-width: 0 0 0 3px;
|
||||
@submenu-desktop-item__active__color: '';
|
||||
@submenu-desktop-item__active__text-decoration: '';
|
||||
@@ -0,0 +1,111 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Pager variables
|
||||
// _____________________________________________
|
||||
|
||||
@pager-label__display: none;
|
||||
@pager-reset-spaces: true; // Reset spaces between inline-block elements
|
||||
|
||||
@pager__font-size: @font-size__s;
|
||||
@pager__font-weight: @font-weight__bold;
|
||||
@pager__line-height: 32px;
|
||||
|
||||
@pager-item__display: inline-block;
|
||||
@pager-item__margin: 0 2px 0 0;
|
||||
@pager-item__padding: 0 4px;
|
||||
|
||||
@pager-actions__padding: 0;
|
||||
|
||||
// Pager current page
|
||||
@pager-current__font-weight: @font-weight__bold;
|
||||
@pager-current__color: @primary__color;
|
||||
@pager-current__border: false;
|
||||
@pager-current__background: false;
|
||||
@pager-current__gradient: false;
|
||||
@pager-current__gradient-direction: false;
|
||||
@pager-current__gradient-color-start: false;
|
||||
@pager-current__gradient-color-end: false;
|
||||
|
||||
// Pager link page
|
||||
@pager__gradient: false;
|
||||
@pager__gradient-direction: false;
|
||||
|
||||
// Pager link default
|
||||
@pager__color: @link__color;
|
||||
@pager__border: false;
|
||||
@pager__text-decoration: none;
|
||||
@pager__background: false;
|
||||
@pager__gradient-color-start: false;
|
||||
@pager__gradient-color-end: false;
|
||||
|
||||
// Pager link visited
|
||||
@pager__visited__color: @link__visited__color;
|
||||
@pager__visited__border: false;
|
||||
@pager__visited__background: false;
|
||||
@pager__visited__gradient-color-start: false;
|
||||
@pager__visited__gradient-color-end: false;
|
||||
|
||||
// Pager link hover
|
||||
@pager__hover__color: @link__hover__color;
|
||||
@pager__hover__border: false;
|
||||
@pager__hover__text-decoration: none;
|
||||
@pager__hover__background: false;
|
||||
@pager__hover__gradient-color-start: false;
|
||||
@pager__hover__gradient-color-end: false;
|
||||
|
||||
// Pager link active
|
||||
@pager__active__color: @link__active__color;
|
||||
@pager__active__border: false;
|
||||
@pager__active__background: false;
|
||||
@pager__active__gradient-color-start: false;
|
||||
@pager__active__gradient-color-end: false;
|
||||
|
||||
// Pager link.action
|
||||
@pager-icon__use: true;
|
||||
@pager-icon__previous-content: @icon-prev;
|
||||
@pager-icon__next-content: @icon-next;
|
||||
@pager-icon__text-hide: true;
|
||||
@pager-icon__position: before;
|
||||
@pager-icon__font: @icon-font;
|
||||
@pager-icon__font-margin: 0 0 0 -6px;
|
||||
@pager-icon__font-vertical-align: top;
|
||||
@pager-icon__font-size: 46px;
|
||||
@pager-icon__font-line-height: @icon-font__line-height;
|
||||
|
||||
// Pager link.action gradient: element has a gradient background
|
||||
@pager-action__gradient: false; // [true|false]
|
||||
@pager-action__gradient-direction: false; // [true|false]
|
||||
|
||||
// Pager link.action default
|
||||
@pager-action__color: @text__color__muted;
|
||||
@pager-action__border: @border-width__base solid @border-color__base;
|
||||
@pager-action__text-decoration: @pager__text-decoration;
|
||||
@pager-action__background: @pager__background;
|
||||
@pager-action__gradient-color-start: false;
|
||||
@pager-action__gradient-color-end: false;
|
||||
|
||||
// Pager link.action visited
|
||||
@pager-action__visited__color: @pager-action__color;
|
||||
@pager-action__visited__border: false;
|
||||
@pager-action__visited__background: false;
|
||||
@pager-action__visited__gradient-color-start: false;
|
||||
@pager-action__visited__gradient-color-end: false;
|
||||
|
||||
// Pager link.action hover
|
||||
@pager-action__hover__color: @pager-action__color;
|
||||
@pager-action__hover__border: false;
|
||||
@pager-action__hover__background: false;
|
||||
@pager-action__hover__text-decoration: @pager__hover__text-decoration;
|
||||
@pager-action__hover__gradient-color-start: false;
|
||||
@pager-action__hover__gradient-color-end: false;
|
||||
|
||||
// Pager link.action active
|
||||
@pager-action__active__color: @pager-action__color;
|
||||
@pager-action__active__border: false;
|
||||
@pager-action__active__background: false;
|
||||
@pager-action__active__gradient-color-start: false;
|
||||
@pager-action__active__gradient-color-end: false;
|
||||
@@ -0,0 +1,80 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Popup variables
|
||||
// _____________________________________________
|
||||
|
||||
@popup__width: 100%;
|
||||
@popup__height: auto;
|
||||
@popup__padding: 22px;
|
||||
@popup__background: @color-white;
|
||||
@popup__border-color: @color-gray-light3;
|
||||
@popup__border: 1px solid @popup__border-color;
|
||||
@popup__shadow: 0 3px 3px rgba(0,0,0,.15);
|
||||
@popup__fade: opacity .3s linear;
|
||||
@popup__z-index: 1001;
|
||||
|
||||
@popup__position: fixed;
|
||||
@popup__position-top: 0;
|
||||
@popup__position-right: 0;
|
||||
@popup__position-bottom: 0;
|
||||
@popup__position-left: 0;
|
||||
|
||||
@popup__margin-top: false;
|
||||
@popup__margin-right: false;
|
||||
@popup__margin-bottom: false;
|
||||
@popup__margin-left: false;
|
||||
|
||||
@popup-content__height: auto;
|
||||
@popup-content__margin: false;
|
||||
@popup-header__margin: 0 0 25px;
|
||||
@popup-footer__margin: false;
|
||||
|
||||
@popup-title-headings: true; // [true|false]
|
||||
@popup-title-headings__level: h3; // [h1|h2|h3|h4|h5|h6]
|
||||
|
||||
@popup-button-close__icon: true; // [true|false]
|
||||
@popup-button-close__reset: true; // [true|false]
|
||||
@popup-button-close__position: absolute;
|
||||
@popup-button-close__position-top: @indent__s;
|
||||
@popup-button-close__position-right: @indent__s;
|
||||
@popup-button-close__position-bottom: false;
|
||||
@popup-button-close__position-left: false;
|
||||
|
||||
// Actions toolbar variables
|
||||
@popup-actions-toolbar: false; // [true|false]
|
||||
@popup-actions-toolbar__margin: @actions-toolbar__margin;
|
||||
@popup-actions-toolbar__padding: @actions-toolbar__padding;
|
||||
|
||||
@popup-actions-toolbar-actions__position: @actions-toolbar-actions__position;
|
||||
@popup-actions-toolbar-actions__reverse: @actions-toolbar-actions__reverse;
|
||||
@popup-actions-toolbar-actions__margin: @actions-toolbar-actions__margin;
|
||||
@popup-actions-toolbar-actions-primary__margin: @actions-toolbar-actions-primary__margin;
|
||||
@popup-actions-toolbar-actions-secondary__margin: @actions-toolbar-actions-secondary__margin;
|
||||
|
||||
@popup-actions-toolbar-actions-links__margin-top: @actions-toolbar-actions-links__margin-top;
|
||||
@popup-actions-toolbar-actions-links-primary__margin-top: @actions-toolbar-actions-links-primary__margin-top;
|
||||
@popup-actions-toolbar-actions-links-secondary__margin-top: @actions-toolbar-actions-links-secondary__margin-top;
|
||||
|
||||
// Popup Icons variables
|
||||
@popup-icon-font: @button-icon__font;
|
||||
@popup-icon-font__content: @icon-remove;
|
||||
@popup-icon-font__size: @button-icon__font-size;
|
||||
@popup-icon-font__line-height: @button-icon__line-height;
|
||||
@popup-icon-font__color: @button-icon__color;
|
||||
@popup-icon-font__color-hover: @button-icon__hover__font-color;
|
||||
@popup-icon-font__color-active: @button-icon__active__font-color;
|
||||
@popup-icon-font__margin: @button-icon__margin;
|
||||
@popup-icon-font__vertical-align: @button-icon__vertical-align;
|
||||
@popup-icon-font__position: @button-icon__position;
|
||||
@popup-icon-font__text-hide: true;
|
||||
|
||||
// Window overlay variables
|
||||
@overlay__background: @color-black;
|
||||
@overlay__opacity: .5;
|
||||
@overlay__opacity-old: 50;
|
||||
@overlay__fade: opacity .15s linear;
|
||||
@overlay__z-index: 1000;
|
||||
@@ -0,0 +1,19 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Rating variables
|
||||
// _____________________________________________
|
||||
|
||||
@rating-icon__count: 5;
|
||||
@rating-icon__content: @icon-star;
|
||||
@rating-icon__font: @icon-font;
|
||||
@rating-icon__font-size: 28px;
|
||||
@rating-icon__letter-spacing: -10px;
|
||||
@rating-icon__color: @color-gray78;
|
||||
|
||||
@rating-icon__active__color: @active__color;
|
||||
|
||||
@rating-label__hide: false;
|
||||
@@ -0,0 +1,18 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Responsive variables
|
||||
// _____________________________________________
|
||||
|
||||
@use-flex: true; // Use flexbox [true|false]
|
||||
@responsive: true; // Theme is responsive [true|false]
|
||||
|
||||
@screen__xxs: 320px;
|
||||
@screen__xs: 480px;
|
||||
@screen__s: 640px;
|
||||
@screen__m: 768px;
|
||||
@screen__l: 1024px;
|
||||
@screen__xl: 1440px;
|
||||
@@ -0,0 +1,92 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Sections variables
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Tabs
|
||||
// ---------------------------------------------
|
||||
|
||||
// Tabs controls
|
||||
@tab-control__font-size: @font-size__base;
|
||||
@tab-control__font-family: false;
|
||||
@tab-control__font-weight: @font-weight__semibold;
|
||||
@tab-control__font-style: false;
|
||||
@tab-control__line-height: @tab-control__height;
|
||||
@tab-control__height__base: @line-height__computed;
|
||||
@tab-control__height: @indent__base;
|
||||
@tab-control__margin-right: @indent__xs;
|
||||
@tab-control__padding-top: @indent__xs;
|
||||
@tab-control__padding-right: @indent__base;
|
||||
@tab-control__padding-bottom: @tab-control__padding-top;
|
||||
@tab-control__padding-left: @tab-control__padding-right;
|
||||
@tab-control__border-color: @border-color__base;
|
||||
@tab-control__border-width: @border-width__base;
|
||||
|
||||
// Current tab
|
||||
@tab-control__background-color: @panel__background-color;
|
||||
@tab-control__color: @text__color__muted;
|
||||
@tab-control__text-decoration: none;
|
||||
|
||||
@tab-control__hover__background-color: lighten(@tab-control__background-color, 5%);
|
||||
@tab-control__hover__color: @tab-control__color;
|
||||
@tab-control__hover__text-decoration: @tab-control__text-decoration;
|
||||
|
||||
@tab-control__active__background-color: lighten(@tab-control__background-color, 15%);
|
||||
@tab-control__active__color: @text__color;
|
||||
@tab-control__active__text-decoration: @tab-control__text-decoration;
|
||||
|
||||
@tab-control__visited__color: @tab-control__color;
|
||||
@tab-control__visited__text-decoration: @tab-control__text-decoration;
|
||||
|
||||
@tab-content__background-color: @tab-control__active__background-color;
|
||||
@tab-content__border-top-status: false;
|
||||
@tab-content__border: @tab-control__border-width solid @tab-control__border-color;
|
||||
@tab-content__margin-top: @tab-control__height + @tab-control__border-width + @tab-control__padding-top + @tab-control__padding-bottom;
|
||||
@tab-content__padding-top: @indent__base;
|
||||
@tab-content__padding-right: @indent__base;
|
||||
@tab-content__padding-bottom: @tab-content__padding-top;
|
||||
@tab-content__padding-left: @tab-content__padding-right;
|
||||
|
||||
//
|
||||
// Accordions
|
||||
// ---------------------------------------------
|
||||
|
||||
@accordion-control__font-family: @tab-control__font-family;
|
||||
@accordion-control__font-size: @font-size__l;
|
||||
@accordion-control__font-style: @tab-control__font-style;
|
||||
@accordion-control__font-weight: @tab-control__font-weight;
|
||||
@accordion-control__line-height: @accordion-control__height;
|
||||
@accordion-control__border-top: @tab-control__border-width solid @tab-control__border-color;
|
||||
@accordion-control__border-right: @tab-control__border-width solid @tab-control__border-color;
|
||||
@accordion-control__border-bottom: @tab-control__border-width solid @tab-control__border-color;
|
||||
@accordion-control__border-left: @tab-control__border-width solid @tab-control__border-color;
|
||||
@accordion-control__background-color: @tab-control__background-color;
|
||||
@accordion-control__color: @tab-control__color;
|
||||
@accordion-control__text-decoration: @tab-control__text-decoration;
|
||||
@accordion-control__height: @indent__xl;
|
||||
@accordion-control__margin-bottom: @indent__xs;
|
||||
@accordion-control__padding-top: @tab-control__padding-top;
|
||||
@accordion-control__padding-right: @indent__base;
|
||||
@accordion-control__padding-bottom: @tab-control__padding-bottom;
|
||||
@accordion-control__padding-left: @accordion-control__padding-right;
|
||||
|
||||
@accordion-control__visited__color: @tab-control__visited__color;
|
||||
@accordion-control__visited__text-decoration: @tab-control__visited__text-decoration;
|
||||
|
||||
@accordion-control__hover__background-color: @tab-control__hover__background-color;
|
||||
@accordion-control__hover__color: @tab-control__hover__color;
|
||||
@accordion-control__hover__text-decoration: @tab-control__hover__text-decoration;
|
||||
|
||||
@accordion-control__active__background-color: @tab-control__active__background-color;
|
||||
@accordion-control__active__color: @tab-control__active__color;
|
||||
@accordion-control__active__text-decoration: @tab-control__active__text-decoration;
|
||||
|
||||
@accordion-content__background-color: @tab-control__active__background-color;
|
||||
@accordion-content__border: @tab-content__border;
|
||||
@accordion-content__margin: 0 0 @indent__xs;
|
||||
@accordion-content__padding: @tab-content__padding-top @tab-content__padding-right @tab-content__padding-bottom @tab-content__padding-left;
|
||||
@@ -0,0 +1,29 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Structure
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Z axis
|
||||
// ---------------------------------------------
|
||||
|
||||
@z-index-1: 100;
|
||||
@z-index-2: 200;
|
||||
@z-index-3: 300;
|
||||
@z-index-4: 400;
|
||||
@z-index-5: 500;
|
||||
@z-index-6: 600;
|
||||
@z-index-7: 700;
|
||||
@z-index-8: 800;
|
||||
@z-index-9: 900;
|
||||
@z-index-10: 1000;
|
||||
|
||||
// z-index 8
|
||||
@overlay__z-index: @modal__z-index - 1;
|
||||
|
||||
// z-index 9
|
||||
@modal__z-index: @z-index-9;
|
||||
@@ -0,0 +1,55 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Table variables
|
||||
// _____________________________________________
|
||||
|
||||
@table__width: 100%;
|
||||
@table__margin-bottom: false;
|
||||
@table__background-color: false;
|
||||
@table__border-color: @border-color__base;
|
||||
@table__border-width: @border-width__base;
|
||||
@table__border-style: solid;
|
||||
|
||||
@table-head__background-color: @table__background-color;
|
||||
@table-foot__background-color: @table__background-color;
|
||||
@table-body-th__background-color: @table__background-color;
|
||||
|
||||
@table-caption__hide: true; // [true|false]
|
||||
@table-caption__font-size: false;
|
||||
@table-caption__color: false;
|
||||
@table-caption__font-family: false;
|
||||
@table-caption__font-weight: false;
|
||||
@table-caption__font-style: false;
|
||||
@table-caption__line-height: false;
|
||||
@table-caption__alignment: false;
|
||||
@table-caption__margin-top: false;
|
||||
@table-caption__margin-bottom: false;
|
||||
|
||||
@table-td__background-color: @table__background-color;
|
||||
@table-td__font-size: false;
|
||||
@table-td__color: false;
|
||||
@table-td__font-family: false;
|
||||
@table-td__font-weight: false;
|
||||
@table-td__line-height: false;
|
||||
@table-td__font-style: false;
|
||||
|
||||
@table-th__font-size: false;
|
||||
@table-th__color: @text__color__intense;
|
||||
@table-th__font-family: false;
|
||||
@table-th__font-weight: @font-weight__bold;
|
||||
@table-th__line-height: false;
|
||||
@table-th__font-style: false;
|
||||
|
||||
@table-cell__padding-horizontal: @indent__s;
|
||||
@table-cell__padding-vertical: 8px;
|
||||
@table-cell__hover__background-color: @panel__background-color;
|
||||
@table-cell-stripped__background-color: lighten(@table-cell__hover__background-color, 15%);
|
||||
@table-cell-stripped__color: @table-td__color;
|
||||
|
||||
@table-responsive__background-color: @table__background-color;
|
||||
@table-responsive-th__background-color: false;
|
||||
@table-responsive-cell__padding: @indent__xs 0;
|
||||
@@ -0,0 +1,28 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Tooltips variables
|
||||
// _____________________________________________
|
||||
|
||||
@tooltip__background: @color-white;
|
||||
@tooltip__border-color: @color-gray-light2;
|
||||
@tooltip__border-width: 1px;
|
||||
@tooltip__border-radius: false;
|
||||
@tooltip__color: @primary__color;
|
||||
@tooltip__cursor: help;
|
||||
@tooltip__font-size: false;
|
||||
@tooltip__font-family: false;
|
||||
@tooltip__font-weight: false;
|
||||
@tooltip__line-height: 1.4;
|
||||
@tooltip__font-style: false;
|
||||
@tooltip__margin: false;
|
||||
@tooltip__padding: 12px 16px;
|
||||
@tooltip__min-width: 210px;
|
||||
@tooltip__max-width: 360px;
|
||||
@tooltip__z-index: 100;
|
||||
|
||||
@tooltip-arrow__size: 5px;
|
||||
@tooltip-arrow__offset: 10px;
|
||||
@@ -0,0 +1,248 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Typography variables
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Fonts
|
||||
// ---------------------------------------------
|
||||
|
||||
// Path
|
||||
@icons__font-path: "@{baseDir}fonts/Blank-Theme-Icons/Blank-Theme-Icons";
|
||||
|
||||
// Names
|
||||
@icons__font-name: 'icons-blank-theme'; // ToDo UI: we need to rename (it shouldn't use blank theme name) or move icon fonts to blank theme
|
||||
|
||||
// Font families
|
||||
@font-family__sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
@font-family__serif: Georgia, 'Times New Roman', Times, serif;
|
||||
@font-family__monospace: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
||||
|
||||
@font-family__base: @font-family__sans-serif;
|
||||
|
||||
// Sizes
|
||||
@root__font-size: 62.5%; // Defines ratio between root font size and base font size, 1rem = 10px
|
||||
@font-size-ratio__base: 1.4; // Defines ratio of the root font-size to the base font-size
|
||||
|
||||
@font-size-unit: rem; // The unit to which most typography values will be converted by default
|
||||
@font-size-unit-ratio: unit((@root__font-size * 16/100)); // Ratio of the root font-size to the font-size unit
|
||||
@font-size-unit-convert: true; // Controls whether font-size values are converted to the specified font-size unit
|
||||
|
||||
@font-size__base: unit(@font-size-unit-ratio * @font-size-ratio__base, px); // Base font size value in <b>px</b>
|
||||
@font-size__xl: ceil(1.5 * @font-size__base); // 21px
|
||||
@font-size__l: ceil(1.25 * @font-size__base); // 18px
|
||||
@font-size__s: ceil(.85 * @font-size__base); // 12px
|
||||
@font-size__xs: floor(.75 * @font-size__base); // 11px
|
||||
|
||||
// Weights
|
||||
@font-weight__hairline: 100;
|
||||
@font-weight__extralight: 200;
|
||||
@font-weight__light: 300;
|
||||
@font-weight__regular: 400;
|
||||
@font-weight__heavier: 500;
|
||||
@font-weight__semibold: 600;
|
||||
@font-weight__bold: 700;
|
||||
@font-weight__extrabold: 800;
|
||||
@font-weight__heavy: 900;
|
||||
|
||||
// Styles
|
||||
@font-style__base: normal;
|
||||
@font-style__emphasis: italic;
|
||||
|
||||
// Line heights
|
||||
@line-height__base: 1.428571429;
|
||||
@line-height__computed: floor(@font-size__base * @line-height__base);
|
||||
@line-height__xl: 1.7;
|
||||
@line-height__l: 1.5;
|
||||
@line-height__s: 1.33;
|
||||
|
||||
// Colors
|
||||
@text__color: @primary__color;
|
||||
@text__color__intense: @primary__color__darker;
|
||||
@text__color__muted: @primary__color__lighter;
|
||||
|
||||
//
|
||||
// Indents
|
||||
// ---------------------------------------------
|
||||
|
||||
@indent__base: @line-height__computed; // 20px
|
||||
@indent__xl: @indent__base * 2; // 40px
|
||||
@indent__l: @indent__base * 1.5; // 30px
|
||||
@indent__m: @indent__base * 1.25; // 25px
|
||||
@indent__s: (@indent__base / 2); // 10px
|
||||
@indent__xs: (@indent__base / 4); // 5px
|
||||
|
||||
//
|
||||
// Borders
|
||||
// ---------------------------------------------
|
||||
|
||||
@border-color__base: darken(@page__background-color, 18%);
|
||||
@border-width__base: 1px;
|
||||
|
||||
//
|
||||
// Links
|
||||
// ---------------------------------------------
|
||||
|
||||
@link__color: @theme__color__primary;
|
||||
@link__text-decoration: none;
|
||||
|
||||
@link__visited__color: @link__color;
|
||||
@link__visited__text-decoration: none;
|
||||
|
||||
@link__hover__color: @theme__color__primary-alt;
|
||||
@link__hover__text-decoration: underline;
|
||||
|
||||
@link__active__color: @active__color;
|
||||
@link__active__text-decoration: underline;
|
||||
|
||||
//
|
||||
// Focus
|
||||
// ---------------------------------------------
|
||||
|
||||
@focus__color: @color-sky-blue1;
|
||||
@focus__box-shadow: 0 0 3px 1px @focus__color;
|
||||
|
||||
//
|
||||
// Lists
|
||||
// ---------------------------------------------
|
||||
|
||||
@list__color__base: false;
|
||||
@list__font-size__base: false;
|
||||
@list__margin-top: 0;
|
||||
@list__margin-bottom: @indent__m;
|
||||
|
||||
@list-item__margin-top: 0;
|
||||
@list-item__margin-bottom: @indent__s;
|
||||
|
||||
@dl__margin-top: 0;
|
||||
@dl__margin-bottom: @indent__base;
|
||||
|
||||
@dt__margin-top: 0;
|
||||
@dt__margin-bottom: @indent__xs;
|
||||
@dt__font-weight: @font-weight__bold;
|
||||
|
||||
@dd__margin-top: 0;
|
||||
@dd__margin-bottom: @indent__s;
|
||||
|
||||
//
|
||||
// Paragraphs
|
||||
// ---------------------------------------------
|
||||
|
||||
@p__margin-top: 0;
|
||||
@p__margin-bottom: @indent__s;
|
||||
|
||||
//
|
||||
// Headings
|
||||
// ---------------------------------------------
|
||||
|
||||
@heading__font-family__base: false;
|
||||
@heading__font-weight__base: @font-weight__light;
|
||||
@heading__line-height__base: 1.1;
|
||||
@heading__color__base: false;
|
||||
@heading__font-style__base: false;
|
||||
@heading__margin-top__base: @indent__base;
|
||||
@heading__margin-bottom__base: @indent__base;
|
||||
|
||||
@h1__font-size: ceil((@font-size__base * 1.85)); // 26px
|
||||
@h1__font-color: @heading__color__base;
|
||||
@h1__font-family: @heading__font-family__base;
|
||||
@h1__font-weight: @heading__font-weight__base;
|
||||
@h1__font-style: @heading__font-style__base;
|
||||
@h1__line-height: @heading__line-height__base;
|
||||
@h1__margin-top: 0;
|
||||
@h1__margin-bottom: @heading__margin-bottom__base;
|
||||
@h1__font-size-desktop: ceil((@font-size__base * 2.85)); // 40px
|
||||
|
||||
@h2__font-size: ceil((@font-size__base * 1.85)); // 26px
|
||||
@h2__font-color: @heading__color__base;
|
||||
@h2__font-family: @heading__font-family__base;
|
||||
@h2__font-weight: @heading__font-weight__base;
|
||||
@h2__font-style: @heading__font-style__base;
|
||||
@h2__line-height: @heading__line-height__base;
|
||||
@h2__margin-top: @indent__m;
|
||||
@h2__margin-bottom: @heading__margin-bottom__base;
|
||||
|
||||
@h3__font-size: ceil((@font-size__base * 1.28)); // 18px
|
||||
@h3__font-color: @heading__color__base;
|
||||
@h3__font-family: @heading__font-family__base;
|
||||
@h3__font-weight: @heading__font-weight__base;
|
||||
@h3__font-style: @heading__font-style__base;
|
||||
@h3__line-height: @heading__line-height__base;
|
||||
@h3__margin-top: @indent__base * .75;
|
||||
@h3__margin-bottom: @indent__s;
|
||||
|
||||
@h4__font-size: @font-size__base; // 14px
|
||||
@h4__font-color: @heading__color__base;
|
||||
@h4__font-family: @heading__font-family__base;
|
||||
@h4__font-weight: @font-weight__bold;
|
||||
@h4__font-style: @heading__font-style__base;
|
||||
@h4__line-height: @heading__line-height__base;
|
||||
@h4__margin-top: @heading__margin-top__base;
|
||||
@h4__margin-bottom: @heading__margin-bottom__base;
|
||||
|
||||
@h5__font-size: ceil((@font-size__base * .85)); // 12px
|
||||
@h5__font-color: @heading__color__base;
|
||||
@h5__font-family: @heading__font-family__base;
|
||||
@h5__font-weight: @font-weight__bold;
|
||||
@h5__font-style: @heading__font-style__base;
|
||||
@h5__line-height: @heading__line-height__base;
|
||||
@h5__margin-top: @heading__margin-top__base;
|
||||
@h5__margin-bottom: @heading__margin-bottom__base;
|
||||
|
||||
@h6__font-size: ceil((@font-size__base * .7)); // 10px
|
||||
@h6__font-color: @heading__color__base;
|
||||
@h6__font-family: @heading__font-family__base;
|
||||
@h6__font-weight: @font-weight__bold;
|
||||
@h6__font-style: @heading__font-style__base;
|
||||
@h6__line-height: @heading__line-height__base;
|
||||
@h6__margin-top: @heading__margin-top__base;
|
||||
@h6__margin-bottom: @heading__margin-bottom__base;
|
||||
|
||||
@heading__small-color: @primary__color;
|
||||
@heading__small-line-height: 1;
|
||||
@heading__small-size: (@font-size__xs/@font-size__base) * 100%;
|
||||
|
||||
// Code blocks
|
||||
@code__background-color: @panel__background-color;
|
||||
@code__color: @primary__color__darker;
|
||||
@code__font-size: @font-size__s;
|
||||
@code__padding: 2px 4px;
|
||||
|
||||
@pre__background-color: @panel__background-color;
|
||||
@pre__border-color: @border-color__base;
|
||||
@pre__border-width: @border-width__base;
|
||||
@pre__color: @primary__color__darker;
|
||||
|
||||
@kbd__background-color: @panel__background-color;
|
||||
@kbd__color: @primary__color__darker;
|
||||
|
||||
// Blockquote
|
||||
@blockquote__border-color: @border-color__base;
|
||||
@blockquote__border-width: 0;
|
||||
@blockquote__content-before: '\2014 \00A0';
|
||||
@blockquote__font-size: @font-size__base;
|
||||
@blockquote__font-style: @font-style__emphasis;
|
||||
@blockquote__margin: 0 0 @indent__base @indent__xl;
|
||||
@blockquote__padding: 0;
|
||||
|
||||
@blockquote-small__color: @primary__color;
|
||||
@blockquote-small__font-size: @font-size__xs;
|
||||
|
||||
@cite__font-style: @font-style__base;
|
||||
|
||||
// Misc
|
||||
@hr__border-color: @border-color__base;
|
||||
@hr__border-style: solid;
|
||||
@hr__border-width: @border-width__base;
|
||||
|
||||
@mark__color: @primary__color__dark;
|
||||
@mark__background-color: @panel__background-color;
|
||||
|
||||
@abbr__border-color: @border-color__base;
|
||||
|
||||
// Disable filters output in css
|
||||
@disable-filters: false;
|
||||
Reference in New Issue
Block a user