honey/css/main.css
2023-01-14 12:21:09 +01:00

252 lines
3.9 KiB
CSS

@font-face {
font-family: 'Material Symbols Rounded';
font-style: normal;
font-weight: 500;
src: url(../font/MaterialSymbolsRounded.woff2) format('woff2');
}
body {
background: #EEE;
color: #222;
margin: 0;
font-family: Quicksand;
font-weight: bold;
user-select: none;
font-size: 14px;
-webkit-tap-highlight-color: transparent;
}
::-webkit-scrollbar {
display: none;
}
a {
color: #44F;
}
body.init * {
transition: none !important;
}
.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;
}
#background img {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
object-fit: cover;
transition: all .45s !important;
}
#background .scaled {
transform: scale(1.14);
}
#background.dark > img:last-child {
opacity: 0;
transform: scale(1);
}
#background:not(.dark) > img:first-child {
transform: scale(1);
}
.unloaded {
opacity: 0;
transform: scale(1) !important;
}
.main {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.appicon {
width: 192px;
height: 192px;
object-fit: cover;
}
.page {
position: fixed;
top: 0;
left: 50%;
width: 100%;
max-width: 920px;
height: 100vh;
transform: translateX(-50%);
overflow-y: scroll;
transition: all .4s;
}
.home.page {
top: 50%;
left: 50%;
width: 100%;
height: auto;
overflow: hidden;
transform: translate(-50%, -50%);
}
.page.hidden {
top: 320px;
visibility: hidden;
opacity: 0;
}
.home.page.hidden {
top: calc(50% - 72px);
}
.wrapper {
box-shadow: 2px 2px 8px #0003;
background: #EEE8;
padding: 3px;
backdrop-filter: blur(16px);
border-radius: 24px;
margin: -4px 12px 16px;
text-align: center;
overflow: hidden;
min-width: 340px;
}
.home .wrapper {
box-shadow: none;
background: transparent;
backdrop-filter: none;
}
.appname {
font-size: 48px;
}
.appdesc {
opacity: .6;
margin: 2px 12px;
}
.appname.about {
font-size: 36px;
}
.buttons {
box-shadow: 2px 2px 8px #0002;
display: flex;
margin: 16px auto 0;
backdrop-filter: blur(16px);
border-radius: 24px;
max-width: 480px;
background: #EEE8;
padding: 2px;
justify-content: space-between;
transition: background .4s;
}
.buttons > div {
padding: 16px;
margin: 2px;
cursor: pointer;
border-radius: 20px;
width: 100%;
transition: all .2s;
}
.buttons > div:hover {
background: #0001;
}
.buttons .text {
margin-top: -2px;
}
.back {
box-shadow: 2px 2px 8px #0002;
position: relative;
width: 64px;
height: 64px;
border-radius: 24px;
background: #EEE8;
margin: 20px;
backdrop-filter: blur(16px);
}
.back .icon {
margin: 4px;
width: 56px;
height: 56px;
cursor: pointer;
border-radius: 20px;
transition: all .2s;
}
.back .icon:hover {
background: #0001;
}
.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;
}
.static {
margin: 24px 6px 16px;
}
.static .box:hover {
background: transparent;
}
.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;
transition: all .2s;
}
.box:hover {
background: #0001;
}
.box .icon {
font-size: 24px;
padding: 20px;
background: hsl(var(--color), 100%, 90%);
color: hsl(var(--color), 100%, 35%);
border-radius: 100px;
margin: 2px 12px 2px 2px;
}
a.box {
cursor: pointer;
padding: 14px;
}
.box img {
width: 64px;
height: 64px;
object-fit: cover;
margin-right: 12px;
}
.box .name {
font-size: 18px;
}
.box .desc {
opacity: .6;
}
.header {
display: flex;
align-items: center;
margin: 20px 20px 16px;
}
.header .icon {
margin-top: 1px;
margin-right: 10px;
}
.header .text {
font-size: 26px;
}