Files
web/css/rewrite.css
T

223 lines
2.6 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/********** Width & Sizing **********/
.full_width {
width: 100%;
}
.std_width {
width: 70%;
}
.med_width {
width: 40%;
}
.sm_width {
width: 25%;
}
/********** Borders & Outlines **********/
.std_border,
.med_border,
.sm_border {
border-radius: 9px;
}
.std_border {
border: 3px solid black;
}
.med_border {
border: 2px solid black;
}
.sm_border {
border: 1px solid black;
}
.debug {
border: 1px solid red;
}
/********** Rows & Columns **********/
.row {
display: flex;
flex-direction: row;
}
.space_between {
justify-content: space-between;
}
.column {
display: flex;
flex-direction: column;
}
.center {
margin: 0 auto;
align-items: center;
justify-content: center;
}
/********** Margins & Padding **********/
.margin {
margin: 15px;
}
.no_margin {
margin: 0;
}
.top_margin {
margin-top: 15px;
}
.right_margin {
margin-right: 15px;
}
.over_right_margin {
margin-right: 50px;
}
.bottom_margin {
margin-bottom: 15px;
}
.left_margin {
margin-left: 15px;
}
.padding {
padding: 15px;
}
.no_padding {
padding: 0;
}
.top_padding {
padding-top: 15px;
}
.right_padding {
padding-right: 15px;
}
.bottom_padding {
padding-bottom: 15px;
}
.left_padding {
padding-left: 15px;
}
/************ Modals ************/
#stdModal {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
backdrop-filter: blur(20px);
justify-content: center;
align-items: center;
}
#stdModal>* {}
/******** Action Buttons ********/
.circleLayout {
width: 350px;
/* Adjust as needed */
height: 350px;
border-radius: 50%;
/* Important for positioning children */
position: fixed;
bottom: 50px;
right: 50px;
overflow: hidden;
}
.actionButton {
position: absolute;
border-radius: 50%;
width: 75px;
height: 75px;
background-color: orange;
color: black;
}
#actionButton {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#newPost {
top: 50%;
left: 0%;
transform: translate(0%, -50%);
}
#newSpace {
top: 15%;
left: 15%;
transform: translate(-15%, -15%);
}
#filterSort {
top: 0%;
left: 50%;
transform: translate(-50%, 0%);
}
/********** Animations **********/
@view-transition {
navigation: auto;
animation-duration: 1s;
}
::view-transition-old(root) {
animation: fade-out 750ms forwards;
}
::view-transition-new(root) {
animation: fade-in 750ms forwards;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}