docs/src/pages/index.module.scss

84 lines
1.5 KiB
SCSS

@import 'variables';
@import 'animations';
.sections {
list-style: none;
padding: 0;
margin: 0;
margin-top: -($spacer * 4);
@media (min-width: $break-point--medium) {
display: flex;
justify-content: space-between;
}
}
.section {
margin-top: $spacer;
animation: fadeInUp .6s ease-out backwards;
&:before { display: none; }
@media (min-width: $break-point--medium) {
flex: 0 0 31%;
}
animation-delay: .4s;
&:nth-child(2) {
animation-delay: .6s;
}
&:nth-child(3) {
animation-delay: .8s;
}
}
.link {
display: flex;
flex-wrap: wrap;
padding: $spacer $spacer * $line-height;
border-radius: $border-radius;
box-shadow: rgba($brand-black, .1) 0px 9px 18px;
color: $brand-grey;
background: $brand-white;
height: 100%;
&:hover,
&:focus {
color: $brand-grey;
box-shadow: rgba($brand-black, .1) 0px 12px 20px;
svg {
transform: translate3d(.2rem, 0, 0);
}
}
}
.sectionTitle {
margin-top: 0;
margin-bottom: $spacer / $line-height;
width: 100%;
}
.sectionText {
margin-bottom: 0;
}
.sectionMore {
align-self: flex-end;
margin-top: $spacer / $line-height;
color: $brand-pink;
width: 100%;
font-family: $font-family-button;
font-weight: $font-weight-bold;
svg {
display: inline-block;
width: $font-size-small;
height: $font-size-small;
fill: $brand-grey-light;
transition: transform .2s ease-out;
}
}