NDOJ/resources/contest.scss

251 lines
4.4 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;
2024-05-06 03:47:57 +00:00
background: white;
2023-09-08 16:22:57 +00:00
2024-04-23 20:36:51 +00:00
.info-contest:first-child, .info-contest:nth-child(2) {
2023-09-08 16:22:57 +00:00
margin-right: 15px;
}
.info-contest {
flex: 1;
}
.participate-button {
display: flex;
justify-content: center;
align-items: center;
}
.contest-title {
2024-05-06 03:47:57 +00:00
font-size: 1.1em;
2023-09-08 16:22:57 +00:00
font-weight: 600;
2024-05-06 03:47:57 +00:00
margin-bottom: 5px;
2023-09-08 16:22:57 +00:00
}
}
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;
2024-04-23 20:36:51 +00:00
padding-bottom: 0.5em;
2022-12-18 09:31:31 +00:00
}
2024-04-23 20:36:51 +00:00
.list-contest {
2020-01-21 06:35:58 +00:00
.contest-tags {
vertical-align: top;
2024-04-23 20:36:51 +00:00
display: flex;
flex-wrap: wrap;
margin-top: 5px;
2020-01-21 06:35:58 +00:00
}
2022-12-18 09:31:31 +00:00
.contest-tag-hidden {
background-color: #000000;
color: #ffffff;
}
2020-01-21 06:35:58 +00:00
}
2022-12-18 09:31:31 +00:00
.first-solve {
background: #00f9a1;
}
2020-01-21 06:35:58 +00:00
.contest-tag {
padding: 0.15em 0.3em;
border-radius: 0.15em;
font-weight: 600;
margin-right: 0.45em;
position: relative;
2024-04-23 20:36:51 +00:00
display: flex;
align-items: center;
gap: 0.2em;
2020-01-21 06:35:58 +00:00
}
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 {
2024-05-06 03:47:57 +00:00
font-size: 1.1em;
2020-01-21 06:35:58 +00:00
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;
}