honey/css/main.css

385 lines
5.7 KiB
CSS
Raw Normal View History

2023-05-09 18:19:25 +02:00
@import url(../font/quicksand/quicksand.css);
@font-face {
font-family: 'Material Symbols Rounded';
font-style: normal;
font-weight: 500;
src: url(../font/MaterialSymbolsRounded.woff2) format('woff2');
}
2023-10-14 01:43:36 +02:00
body {
2023-01-15 17:22:09 +01:00
--color: #222;
2023-01-16 00:22:31 +01:00
--color2: #2229;
2023-01-15 17:22:09 +01:00
--background: #EEE8;
--bg2: #FFF8;
--hover: #0001;
--scale-factor: 1.15;
2023-05-09 22:02:54 +02:00
--blur: blur(16px);
2023-01-15 17:22:09 +01:00
}
2023-10-14 01:43:36 +02:00
body.dark {
--color: #EEE;
--color2: #EEE9;
--background: #1118;
--bg2: #0008;
--hover: #FFF1;
}
#theme-switcher .icon::after {
content: "light_mode"
}
body.dark #theme-switcher .icon::after {
content: "dark_mode"
}
body.noblur {
--blur: 0;
}
body.noanim * {
transition: none !important;
}
body {
2023-01-14 13:13:23 +01:00
background: #000;
2023-01-15 17:22:09 +01:00
color: var(--color);
margin: 0;
font-family: Quicksand;
font-weight: bold;
user-select: none;
font-size: 14px;
-webkit-tap-highlight-color: transparent;
}
2023-05-09 22:02:54 +02:00
::-webkit-scrollbar {
2023-01-15 17:22:09 +01:00
display: none;
}
2023-10-14 01:43:36 +02:00
.icon {
font-family: 'Material Symbols Rounded';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
2023-10-14 01:43:36 +02:00
2023-01-14 12:21:09 +01:00
#background img {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
object-fit: cover;
2023-01-15 14:24:40 +01:00
transition: transform .4s, opacity .4s !important;
}
2023-10-14 01:43:36 +02:00
2023-01-15 14:12:55 +01:00
#background.scaled img {
2023-01-15 17:22:09 +01:00
transform: scale(var(--scale-factor));
}
2023-10-14 01:43:36 +02:00
body #background img {
opacity: 1;
2023-01-14 12:21:09 +01:00
}
2023-10-14 01:43:36 +02:00
body:not(.dark) #background img:last-child,
body.dark #background img:first-child {
2023-01-15 14:12:55 +01:00
opacity: 0;
}
2023-10-14 01:43:36 +02:00
body.dark #background:not(.scaled) img:first-child,
body:not(.dark) #background:not(.scaled) img:last-child {
2023-01-15 17:22:09 +01:00
transform: scale(var(--scale-factor));
2023-01-14 12:21:09 +01:00
}
2023-10-14 01:43:36 +02:00
body.dark #background.scaled img:first-child,
body:not(.dark) #background.scaled img:last-child {
transform: none;
}
.main {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
2023-10-14 01:43:36 +02:00
.appicon {
width: 192px;
height: 192px;
object-fit: cover;
}
2023-10-14 01:43:36 +02:00
.page {
position: fixed;
top: 0;
left: 50%;
width: 100%;
max-width: 920px;
height: 100vh;
transform: translateX(-50%);
overflow-y: scroll;
2023-01-15 14:24:40 +01:00
transition: top .4s, opacity .4s, visibility .4s, color .3s;
}
2023-10-14 01:43:36 +02:00
.home.page {
top: 50%;
left: 50%;
width: 100%;
height: auto;
overflow: hidden;
transform: translate(-50%, -50%);
}
2023-10-14 01:43:36 +02:00
.page:not(.current) {
2023-01-15 14:24:40 +01:00
top: 240px;
visibility: hidden;
opacity: 0;
}
2023-10-14 01:43:36 +02:00
.home.page:not(.current) {
2023-01-15 14:24:40 +01:00
top: calc(50% - 64px);
}
2023-10-14 01:43:36 +02:00
.wrapper {
box-shadow: 2px 2px 8px #0003;
2023-01-15 17:22:09 +01:00
background: var(--background);
padding: 3px;
2023-05-09 22:02:54 +02:00
backdrop-filter: var(--blur);
border-radius: 24px;
margin: -4px 12px 16px;
text-align: center;
overflow: hidden;
min-width: 340px;
transition: background .2s;
}
2023-10-14 01:43:36 +02:00
.home .wrapper {
box-shadow: none;
2023-01-14 12:21:09 +01:00
background: transparent;
backdrop-filter: none;
}
.appname {
font-size: 48px;
}
2023-10-14 01:43:36 +02:00
.appdesc {
2023-01-14 12:21:09 +01:00
opacity: .6;
margin: 2px 12px;
}
2023-10-14 01:43:36 +02:00
.buttons {
box-shadow: 2px 2px 8px #0002;
display: flex;
margin: 16px auto 0;
2023-05-09 22:02:54 +02:00
backdrop-filter: var(--blur);
border-radius: 24px;
max-width: 480px;
2023-01-15 17:22:09 +01:00
background: var(--background);
padding: 2px;
justify-content: space-between;
2023-01-15 14:24:40 +01:00
transition: background .3s;
}
2023-10-14 01:43:36 +02:00
.buttons > div {
padding: 16px;
margin: 2px;
cursor: pointer;
border-radius: 20px;
2023-01-14 12:21:09 +01:00
width: 100%;
2023-01-15 14:24:40 +01:00
transition: background .2s;
}
2023-10-14 01:43:36 +02:00
.buttons > div:hover {
2023-01-15 17:22:09 +01:00
background: var(--hover);
}
2023-10-14 01:43:36 +02:00
.buttons .text {
margin-top: -2px;
}
.back {
box-shadow: 2px 2px 8px #0002;
position: relative;
width: 64px;
height: 64px;
border-radius: 24px;
2023-01-15 17:22:09 +01:00
background: var(--background);
margin: 20px;
2023-05-09 22:02:54 +02:00
backdrop-filter: var(--blur);
transition: background .2s;
}
.back .icon {
margin: 4px;
width: 56px;
height: 56px;
cursor: pointer;
border-radius: 20px;
2023-01-15 14:24:40 +01:00
transition: background .2s;
}
2023-10-14 01:43:36 +02:00
.back .icon:hover {
2023-01-15 17:22:09 +01:00
background: var(--hover);
}
2023-10-14 01:43:36 +02:00
.back .icon:after {
content: "chevron_left";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.boxes {
display: flex;
flex: 1 1 0;
flex-wrap: wrap;
}
2023-10-14 01:43:36 +02:00
.box {
min-width: 292px;
flex: 1;
margin: 2px;
border-radius: 20px;
padding: 8px;
display: flex;
align-items: center;
text-align: left;
text-decoration: none;
color: inherit;
2023-01-15 14:24:40 +01:00
transition: background .2s;
}
2023-10-14 01:43:36 +02:00
.box:hover {
2023-01-15 17:22:09 +01:00
background: var(--hover);
}
2023-10-14 01:43:36 +02:00
.box .icon {
font-size: 24px;
padding: 20px;
2023-01-15 17:22:09 +01:00
background: hsl(var(--color), 100%, 89%);
color: hsl(var(--color), 100%, 35%);
border-radius: 100px;
margin: 2px 12px 2px 2px;
}
2023-10-14 01:43:36 +02:00
a.box {
cursor: pointer;
padding: 14px;
}
2023-10-14 01:43:36 +02:00
.box img {
width: 64px;
height: 64px;
object-fit: cover;
margin-right: 12px;
}
2023-10-14 01:43:36 +02:00
.box .name {
font-size: 18px;
}
2023-10-14 01:43:36 +02:00
.box .desc {
2023-01-14 12:21:09 +01:00
opacity: .6;
}
2023-10-14 01:43:36 +02:00
.header {
display: flex;
align-items: center;
margin: 20px 20px 16px;
}
2023-10-14 01:43:36 +02:00
.header .icon {
margin-top: 1px;
margin-right: 10px;
}
2023-10-14 01:43:36 +02:00
.header .text {
font-size: 26px;
}
.settings {
2023-10-14 01:43:36 +02:00
margin: 32px auto;
2023-05-09 21:29:23 +02:00
max-width: 800px;
}
2023-10-14 01:43:36 +02:00
.setting {
2023-01-15 17:22:09 +01:00
background: var(--bg2);
2023-05-09 21:32:51 +02:00
margin: 8px;
2023-05-09 21:29:23 +02:00
padding: 20px;
display: flex;
cursor: pointer;
border-radius: 16px;
2023-05-09 21:29:23 +02:00
align-items: center;
text-align: left;
2023-05-09 21:29:23 +02:00
transition: background .4s;
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting .icon {
margin-right: 14px;
font-size: 28px;
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting .name {
font-size: 16px;
2023-03-17 19:20:15 +01:00
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting .desc {
opacity: .6;
2023-05-09 21:32:51 +02:00
margin-right: 16px;
2023-05-09 21:29:23 +02:00
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting .switch {
position: relative;
width: 44px;
2023-05-09 21:32:51 +02:00
min-width: 44px;
2023-05-09 21:29:23 +02:00
height: 24px;
background: #8886;
border-radius: 100px;
margin: 0 4px 0 auto;
transition: border .4s, background .4s;
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting .switch:after {
content: "";
position: absolute;
width: 16px;
height: 16px;
background: var(--color);
left: 4px;
top: 50%;
border-radius: 10px;
transform: translateY(-50%);
transition: left .2s, background .4s;
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting.checked .switch {
background-color: #68F;
border-color: #68F;
2023-01-15 14:12:55 +01:00
}
2023-10-14 01:43:36 +02:00
2023-05-09 21:29:23 +02:00
.setting.checked .switch:after {
left: calc(100% - 20px);
}
2023-01-18 17:24:34 +01:00
.warn {
2023-10-14 01:43:36 +02:00
margin: 24px 0 -8px;
2023-01-18 17:24:34 +01:00
color: #F60;
}
2023-10-14 01:43:36 +02:00
.warn.hidden {
2023-01-18 17:24:34 +01:00
display: none;
2023-10-14 01:43:36 +02:00
}