mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
148 lines
3 KiB
CSS
148 lines
3 KiB
CSS
/*
|
|
* !!! WARNING !!!
|
|
* Editing this file may cause your instance to break for EVERYONE.
|
|
* Please know what you're doing and test it out with regular user custom CSS.
|
|
* With that said, GLHF!
|
|
* This may eventuallly be replaced with a function in the admin panel.
|
|
*/
|
|
|
|
/*
|
|
* Change this for border-radius values
|
|
*/
|
|
|
|
/* Jormungandr
|
|
:root {
|
|
--radius-xxs: 10px;
|
|
--radius-xss: 3px; //
|
|
--radius-xs: 10px;
|
|
--radius-x: 10px;
|
|
--radius-s: 10px;
|
|
--radius-sm: 10px;
|
|
--radius-m: 10px;
|
|
--radius: 10px;
|
|
--radius-md: 10px;
|
|
--radius-lg: 10px;
|
|
--radius-xl: 10px;
|
|
--radius-big: 10px;
|
|
--radius-ellipse: 10px;
|
|
--radius-full: 10px;
|
|
--radius-icon: 0.3rem; //
|
|
--radius-avatar: 2em; //
|
|
--radius-online: 120%; //
|
|
--radius-avatar-2: 20%; //
|
|
--radius-avatar-3: 75% //
|
|
--radius-common: 50% //
|
|
}
|
|
*/
|
|
|
|
/* Default Iceshrimp
|
|
:root {
|
|
--radius-xxs: 2px;
|
|
--radius-xss: 3px; //
|
|
--radius-xs: 4px;
|
|
--radius-x: 5px;
|
|
--radius-s: 6px;
|
|
--radius-sm: 8px;
|
|
--radius-m: 10px;
|
|
--radius: 12px;
|
|
--radius-md: 16px;
|
|
--radius-lg: 24px;
|
|
--radius-xl: 32px;
|
|
--radius-big: 100px;
|
|
--radius-ellipse: 999px;
|
|
--radius-full: 100%;
|
|
--radius-icon: 0.3rem; //
|
|
--radius-avatar: 2em; //
|
|
--radius-online: 120%; //
|
|
--radius-avatar-2: 20%; //
|
|
--radius-avatar-3: 75% //
|
|
--radius-common: 50% //
|
|
}
|
|
*/
|
|
|
|
|
|
/** Sophie/Zvava CSS https://zvava.org **/
|
|
/* floating mobile navbar - */
|
|
#iceshrimp_app {
|
|
--thePadding: 12px;
|
|
}
|
|
|
|
@media (min-width: 401px) {
|
|
#iceshrimp_app {
|
|
--thePadding: 24px;
|
|
}
|
|
}
|
|
|
|
#iceshrimp_app>.isMobile::after {
|
|
content: "";
|
|
background: var(--bg);
|
|
display: block;
|
|
width: 100vw;
|
|
height: 28px;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 9;
|
|
}
|
|
|
|
#iceshrimp_app>.isMobile>.postButton {
|
|
bottom: 103px;
|
|
right: calc(var(--thePadding) / 2);
|
|
}
|
|
|
|
#iceshrimp_app>.isMobile>.buttons {
|
|
background: var(--panelHighlight) !important;
|
|
border-radius: 10px;
|
|
margin: 0 var(--thePadding) 18px;
|
|
width: calc(100vw - var(--thePadding) * 2) !important;
|
|
box-shadow: rgba(0, 0, 0, .5) 0 0 25px;
|
|
}
|
|
|
|
#iceshrimp_app>.isMobile>.buttons>.button {
|
|
height: 3.33rem !important;
|
|
}
|
|
|
|
#iceshrimp_app>.isMobile>.buttons>.button:hover>.button-wrapper,
|
|
.isMobile>.buttons>.button:active>.button-wrapper {
|
|
background: var(--accentedBg);
|
|
}
|
|
|
|
#iceshrimp_app>.isMobile>.buttons>.button>.button-wrapper.on {
|
|
transform: unset !important;
|
|
}
|
|
|
|
|
|
/* deck mode fixes */
|
|
#iceshrimp_app>.mk-deck .columns section header {
|
|
border-bottom-left-radius: var(--radius);
|
|
border-bottom-right-radius: var(--radius);
|
|
margin-bottom: .4em;
|
|
}
|
|
|
|
#iceshrimp_app>.mk-deck .columns section header+div {
|
|
border-top-left-radius: var(--radius);
|
|
border-top-right-radius: var(--radius);
|
|
}
|
|
|
|
.list .notes button.muted { display: none; } /* hide muted posts in tl */
|
|
|
|
._shadow, #iceshrimp_app > div > ._button { --shadow: rgba(0, 0, 0, 0.5); } /* add missing shadows */
|
|
|
|
/* navbar stuff? */
|
|
header>.body>.top {
|
|
padding: 1rem 0 !important;
|
|
}
|
|
|
|
header>.body>.bottom {
|
|
padding: .5rem 0 0 !important;
|
|
}
|
|
|
|
header>.body>.middle>.item {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
header.sidebar {
|
|
--navBg: transparent;
|
|
border-inline: .5px solid var(--divider);
|
|
border-left: none;
|
|
}
|