1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945 |
- // /**
- // * Copyright © Magento, Inc. All rights reserved.
- // * See COPYING.txt for license details.
- // */
- //
- // List default styles reset
- // ---------------------------------------------
- @_column-number: 1;
- & when (@media-common = true) {
- .abs-reset-list {
- .lib-list-reset-styles();
- > li {
- margin: 0;
- }
- }
- }
- //
- // Primary button
- // ---------------------------------------------
- & when (@media-common = true) {
- .action-primary {
- .lib-button-primary();
- .lib-css(border-radius, @button__border-radius);
- }
- }
- //
- // Secondary button
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-revert-to-action-secondary {
- &:extend(.abs-revert-secondary-color all);
- .lib-css(border-radius, @button__border-radius);
- &:not(:focus) {
- .lib-css(box-shadow, @button__shadow);
- }
- &:active {
- .lib-css(box-shadow, @button__shadow-active);
- }
- }
- }
- //
- // Link as a button
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-action-link-button {
- .lib-button();
- .lib-link-as-button();
- .lib-css(border-radius, @button__border-radius);
- }
- }
- //
- // Button as a link
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-action-button-as-link {
- .lib-button-as-link(@_margin: false);
- .lib-css(font-weight, @font-weight__regular);
- border-radius: 0;
- &:active,
- &:not(:focus) {
- box-shadow: none;
- }
- }
- }
- //
- // Button revert secondary color
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-revert-secondary-color {
- .lib-button-revert-secondary-color();
- }
- }
- //
- // Button revert secondary size
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-revert-secondary-size {
- .lib-button-revert-secondary-size();
- }
- }
- //
- // Large button
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-button-l {
- .lib-button-l();
- }
- }
- //
- // Product options list
- // ---------------------------------------------
- @abs-product-options-list: {
- dt {
- clear: left;
- float: left;
- margin: 0 @indent__s @indent__xs 0;
- &:after {
- content: ': ';
- }
- }
- dd {
- display: inline-block;
- float: left;
- margin: 0 0 @indent__xs;
- }
- };
- & when (@media-common = true) {
- .abs-product-options-list {
- @abs-product-options-list();
- }
- }
- //
- // Desktop
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-product-options-list-desktop {
- @abs-product-options-list();
- }
- }
- //
- // Button reset width, floats, margins
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-button-responsive {
- .lib-button-responsive();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-button-desktop {
- width: auto;
- }
- }
- //
- // Blocks in 2 columns
- // ---------------------------------------------
- @abs-blocks-2columns: {
- width: 48%;
- &:nth-child(1) {
- clear: left;
- float: left;
- }
- &:nth-child(2) {
- float: right;
- & + * {
- clear: both;
- }
- }
- };
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-blocks-2columns {
- @abs-blocks-2columns();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-blocks-2columns-s {
- @abs-blocks-2columns();
- }
- }
- //
- // Reset image alignment in container
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-reset-image-wrapper {
- height: auto;
- padding: 0 !important;
- .product-image-photo {
- position: static;
- }
- }
- }
- //
- // Adaptive images
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-adaptive-images {
- display: block;
- height: auto;
- max-width: 100%;
- }
- .abs-adaptive-images-centered {
- display: block;
- height: auto;
- margin: 0 auto;
- max-width: 100%;
- }
- }
- //
- // Title for login blocks
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-login-block-title {
- .lib-css(border-bottom, 1px solid @secondary__color);
- .lib-font-size(18);
- margin-bottom: 15px;
- padding-bottom: 12px;
- strong {
- font-weight: 500;
- }
- }
- }
- //
- // Simple Dropdown
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-dropdown-simple {
- .lib-dropdown(
- @_dropdown-list-item-padding: 5px 5px 5px 23px,
- @_dropdown-list-min-width: 200px,
- @_icon-font-margin: 0 0 0 5px,
- @_icon-font-vertical-align: middle
- );
- ul.items {
- padding: 6px 0;
- }
- }
- }
- //
- // Input quantity
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-input-qty {
- text-align: center;
- width: 54px;
- }
- }
- //
- // Margin for blocks & widgets
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-margin-for-blocks-and-widgets {
- margin-bottom: @indent__xl;
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-margin-for-blocks-and-widgets-desktop {
- margin-bottom: @indent__xl + @indent__s;
- }
- }
- //
- // Remove button for blocks
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-remove-button-for-blocks {
- .lib-icon-font(
- @icon-remove,
- @_icon-font-size: 12px,
- @_icon-font-line-height: 15px,
- @_icon-font-text-hide: true,
- @_icon-font-color: @color-gray46,
- @_icon-font-color-hover: @color-gray-darken4,
- @_icon-font-color-active: @color-gray60
- );
- }
- }
- //
- // Product link
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-product-link {
- font-weight: @font-weight__regular;
- > a {
- .lib-link(
- @_link-color: @product-name-link__color,
- @_link-text-decoration: @product-name-link__text-decoration,
- @_link-color-visited: @product-name-link__color__visited,
- @_link-text-decoration-visited: @product-name-link__text-decoration__visited,
- @_link-color-hover: @product-name-link__color__hover,
- @_link-text-decoration-hover: @product-name-link__text-decoration__hover,
- @_link-color-active: @product-name-link__color__active,
- @_link-text-decoration-active: @product-name-link__text-decoration__active
- );
- }
- }
- }
- //
- // Link
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-like-link {
- .lib-link();
- cursor: pointer;
- }
- }
- //
- // Reset left margin
- // ---------------------------------------------
- @abs-reset-left-margin: {
- margin-left: 0;
- };
- & when (@media-common = true) {
- .abs-reset-left-margin {
- @abs-reset-left-margin();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-reset-left-margin-desktop {
- @abs-reset-left-margin();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-reset-left-margin-desktop-s {
- @abs-reset-left-margin();
- }
- }
- //
- // Action with icon remove with text
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-action-remove {
- &:extend(.abs-action-button-as-link all);
- line-height: normal;
- margin-left: 73%;
- position: absolute;
- top: 34px;
- width: auto;
- }
- }
- //
- // Action with icon remove with text for desktop
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-action-remove-desktop {
- margin-left: 90%;
- }
- }
- //
- // Add Recipient
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-add-fields {
- .fieldset {
- .field {
- .control {
- width: 70%;
- }
- }
- .actions-toolbar {
- &:extend(.abs-add-clearfix all);
- > .secondary {
- .action {
- &.add {
- margin-top: @indent__l;
- }
- }
- float: left;
- }
- }
- .fields {
- .actions-toolbar {
- margin: 0;
- }
- }
- }
- .additional {
- margin-top: 55px;
- position: relative;
- }
- .action {
- &.remove {
- &:extend(.abs-action-remove all);
- }
- }
- .message {
- &.notice {
- margin: @indent__l 0 0;
- }
- }
- }
- }
- //
- // Add Recipient for desktop
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-add-fields-desktop {
- .fieldset {
- .field {
- .control {
- width: auto;
- }
- }
- .additional {
- .action {
- &.remove {
- &:extend(.abs-action-remove-desktop all);
- }
- }
- }
- }
- }
- }
- //
- // Margin for forms
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-margin-for-forms-desktop {
- .lib-css(margin-left, @form-field-type-label-inline__width);
- }
- }
- //
- // Visibility hidden / show visibility hidden
- // ---------------------------------------------
- @abs-hidden: {
- .lib-visibility-hidden();
- };
- & when (@media-common = true) {
- .abs-hidden {
- @abs-hidden();
- }
- }
- //
- // Visually hidden / show visually hidden
- // ---------------------------------------------
- @abs-visually-hidden: {
- .lib-visually-hidden();
- };
- & when (@media-common = true) {
- .abs-visually-hidden {
- @abs-visually-hidden();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-visually-hidden-mobile {
- @abs-visually-hidden();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
- .abs-visually-hidden-mobile-m {
- @abs-visually-hidden();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-visually-hidden-desktop-s {
- @abs-visually-hidden();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-visually-hidden-desktop {
- @abs-visually-hidden();
- }
- }
- //
- // Visually hidden reset
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-visually-hidden-reset {
- .lib-visually-hidden-reset();
- }
- }
- //
- // Clearfix
- // ---------------------------------------------
- @abs-add-clearfix: {
- .lib-clearfix();
- };
- & when (@media-common = true) {
- .abs-add-clearfix {
- @abs-add-clearfix();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-add-clearfix-desktop {
- @abs-add-clearfix();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-add-clearfix-desktop-s {
- @abs-add-clearfix();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-add-clearfix-mobile {
- @abs-add-clearfix();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
- .abs-add-clearfix-mobile-m {
- @abs-add-clearfix();
- }
- }
- //
- // Box-sizing
- // ---------------------------------------------
- @abs-add-box-sizing: {
- box-sizing: border-box;
- };
- & when (@media-common = true) {
- .abs-add-box-sizing {
- @abs-add-box-sizing();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-add-box-sizing-desktop {
- @abs-add-box-sizing();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-add-box-sizing-desktop-s {
- @abs-add-box-sizing();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-add-box-sizing-desktop-m {
- @abs-add-box-sizing();
- }
- }
- //
- // Revert field type
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-revert-field-type-desktop {
- .fieldset {
- > .field,
- .fields > .field {
- .lib-form-field-type-revert(@_type: block);
- &:not(:first-child):last-of-type {
- margin-bottom: 0;
- }
- }
- }
- }
- }
- //
- // Settings icons
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-navigation-icon {
- .lib-icon-font(
- @_icon-font-content: @icon-down,
- @_icon-font-size: 34px,
- @_icon-font-line-height: 1.2,
- @_icon-font-position: after,
- @_icon-font-display: block
- );
- &:after {
- position: absolute;
- right: 5px;
- top: 0;
- }
- }
- }
- //
- // Split button
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-split-button {
- .lib-dropdown-split(
- @_options-selector : ~'.items',
- @_dropdown-split-button-border-radius-fix: true
- );
- vertical-align: middle;
- }
- }
- //
- // Field 2 column
- // ---------------------------------------------
- @abs-form-field-column-2: {
- .fieldset {
- .field {
- .lib-form-field-column(@_column: true);
- &:nth-last-child(1),
- &:nth-last-child(2) {
- margin-bottom: 0;
- }
- .field {
- padding: 0;
- width: 100%;
- }
- }
- }
- };
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-form-field-column-2 {
- @abs-form-field-column-2();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-form-field-column-2-s {
- @abs-form-field-column-2();
- }
- }
- //
- // Field 1 column
- // ---------------------------------------------
- @abs-form-field-revert-column-1: {
- .lib-form-field-column-number(@_column-number);
- };
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-form-field-revert-column-1 {
- @abs-form-field-revert-column-1();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-form-field-revert-column-1-s {
- @abs-form-field-revert-column-1();
- }
- }
- //
- // Checkout shipping methods title
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-methods-shipping-title {
- .lib-css(font-weight, @font-weight__semibold);
- .lib-font-size(16);
- margin-bottom: 15px;
- }
- }
- //
- // Checkout order review
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-checkout-order-review {
- tbody > tr {
- &:extend(.abs-add-clearfix-mobile all);
- &:not(:last-child) {
- .lib-css(border-bottom, @border-width__base solid @border-color__base);
- }
- > td.col {
- &.item {
- &:before {
- display: none;
- }
- }
- &.qty,
- &.price,
- &.subtotal {
- box-sizing: border-box;
- float: left;
- text-align: center;
- white-space: nowrap;
- width: 33%;
- &[data-th]:before {
- content: attr(data-th) ':';
- display: block;
- font-weight: @font-weight__bold;
- padding-bottom: @indent__s;
- }
- }
- &:last-child {
- border: 0;
- }
- }
- }
- .product-item-name {
- margin: 0;
- }
- }
- }
- //
- // Add to Actions
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-actions-addto {
- .lib-css(color, @addto-color);
- display: inline-block;
- font-weight: @font-weight__semibold;
- letter-spacing: .05em;
- text-transform: uppercase;
- .lib-icon-font(
- @_icon-font-content: '',
- @_icon-font-size: 16px,
- @_icon-font-line-height: 16px,
- @_icon-font-margin: -2px 5px 0 0,
- @_icon-font-vertical-align: middle
- );
- &:hover {
- .lib-css(color, @addto-hover-color);
- text-decoration: none;
- }
- &:before {
- width: 18px;
- }
- }
- }
- //
- // Box-tocart block
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-box-tocart {
- margin: 0 0 @indent__l;
- }
- }
- //
- // General pages forms
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-forms-general-desktop {
- max-width: 500px;
- .legend {
- .lib-visually-hidden();
- }
- .legend + br {
- display: none;
- }
- }
- }
- //
- // Revert side paddings
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-revert-side-paddings {
- padding-left: 0;
- padding-right: 0;
- }
- }
- //
- // Abstract toggle title block
- // ---------------------------------------------
- @abs-toggling-title: {
- .lib-css(border-top, @border-width__base solid @border-color__base);
- cursor: pointer;
- margin-bottom: 0;
- position: relative;
- &:after {
- position: absolute;
- right: @indent__base;
- top: @indent__s;
- }
- };
- & when (@media-common = true) {
- .abs-toggling-title {
- @abs-toggling-title();
- .lib-css(padding, @indent__s @indent__xl @indent__s @mobile-cart-padding);
- .lib-icon-font(
- @icon-down,
- @_icon-font-size: 12px,
- @_icon-font-line-height: 12px,
- @_icon-font-text-hide: true,
- @_icon-font-margin: 3px 0 0,
- @_icon-font-position: after,
- @_icon-font-display: block
- );
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
- .abs-toggling-title-mobile {
- @abs-toggling-title();
- .lib-css(border-bottom, @border-width__base solid @border-color__base);
- .lib-css(padding, @indent__s @indent__xl @indent__s @layout__width-xs-indent);
- .lib-icon-font(
- @icon-down,
- @_icon-font-size: 12px,
- @_icon-font-text-hide: false,
- @_icon-font-margin: 3px 0 0 0,
- @_icon-font-position: after,
- @_icon-font-display: block
- );
- &.active {
- .lib-icon-font-symbol(
- @_icon-font-content: @icon-up,
- @_icon-font-position: after
- );
- }
- }
- }
- //
- // Cart discount block
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-cart-block {
- margin: 0;
- > .title {
- &:extend(.abs-toggling-title all);
- &:after {
- color: @color-gray52;
- }
- }
- .content {
- display: none;
- .lib-css(padding, 5px @mobile-cart-padding 23px);
- position: relative;
- }
- &.active {
- > .title {
- .lib-icon-font-symbol(
- @_icon-font-content: @icon-up,
- @_icon-font-position: after
- );
- }
- .content {
- display: block;
- }
- }
- }
- .abs-cart-block-content {
- margin: 0;
- }
- }
- //
- // Checkout order review price
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-checkout-cart-price {
- .lib-css(color, @primary__color__lighter);
- .lib-font-size(16);
- font-weight: @font-weight__bold;
- }
- }
- //
- // Checkout order product name
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-checkout-product-name {
- .lib-font-size(18);
- font-weight: @font-weight__light;
- margin: 0;
- }
- }
- //
- // Mobile checkout order product name
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-product-items-summary {
- tbody {
- .col {
- padding: @indent__s 0 0;
- &:last-child {
- padding-bottom: @indent__s
- }
- }
- }
- tfoot {
- .mark {
- padding-bottom: @indent__xs;
- text-align: left;
- }
- .amount {
- padding-top: 0;
- text-align: left;
- }
- .grand.totals {
- .lib-font-size(16);
- .mark {
- padding-bottom: 0;
- padding-top: @indent__xs;
- }
- .amount {
- padding-bottom: @indent__s;
- padding-top: 0;
- strong {
- border-top: none;
- }
- }
- }
- }
- }
- }
- //
- // Account pages: title
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-account-title {
- > strong,
- > span {
- .lib-font-size(22);
- .lib-css(font-weight, @font-weight__light);
- }
- .lib-css(border-bottom, 1px solid @account-title-border-color);
- .lib-css(margin-bottom, @indent__m);
- .lib-css(padding-bottom, @indent__s);
- }
- }
- //
- // Account pages: block font size
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-account-block-font-size {
- .lib-font-size(16);
- }
- }
- //
- // Account pages: block line-height
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-account-block-line-height {
- line-height: 24px;
- }
- }
- //
- // Account pages: margin for table
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-account-table-margin-mobile {
- .lib-css(margin-top, -@indent__base);
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-account-table-margin-desktop {
- .lib-css(margin-top, -@indent__m);
- }
- }
- //
- // Account pages: table col actions
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-col-no-prefix {
- &:before {
- .lib-visually-hidden();
- }
- }
- }
- //
- // Account pages: order table summary
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-account-summary {
- td {
- .lib-css(background, @sidebar__background-color);
- }
- }
- }
- //
- // Action print with icon
- // ---------------------------------------------
- @abs-action-print: {
- .lib-icon-font(
- @icon-print,
- @_icon-font-size: 16px,
- @_icon-font-line-height: 16px,
- @_icon-font-margin: 0 4px 0 0,
- @_icon-font-position: before
- );
- &:hover {
- text-decoration: underline;
- }
- };
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-action-print {
- @abs-action-print();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
- .abs-action-print-s {
- @abs-action-print();
- }
- }
- //
- // Excl/Incl tax
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-incl-excl-tax {
- .price-including-tax,
- .price-excluding-tax {
- .lib-css(color, @cart-price-color);
- .lib-font-size(18);
- display: block;
- line-height: 1;
- white-space: nowrap;
- .price {
- font-weight: @font-weight__bold;
- }
- }
- }
- .abs-adjustment-incl-excl-tax {
- .price-including-tax,
- .price-excluding-tax {
- .lib-font-size(14);
- display: inline-block;
- }
- .price-including-tax + .price-excluding-tax {
- .lib-font-size(11);
- display: inline-block;
- &:before {
- content: '('attr(data-label)': ';
- }
- &:after {
- content: ')';
- }
- }
- }
- }
- //
- // Cart tax total
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-tax-total {
- cursor: pointer;
- padding-right: @indent__s;
- position: relative;
- .lib-icon-font(
- @icon-down,
- @_icon-font-size: 8px,
- @_icon-font-line-height: 8px,
- @_icon-font-margin: 3px 0 0 0,
- @_icon-font-position: after
- );
- &:after {
- position: absolute;
- right: -2px;
- top: 4px;
- }
- }
- .abs-tax-total-expanded {
- .lib-icon-font-symbol(
- @_icon-font-content: @icon-up,
- @_icon-font-position: after
- );
- }
- }
- //
- // Forms: margin-bottom for small forms
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-forms-margin-small {
- .lib-css(margin-bottom, @indent__base);
- }
- }
- //
- // Forms: margin-bottom for small forms
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-rating-summary {
- .rating {
- &-summary {
- display: table-row;
- }
- &-label {
- display: table-cell;
- padding-bottom: @indent__xs;
- padding-right: @indent__m;
- padding-top: 1px;
- vertical-align: top;
- }
- &-result {
- display: table-cell;
- vertical-align: top;
- }
- }
- }
- }
- //
- // Account pages: actions
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-account-actions {
- &:after {
- .lib-css(border-left, 1px solid @primary__color__light);
- content: '';
- display: inline-block;
- height: 12px;
- margin: 0 @indent__s;
- vertical-align: -1px;
- }
- &:last-child {
- &:after {
- display: none;
- }
- }
- }
- }
- //
- // Account blocks
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-account-blocks {
- .block-title {
- &:extend(.abs-account-title all);
- > .action {
- margin-left: 15px;
- }
- }
- .box-title {
- > span {
- .lib-font-size(16);
- }
- display: inline-block;
- margin: 0 0 @indent__s;
- > .action {
- font-weight: 400;
- margin-left: @indent__s;
- }
- }
- }
- }
- //
- // Add colon
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-colon {
- &:after {
- content: ': ';
- }
- }
- }
- //
- // Icon - create add
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-icon-add {
- .lib-icon-font(
- @_icon-font-content: @icon-expand,
- @_icon-font-size: 10px,
- @_icon-font-line-height: 10px,
- @_icon-font-vertical-align: middle
- );
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
- .abs-icon-add-mobile {
- .lib-icon-font(
- @_icon-font-content: @icon-expand,
- @_icon-font-size: 10px,
- @_icon-font-line-height: 10px,
- @_icon-font-vertical-align: middle,
- @_icon-font-margin: 0 5px 0 0,
- @_icon-font-display: block
- );
- }
- }
- //
- // Dropdown items - create new
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-dropdown-items-new {
- .items .item:last-child {
- &:hover {
- .lib-css(background, @dropdown-list-item__hover);
- }
- }
- .action.new {
- &:extend(.abs-icon-add all);
- &:before {
- margin-left: -17px;
- margin-right: @indent__xs;
- }
- }
- }
- }
- //
- // Abstract no display
- // ---------------------------------------------
- @abs-no-display: {
- display: none;
- };
- & when (@media-common = true) {
- .abs-no-display {
- @abs-no-display();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-no-display-s {
- @abs-no-display();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-no-display-desktop {
- @abs-no-display();
- }
- }
- //
- // Status
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-status {
- .lib-css(border, 2px solid @border-color__base);
- border-radius: 3px;
- display: inline-block;
- margin: 3px 0 0;
- padding: 2px @indent__s;
- text-transform: uppercase;
- vertical-align: top;
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-status-desktop {
- margin-top: 6px;
- padding: @indent__xs @indent__s;
- }
- }
- //
- // Page title - orders pages
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-title-orders {
- .page-main {
- .page-title-wrapper {
- .page-title {
- margin-right: 25px;
- }
- .order-date {
- font-size: 16px;
- margin-bottom: @indent__s;
- .label {
- display: none;
- }
- }
- }
- }
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-title-orders-mobile {
- .page-main {
- .page-title-wrapper {
- .page-title {
- display: block;
- }
- .order-status {
- @order-status-indent: ceil(@h1__margin-bottom/2);
- margin: -@order-status-indent 0 @indent__s;
- }
- }
- }
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-title-orders-desktop {
- .page-main {
- .page-title-wrapper {
- .order-date {
- @order-date-indent: ceil(@h1__margin-bottom/1.5);
- margin: -@order-date-indent 0 18px;
- }
- }
- }
- }
- }
- //
- // Table striped
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-table-striped {
- .lib-table-striped(
- @_stripped-highlight: even
- );
- .lib-table-bordered(
- @_table_type: light
- );
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-table-striped-mobile {
- > tbody > tr > td:last-child {
- border: 0;
- }
- }
- }
- //
- // Table bordered desktop
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-table-bordered-desktop {
- .lib-table-bordered(
- @_table_type: light,
- @_table_border-width: 1px
- );
- }
- }
- //
- // Pager toolbar for non-catalog pages desktop
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-pager-toolbar {
- position: relative;
- .toolbar-amount,
- .limiter {
- position: relative;
- z-index: 1;
- }
- .limiter {
- display: inline-block;
- float: right;
- }
- .toolbar-amount {
- .lib-css(line-height, @pager__line-height);
- padding: 0;
- }
- .pages {
- position: absolute;
- width: 100%;
- z-index: 0;
- }
- }
- }
- //
- // Items counter in blocks
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-block-items-counter {
- .lib-css(color, @block-items__counter__color);
- .lib-font-size(12px);
- white-space: nowrap;
- &:before {
- content: '(';
- }
- &:after {
- content: ')';
- }
- }
- }
- //
- // Sidebar and widget blocks title
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-block-widget-title {
- margin: 0 0 @indent__base;
- strong {
- font-size: @font-size__l;
- font-weight: @font-weight__light;
- }
- }
- }
- //
- // Shopping cart items
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-shopping-cart-items {
- margin-bottom: @indent__base;
- .actions.main {
- .continue,
- .clear {
- display: none;
- }
- }
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-shopping-cart-items-desktop {
- .lib-layout-column(2, 1, @layout-column-checkout__width-main);
- &:extend(.abs-add-box-sizing-desktop all);
- padding-right: 4%;
- position: relative;
- }
- }
- //
- // Remove top border
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-no-border-top {
- border-top: 0;
- }
- }
- //
- // Remove bottom border
- // ---------------------------------------------
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-no-border-bottom {
- border-bottom: 0;
- }
- }
- //
- // Form Field Date
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-field-date {
- .control {
- position: relative;
- &:extend(.abs-add-box-sizing all);
- }
- input {
- &:extend(.abs-field-date-input);
- }
- }
- }
- //
- // Form Field Date Input
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-field-date-input {
- .lib-css(margin-right, @indent__s);
- width: calc(~'100% -' @icon-calendar__font-size + @indent__s);
- }
- }
- //
- // Form Field Tooltip
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-field-tooltip {
- &:extend(.abs-add-box-sizing all);
- position: relative;
- input {
- .lib-css(margin-right, @indent__s);
- width: calc(~'100% -' @checkout-tooltip-icon__font-size + @indent__s + @indent__xs);
- }
- }
- }
- //
- // Checkout Tooltip Content (position: top)
- // ---------------------------------------------
- @abs-checkout-tooltip-content-position-top: {
- .lib-css(right, @checkout-tooltip-content-mobile__right);
- .lib-css(top, @checkout-tooltip-content-mobile__top);
- left: auto;
- &:before,
- &:after {
- .lib-arrow(
- @_position: top,
- @_size: @checkout-tooltip-icon-arrow__font-size,
- @_color: @checkout-tooltip-content__background-color
- );
- .lib-css(margin-top, @checkout-tooltip-icon-arrow__left);
- .lib-css(right, @indent__s);
- left: auto;
- top: 0;
- }
- &:before {
- .lib-css(border-bottom-color, @checkout-tooltip-content__active__border-color);
- }
- &:after {
- .lib-css(border-bottom-color, @checkout-tooltip-content__background-color);
- top: 1px;
- }
- };
- & when (@media-common = true) {
- .abs-checkout-tooltip-content-position-top {
- @abs-checkout-tooltip-content-position-top();
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
- .abs-checkout-tooltip-content-position-top-mobile {
- @abs-checkout-tooltip-content-position-top();
- }
- }
- //
- // Checkout title
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-checkout-title {
- .lib-css(padding-bottom, @checkout-step-title__padding);
- .lib-typography(
- @_font-size: @checkout-step-title__font-size,
- @_font-weight: @checkout-step-title__font-weight,
- @_font-family: false,
- @_font-style: false,
- @_line-height: false
- );
- }
- }
- //
- // Shopping cart sidebar and checkout sidebar totals
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-sidebar-totals {
- border-top: 1px solid @border-color__base;
- padding-top: 10px;
- tbody,
- tfoot {
- .mark {
- border: 0;
- font-weight: @font-weight__regular;
- padding: 6px 0;
- }
- .amount {
- border: 0;
- font-weight: @font-weight__regular;
- padding: 6px 0 6px 14px;
- text-align: right;
- white-space: nowrap;
- }
- }
- .table-caption {
- &:extend(.abs-no-display all);
- }
- .grand {
- th,
- td {
- padding: 11px 0;
- }
- strong {
- display: inline-block;
- font-weight: @font-weight__semibold;
- padding: 3px 0 0;
- }
- .mark {
- .lib-font-size(18);
- border-top: 1px solid @border-color__base;
- padding-right: @indent__s;
- }
- .amount {
- .lib-font-size(18);
- border-top: 1px solid @border-color__base;
- }
- }
- .msrp {
- margin-bottom: @indent__s;
- }
- tbody tr:last-child td {
- padding-bottom: 19px;
- }
- .totals-tax {
- &-summary {
- .mark,
- .amount {
- border-bottom: @border-width__base solid @border-color__base;
- border-top: @border-width__base solid @border-color__base;
- cursor: pointer;
- }
- .amount .price {
- padding-right: @indent__base;
- position: relative;
- .lib-icon-font(
- @icon-down,
- @_icon-font-size: 12px,
- @_icon-font-line-height: 12px,
- @_icon-font-text-hide: true,
- @_icon-font-position: after
- );
- &:after {
- position: absolute;
- right: 3px;
- top: 3px;
- }
- }
- &.expanded {
- .mark,
- .amount {
- border-bottom: 0;
- }
- .amount .price {
- .lib-icon-font-symbol(
- @_icon-font-content: @icon-up,
- @_icon-font-position: after
- );
- }
- }
- }
- &-details {
- border-bottom: @border-width__base solid @border-color__base;
- display: none;
- &.shown {
- display: table-row;
- }
- }
- }
- .table-wrapper {
- margin-bottom: 0;
- }
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .abs-sidebar-totals-mobile {
- th {
- &:extend(.abs-col-no-prefix all);
- }
- td {
- &:extend(.abs-col-no-prefix all);
- }
- tbody tr:not(:last-child) {
- td {
- &:extend(.abs-no-border-bottom-top all);
- }
- }
- .amount {
- text-align: right;
- }
- }
- }
- //
- // Shopping cart and payment discount codes block
- // ---------------------------------------------
- & when (@media-common = true) {
- .abs-discount-block {
- .block {
- &:extend(.abs-cart-block all);
- > .title {
- strong {
- color: @link__color;
- font-weight: @font-weight__regular;
- }
- }
- }
- .actions-toolbar {
- display: table-cell;
- vertical-align: top;
- width: 1%;
- .action {
- &.primary,
- &.cancel {
- &:extend(.abs-revert-to-action-secondary all);
- border-bottom-left-radius: 0;
- border-top-left-radius: 0;
- margin: 0 0 0 -1px;
- white-space: nowrap;
- width: auto;
- }
- }
- .secondary {
- bottom: 5px;
- left: @mobile-cart-padding;
- position: absolute;
- }
- }
- .action.check {
- &:extend(.abs-action-button-as-link all);
- font-weight: @font-weight__regular;
- }
- .fieldset {
- display: table;
- width: 100%;
- > .field {
- > .label {
- display: none;
- }
- }
- }
- .field {
- display: table-cell;
- }
- }
- }
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .abs-discount-block-desktop {
- .block {
- &:extend(.abs-blocks-2columns all);
- > .title {
- border: 0;
- padding: 0 0 @indent__s;
- strong {
- .lib-font-size(16);
- }
- }
- .content {
- .lib-css(padding, 0 0 @indent__base);
- }
- }
- .actions-toolbar {
- .secondary {
- bottom: -30px;
- left: 0;
- position: absolute;
- }
- }
- }
- }
|