floranet/src/css/app.scss

280 lines
4.6 KiB
SCSS

// app global css in SCSS form
@import './pages/home.scss';
@import './pages/categoria.scss';
@import './pages/product.scss';
@import './pages/checkout.scss';
@import './pages/contacta.scss';
@import './pages/faq.scss';
@import './components/calendar-postalcode.scss';
* {
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::selection {
background-color: $primary-light;
color: $primary;
}
.padding-top {
padding-top: 95px !important;
&.more {
padding-top: calc(145px + 91px) !important;
}
@media only screen and (max-width: $med-md) {
&.more {
padding-top: calc(66px + 91px) !important;
}
}
}
.hide {
display: none;
visibility: hidden;
opacity: 0;
}
.product-layout {
padding-top: 200px !important;
@media only screen and (max-width: $med-md) {
padding-top: 90px !important;
}
}
.green-text {
color: $primary !important;
}
.gray-bg {
background-color: $secondary-10;
}
// button,
.btn {
all: unset;
user-select: none;
display: inline-flex;
gap: 10px;
justify-content: center;
align-items: center;
text-align: center;
font-family: $font-questrial;
background-color: $primary;
color: $white;
padding: 16px 40px;
line-height: 22px;
font-size: $font-18;
border-radius: 10px;
position: relative;
cursor: pointer;
transition: 100ms ease-out;
&:disabled {
cursor: not-allowed;
opacity: 0.8;
}
&:focus,
&:focus-visible {
outline: 2px solid $primary-light;
}
&.outlined {
border: 1px solid $primary-light;
background-color: transparent;
color: $text-gray;
&.green-color {
color: $primary;
border: 2px solid currentColor;
}
&.white-color {
color: $white;
border: 2px solid currentColor;
}
&.pd-icon {
padding: 16px 33px 16px 40px;
}
}
&.rounded {
border-radius: 30px;
}
&.sm-btn {
padding: 10px 20px;
}
@media only screen and (max-width: $med-xmd) {
font-size: $font-16;
}
}
.custom-container {
width: min(100%, 1920px);
padding-inline: 72px;
margin: 0 auto;
&.cards-container {
width: min(100%, 1540px);
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
grid-auto-rows: 1fr;
gap: 47px;
}
//! 1440px
@media only screen and (max-width: calc($med-xlg + 100px)) {
&.cards-container {
grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
}
//! 960px
@media only screen and (max-width: $med-xmd) {
padding-inline: 16px;
&.cards-container {
gap: 25px;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 166px), 1fr));
}
}
//! 445px
@media only screen and (max-width: $med-sm) {
&.cards-container {
gap: 25px;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
}
}
}
.title {
font-family: $font-lora;
font-size: $font-hg;
font-style: normal;
font-weight: 400;
line-height: 80px;
color: $black;
&.bold {
font-weight: 700;
}
@media only screen and (max-width: $med-sm) {
font-size: $font-xlg;
line-height: 58px;
}
}
.subtitle {
color: $primary;
font-size: $font-30;
line-height: 30px;
@media only screen and (max-width: $med-xmd) {
font-size: $font-24;
}
}
.logo-img {
display: inline-flex;
height: 45px;
width: fit-content;
@media only screen and (max-width: $med-md) {
height: 30px;
}
}
.paragraph,
.title,
.price,
button,
span,
h1,
h2,
h3,
h4,
p {
font-weight: 400;
font-style: normal;
}
h1,
h2,
h3,
h4,
h5 {
font-family: $font-lora;
}
ul {
list-style: none;
}
a {
font-family: $font-questrial;
text-decoration: none;
font-size: font-xxxsm;
}
p,
.paragraph {
font-family: $font-questrial;
font-size: $font-xxxsm;
line-height: 19px;
color: $text-normal-100;
margin-bottom: initial;
}
.price {
font-family: $text-price-font;
color: $text-price;
font-size: $font-xsm;
&.offer {
color: $text-price-offer;
}
&.tachado {
text-decoration-line: line-through;
}
}
.header-title {
margin-block: 90px 50px;
.pege-title {
font-family: $font-lora;
font-size: 1.875rem;
line-height: 1.1;
font-weight: 500;
text-align: center;
margin-bottom: 25px;
color: $title-default;
}
.pege-subtitle {
font-family: $font-questrial;
font-size: 1rem;
text-align: center;
}
}
body {
font-family: $font-lora;
font-size: 1rem;
color: $text-default;
font-weight: 400;
}
.container {
max-width: 1420px;
margin: 0 auto;
padding: 0 20px;
}