NDOJ/resources/contest.scss
2024-05-05 22:47:57 -05:00

250 lines
4.4 KiB
SCSS

@import "vars";
.list-contest {
box-shadow: 0px 1px 2px lightgrey, 0px 1px 5px lightgrey;
border-radius: 15px;
padding: 20px;
margin-bottom: 20px;
width: 100%;
box-sizing: border-box;
display: flex;
background: white;
.info-contest:first-child, .info-contest:nth-child(2) {
margin-right: 15px;
}
.info-contest {
flex: 1;
}
.participate-button {
display: flex;
justify-content: center;
align-items: center;
}
.contest-title {
font-size: 1.1em;
font-weight: 600;
margin-bottom: 5px;
}
}
#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;
}
}
.time {
text-align: center;
display: block;
color: rgb(85, 85, 85);
font-size: $base_font_size;
}
}
.time-left {
text-align: left;
padding-bottom: 0.5em;
}
.list-contest {
.contest-tags {
vertical-align: top;
display: flex;
flex-wrap: wrap;
margin-top: 5px;
}
.contest-tag-hidden {
background-color: #000000;
color: #ffffff;
}
}
.first-solve {
background: #00f9a1;
}
.contest-tag {
padding: 0.15em 0.3em;
border-radius: 0.15em;
font-weight: 600;
margin-right: 0.45em;
position: relative;
display: flex;
align-items: center;
gap: 0.2em;
}
.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;
}
.contest-list-title {
font-size: 1.1em;
font-weight: 600;
}
.contest-list-sort {
color: #7dc7ff;
}
form.contest-join-pseudotab {
display: inline;
line-height: 1.7em;
margin-left: auto;
float: right;
input {
padding-left: 5px !important;
padding-right: 5px !important;
}
}
.contest-participation-operation {
margin-left: auto;
.fa {
color: #444;
}
a + a {
padding-left: 1px;
}
padding-left: 5px;
}
#add-clarification {
float: left;
color: chartreuse;
}
#add-clarification:hover {
color: cyan;
}