mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 16:38:40 +00:00
Baoshuo
452c2ca12b
Co-authored-by: Wenkuo Yu <82705676+youwike@users.noreply.github.com> Co-authored-by: Baoshuo Ren <47095648+renbaoshuo@users.noreply.github.com>
466 lines
7.7 KiB
CSS
466 lines
7.7 KiB
CSS
/* S2OJ Bootstrap 5 Theme */
|
|
|
|
body {
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
pre {
|
|
tab-size: 4;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.uoj-pre {
|
|
padding: 1em;
|
|
}
|
|
|
|
.uoj-username,
|
|
.uoj-score {
|
|
font-weight: 800;
|
|
text-decoration: none;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
|
|
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
}
|
|
|
|
.uoj-realname {
|
|
font-size: 90%;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h1,
|
|
.h1 {
|
|
/* font-size: 2.5rem; */
|
|
font-size: 2rem;
|
|
}
|
|
|
|
h2,
|
|
.h2 {
|
|
/* font-size: 2rem; */
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
h3,
|
|
.h3 {
|
|
/* font-size: 1.75rem; */
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
h4,
|
|
.h4 {
|
|
/* font-size: 1.5rem; */
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
h5,
|
|
.h5 {
|
|
/* font-size: 1.25rem; */
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
h6,
|
|
.h6 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-inline .form-control {
|
|
display: inline-block;
|
|
width: auto;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-right: -5px;
|
|
margin-left: -5px;
|
|
}
|
|
|
|
.form-row > .col {
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.uoj-difficulty {
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.uoj-table > tbody > tr:last-child,
|
|
.uoj-table > tbody > tr:last-child > td {
|
|
border-bottom-color: transparent;
|
|
}
|
|
|
|
.uoj-table > thead > tr:first-child,
|
|
.uoj-table > thead > tr:first-child > td {
|
|
border-top-color: transparent;
|
|
}
|
|
|
|
.uoj-table > thead > tr > th:first-child,
|
|
.uoj-table > tbody > tr > td:first-child {
|
|
border-left-color: transparent;
|
|
}
|
|
|
|
.uoj-table > thead > tr > th:last-child,
|
|
.uoj-table > tbody > tr > td:last-child {
|
|
border-right-color: transparent;
|
|
}
|
|
|
|
.uoj-click-zan-block {
|
|
display: inline-block;
|
|
min-width: 100px;
|
|
text-align: center;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.uoj-click-zan-up,
|
|
.uoj-click-zan-down,
|
|
.uoj-click-zan-cnt {
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.uoj-click-zan-block-cur-up .uoj-click-zan-up {
|
|
color: green;
|
|
font-weight: 700;
|
|
}
|
|
.uoj-click-zan-block-cur-down .uoj-click-zan-down {
|
|
color: red;
|
|
font-weight: 700;
|
|
}
|
|
.uoj-click-zan-block-cur-down .uoj-click-zan-up,
|
|
.uoj-click-zan-block-cur-up .uoj-click-zan-down {
|
|
color: gray;
|
|
}
|
|
|
|
.uoj-click-zan-block-positive .uoj-click-zan-cnt {
|
|
color: green;
|
|
}
|
|
.uoj-click-zan-block-neutral .uoj-click-zan-cnt {
|
|
color: gray;
|
|
}
|
|
.uoj-click-zan-block-negative .uoj-click-zan-cnt {
|
|
color: red;
|
|
}
|
|
|
|
.uoj-submission-result-item {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.uoj-status-text {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.card-uoj-accepted > .card-header:hover,
|
|
.card-uoj-accepted > div.card-header > div > .uoj-status-text {
|
|
color: #25ad40;
|
|
}
|
|
|
|
.card-uoj-acceptable-answer > .card-header:hover,
|
|
.card-uoj-acceptable-answer > div.card-header > div > .uoj-status-text {
|
|
color: #01bab2;
|
|
}
|
|
|
|
.card-uoj-tle > .card-header:hover,
|
|
.card-uoj-tle > div.card-header > div > .uoj-status-text {
|
|
color: #f4a460;
|
|
}
|
|
|
|
.card-uoj-wrong > .card-header:hover,
|
|
.card-uoj-wrong > div.card-header > div > .uoj-status-text {
|
|
color: #ff4f4f;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 1.75em;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
padding: 1em;
|
|
background-color: rgba(var(--bs-light-rgb));
|
|
}
|
|
|
|
.markdown-body table th[align='left'] {
|
|
text-align: left;
|
|
}
|
|
|
|
.markdown-body table th[align='center'] {
|
|
text-align: center;
|
|
}
|
|
|
|
.markdown-body table th[align='right'] {
|
|
text-align: right;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
padding: 0 1em;
|
|
color: #57606a;
|
|
border-left: 0.25em solid #d0d7de;
|
|
}
|
|
|
|
form.uoj-bs4-form-inline {
|
|
display: inline-block;
|
|
margin-right: 0.3em;
|
|
}
|
|
|
|
form.uoj-bs4-form-narrow label.col-sm-2 {
|
|
max-width: 100% !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
form.uoj-bs4-form-narrow div.col-sm-3 {
|
|
max-width: 100% !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
form.form-horizontal {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
form.uoj-bs4-form-compressed {
|
|
margin: 12px 0;
|
|
}
|
|
|
|
form.uoj-bs4-form-compressed div.form-group {
|
|
display: inline-block;
|
|
width: 24em;
|
|
}
|
|
|
|
form.uoj-bs4-form-compressed div.form-group label.col-sm-2 {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
width: 6em;
|
|
padding: 0;
|
|
}
|
|
|
|
form.uoj-bs4-form-compressed div.form-group div.col-sm-3 {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
width: 16em;
|
|
}
|
|
|
|
form.uoj-bs4-form-compressed div.text-center,
|
|
form.uoj-bs4-form-compressed div.text-compressed,
|
|
form.uoj-bs4-form-compressed button {
|
|
display: inline-block;
|
|
}
|
|
|
|
form.uoj-bs4-form-compressed button {
|
|
position: relative;
|
|
top: -6px;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.uoj-ac-problems-list li {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.uoj-ac-problems-list li {
|
|
width: 18em;
|
|
}
|
|
}
|
|
|
|
.uoj-ac-problems-list {
|
|
padding-top: 10px;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.uoj-ac-problems-list a {
|
|
min-height: 60px;
|
|
}
|
|
|
|
.uoj-ac-problems-list-item:hover {
|
|
color: var(--bs-nav-link-color) !important;
|
|
background-color: #eeeeee70;
|
|
}
|
|
|
|
/* Comments */
|
|
|
|
.comt {
|
|
}
|
|
|
|
.comtposterbox {
|
|
text-align: center;
|
|
}
|
|
.comtbox {
|
|
width: 100%;
|
|
}
|
|
.comtbox1 {
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
min-height: 80px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.comtbox2 {
|
|
text-align: right;
|
|
}
|
|
.comtbox3 {
|
|
display: inline-block;
|
|
margin-right: 5px;
|
|
}
|
|
.comtbox4 {
|
|
display: inline-block;
|
|
}
|
|
.comtbox5 {
|
|
background-image: linear-gradient(to bottom, #f5f5f5 0, #fafafa 100%);
|
|
background-repeat: repeat-x;
|
|
border-color: #dcdcdc;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05),
|
|
0 1px 0 rgba(255, 255, 255, 0.1);
|
|
padding: 9px;
|
|
border-radius: 3px;
|
|
|
|
min-height: 20px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid #e3e3e3;
|
|
|
|
margin-top: 10px;
|
|
}
|
|
.comtbox6 {
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
.comtbox7 {
|
|
background-image: linear-gradient(to bottom, #f5f5f5 0%, #fafafa 100%);
|
|
background-repeat: repeat-x;
|
|
border-color: #dcdcdc;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05),
|
|
0 1px 0 rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
|
|
margin-left: 50px;
|
|
margin-top: 10px;
|
|
margin-bottom: 2px;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
padding-top: 10px;
|
|
white-space: nowrap;
|
|
padding-bottom: 10px;
|
|
border: 1px solid #e3e3e3;
|
|
|
|
text-align: left;
|
|
}
|
|
.comtbox8 {
|
|
background-image: linear-gradient(to bottom, #ffffff 100%, #fafafa 0%);
|
|
background-repeat: repeat-x;
|
|
border-color: #dcdcdc;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05),
|
|
0 1px 0 rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
|
|
margin-left: 50px;
|
|
margin-top: 10px;
|
|
margin-bottom: 2px;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
padding-top: 10px;
|
|
white-space: nowrap;
|
|
padding-bottom: 10px;
|
|
border: 1px solid #e3e3e3;
|
|
|
|
text-align: left;
|
|
}
|
|
|
|
.uoj-standings-table tr td:first-child,
|
|
.uoj-standings-table tr th:first-child {
|
|
border-left-width: 0px;
|
|
}
|
|
|
|
.uoj-standings-table tr td:last-child,
|
|
.uoj-standings-table tr th:last-child {
|
|
border-right-width: 0px;
|
|
}
|
|
|
|
.uoj-standings-table > thead > tr:first-child {
|
|
border-top-width: 0px;
|
|
}
|
|
|
|
.uoj-standings-table > tbody > tr:last-child {
|
|
border-bottom-width: 0px;
|
|
}
|
|
|
|
/* Timeline */
|
|
|
|
.list-group.timeline {
|
|
margin: auto;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.list-group.timeline {
|
|
display: block;
|
|
max-width: 90%;
|
|
position: relative;
|
|
}
|
|
|
|
.list-group.timeline:before {
|
|
content: ' ';
|
|
background: rgba(var(--bs-secondary-rgb), 0.35);
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: -17.5px;
|
|
width: 2px;
|
|
height: 100%;
|
|
z-index: 400;
|
|
}
|
|
|
|
.list-group.timeline > .list-group-item:before {
|
|
content: ' ';
|
|
background: white;
|
|
display: inline-block;
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
border: 3px solid var(--bs-info);
|
|
left: -25px;
|
|
width: 15px;
|
|
height: 15px;
|
|
z-index: 500;
|
|
}
|
|
}
|
|
|
|
.CodeMirror-linenumber {
|
|
font-size: 14px !important;
|
|
}
|
|
|
|
.uoj-back-btn {
|
|
--bs-btn-hover-bg: #d3d4d570;
|
|
--bs-btn-hover-border-color: transparent;
|
|
}
|