ldc-doux/resources/sass/frontend/_utils.scss

134 lines
2.1 KiB
SCSS
Raw Permalink Normal View History

2021-11-25 09:42:07 +01:00
.align-center {
text-align: center;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.align-left {
text-align: left;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.align-justify {
text-align: justify;
}
.bold {
font-weight: bold;
2021-11-18 14:36:06 +01:00
}
.on-bottom {
z-index: -1;
}
2021-11-25 09:42:07 +01:00
.ttu {
text-transform: uppercase;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.has-bckg--grey {
background-color: #f5f5f5;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.is-flex {
display: flex;
&.vertical-center {
align-items: center;
2021-11-18 14:36:06 +01:00
}
2021-12-01 09:01:04 +01:00
&.horizontal-center {
justify-content: center;
}
2021-11-25 09:42:07 +01:00
&.start {
align-items: flex-start;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
&.wrap {
flex-wrap: wrap;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
&.space-between {
justify-content: space-between;
2021-11-18 14:36:06 +01:00
}
2022-03-01 18:40:52 +01:00
&.flex-center {
justify-content: center;
}
2021-12-24 15:58:59 +01:00
&.flex-col {
flex-direction: column;
}
}
.mt-5 {
margin-top: 3rem;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.is-small {
margin-top: 35px;
margin-bottom: 35px;
font-size: 12px;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.p-rel {
position: relative;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.p-abs {
position: absolute;
2021-11-18 14:36:06 +01:00
}
#list .p-abs {
position: static;
}
2021-12-22 17:32:05 +01:00
.p-abs.dual-center {
padding-left: 0 !important;
padding-right: 0 !important;
// left: 50% !important;
// top: 50% !important;
// transform: translate(-50%, -50%) !important;
2021-12-22 17:32:05 +01:00
}
2021-11-18 14:36:06 +01:00
2021-11-25 09:42:07 +01:00
.color-red {
color: $color-second;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.color-blue {
color: $color-blue;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.color-yellow {
color: $color-main;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
.font-size-medium {
font-size: 45px;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
@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;
}
2021-12-17 17:27:25 +01:00
.is-flex .w25 {
flex-basis: 25%;
}
2021-11-25 09:42:07 +01:00
.is-flex .w50 {
flex-basis: 50%;
&:nth-child(2) {
margin-left: 35px;
2021-11-18 14:36:06 +01:00
}
}
2021-11-25 09:42:07 +01:00
.is-flex .w100 {
flex-basis: 100%;
&:nth-child(1) {
padding-right: 185px;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
&:nth-child(2) {
margin-left: 35px;
2021-11-18 14:36:06 +01:00
}
}
}
2022-03-01 18:40:52 +01:00
@media screen and (max-width: 1024px) {
2021-11-25 09:42:07 +01:00
.is-flex {
2021-11-18 14:36:06 +01:00
flex-direction: column;
}
2021-11-25 17:16:10 +01:00
.blue-products.is-flex {
flex-direction: initial;
justify-content: center;
}
2021-11-25 09:42:07 +01:00
.smrt-align-center {
text-align: center;
2021-11-18 14:36:06 +01:00
}
2021-11-25 09:42:07 +01:00
}