Skip to content

Commit

Permalink
Added styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rommmka committed Apr 30, 2021
1 parent 683a0e2 commit f678484
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 13 deletions.
91 changes: 78 additions & 13 deletions web/css/source/_absolute.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
//
// Body
// _____________________________________________
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

body {
.lib-background-gradient(
#004b6e,
Expand Down Expand Up @@ -40,12 +45,6 @@
}
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
.page-wrapper {
margin: 0 5px;
}
}

& when (@media-common = true) {
.header {
&.content {
Expand Down Expand Up @@ -273,12 +272,7 @@
.main {
.block-title {
color: @headings__color;
border: 1px solid @color-gray-darken0;
border-radius: 3px;
padding: 5px;
background: #fdfdfd;
background: linear-gradient(to bottom, #fdfdfd 0%,#ffffff 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#ffffff',GradientType=0 );
padding: 5px 0;
strong {
.lib-font-size(18);
font-weight: @font-weight__light;
Expand All @@ -287,13 +281,23 @@
}
}
.sidebar {
&.sidebar-main {
padding-right: 0;
}
.block {
padding: 10px;
padding: 5px 10px 10px;
border: 1px solid @color-gray-darken0;
border-radius: 6px;
background: #fdfdfd;
background: linear-gradient(to bottom, #fdfdfd 0%,#ffffff 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#ffffff',GradientType=0 );
.title {
strong {
.lib-font-size(18);
font-weight: @font-weight__light;
vertical-align: middle;
}
}
}
.home-callouts {
.callout {
Expand All @@ -315,6 +319,7 @@
max-width: none;
border: 0;
border-radius: 0;
padding-top: 8px;

color: @color-white;
background: #6194ae;
Expand Down Expand Up @@ -354,6 +359,31 @@
}
}
}
.products-grid {
.product-item-info {
&:hover {
border-radius: @product-item_border-radius @product-item_border-radius 0 0;

.product-item-inner {
border-radius: 0 0 @button__border-radius @button__border-radius ;
}
}
.product-item-actions {
display: flex;
justify-content: space-around;
}
}
}
}
.cms-index-index {
.widget {
.product-item-info {
&:hover {
border-bottom-left-radius: @product-item_border-radius;
border-bottom-right-radius: @product-item_border-radius;
}
}
}
}
}

Expand All @@ -380,6 +410,31 @@
}
}

//
// Common slider
// _____________________________________________

& when (@media-common = true) {
.slick-slider {
.slick-arrow {
&:before {
display: inline-block;
transform: scale(.9);
transition-timing-function: ease-in;
transition-duration: .05s;
}
}
.slick-arrow {
&:hover {
&:before {
transform: scale(1);
}
}
}
}
}


//
// Featured Slider
// _____________________________________________
Expand Down Expand Up @@ -407,6 +462,8 @@
a.product-item-photo {
&:hover {
transform: scale(1.05);
transition-timing-function: cubic-bezier(.62,.56,.75,1.53);
transition-duration: .2s;
}

}
Expand Down Expand Up @@ -583,6 +640,14 @@
&:last-child {
border-bottom: 0;
}
.swissup-option-count {
padding-right: 0;
}
.filter-options-content {
a {
border-radius: 3px;
}
}
}

//
Expand Down
6 changes: 6 additions & 0 deletions web/css/source/lib/variables/_absolute.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
// _____________________________________________
@breadcrumbs__container-margin: 0 auto;

//
// Product grid itemss
// _____________________________________________
@product-item_border-radius: 5px;
@product-item__hover__box-shadow: 3px 4px 6px 0 rgba(0, 0, 0, 0.15);

//
// Compare
// _____________________________________________
Expand Down

0 comments on commit f678484

Please sign in to comment.