NDOJ/resources/contest.scss

296 lines
5 KiB
SCSS
Raw Normal View History

2020-01-21 06:35:58 +00:00
@import "vars";
2023-09-08 16:22:57 +00:00
.list-contest {
2023-09-25 07:12:06 +00:00
box-shadow: 0px 1px 2px lightgrey, 0px 1px 5px lightgrey;
2023-09-08 16:22:57 +00:00
border-radius: 15px;
padding: 20px;
margin-bottom: 20px;
width: 100%;
box-sizing: border-box;
display: flex;
.info-contest:first-child {
margin-right: 15px;
}
.info-contest:nth-child(2) {
margin-right: 5px;
}
.info-contest {
flex: 1;
}
.participate-button {
display: flex;
justify-content: center;
align-items: center;
}
.contest-title {
font-size: 17px;
font-weight: 600;
line-height: 150%;
margin-bottom: 10px;
}
}
2020-01-21 06:35:58 +00:00
#contest-calendar {
border-collapse: collapse;
width: 100%;
th {
border-bottom: 1px solid $border_gray;
&.sun {
border-left: 1px solid $border_gray;
}
&.sun, &.mon, &.tue, &.wed, &.thu, &.fri, &.sat {
font-size: 0.95em;
border-right: 1px solid $border_gray;
background: $background_light_gray;
}
}
td {
height: 110px;
width: 170px;
color: #000;
vertical-align: top;
text-align: right;
font-size: 0.75em;
border-right: 1px solid $border_gray;
border-bottom: 1px solid $border_gray;
transition-duration: 0.2s;
.num {
font-size: 1.1em;
font-weight: bold;
display: block;
border-bottom: 1px dashed $border_gray;
padding-right: 0.2em;
margin-bottom: 0.4em;
}
ul {
text-decoration: none;
text-align: left;
padding: 0;
margin: 0;
li {
margin-left: 17px;
margin-bottom: 0.2em;
i.fa {
color: orange;
}
a {
text-decoration: none;
color: #222;
&:hover {
text-decoration: underline;
}
}
}
}
&:hover {
background: rgba(0, 0, 255, 0.3);
color: white;
.num {
font-weight: bold;
}
ul li a {
font-weight: normal;
}
}
}
.noday {
background: #f1f1f1;
}
.today {
background: rgba(255, 255, 100, 0.5);
}
tr td:first-child {
border-left: 1px solid #aaa;
}
}
#banner {
padding-bottom: 1em;
a.date {
display: block;
text-decoration: none;
text-align: center;
line-height: 1.3;
font-size: 2.3em;
padding-bottom: 0.15em;
&:link, &:visited {
color: #5B80B9;
}
&:hover {
color: #0645AD;
}
}
2022-11-18 23:59:12 +00:00
.time {
2020-01-21 06:35:58 +00:00
text-align: center;
display: block;
color: rgb(85, 85, 85);
font-size: $base_font_size;
}
}
2022-12-18 09:31:31 +00:00
.time-left {
text-align: left;
color: #777;
padding-top: 0.5em;
}
2020-01-21 06:35:58 +00:00
.contest-list {
td {
vertical-align: middle !important;
&:nth-child(2) {
min-width: 4em;
}
&:nth-child(3) {
min-width: 6em;
}
}
tbody tr {
height: 4em;
}
.floating-time-left {
position: absolute;
left: 0;
}
.floating-time-right {
position: absolute;
right: 0;
line-height: 1.2em;
}
.floating-time {
position: absolute;
right: 0;
bottom: 0;
}
.contest-tags {
padding-left: 0.75em;
vertical-align: top;
}
2022-12-18 09:31:31 +00:00
.contest-tag-hidden {
background-color: #000000;
color: #ffffff;
}
2020-01-21 06:35:58 +00:00
.participate-button {
display: inline-block;
width: 90px;
}
.contest-block {
text-align: left;
padding: 0.5em 0.5em 0.5em 1em;
}
}
2022-12-18 09:31:31 +00:00
.first-solve {
background: #00f9a1;
}
2020-01-21 06:35:58 +00:00
.contest-tag {
box-shadow: inset 0 -0.1em 0 rgba(0, 0, 0, 0.12);
padding: 0.15em 0.3em;
border-radius: 0.15em;
font-weight: 600;
margin-right: 0.45em;
position: relative;
}
2022-12-18 09:31:31 +00:00
.contest-tag-edit {
background-color: green
}
.contest-tag-private {
background-color: #666666;
color: #ffffff;
}
.contest-tag-org {
background-color: #cccccc;
a {
color: #000000;
}
}
.contest-tag-rated {
background-color: #e54c14;
color: #ffffff;
}
2020-01-21 06:35:58 +00:00
.contest-list-title {
font-size: 18px;
font-weight: 600;
}
2022-12-18 09:31:31 +00:00
.contest-list-sort {
color: #7dc7ff;
}
2020-01-21 06:35:58 +00:00
form.contest-join-pseudotab {
display: inline;
line-height: 1.7em;
2022-08-20 16:18:28 +00:00
margin-left: auto;
2022-11-27 07:23:04 +00:00
float: right;
2020-01-21 06:35:58 +00:00
input {
2022-08-20 16:18:28 +00:00
padding-left: 5px !important;
padding-right: 5px !important;
2020-01-21 06:35:58 +00:00
}
}
.contest-participation-operation {
2024-04-12 04:56:58 +00:00
margin-left: auto;
2020-01-21 06:35:58 +00:00
.fa {
color: #444;
}
a + a {
padding-left: 1px;
}
2024-04-12 04:56:58 +00:00
padding-left: 5px;
2020-01-21 06:35:58 +00:00
}
2022-12-18 09:31:31 +00:00
#add-clarification {
float: left;
color: chartreuse;
}
#add-clarification:hover {
color: cyan;
}