ldc-doux/resources/sass/frontend/_utils.scss
Sebastien Hattry 7a27f3f015 - fix create gamme bug
- css modifications
2022-03-04 17:59:10 +01:00

133 lines
2.1 KiB
SCSS
Vendored

.align-center {
text-align: center;
}
.align-left {
text-align: left;
}
.align-justify {
text-align: justify;
}
.bold {
font-weight: bold;
}
.on-bottom {
z-index: -1;
}
.ttu {
text-transform: uppercase;
}
.has-bckg--grey {
background-color: #f5f5f5;
}
.is-flex {
display: flex;
&.vertical-center {
align-items: center;
}
&.horizontal-center {
justify-content: center;
}
&.start {
align-items: flex-start;
}
&.wrap {
flex-wrap: wrap;
}
&.space-between {
justify-content: space-between;
}
&.flex-center {
justify-content: center;
}
&.flex-col {
flex-direction: column;
}
}
.mt-5 {
margin-top: 3rem;
}
.is-small {
margin-top: 35px;
margin-bottom: 35px;
font-size: 12px;
}
.p-rel {
position: relative;
}
.p-abs {
position: absolute;
}
#list .p-abs {
position: static;
}
.p-abs.dual-center {
padding-left: 0 !important;
padding-right: 0 !important;
// left: 50% !important;
// top: 50% !important;
// transform: translate(-50%, -50%) !important;
}
.color-red {
color: $color-second;
}
.color-blue {
color: $color-blue;
}
.color-yellow {
color: $color-main;
}
.font-size-medium {
font-size: 45px;
}
@media screen and (min-width: 800px) {
#list .p-abs {
position: absolute;
}
.p-abs.dual-center {
left: 50% !important;
top: 50% !important;
transform: translate(-50%, -50%) !important;
}
.is-flex .w25 {
flex-basis: 25%;
}
.is-flex .w50 {
flex-basis: 50%;
&:nth-child(2) {
margin-left: 35px;
}
}
.is-flex .w100 {
flex-basis: 100%;
&:nth-child(1) {
padding-right: 185px;
}
&:nth-child(2) {
margin-left: 35px;
}
}
}
@media screen and (max-width: 1024px) {
.is-flex {
flex-direction: column;
}
.blue-products.is-flex {
flex-direction: initial;
justify-content: center;
}
.smrt-align-center {
text-align: center;
}
}