gridwar-classic/static/gridwar.css
2025-01-15 12:28:57 -05:00

291 lines
No EOL
3.9 KiB
CSS

:root {
--dark-1: #2b2f36;
--dark-2: #d8d8d8;
--light-1: #ffffff;
--light-2: #f8f8f8;
--red-1: rgb(245, 108, 108);
--purple-1: rgb(187, 112, 236);
--blue-1: rgb(112, 169, 235);
--shadow-1: 0px 0px 2px 2px var(--dark-2);
--border-1: solid var(--dark-2) 5px;
font-family: 'Noto Sans';
}
body {
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
background: var(--light-1);
}
a {
color: var(--blue-1);
text-decoration: none;
}
input:not([type='file']):not([type='checkbox']),
textarea {
border: 0;
border: solid var(--dark-2) 2px;
border-radius: 5px;
font-size: 0.8rem;
padding: 0.5rem;
width: 200px;
margin: 10px;
}
#content {
height: 100vh;
width: 100vw;
overflow-y: auto;
padding-top: 0px;
}
.button {
min-width: 150px;
height: 30px;
background: var(--red-1);
color: var(--light-1);
font-weight: bold;
}
.button a {
color: white;
}
.area,
input:not([type='file']),
textarea {
border: var(--border-1);
}
textarea,
.button,
#content,
.wrapper,
.postie {
display: flex;
flex-direction: column;
}
input:not([type='file']),
.area {
display: inline-block;
}
.area,
input:not([type='file']),
textarea,
.button {
border-radius: 10px;
padding: 5px;
justify-content: center;
}
.header div {
padding: 10px;
}
#content,
.button {
text-align: center;
}
#content {
align-items: center;
}
.area {
width: 500px;
min-height: 175px;
}
.area,
.button,
.header {
margin: 5px;
}
.header.header-first>.post,
.header.header-last>.post {
width: min(500px, 90vw);
}
.header {
position: sticky;
font-weight: bold;
}
.header.header-first {
top: 0;
z-index: 10;
}
.header.header-last {
position: absolute;
bottom: 0;
z-index: 10;
}
.header .menu,
.dropdown {
border: none;
background: var(--blue-1);
display: flex;
align-items: center;
border-radius: 10px;
}
.header a {
color: var(--light-1);
height: 1.5em;
display: flex;
align-items: center;
justify-content: center;
}
.menu {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.header span {
color: var(--light-1);
}
.dropdown {
position: absolute;
margin-top: 3em;
margin-left: 0px;
background: var(--purple-1);
color: inherit;
width: 10em;
text-align: center;
justify-content: center;
opacity: 0;
font-size: 0.8em;
height: 0.8em;
transition: 0.3s ease-in-out opacity;
}
a:hover>.dropdown {
opacity: 1;
}
.icon {
width: 2em;
max-height: 2em;
margin: 0.2em;
}
#post-area {
width: 500px;
min-height: 200px;
display: block;
resize: none;
}
.left {
text-align: left;
}
.hwrap,
.area.postie {
display: flex;
justify-content: space-between;
}
.hwrap>span {
display: flex;
align-items: center;
}
form {
text-align: left;
}
.pfp {
background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.7)), var(--img) center / cover
}
#grid {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
svg text, .header-first, .header-last {
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 1;
}
svg text {
opacity: 0.75;
}
.info {
top: 15px;
left: 15px;
font-weight: bold;
position: absolute;
z-index: 100;
user-select: none;
}
.info2 {
top: 15px;
right: 15px;
font-weight: bold;
position: absolute;
z-index: 100;
user-select: none;
}
svg text {
pointer-events: none;
}
input:not([type='file']):not([type='checkbox'])[type='color'] {
width: 50px;
height: 50px;
}
.postie .icon {
border-radius: 100%;
height: 2em;
object-fit: cover;
}
#content > p {
max-width: 600px;
}