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

431 lines
6.9 KiB
SCSS
Raw Normal View History

2021-09-17 09:26:31 -05:00
// -------------------------
// Body Styles
// -------------------------
body {
2024-06-07 14:38:54 -05:00
background-color: #F9F9F9;
min-height: 100vh;
2021-09-17 09:26:31 -05:00
}
2024-06-04 22:41:13 -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:hover {
color: grey;
}
.darklink:active {
color: grey;
}
2024-06-04 22:41:13 -05:00
2021-09-17 09:26:31 -05:00
// -------------------------
2024-06-04 22:41:13 -05:00
// Content Styles
2021-09-17 09:26:31 -05:00
// -------------------------
2024-06-04 22:41:13 -05:00
.container {
width: 100%;
max-width: 400px;
margin: 0 auto;
}
.header {
position: relative;
background-color: $gold;
2024-06-05 00:17:18 -05:00
// Set background image in HTML so we can use site.baseurl
2024-06-04 22:41:13 -05:00
background-size: 170px;
padding: 0 0 100px 0;
text-align: center;
border-radius: 0 0 20px 20px;
z-index: 1;
// Language selector
2021-09-17 09:26:31 -05:00
&-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 {
&-list {
padding-left: 0;
list-style: none;
li {
display: inline-block;
&.active {
font-weight: 600;
}
&:not(:last-child) {
2024-06-04 22:41:13 -05:00
margin: 10px;
2021-09-17 09:26:31 -05:00
}
}
}
}
2024-06-04 22:41:13 -05:00
2021-09-17 09:26:31 -05:00
}
2024-06-04 22:41:13 -05:00
.header-content {
position: relative;
z-index: 2;
}
2021-09-17 09:26:31 -05:00
2024-06-04 22:41:13 -05:00
.header-image {
width: 150px;
}
.header-title {
font-size: 1.5em;
color: #333;
margin: 20px 0;
font-weight: bold;
}
.content {
position: relative;
top: -100px;
padding: 20px;
z-index: 2;
}
.card {
2022-08-22 20:18:13 -05:00
background-color: white;
2024-06-04 22:41:13 -05:00
padding: 20px;
margin: 10px 0;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
text-align: center;
font-size: 1.2em;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
}
.card-icon {
width: 32px; /* Desired width */
height: 32px; /* Desired height */
margin-bottom: 10px;
object-fit: cover;
}
.card-icon-big {
width: 60px; /* Desired width */
height: 60px; /* Desired height */
margin-bottom: 10px;
object-fit: cover;
2021-09-17 09:26:31 -05:00
}
2024-06-07 14:38:54 -05:00
// --------------------------------
// Informational Layout Styles
// --------------------------------
2024-06-07 16:07:53 -05:00
.top-nav {
max-width: 860px;
margin: 0px auto;
display: flex;
align-items: center;
}
2024-06-07 14:38:54 -05:00
.informational-container {
width: 100%;
max-width: 680px;
margin: 0 auto;
2024-06-07 16:07:53 -05:00
padding: 0 10px;
2024-06-07 14:38:54 -05:00
img.hero {
width: 100%;
}
img.app-tile {
width: 66px;
height: 66px;
// center within container
display: block;
margin: auto;
// float higher to overlap previous element
position: relative;
top: -33px;
}
h1 {
font-size: 28px;
font-weight: 700;
margin-bottom: 10px;
text-align: center;
}
p.subtitle {
2024-06-07 16:59:23 -05:00
color: #9B9A98;
2024-06-07 14:38:54 -05:00
font-size: 16px;
font-weight: 400;
margin: 0 auto 10px auto;
max-width: 340px;
text-align: center;
}
h2 {
font-size: 18px;
font-weight: 500;
2024-06-07 15:53:50 -05:00
margin: 30px 0 15px 0;
2024-06-07 14:38:54 -05:00
}
p {
font-size: 14px;
font-weight: 400;
margin: 10px 0;
}
.filelist {
background-color: white;
border-radius: 20px;
2024-06-07 15:53:50 -05:00
margin-top: 40px;
}
.btn-container {
width: fit-content;
margin: 30px auto;
2024-06-07 14:38:54 -05:00
}
2024-06-07 16:59:23 -05:00
.btn-secondary {
background-color: #F4F3F2;
border-radius: 26px;
height: 52px;
width: fit-content;
padding: 0 20px;
font-size: 16px;
font-weight: 600;
margin: 0 auto;
// center text vertically
display: flex;
align-items: center;
}
}
// TODO: Make this push to the bottom when the page isn't as tall as the viewport.
.push-footer {
font-size: 12px;
text-align: center;
margin: 20px 0;
padding: 0 10px;
width: 100%;
2024-06-07 14:38:54 -05:00
}
// ----------------------------------
// Copied from butter-dir-listing.css
// ----------------------------------
2024-06-07 16:07:53 -05:00
.breadcrumb-name {
display: flex;
align-items: center;
height: 34px;
margin: 10px;
a {
display: flex;
align-items: center;
}
img.back {
width: 18px;
height: 18px;
rotate: 180deg;
margin-right: 10px;
}
}
2024-06-07 14:38:54 -05:00
.filerow {
display: flex;
align-items: center;
height: 44px;
margin: 10px;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
.logo-filerow {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
}
.logo-filerow img {
width: 32px;
height: 32px;
}
.text-filerow {
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
padding: 0 10px;
box-sizing: border-box;
}
.text-filerow .upper-text {
font-size: 14px;
line-height: 18px;
padding: 2px;
color: black;
}
.text-filerow .lower-text {
font-size: 12px;
padding: 2px;
color: gray;
}
.empty-block {
display: flex;
justify-content: center;
align-items: center;
width: 30px;
height: 30px;
}
2022-10-10 11:18:26 -05:00
// -------------------------
2022-10-10 16:00:01 -05:00
// Button Styles
2022-10-10 11:18:26 -05:00
// -------------------------
.btn-android {
2022-10-10 16:00:01 -05:00
margin: 15px 15px 15px 0px;
height: 30px;
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;
}