features section done

This commit is contained in:
Daniel Heras Quesada committed 2023-09-11 23:10:40 +02:00
1 parent b5a07abf51
commit 14b32ac1ac
20 files changed
+945 -16

No files matched your search

+27 -1
View File
@@ -8,7 +8,7 @@
border-radius: 10rem;
transition: all 0.2s;
position: relative;
font-size: 1.6rem;
font-size: $default-font-size;
}
&--animated {
@@ -50,4 +50,30 @@
z-index: -1;
transition: all 0.4s;
}
}
.btn-text {
&:link,
&:visited {
font-size: $default-font-size;
color: $color-primary;
display: inline-block;
text-decoration: none;
border-bottom: 1px solid $color-primary;
padding: 3px;
transition: all .2s;
}
&:hover {
background-color: $color-primary;
color: $color-white;
box-shadow: 0 1rem 2reem rgba($color-black, .15);
transform: translateY(-2px);
}
&:active {
box-shadow: 0 .5rem 1reem rgba($color-black, .15);
transform: translateY(0px);
}
}
@@ -0,0 +1,38 @@
.composition {
position: relative;
&__photo {
width: 55%;
box-shadow: 0 1.5rem 4rem rgba($color-black, .4);
border-radius: 2px;
position: absolute;
z-index: 10;
transition: all .2s;
outline-offset: 2rem;
&--p1 {
left: 0;
top: -2rem;
}
&--p2 {
right: 0;
top: 2rem;
}
&--p3 {
left: 20%;
top: 10rem;
}
&:hover {
outline: 1.5rem solid $color-primary;
transform: scale(1.05) translateY(-.5rem);
box-shadow: 0 2.5rem 4rem rgba($color-black, .5);
z-index: 20;
}
}
&:hover &__photo:not(:hover) {
transform: scale(0.9);
}
}
@@ -0,0 +1,26 @@
.feature-box {
background-color: rgba($color-white, .8);
font-size: 1.5rem;
padding: 2.5rem;
text-align: center;
border-radius: 3px;
box-shadow: 0 1.5rem 4rem rgba($color-black, .15);
transition: transform .3s;
&__icon {
font-size: 6rem;
margin-bottom: .5rem;
display: inline-block;
background-image: linear-gradient(to right, $color-primary-light, $color-primary-dark);
-webkit-background-clip: text;
color: transparent;
}
&__text {
}
&:hover {
transform: translateY(-1.5rem) scale(1.03);
}
}