butter-kanglam-ui/_scss/pages/home.scss

307 lines
5.5 KiB
SCSS
Raw Normal View History

2021-09-17 09:26:31 -05:00
// -------------------------
// Body Styles
// -------------------------
body {
2021-09-17 09:26:31 -05:00
background-color: $gold;
min-height: 100vh;
2021-09-17 09:26:31 -05:00
}
2021-09-17 16:18:12 -04:00
// -------------------------
// Link Styles
// -------------------------
a:link {
text-decoration: none;
2022-08-22 20:18:13 -05:00
color: black;
2021-09-17 16:18:12 -04:00
}
a:visited {
text-decoration: none;
2022-08-22 20:18:13 -05:00
color: black;
2021-09-17 16:18:12 -04:00
}
a:hover {
text-decoration: underline;
2022-08-22 20:18:13 -05:00
color: black;
2021-09-17 16:18:12 -04:00
}
2021-09-17 09:26:31 -05:00
2021-09-17 16:18:12 -04:00
a:active {
text-decoration: underline;
2022-08-22 20:18:13 -05:00
color: black;
2021-09-17 16:18:12 -04:00
}
.darklink:link {
color: grey;
}
.darklink:visited {
color: grey;
}
.darklink:hover {
color: grey;
}
.darklink:active {
color: grey;
}
2021-09-17 09:26:31 -05:00
// -------------------------
// Header Styles
// -------------------------
.header-area {
&-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
2022-08-22 20:18:13 -05:00
flex-direction: column;
2021-09-17 09:26:31 -05:00
}
.header-menu {
2022-08-22 20:18:13 -05:00
margin-top: 20px;
2021-09-17 09:26:31 -05:00
&-list {
padding-left: 0;
list-style: none;
li {
display: inline-block;
&.active {
font-weight: 600;
}
&:not(:last-child) {
margin-right: 45px;
}
}
}
}
}
// -------------------------
// Content Styles
// -------------------------
.content-area {
2022-08-22 20:18:13 -05:00
background-color: white;
border-top-left-radius: 50vw;
border-top-right-radius: 50vw;
border-bottom-left-radius: 50vw;
border-bottom-right-radius: 50vw;
padding-bottom: Min(50vw, 250px);
&-topper {
margin-top: 175px;
height: Min(50vw, 250px);
text-align: center;
.topper-img {
position: relative;
top: -170px;
}
.content-title {
position: relative;
top: -150px;
margin-left: 15%;
margin-right: 15%;
font-size: 36px;
font-weight: 800;
@media (max-width: 500px) {
font-size: 28px;
}
}
}
2021-09-17 09:26:31 -05:00
&-wrapper {
margin-top: 30px;
margin-bottom: 30px;
2022-08-22 20:18:13 -05:00
margin-left: 30px;
margin-right: 30px;
.content-subtitle {
font-size: 20px;
font-weight: bold;
text-align: left;
}
.split-content {
display: flex;
}
.left-content {
width: 65%;
}
.right-bleed {
width: 35%;
img {
height: 100%;
2021-09-17 09:26:31 -05:00
}
}
.content-text {
2022-08-22 20:18:13 -05:00
text-align: left;
}
// Expander per: https://www.digitalocean.com/community/tutorials/css-collapsible
input[type='checkbox'] {
display:none;
}
.lbl-toggle {
display: block;
cursor: pointer;
transition: all 0.5s ease-out;
}
.lbl-toggle::before {
content: ' ';
display: inline-block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid currentColor;
vertical-align: middle;
margin-right: .7rem;
transform: translateY(-2px);
transition: transform .5s ease-out;
}
.content-expander {
border-bottom-color: $light-gray;
border-bottom-style: solid;
border-bottom-width: 1px;
padding: 10px;
width: 100%;
text-align: left;
font-weight: 600;
font-size: 14px;
}
.toggle:checked + .lbl-toggle + .content-expanded {
max-height: 100vh;
overflow: visible;
}
.toggle:checked + .lbl-toggle::before {
transform: rotate(90deg) translateX(-3px);
}
.content-expanded {
max-height: 0px;
overflow: hidden;
transition: max-height .5s ease-in-out;
width: 100%;
margin-top: 20px;
text-align: left;
font-size: 13px;
2021-09-17 09:26:31 -05:00
}
.content-img {
img {
2022-08-22 20:18:13 -05:00
margin-top: 10px;
position: relative;
left: -20vw;
width: 150%;
2021-09-17 09:26:31 -05:00
}
}
}
}
// -------------------------
// Footer Styles
// -------------------------
.footer-area {
font-family: $footer-font-family;
padding: 35px 0;
}
// -------------------------
// Modal Styles
// -------------------------
.modal__content {
&__header {
display: flex;
align-items: flex-start;
@media (max-width: 768px) {
flex-direction: column;
}
.header__logo {
img {
display: block;
max-width: 100%;
@media (max-width: 768px) {
max-width: 120px;
width: 100%;
}
}
}
.header__text {
margin: 0 30px;
max-width: 430px;
width: 100%;
@media (max-width: 768px) {
margin: 20px 0;
}
.info__list {
font-size: 14px;
list-style: none;
margin-top: 10px;
padding: 0;
}
}
.header__btn {
@media (min-width: 769px) {
margin-left: auto;
}
.btn-main {
@media (max-width: 992px) {
font-size: 10px;
}
}
}
}
&__description {
margin: 30px 0;
}
&__slider {
//to prevent slider jump
@media (min-width: 1200px) {
min-height: 586px;
height: 100%;
}
.slider-item {
margin: 0 10px;
}
img {
max-width: 100%;
@media (max-width: 768px) {
margin: 0 auto;
}
}
}
}
.modal__footer {
p {
font-size: 14px;
a {
color: inherit;
}
}
}
// -------------------------
// Slider Styles
// -------------------------
.slick-arrow {
background: $royal-blue;
border-radius: 50%;
color: $white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 70px;
height: 70px;
font-size: 34px;
position: absolute;
top: 50%;
margin-top: -35px;
transition: all .3s ease;
z-index: 1;
&:hover {
background-color: lighten($royal-blue, 5%);
}
@media (max-width: 768px) {
width: 50px;
height: 50px;
margin-top: -25px;
}
}
.slick-prev {
left: 0;
}
.slick-next {
right: 0;
}