Files
Iris/src/scss/components/_services.scss
2019-11-22 15:30:01 +13:00

155 lines
2.5 KiB
SCSS
Executable File

.services {
.menu {
@include clearfix();
&__inner {
display: flex;
margin: 0 0 0 -5px;
}
.menu-item {
@include noanimate();
width: 20%;
min-width: 120px;
max-width: 200px;
padding: 0 5px;
display: block;
box-sizing: border-box;
border: 0;
&__inner {
position: relative;
padding: 30px 10px;
margin-bottom: 10px;
border-radius: 3px;
background: colour(darkest_grey);
display: block;
text-align: center;
box-sizing: border-box;
}
&__thumbnail {
margin-bottom: 15px;
display: inline-block;
}
&__icon {
font-size: 40px;
height: 40px;
margin-top: 10px;
margin-bottom: 15px;
display: inline-block;
&.icon--svg {
opacity: 0.8;
.light-theme & {
@include invert();
}
}
}
&__title {
margin: 0;
padding: 0;
font-weight: bold;
font-size: 16px;
}
&:hover {
.menu-item__inner {
background: lighten(colour(dark_grey), 4%);
}
}
&:active {
-moz-transform: scale(0.98);
-webkit-transform: scale(0.98);
transform: scale(0.98);
}
&--active {
.menu-item__inner {
background: lighten(colour(dark_grey), 4%);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
padding-bottom: 40px;
margin-bottom: 0;
}
}
.light-theme & {
.menu-item__inner {
background: colour(faint_grey);
&:hover{
background: darken(colour(faint_grey), 4%);
}
&:after {
background: darken(colour(faint_grey), 4%);
}
}
&--active {
.menu-item__inner {
background: darken(colour(faint_grey), 4%);
}
}
}
}
}
.service {
padding: 20px;
border-radius: 0 0 3px 3px;
background: lighten(colour(dark_grey), 4%);
.field:last-child {
padding-bottom: 0;
}
.light-theme & {
background: darken(colour(faint_grey), 4%);
}
}
@include responsive($bp_medium){
margin-left: -20px;
margin-right: -20px;
.menu {
overflow-x: auto;
&::-webkit-scrollbar{
width: 0px;
height: 0px;
}
&__inner {
padding: 0 20px;
}
.menu-item {
width: 140px;
&__inner {
padding-top: 10px;
padding-bottom: 10px;
}
&--active {
.menu-item__inner {
padding-bottom: 20px;
}
}
}
}
.service {
margin-top: 0;
}
}
}