Skip to content

Instantly share code, notes, and snippets.

@Brlaney
Last active October 11, 2021 17:00
Show Gist options
  • Save Brlaney/232d5e0e8c0703d1dbb6d7547f53b929 to your computer and use it in GitHub Desktop.
Save Brlaney/232d5e0e8c0703d1dbb6d7547f53b929 to your computer and use it in GitHub Desktop.
Using custom mixins in .scss file
@import '../theme/theme';
@import '../mixins/width';
@import '../mixins/height';
.parent {
height: 100%;
width: 100vw;
color: $bg-d;
display: flex;
flex-direction: column;
align-items: center;
.header {
width: 60%;
margin: 3.22rem 0 0 0;
@include respond-below-width(sm) {
width: 80%;
}
@include respond-below-height(lg) {
margin: 2rem 0 0.5rem 0;
@include respond-below-height(md) {
margin: 1rem 0 0.6rem 0;
@include respond-below-height(sm) {
margin: 0.66rem 0 2rem 0;
}
}
}
.title {
font-weight: bold;
color: $bg-df-900;
margin-bottom: 0;
padding-bottom: 0.3rem;
font-size: 3.5rem;
letter-spacing: 0.1rem;
border-bottom: calc(0.2px + 0.05rem) solid #e5e5e5;
#span {
color: $secondary;
}
}
.subtitle {
text-align: justify;
font-size: 1.67rem;
margin: 0.22rem 0 0.22rem 0;
color: $bg-d;
}
}
.subheader {
font-size: 1.77rem;
margin-bottom: 1rem;
align-items: center;
justify-content: center;
.secondary {
text-align: center;
color: $secondary;
font-weight: bold;
margin-bottom: 0.76rem;
padding: 0;
.span {
font-weight: 400;
color: $bg-d;
margin: 0;
padding: 0;
}
}
}
.grid {
width: 70%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
@include respond-below-width(sm) {
width: 100%;
}
@include respond-above-height(lg) {
height: 400px;
}
@include respond-below-height(lg) {
height: 300px;
@include respond-below-height(md) {
margin-top: 1rem;
@include respond-below-height(sm) {
margin-top: 1.5rem;
height: 120px;
@include respond-below-height(xs) {
margin-top: 2.5rem;
height: 100px;
}
}
}
}
#col {
display: flex;
flex-direction: column;
flex: 1;
align-items: center;
justify-content: space-between;
margin: 0.77rem;
padding: 1.5rem 0 0 0;
border-radius: 0.75rem;
background-color: $bg-d;
box-shadow: rgba(50, 50, 93, 0.25) 5px 7px 9px -5px,
rgba(72, 72, 72, 0.3) 4px 8px 4px -6px;
transition: all 300ms;
.columnIcon {
color: $white;
font-size: 2.5rem;
}
.cta {
width: 100%;
height: 30px;
text-align: center;
padding: 0.77rem 0 1rem 0;
color: $text-light;
border-top: 1px solid $light;
line-height: 1.3;
}
}
#col:hover {
cursor: pointer;
border: 1px solid $secondary;
background-color: $bg-df-900;
.columnIcon {
color: $secondary;
}
.cta {
border-top: 1px solid $secondary;
color: $white;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment