xssbook/public/css/main.css

430 lines
7.5 KiB
CSS
Raw Normal View History

2023-01-26 22:29:16 +00:00
body {
2023-01-30 23:55:36 +00:00
--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);
2023-01-31 13:47:18 +00:00
width: 100%;
height: 100%;
2023-01-26 22:29:16 +00:00
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
2023-01-30 23:55:36 +00:00
color: var(--text);
2023-01-26 22:29:16 +00:00
}
@font-face {
font-family: facebook;
src: url("../fonts/facebook.otf") format("opentype");
}
@font-face {
font-family: sfpro;
src: url("../fonts/sfpro.otf") format("opentype");
}
@font-face {
font-family: sfprobold;
src: url("../fonts/sfprobold.otf") format("opentype");
}
.logo {
2023-01-30 23:55:36 +00:00
color: var(--logo);
2023-01-26 22:29:16 +00:00
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;
2023-01-30 23:55:36 +00:00
color: var(--logo)
}
.bltext {
color: var(--logo)
2023-01-26 22:29:16 +00:00
}
.error {
font-family: sfpro;
2023-01-30 23:55:36 +00:00
color: var(--error);
2023-01-26 22:29:16 +00:00
padding-top: 10px;
margin-bottom: -10px;
font-size: 15px;
}
.gtext {
font-family: sfpro;
2023-01-30 23:55:36 +00:00
color: var(--medium)
2023-01-26 22:29:16 +00:00
}
.label {
font-family: sfpro;
2023-01-30 23:55:36 +00:00
color: var(--medium);
2023-01-26 22:29:16 +00:00
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;
2023-01-30 23:55:36 +00:00
background-color: var(--primary);
2023-01-26 22:29:16 +00:00
}
input {
flex: 1;
font-family: sfpro;
2023-01-30 23:55:36 +00:00
background-color: var(--primary);
2023-01-26 22:29:16 +00:00
padding: 10px;
margin: 10px;
margin-bottom: 0;
border-radius: 5px;
2023-01-30 23:55:36 +00:00
border: 1px solid var(--light);
color: var(--extreme);
2023-01-26 22:29:16 +00:00
font-size: 18px;
}
.radiomenu {
display: flex;
flex-wrap: wrap;
}
.radiomenu span {
display: inline-block;
position: relative;
font-family: sfpro;
2023-01-30 23:55:36 +00:00
background-color: var(--primary);
2023-01-26 22:29:16 +00:00
margin: 10px;
margin-bottom: 0;
border-radius: 5px;
2023-01-30 23:55:36 +00:00
border: 1px solid var(--light);
color: var(--extreme);
2023-01-26 22:29:16 +00:00
font-size: 15px;
flex: 1 0 auto;
}
.radiomenu span label {
padding: 10px;
display: block;
box-sizing: border-box;
width: auto;
2023-01-30 23:55:36 +00:00
color: var(--extreme);
2023-01-26 22:29:16 +00:00
}
[type="radio"] {
height: 40px;
margin: 0;
position: absolute;
right: 10px;
top: 0;
text-align: left;
}
select {
all: unset;
flex: 1;
font-family: sfpro;
2023-01-30 23:55:36 +00:00
background-color: var(--primary);
2023-01-26 22:29:16 +00:00
padding: 10px;
margin: 10px;
margin-bottom: 0;
border-radius: 5px;
2023-01-30 23:55:36 +00:00
border: 1px solid var(--light);
color: var(--extreme);
2023-01-26 22:29:16 +00:00
font-size: 15px;
2023-02-01 03:57:39 +00:00
background-image: url("/image/arrow.png");
2023-01-26 22:29:16 +00:00
background-position: right 10px center;
background-repeat: no-repeat;
background-size: 15px;
}
input:focus {
2023-01-30 23:55:36 +00:00
border: 1px solid var(--logo);
2023-01-26 22:29:16 +00:00
}
.primary {
all: unset;
font-family: sfpro;
2023-01-30 23:55:36 +00:00
background-color: var(--logo);
2023-01-31 03:55:14 +00:00
color: white;
2023-01-26 22:29:16 +00:00
padding: 10px;
margin: 20px;
border-radius: 5px;
padding-bottom: 15px;
text-align: center;
cursor: pointer;
}
.success {
all: unset;
font-family: sfpro;
2023-01-30 23:55:36 +00:00
background-color: var(--success);
2023-01-31 03:55:14 +00:00
color: white;
2023-01-26 22:29:16 +00:00
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;
2023-01-30 23:55:36 +00:00
border-bottom: 1px solid var(--light);
2023-01-26 22:29:16 +00:00
margin-bottom: 10px;
margin-top: 10px;
2023-01-30 23:55:36 +00:00
z-index: 2;
2023-01-31 13:47:18 +00:00
max-width: 100%;
2023-01-26 22:29:16 +00:00
}
.fullline {
width: calc(100%);
2023-01-30 23:55:36 +00:00
border-bottom: 1px solid var(--light);
2023-01-26 22:29:16 +00:00
margin-bottom: 10px;
margin-top: 10px;
2023-01-30 23:55:36 +00:00
z-index: 2;
2023-01-31 13:47:18 +00:00
max-width: 100%;
2023-01-26 22:29:16 +00:00
}
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;
2023-01-30 23:55:36 +00:00
background-color: var(--popup);
2023-01-26 22:29:16 +00:00
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;
2023-02-01 03:57:39 +00:00
background-image: url('/image/close.png');
2023-01-26 22:29:16 +00:00
}
.hidden {
visibility: hidden;
pointer-events: none;
display: none !important;
}
.pfp, .pfp img {
display: block;
width: 2.5em;
height: 2.5em;
border-radius: 3em;
2023-01-30 23:55:36 +00:00
background-color: var(--hover);
2023-01-26 22:29:16 +00:00
flex-shrink: 0;
2023-01-31 03:55:14 +00:00
image-rendering: crisp-edges;
2023-02-02 01:56:09 +00:00
object-fit: cover;
2023-01-26 22:29:16 +00:00
}
.nb {
margin-bottom: 0;
}
form {
all: unset;
border-radius: 10px;
margin-left: 10px;
width: 100%;
}
#load {
width: 100%;
display: flex;
justify-content: center;
padding-bottom: 20px;
}
#load a:hover {
2023-01-30 23:55:36 +00:00
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 {
2023-01-31 03:55:14 +00:00
background-color: var(--secondary) I !important;
color: var(--text) !important;
border: 1px solid var(--light) !important;
}
input:focus {
outline: none;
2023-01-30 23:55:36 +00:00
}
2023-02-01 03:21:19 +00:00
.changeavatar {
filter: invert(100%) !important;
background-color: #bbbbbb !important;
}
.changebanner {
filter: invert(100%) !important;
background-color: #bbbbbb !important;
}
2023-02-02 01:56:09 +00:00
}
.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);
}
}