/** * Ecster Pay extension * * @category Ecster * @package Ecster_Pay * @copyright Copyright (c) 2016 Ecster ( https://www.ecster.se/ ) * @license https://www.ecster.se/licenses/ecstercl/1.0.txt Ecster Commercial License (EcsterCL 1.0) * * */ // MIXINS .rounded(@radius: 2px) { -webkit-border-radius: @radius; -moz-border-radius: @radius; border-radius: @radius; } .opacity(@opacity: 0.5) { -moz-opacity: @opacity; -khtml-opacity: @opacity; -webkit-opacity: @opacity; opacity: @opacity; @opperc: @opacity * 100; -ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(opacity=@{opperc})"; filter: ~"alpha(opacity=@{opperc})"; } .box-shadow(@arguments) { -webkit-box-shadow: @arguments; -moz-box-shadow: @arguments; box-shadow: @arguments; } .box-sizing(@sizing: border-box) { -ms-box-sizing: @sizing; -moz-box-sizing: @sizing; -webkit-box-sizing: @sizing; box-sizing: @sizing; } .gradientFromTop(@colTop,@colBottom){ background: @colTop; background: -moz-linear-gradient(top, @colTop 0%, @colBottom 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@colTop), color-stop(100%,@colBottom)); background: -webkit-linear-gradient(top, @colTop 0%,@colBottom 100%); background: -o-linear-gradient(top, @colTop 0%,@colBottom 100%); background: -ms-linear-gradient(top, @colTop 0%,@colBottom 100%); background: linear-gradient(to bottom, @colTop 0%,@colBottom 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=@colTop, endColorstr=@colBottom,GradientType=0 ); } .ease(@time){ -webkit-transition: all @time linear; -moz-transition: all @time linear; -o-transition: all @time linear; transition: all @time linear; } //HELPER CLASSES .hide-this { display: none !important; } .show-this { display: block !important; } .unselectable { -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .pull-left { float: left; } .pull-right { float: right; } @ecster-light : #EEEEEE; @ecster-silver : #D3D3D5; @ecster-gray : #CCCCCC; @ecster-black : #434343; @ecster-green : #01AC79; #ecster-bigwrap { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-kerning: normal; font-kerning: normal; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; * { font-family: "PT Sans", Helvetica, Arial, sans-serif; color: @ecster-black; } &.ecstercarthidden { .ecsterpay-left { margin-bottom: 30px; .ecsterpay-block { border-top: medium none; border-bottom: 1px solid @ecster-gray; &:first-child { border-top: medium none; } } } } iframe.ecster-pay { max-width: 840px; display: block; margin-left: auto; margin-right: auto; } } .ecsterpay-right, .ecsterpay-left { width: 100%; margin-left: auto; margin-right: auto; } .ecsterpay-left { max-width: 840px; .ecsterpay-block { padding: 25px; @media screen and (max-width: 768px){ padding: 15px; } border-top: 1px solid @ecster-gray; .ecsterpay-block-inner { padding-top: 15px; display: none; } &.toggled { .ecsterpay-block-inner { display: block; } .ecsterpay-title { i.ecster-toggler { background-position: right -42px; } } } &:first-child { border-top: medium none; } .ecsterpay-title { cursor: pointer; color: @ecster-black; position: relative; -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Chrome/Safari/Opera */ -khtml-user-select: none; /* Konqueror */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; /* Non-prefixed version, currently not supported by any browser */ h1,h2,h3,h4,h5,h6 { text-transform: none; font-size: 16/14em; font-weight: 700; margin-bottom: 0px; } i.ecster-toggler { position : absolute; z-index: 1; right: 0; top: 50%; width: 20px; height: 19px; margin-top: -10px; background: url('sprite.ecsterpay.png') transparent no-repeat; background-position: left -42px; } } } } .ecsterpay-right { margin-top: -3px; } .hidden-xs { @media screen and (max-width: 480px){ display: none; } } .price-xs { display: block; width: 100%; padding: 5px 0; } .visible-xs { display: none; @media screen and (max-width: 480px){ display: inline-block; } } #ecsterpay-cart-items { padding-bottom: 15px; } #ecsterpay_checkout { border: 1px solid @ecster-gray; border-radius : 4px 4px 0 0; border-bottom: medium none; #cart-sidebar { width: 100%; border-bottom: 1px solid @ecster-light; th { padding-left: 5px; padding-right: 5px; } td { padding: 10px 5px; } td.last, th.last { text-align: right; padding-right:0; } th.first, td.first { padding-left: 0; } thead th { padding-bottom: 10px; border-bottom: 1px solid @ecster-light; } tr.item { td { border-top: 1px solid @ecster-light; &.product-image-cell { padding-right: 20px; } } } .product-image { border: medium none; } p.product-name { margin : 0; padding: 0; text-transform: none; font-weight: 700; font-size: 1em; } .product-details { padding-left: 80px; width: 100%; margin-left: 0; } .item-options::after {content : none;} } .ecsterpay-totals { min-width: 50%; white-space: nowrap; tr { td { padding: 3px 0 3px 30px; &:last-child { font-weight: bold; } } } tfoot { td { &:last-child { font-size: 20px; } } } } input.radio, input.checkbox { display: none; & + label { padding-left: 0; font-size: 16px; } } label .tick { display: inline-block; vertical-align: top; width: 20px; height: 20px; line-height: 14px; text-align: center; border: 2px solid @ecster-silver; background: white; border-radius: 50%; position: relative; cursor: pointer; z-index: 1; .ease(0.10s); margin-right: 5px; &:after { .ease(0.2s); content : " "; display: inline-block; vertical-align: middle; width: 0px; height: 0px; line-height:6px; text-align: center; background: white; border-radius: 50%; } } input.checkbox { & + label .tick { border-radius: 4px; line-height: 18px; &:after { content : none; } &:before { content : "\2716"; font-weight: 400; color: white; font-size: 20px; @media screen and (max-width: 768px){ line-height: 14px; } } } } input.radio, input.checkbox { & + label { cursor: pointer; } &:focus { & + label .tick { border-color: darken(@ecster-green, 5%); } } &:checked { & + label .tick { border-color: @ecster-green; background: @ecster-green; &:after { width: 6px; height: 6px; } } } } input[type="text"], input.input-text { line-height: 33px; height: 35px; border: 1px solid @ecster-gray; vertical-align: top; background: white; border-radius: 4px; margin-right: 15px; padding: 0 0 0 15px; } button, button.btn-ecsterpay { vertical-align: top; background: @ecster-green; border: medium none; line-height: 33px; height: 35px; padding: 0 20px; &, span, span span { color: white; font-weight: 700; } border-radius: 4px; } } .ecsterpay-btn-remove, .ecsterpay-btn-edit { display: inline-block; width: 20px; height: 20px; line-height: 20px; background: url('sprite.ecsterpay.png') transparent no-repeat; vertical-align: top; .ease(0.1s); margin-right: 5px; margin-top: 3px; &:hover { -webkit-filter: invert(30%); filter: invert(30%); } } .ecsterpay-btn-remove { background-position: right -20px; @media screen and (max-width: 768px){ background-position: bottom right; } } .ecsterpay-btn-edit { background-position: top right; @media screen and (max-width: 768px){ background-position: bottom left; } } #ecsterpay-shipping-method-wrap { ul li { font-size: 16/14em; display: inline-block; padding-right: 25px; label { padding-left: 0; white-space: nowrap; font-weight: 700; .price { font-weight: normal; } } } } .checkout-ecsterpay-index .main-container { @media screen and (max-width: 480px){ padding-left: 10px; padding-right: 10px; } } .ecsterpay-bonus-block, #ecsterpay-points, #ecsterpay-coupon { .ecsterpay-btn-remove { background: url('sprite.ecsterpay.png') right -60px transparent no-repeat; font-size: 0; color: rgba(255,255,255,0); margin: 5px 10px 0 0; } } #ecsterpay_overlay { position:absolute; top:0; left:0; z-index:1000; width:100%; height:100%; background:url('loading.gif') no-repeat 50% 30% #fff;opacity:0.9 }