NDOJ/resources/submission.scss

353 lines
5.7 KiB
SCSS
Raw Normal View History

@import "vars";
2020-01-21 06:35:58 +00:00
.info-float {
position: sticky;
top: 60px;
width: 20%;
}
.submission-row {
display: flex;
transition: background-color linear 0.2s;
2024-02-03 04:23:05 +00:00
margin-bottom: 15px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
align-items: center;
padding: 10px;
background: white;
2020-01-21 06:35:58 +00:00
.sub-result {
2024-02-03 04:23:05 +00:00
display: flex;
align-items: center;
font-size: 0.9em;
font-weight: 600;
gap: 10px;
2020-01-21 06:35:58 +00:00
.state {
2024-02-03 04:23:05 +00:00
padding: 5px 10px;
border-radius: 15px;
}
.language {
background-color: #e1e1e1;
border-radius: 5px;
padding: 2px 8px;
2020-01-21 06:35:58 +00:00
}
.score {
2024-02-03 04:23:05 +00:00
font-size: 1.2em;
2020-01-21 06:35:58 +00:00
}
}
2024-02-03 04:23:05 +00:00
.sub-details {
flex-grow: 1;
overflow: hidden;
}
2020-01-21 06:35:58 +00:00
.sub-info {
flex: 1;
2024-02-03 04:23:05 +00:00
display: flex;
gap: 5px;
font-size: 1.2em;
margin-bottom: 5px;
2020-01-21 06:35:58 +00:00
.name {
font-weight: 700;
2024-02-03 04:23:05 +00:00
}
.name:hover {
text-decoration: underline;
2020-01-21 06:35:58 +00:00
}
}
.sub-testcase {
color: #555;
white-space: nowrap;
}
.sub-prop {
a {
white-space: nowrap;
}
}
.sub-usage {
2024-02-03 04:23:05 +00:00
margin-left: auto;
2020-01-21 06:35:58 +00:00
white-space: nowrap;
2024-02-03 04:23:05 +00:00
text-align: right;
display: flex;
flex-direction: column;
gap: 4px;
2020-01-21 06:35:58 +00:00
.time {
font-weight: bold;
}
}
2024-02-03 04:23:05 +00:00
.sub-user-img {
flex-shrink: 0;
width: 50px;
height: 50px;
background-color: #ddd;
border-radius: 50%;
overflow: hidden;
margin-right: 15px;
img {
width: 100%;
height: auto;
}
}
2020-01-21 06:35:58 +00:00
}
.sub-prop .fa {
display: none;
}
label[for="language"], label[for="status"] {
padding-bottom: 0.25em;
display: block;
}
#language {
margin-top: 0.5em;
width: 100%;
}
#status {
width: 100%;
}
#statistics-table tr:not(:first-child) td {
border-top: 1px solid white !important;
}
#statistics-table tr:not(:last-child) td:not(:last-child) {
border-right: 1px solid white;
}
#content-left.submission {
flex: 70%;
}
#content-right.submission {
flex: 12%;
min-width: initial;
max-width: 100%;
padding-top: 0;
}
2022-06-06 16:36:35 +00:00
@media(max-width: 799px) {
2024-02-05 04:33:21 +00:00
.submission-row {
.sub-prop {
.label {
display: none;
}
.fa {
display: inline-block;
}
2020-01-21 06:35:58 +00:00
}
2024-02-05 04:33:21 +00:00
.sub-user-img {
display: none;
2020-01-21 06:35:58 +00:00
}
}
#fake-info-float {
display: none;
}
#content-left.submission {
flex: 100%;
}
#content-right.submission {
display: none;
}
}
.submission-contest {
color: #555;
}
.statistics-table {
.status {
font-weight: bold;
text-align: left;
}
.count {
color: black;
}
}
#test-cases {
font-size: 1.1em;
2020-01-21 06:35:58 +00:00
.batch-cases {
margin: 0;
padding-left: 1em;
padding-bottom: 3px;
padding-top: 3px;
}
// .batch-cases .case-row td b {
2023-02-08 05:14:48 +00:00
// font-weight: 500;
// }
2020-01-21 06:35:58 +00:00
.case-info {
margin: 0;
padding: 1em;
2020-01-21 06:35:58 +00:00
border: 1px solid #2980b9;
border-left-width: .5em;
border-radius: 4px;
color: #222;
}
.case-output {
margin: 0;
margin-top: 1em;
box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
margin: 1rem 0;
padding: 1em 1em;
border-radius: .28571429rem;
border: 1px solid rgba(34,36,38,.15);
font-family: Consolas;
}
2021-05-26 17:10:19 +00:00
.testcases-table {
width: 100%;
2022-08-19 03:47:41 +00:00
border: groove;
border-radius: 0.5em;
border-spacing: 0;
thead td:first-child {
border-top-left-radius: 0.5em;
}
thead td:last-child {
border-top-right-radius: 0.5em;
}
td {
padding: 0.6em 0.8em;
width: 18.75%;
2023-02-08 05:14:48 +00:00
}
.case-row td:nth-child(2) {
width: 25%;
}
.case-row:hover {
cursor: pointer;
}
2020-01-21 06:35:58 +00:00
}
.toggle {
font-weight: normal;
}
2020-01-21 06:35:58 +00:00
.case-feedback {
vertical-align: top;
}
.case-ext-feedback {
width: 50%;
}
}
#overall-row:hover {
cursor: default !important;
}
.overall-result-AC {
background: linear-gradient(45deg, #a8ff78, #78ffd6);
}
.overall-result-WA {
2023-02-08 05:14:48 +00:00
background: linear-gradient(45deg, yellow, red);
}
.overall-result-TLE {
background: linear-gradient(45deg, #D7DDE8, #757F99);
}
.overall-result-RTE,
.overall-result-MLE {
background: linear-gradient(45deg, #fceabb, #f8b500)
}
.col-title {
font-weight: bold;
}
2020-01-21 06:35:58 +00:00
.case-AC {
color: green;
font-weight: bold;
}
.case-_AC {
color: red;
font-weight: bold;
}
.case-WA {
color: red;
font-weight: bold;
}
.case-TLE, .case-SC {
color: gray;
font-weight: bold;
}
.case-MLE, .case-OLE, .case-RTE, .case-IR {
color: orange;
font-weight: bold;
}
.half-hr {
float: left;
width: 30%;
}
.source-wrap {
.line {
position: relative;
}
.highlighter {
position: absolute;
width: 9999px;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
a:active .line .highlighter {
background: rgba(255, 212, 0, 0.48);
}
}
.submission-info {
text-align: right;
float: right;
.submission-date {
color: gray;
}
}
2022-06-01 05:28:56 +00:00
2022-06-01 20:18:52 +00:00
@media (min-width: 800px) {
.lightbox-submissions {
.lightbox-submissions-time {
padding-right: 1em;
}
td {
padding-right: 0.2em;
font-size: 1.2em;
}
2022-06-01 05:28:56 +00:00
}
2022-06-01 20:18:52 +00:00
}