base
This commit is contained in:
commit
162cee6dc9
35 changed files with 1122 additions and 0 deletions
60
assets/css/components/_btn--don.scss
Normal file
60
assets/css/components/_btn--don.scss
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
#btn--don__mobile {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
padding-top: calc(var(--spacing) * 0.5);
|
||||
padding-bottom: calc(var(--spacing) * 1.5);
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
opacity: 0;
|
||||
transition: opacity ease-in 0.2s;
|
||||
|
||||
pointer-events: none;
|
||||
&.is-visible {
|
||||
pointer-events: all;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&.is-sticky {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media #{$small-up} {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn--don {
|
||||
--vertical-padding: 0.5ch;
|
||||
height: calc(var(--h-block) + var(--vertical-padding));
|
||||
border-radius: calc(var(--h-block) / 1);
|
||||
padding: var(--vertical-padding) 2ch;
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-medium);
|
||||
font-weight: var(--fw-bold);
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5ch;
|
||||
}
|
||||
|
||||
.icon {
|
||||
height: 28px;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
svg {
|
||||
fill: var(--color-bg);
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
101
assets/css/components/_buttons.scss
Normal file
101
assets/css/components/_buttons.scss
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
button{
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
font-size: var(--fons-normal);
|
||||
color: var(--color-txt);
|
||||
&:hover{
|
||||
color: var(--grey-100);
|
||||
}
|
||||
|
||||
a{
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
button:disabled{
|
||||
cursor: auto;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.btn__default{
|
||||
|
||||
|
||||
--size: calc(var(--h-block) - 8px);
|
||||
font-size: var(--fs-normal);
|
||||
font-weight: var(--fw-normal);
|
||||
height: var(--size);
|
||||
padding-right: 1.5ch;
|
||||
|
||||
position: relative;
|
||||
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0ch;
|
||||
// padding-right: 0.5ch;
|
||||
color: var(--color-accent);
|
||||
font-weight: var(--fw-medium);
|
||||
text-decoration: none;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
.icon, .txt{ z-index: 10; }
|
||||
|
||||
.icon{
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-bg);
|
||||
text-align: center;
|
||||
|
||||
svg{
|
||||
fill: var(--color-bg);
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.txt{
|
||||
font-family: var(--font-title);
|
||||
color: var(--color-accent);
|
||||
font-size: var(--fs-normal);
|
||||
font-weight: var(--fw-bold);
|
||||
padding-left: 1ch;
|
||||
}
|
||||
|
||||
&::after{
|
||||
content: '';
|
||||
display: block;
|
||||
background-color: var(--color-accent);
|
||||
border-radius: calc(var(--size)/2);
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
transition: width .2s
|
||||
}
|
||||
|
||||
&:hover{
|
||||
//
|
||||
.txt{
|
||||
color: var(--color-bg);
|
||||
display: block;
|
||||
}
|
||||
&::after{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
127
assets/css/components/_form-newsletter.scss
Normal file
127
assets/css/components/_form-newsletter.scss
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
.form__newsletter{
|
||||
--size: 24px;
|
||||
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
|
||||
|
||||
|
||||
input[type="email"]{
|
||||
|
||||
height: calc(var(--h-block)*1.25);
|
||||
width: 100%;
|
||||
border-radius: calc(var(--h-block)*0.625);
|
||||
outline: none;
|
||||
border: none;
|
||||
padding: 0 2ch;
|
||||
font-family: var(--font);
|
||||
|
||||
font-size: var(--fs-normal);
|
||||
z-index: 40;
|
||||
padding-top: 4px;
|
||||
&::placeholder{
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
}
|
||||
|
||||
&:focus{
|
||||
outline: 3px solid var(--grey-400);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
button[type="submit"].btn--bold{
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
|
||||
button[type="submit"].btn--bold {
|
||||
|
||||
|
||||
--size: calc(var(--h-block)*1.25 - 4px);
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-button-bold);
|
||||
height: var(--size);
|
||||
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75ch;
|
||||
color: var(--color-accent);
|
||||
font-weight: var(--fw-medium);
|
||||
text-decoration: none;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
.icon, .txt{ z-index: 10; }
|
||||
|
||||
.icon{
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-bg);
|
||||
text-align: center;
|
||||
|
||||
svg{
|
||||
fill: var(--color-bg);
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.txt{
|
||||
position: relative;
|
||||
top: 2px;
|
||||
font-size: var(--fs-normal);
|
||||
display: none;
|
||||
padding-left: 1ch;
|
||||
}
|
||||
|
||||
&::after{
|
||||
content: '';
|
||||
display: block;
|
||||
background-color: var(--color-accent);
|
||||
border-radius: calc(var(--size)/2);
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
z-index: 0;
|
||||
transition: width .2s
|
||||
}
|
||||
|
||||
&:hover{
|
||||
.txt{
|
||||
color: var(--color-bg);
|
||||
display: block;
|
||||
}
|
||||
&::after{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// @media #{$small}{
|
||||
// .txt{
|
||||
// color: var(--color-bg);
|
||||
// display: block;
|
||||
// }
|
||||
// &::after{
|
||||
// width: 100%;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
57
assets/css/components/_list-socials.scss
Normal file
57
assets/css/components/_list-socials.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
.list-socials {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
max-width: 400px;
|
||||
a{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.icon{
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
svg{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
|
||||
}
|
||||
|
||||
.text{ display: none; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// with text
|
||||
@media #{$small-up}{
|
||||
.footer__socials .list-socials{
|
||||
|
||||
display: block;
|
||||
|
||||
li{
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
a{
|
||||
gap: 1ch;
|
||||
|
||||
height: calc(var(--spacing)*1);
|
||||
&::after{
|
||||
content: '↗';
|
||||
color: var(--grey-300);
|
||||
}
|
||||
}
|
||||
.text{
|
||||
display: block;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
40
assets/css/components/_nav-tabs.scss
Normal file
40
assets/css/components/_nav-tabs.scss
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
.nav--tabs{
|
||||
height: calc(var(--h-block)*1);
|
||||
width: auto;
|
||||
border: var(--border);
|
||||
border-radius: var(--radius-small);
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
display: inline-flex;
|
||||
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
margin-bottom: var(--spacing);
|
||||
|
||||
|
||||
.nav--tabs__btn{
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-small);
|
||||
font-weight: var(--fw-medium);
|
||||
padding: 0 2ch;
|
||||
|
||||
&.is-selected{
|
||||
background-color: var(--color-txt);
|
||||
color: var(--color-bg);
|
||||
}
|
||||
|
||||
&:not(.is-selected):hover{
|
||||
background-color: var(--grey-800);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.nav--tabs__btn + .nav--tabs__btn{
|
||||
border-left: var(--border);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
68
assets/css/components/_text.scss
Normal file
68
assets/css/components/_text.scss
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
[data-template="subscription-newsletter"],
|
||||
[data-template="thanks"],
|
||||
[data-template="support"],
|
||||
[data-template="store"]{
|
||||
|
||||
.p__baseline-big{
|
||||
font-family: var(--title);
|
||||
font-size: var(--fs-big);
|
||||
font-weight: var(--fw-bold);
|
||||
line-height: 1.1;
|
||||
text-align: center;
|
||||
margin: calc(var(--spacing)*1) 0;
|
||||
|
||||
strong{
|
||||
font-weight: var(--fw-bolf);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.link-don{
|
||||
display: block;
|
||||
color: var(--color-accent);
|
||||
text-decoration: none;
|
||||
// &::after{
|
||||
// content: ' ↗';
|
||||
// font-size: 0.8em;
|
||||
// }
|
||||
&:hover{
|
||||
text-decoration: underline 2px;
|
||||
text-underline-offset: 4px;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.p__baseline{
|
||||
font-size: var(--fs-medium);
|
||||
font-weight: var(--fw-medium);
|
||||
line-height: 1.1;
|
||||
text-align: center;
|
||||
margin: calc(var(--spacing)*1) 0;
|
||||
@media #{$small}{
|
||||
text-align: center;
|
||||
margin: var(--spacing) 0;
|
||||
}
|
||||
}
|
||||
|
||||
.p__details{
|
||||
font-size: var(--fs-small);
|
||||
margin-bottom: 0.5em;
|
||||
color: var(--grey-400);
|
||||
}
|
||||
|
||||
.section__heading{
|
||||
font-size: var(--fs-normal);
|
||||
font-weight: var(--fw-medium);
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
margin-top: calc(var(--spacing)*0.5);
|
||||
margin-bottom: calc(var(--spacing)*1);
|
||||
}
|
||||
|
||||
ul, ol{
|
||||
margin-left: 3ch;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue