winscloud-apps/assets/css/style.css

257 lines
5.2 KiB
CSS
Raw Normal View History

2024-05-07 18:04:56 +07:00
@import url("../fonts/Inter-VariableFont_slnt\,wght.ttf");
2024-05-07 18:15:11 +07:00
:root {
color-scheme: light dark;
2024-05-08 13:07:09 +07:00
--light-bg-color: #fafafa;
--light-fg-color: rgba(0, 0, 0, 0.8);
--light-nav-bg-color: #ffffff;
--light-nav-fg-color: rgba(0, 0, 0, 0.8);
--light-nav-border-color: rgba(0, 0, 0, 0.8);
--light-nav-backdrop-color: #fafafa;
--light-nav-shade-color: rgba(0, 0, 0, 0.12);
--light-nav-darker-shade-color: rgba(0, 0, 0, 0.12);
2024-05-08 20:50:59 +07:00
--light-card-bg-color: #ffffff;
--light-card-fg-color: rgba(0, 0, 0, 0.8);
--light-card-shade-color: rgba(0, 0, 0, 0.07);
2024-05-07 18:15:11 +07:00
--dark-bg: #242424;
2024-05-08 13:07:09 +07:00
--dark-fg-color: #ffffff;
--dark-nav-bg-color: #303030;
--dark-nav-fg-color: #ffffff;
--dark-nav-border-color: #ffffff;
--dark-nav-backdrop-color: #242424;
--dark-nav-shade-color: rgba(0, 0, 0, 0.36);
2024-05-08 20:50:59 +07:00
--dark-nav-darker-shade-color: rgba(0, 0, 0, 0.9);
--dark-card-bg-color: rgba(255, 255, 255, 0.08);
--dark-card-fg-color: #ffffff;
--dark-card-shade-color: rgba(0, 0, 0, 0.36);
2024-05-08 13:07:09 +07:00
}
@font-face {
font-family: Inter;
src: url("../fonts/Inter-VariableFont_slnt\,wght.ttf");
2024-05-07 18:15:11 +07:00
}
* {
2024-05-08 13:07:09 +07:00
background-color: light-dark(var(--light-bg-color), var(--dark-bg-color));
color: light-dark(var(--light-fg-color), var(--dark-fg-color));
}
*, *:before, *:after {
box-sizing: inherit;
2024-05-07 18:15:11 +07:00
}
2024-05-07 18:04:56 +07:00
html, body {
2024-05-08 13:07:09 +07:00
font-family: Inter;
2024-05-07 18:15:11 +07:00
margin: 0;
padding: 0;
2024-05-08 13:07:09 +07:00
box-sizing: border-box;
2024-05-07 18:15:11 +07:00
}
2024-05-07 18:04:56 +07:00
2024-05-08 20:50:59 +07:00
h1, h2, h3, h4, h5, h6, p {
2024-05-07 18:04:56 +07:00
margin: 0;
padding: 0;
2024-05-07 18:15:11 +07:00
}
a {
text-decoration: none;
}
2024-05-08 13:07:09 +07:00
header {
position: sticky;
top: 0;
}
2024-05-07 18:15:11 +07:00
.light {
color-scheme: light;
}
2024-05-07 18:07:03 +07:00
2024-05-07 18:15:11 +07:00
.dark {
color-scheme: dark;
2024-05-08 13:07:09 +07:00
}
2024-05-08 20:50:59 +07:00
.text-bold {
font-weight: 600;
}
2024-05-08 13:07:09 +07:00
.nav {
width: 100%;
height: 50px;
display: flex;
box-shadow: 1px 1px 4px 0 light-dark(var(--light-nav-shade-color), var(--dark-nav-shade-color));
align-items: center;
}
.nav > .nav-header {
flex: 0.95;
padding-left: 1rem;
padding: 0 1rem 0 1rem;
}
.nav > .nav-header > .nav-title {
font-size: 22px;
color: light-dark(var(--light-nav-fg-color), var(--dark-nav-fg-color));
}
.nav > .nav-list {
display: flex;
margin: 0 1rem 0 auto;
2024-05-08 15:20:35 +07:00
gap: 0.5rem;
2024-05-08 13:07:09 +07:00
padding-left: 0;
}
2024-05-08 13:12:36 +07:00
.nav > .nav-list > a {
2024-05-08 13:07:09 +07:00
text-decoration: none;
cursor: pointer;
2024-05-08 15:20:35 +07:00
width: 80px;
text-align: center;
border-radius: 7px;
padding: 0.5rem 0 0.5rem 0;
2024-05-08 13:07:09 +07:00
}
2024-05-08 15:20:35 +07:00
.nav > .nav-list > a:hover {
background-color: light-dark(rgba(0, 0, 0, 0.1),hsla(0,0%,100%,.05));
2024-05-08 13:12:36 +07:00
}
2024-05-08 15:20:35 +07:00
.nav > .nav-list > a > li {
list-style-type: none;
2024-05-08 13:15:00 +07:00
}
2024-05-08 13:07:09 +07:00
.nav > #nav-check {
display: none;
}
.nav > .nav-btn > label > i {
display: none;
}
/* Screens smaller than 480 pixels */
@media (max-width: 420px) {
.nav {
width: 100%;
height: 50px;
background-color: light-dark(var(--light-nav-bg-color), var(--dark-nav-bg-color));
}
.nav > .nav-btn {
display: inline-block;
position: absolute;
right: 0;
top: 0;
padding-top: 0.2rem;
}
.nav > .nav-btn > label {
display: inline-block;
padding: 13px;
}
.nav > .nav-btn > label > i {
display: block;
}
.nav > .nav-list {
position: fixed;
display: flex;
flex-direction: column;
2024-05-08 15:20:35 +07:00
gap: 0.25rem;
2024-05-08 13:07:09 +07:00
width: 100%;
height: 0;
transition: all 0.3s ease-in;
top: 50px;
left: 0;
overflow: hidden;
background-color: light-dark(var(--light-nav-bg-color), var(--dark-nav-bg-color));
}
2024-05-08 15:20:35 +07:00
.nav > .nav-list > a {
width: 100%;
text-align: start;
2024-05-08 13:07:09 +07:00
padding: 0.5rem 0.75rem 0.5rem 0.75rem;
}
2024-05-08 15:20:35 +07:00
.nav > .nav-list > a:hover {
2024-05-08 13:09:52 +07:00
background-color: light-dark(rgba(0, 0, 0, 0.1),hsla(0,0%,100%,.05));
2024-05-08 13:07:09 +07:00
}
.nav > #nav-check:checked ~ .nav-list {
height: calc(100vh - 50px);
padding: 5px;
}
2024-05-08 15:33:07 +07:00
}
.container {
2024-05-08 19:37:26 +07:00
margin: 10px calc(10px + 1.5625vw);
2024-05-08 15:33:07 +07:00
padding: 10px;
2024-05-08 19:37:26 +07:00
}
.main-banner {
height: 300px;
border-radius: 0.75rem;
background-color: #2ec27e;
box-shadow: 1px 1px 4px 0 light-dark(var(--light-nav-shade-color), var(--dark-nav-shade-color));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 10px;
}
.main-banner h1 {
2024-05-08 20:50:59 +07:00
font-size: calc(45px + .5vw);
2024-05-08 19:37:26 +07:00
}
.main-banner p {
font-size: calc(12px + .5vw);
2024-05-08 20:50:59 +07:00
}
.main-apps {
display: flex;
flex-direction: column;
text-align: center;
justify-items: center;
}
.main-apps > #heading {
margin: 2rem 0 1rem 0;
}
.app-grid {
display: grid;
align-items: center;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
.app-grid__item {
display: flex;
flex-direction: row;
gap: 1rem;
align-items: center;
text-align: start;
padding-block: .5rem;
padding-inline: .5rem 1rem;
max-width: fit-content;
cursor: pointer;
color: light-dark(var(--light-card-fg-color), var(--dark-card-fg-color));
background-color: light-dark(var(--light-card-bg-color), var(--dark-card-bg-color));
box-shadow: 1px 1px 5px 0 light-dark(var(--light-card-shade-color), var(--dark-card-shade-color));
text-decoration: none;
border-radius: 1rem;
}
.app-grid__item > img {
max-width: 100%;
height: 128px;
2024-05-07 18:04:56 +07:00
}