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

338 lines
6.3 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;
2022-10-10 11:18:26 -05:00
background-image: url("/assets/images/btr-texture.png");
2022-10-10 12:29:27 -05:00
background-size: 170px;
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;
2022-10-10 11:18:26 -05:00
position:relative;
top: -90px;
2022-08-22 20:18:13 -05:00
.topper-img {
2022-10-10 11:18:26 -05:00
width: 40%;
height: auto;
2022-08-22 20:18:13 -05:00
}
.content-title {
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 {
2022-10-10 11:37:43 -05:00
height: 250px;
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;
}
2022-10-10 12:29:27 -05:00
.outlink {
2022-08-22 20:18:13 -05:00
display: block;
cursor: pointer;
transition: all 0.5s ease-out;
}
2022-10-10 12:29:27 -05:00
.outlink::after {
content: url("/assets/images/btr-carrot.svg");
2022-08-22 20:18:13 -05:00
display: inline-block;
vertical-align: middle;
2022-10-10 12:29:27 -05:00
transform: rotate(90deg);
2022-08-22 20:18:13 -05:00
}
2022-10-10 12:29:27 -05:00
.lbl-toggle {
display: block;
cursor: pointer;
transition: all 0.5s ease-out;
}
.lbl-toggle::after {
content: url("/assets/images/btr-carrot.svg");
display: inline-block;
vertical-align: middle;
transform: rotate(180deg);
transition: transform .25s ease-out;
}
2022-08-22 20:18:13 -05:00
.content-expander {
2022-10-10 12:29:27 -05:00
border-bottom-color: $lighter-gray;
2022-08-22 20:18:13 -05:00
border-bottom-style: solid;
2022-10-10 12:29:27 -05:00
border-bottom-width: 2px;
2022-08-22 20:18:13 -05:00
padding: 10px;
width: 100%;
text-align: left;
font-weight: 600;
font-size: 14px;
2022-10-10 12:29:27 -05:00
span {
// Take up space so ::after is on the right
display: inline-block;
width: 94%;
}
2022-08-22 20:18:13 -05:00
}
.toggle:checked + .lbl-toggle + .content-expanded {
max-height: 100vh;
overflow: visible;
2022-10-10 12:29:27 -05:00
display: inherit;
2022-08-22 20:18:13 -05:00
}
2022-10-10 12:29:27 -05:00
.toggle:checked + .lbl-toggle::after {
transform: rotate(360deg) translate(0, -2px);
2022-08-22 20:18:13 -05:00
}
.content-expanded {
max-height: 0px;
2022-10-10 12:29:27 -05:00
display: none;
2022-08-22 20:18:13 -05:00
overflow: hidden;
transition: max-height .5s ease-in-out;
width: 100%;
2022-10-10 12:29:27 -05:00
padding-bottom: 20px;
margin-bottom: 40px;
2022-08-22 20:18:13 -05:00
margin-top: 20px;
text-align: left;
font-size: 13px;
2022-10-10 12:29:27 -05:00
border-bottom-color: $lighter-gray;
border-bottom-style: solid;
border-bottom-width: 2px;
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
}
}
}
}
2022-10-10 11:18:26 -05:00
// -------------------------
// Footer Styles
// -------------------------
.btn-android {
2022-10-10 11:37:43 -05:00
margin: 17.5px 15px 17.5px 0px;
height: 25px;
2022-10-10 11:18:26 -05:00
width: auto;
}
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;
}