xssbook/public/css/main.css
Tyler Murphy b6fbeb5124 fix seo
2023-02-13 22:41:09 -05:00

434 lines
7.6 KiB
CSS

body {
--primary: #ffffff;
--secondary: #f0f2f5;
--hover: #e4e6e8;
--light: #dadde1;
--mild: #dadde1;
--medium: #606770;
--extreme: #1d2129;
--logo: #1778f2;
--error: #f02849;
--success: #30ab5a;
--text: #000000;
--banner: #949494;
--popup: #ffffffcc;
}
body {
background-color: var(--primary);
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
color: var(--text);
}
@font-face {
font-family: facebook;
src: url("../fonts/facebook.otf") format("opentype");
font-display: swap;
}
@font-face {
font-family: sfpro;
src: url("../fonts/sfpro.otf") format("opentype");
font-display: swap;
}
@font-face {
font-family: sfprobold;
src: url("../fonts/sfprobold.otf") format("opentype");
font-display: swap;
}
.logo {
color: var(--logo);
font-size: 3.5em;
font-family: facebook;
}
.text {
font-family: sfpro;
font-size: 28px;
font-weight: normal;
line-height: 32px;
width: 500px;
}
.btext {
font-family: sfpro;
color: var(--logo)
}
.bltext {
color: var(--logo)
}
.error {
font-family: sfpro;
color: var(--error);
padding-top: 10px;
margin-bottom: -10px;
font-size: 15px;
}
.gtext {
font-family: sfpro;
color: var(--medium)
}
.label {
font-family: sfpro;
color: var(--medium);
font-size: 15px;
padding-top: 10px;
padding-left: 10px;
}
.stext {
font-family: sfpro;
font-size: 10px;
}
.mtext {
font-family: sfpro;
font-size: 15px;
}
.ltext {
font-family: sfpro;
font-size: 22px;
}
.ctext {
display: block;
font-family: sfpro;
text-align: center;
}
a {
color: inherit;
text-decoration: none;
cursor: pointer;
}
p {
padding: 0;
margin: 0;
}
span {
padding: 0;
margin: 0;
}
footer {
bottom: 0;
height: 400px;
background-color: var(--primary);
}
input {
flex: 1;
font-family: sfpro;
background-color: var(--primary);
padding: 10px;
margin: 10px;
margin-bottom: 0;
border-radius: 5px;
border: 1px solid var(--light);
color: var(--extreme);
font-size: 18px;
}
.radiomenu {
display: flex;
flex-wrap: wrap;
}
.radiomenu span {
display: inline-block;
position: relative;
font-family: sfpro;
background-color: var(--primary);
margin: 10px;
margin-bottom: 0;
border-radius: 5px;
border: 1px solid var(--light);
color: var(--extreme);
font-size: 15px;
flex: 1 0 auto;
}
.radiomenu span label {
padding: 10px;
display: block;
box-sizing: border-box;
width: auto;
color: var(--extreme);
}
[type="radio"] {
height: 40px;
margin: 0;
position: absolute;
right: 10px;
top: 0;
text-align: left;
}
select {
all: unset;
flex: 1;
font-family: sfpro;
background-color: var(--primary);
padding: 10px;
margin: 10px;
margin-bottom: 0;
border-radius: 5px;
border: 1px solid var(--light);
color: var(--extreme);
font-size: 15px;
background-image: url("/image/arrow.png");
background-position: right 10px center;
background-repeat: no-repeat;
background-size: 15px;
}
input:focus {
border: 1px solid var(--logo);
}
.primary {
all: unset;
font-family: sfpro;
background-color: var(--logo);
color: white;
padding: 10px;
margin: 20px;
border-radius: 5px;
padding-bottom: 15px;
text-align: center;
cursor: pointer;
}
.success {
all: unset;
font-family: sfpro;
background-color: var(--success);
color: white;
padding: 10px;
margin-left: 10px;
margin-right: 10px;
border-radius: 5px;
text-align: center;
cursor: pointer;
}
.bold {
font-family: sfprobold;
}
.line {
width: calc(100% - 40px);
margin-left: 20px;
margin-right: 20px;
border-bottom: 1px solid var(--light);
margin-bottom: 10px;
margin-top: 10px;
z-index: 2;
max-width: 100%;
}
.fullline {
width: calc(100%);
border-bottom: 1px solid var(--light);
margin-bottom: 10px;
margin-top: 10px;
z-index: 2;
max-width: 100%;
}
footer {
text-align: center;
font-family: sfpro;
padding-top: 30px;
padding-bottom: 30px;
font-size: 13px;
color: #737373;
}
#popup {
position: absolute;
width: 100vw;
height: 100vh;
background-color: var(--popup);
margin: 0;
padding: 0;
top: 0;
display: flex;
justify-content: center;
align-items: center;
}
.row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.row input {
width: 50%
}
.close {
position: absolute;
z-index: 2;
width: 20px;
height: 20px;
right: 12px;
top: 12px;
cursor: pointer;
background-size: 20px;
background-position: right;
background-image: url('/image/close.png');
}
.hidden {
visibility: hidden;
pointer-events: none;
display: none !important;
}
.pfp, .pfp img {
display: block;
width: 2.5em;
height: 2.5em;
border-radius: 3em;
background-color: var(--hover);
flex-shrink: 0;
image-rendering: crisp-edges;
object-fit: cover;
}
.nb {
margin-bottom: 0;
}
form {
all: unset;
border-radius: 10px;
margin-left: 10px;
width: 100%;
}
#load, .cload {
width: 100%;
display: flex;
justify-content: center;
padding-bottom: 20px;
cursor: pointer;
}
#load span:hover, .cload span:hover {
border-bottom: var(--medium) 1px solid;
}
@media (prefers-color-scheme: dark) {
body {
--primary: #242424 !important;
--secondary: #181818 !important;
--hover: #1b1b1b !important;
--light: #3e4042 !important;
--mild: #1b1b1b !important;
--medium: #e2ded6 !important;
--extreme: #e2ded6 !important;
--logo: #1778f2 !important;
--error: #f02849 !important;
--success: #30ab5a !important;
--text: #ffffff !important;
--banner: #6b6b6b !important;
--popup: #242424cc !important;
}
body .icons {
filter: invert(100%) !important;
}
body .blue {
filter: invert(39%) sepia(57%) saturate(200%) saturate(200%)
saturate(200%) saturate(200%) saturate(200%) saturate(147.75%)
hue-rotate(202deg) brightness(97%) contrast(96%) !important;
}
body select {
background-color: var(--secondary) I !important;
color: var(--text) !important;
border: 1px solid var(--light) !important;
}
input:focus {
outline: none;
}
.changeavatar {
filter: invert(100%) !important;
background-color: #bbbbbb !important;
}
.changebanner {
filter: invert(100%) !important;
background-color: #bbbbbb !important;
}
}
.fullwidth {
width: 100%;
display: flex;
justify-content: center;
}
.loading {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.loading div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 3px solid var(--text);
border-radius: 50%;
animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: var(--text) transparent transparent transparent;
}
.loading div:nth-child(1) {
animation-delay: -0.45s;
}
.loading div:nth-child(2) {
animation-delay: -0.3s;
}
.loading div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}