hugo-theme-almeida/assets/scss/components/_section.scss

31 lines
623 B
SCSS
Raw Normal View History

2020-08-16 12:21:35 +00:00
.section {
display: block;
margin-bottom: 2rem;
&__heading {
2020-08-29 11:16:29 +00:00
width: 100%;
2020-08-16 12:21:35 +00:00
overflow: hidden;
}
&__title {
position: relative;
&::after {
2020-08-29 11:16:29 +00:00
content: '';
2020-08-16 12:21:35 +00:00
position: absolute;
border-top: 1px solid;
border-bottom: 1px solid;
2020-08-29 11:16:29 +00:00
border-color: $color-secondary;
2020-08-16 12:21:35 +00:00
width: 50rem;
height: 4px;
margin-left: 1.5rem;
margin-top: 1.5rem;
transition: all 0.5s ease-in-out;
}
&:hover::after {
border-color: $color-primary;
}
}
}