NDOJ/resources/base.scss

835 lines
15 KiB
SCSS
Raw Normal View History

2020-01-21 06:35:58 +00:00
@charset "UTF-8";
@import "vars";
@-ms-viewport {
min-width: 480px;
max-width: device-width;
}
@-o-viewport {
min-width: 480px;
max-width: device-width;
}
@viewport {
min-width: 480px;
max-width: device-width;
}
a {
color: #1958c1;
&:hover {
color: #0645ad;
}
&:active {
color: #faa700;
}
}
img {
max-width: 100%;
// height: auto
}
.full {
width: 100% !important;
2020-01-21 06:35:58 +00:00
}
table.sortable thead {
background-color: $background_gray;
color: #666;
font-weight: bold;
cursor: default;
}
th {
&.tablesorter-headerAsc:after {
content: "";
}
&.tablesorter-headerDesc:after {
content: "";
}
}
div {
&.tablesorter-header-inner {
display: inline;
}
}
pre {
white-space: pre-wrap;
}
hr {
display: block;
height: 0;
border: 0;
font-style: italic;
border-bottom: 1px solid $border_gray;
padding: 0;
}
.dashed {
border-bottom: 1px dashed $border_gray;
}
th {
vertical-align: middle;
}
.form-area {
display: inline-block;
background: $background_light_gray;
padding: 5px 10px 10px 15px;
border-radius: $widget_border_radius;
border: 1px solid $border_gray;
}
div.info-float {
float: right;
padding: 10px;
}
footer {
color: gray;
display: block;
width: 100%;
position: absolute;
bottom: 0;
}
body {
position: relative;
min-height: 100%;
margin: 0 auto;
font-size: $base_font_size;
line-height: 1.231;
background: $background_light_gray;
font-family: "Segoe UI", "Lucida Grande", Arial, sans-serif;
color: #000;
height: 100%;
2020-03-21 22:49:54 +00:00
overflow-x: hidden;
2020-01-21 06:35:58 +00:00
}
.unselectable {
cursor: default;
}
h1 {
font-size: 5em;
letter-spacing: -2px;
margin: 0;
padding: 0;
line-height: 1em;
}
b {
font-weight: bold;
}
h2 {
font-weight: 400;
font-size: 2em;
border-radius: $widget_border_radius;
padding: 0;
margin: 0;
}
h3 {
font-weight: 400;
font-size: 1.4em;
border-radius: $widget_border_radius;
padding: 0;
margin: 0;
}
h4 {
font-size: 1.1em;
padding: 0;
margin: 0;
}
header {
background: #111;
color: #aaa;
text-align: left;
display: block;
height: 60px;
margin-top: -10px;
padding: 10px 10px 10px 5%;
}
#user-links {
2020-07-03 02:50:31 +00:00
// display: inline;
float: right;
2020-01-21 06:35:58 +00:00
color: #5c5954;
.anon {
2020-07-03 02:50:31 +00:00
margin-top: 1em;
2020-01-21 06:35:58 +00:00
padding-right: 10px;
display: inline-flex;
min-height: 100%;
align-items: center;
white-space: nowrap;
}
a {
2021-12-09 20:31:49 +00:00
color: lightcoral;
2020-01-21 06:35:58 +00:00
}
li {
text-transform: none;
}
& > ul {
display: block;
margin: 0;
& > li > a > span {
font-size: 13px;
height: 36px;
padding-top: 8px;
display: block;
white-space: nowrap;
& > img {
vertical-align: middle;
border-radius: $widget_border_radius;
display: inline;
margin: 2px 6px 0 5px;
}
& > span {
color: darkslateblue;
2020-01-21 06:35:58 +00:00
vertical-align: middle;
display: inline;
margin-top: 11px;
margin-right: 9px;
padding: 0;
}
}
}
}
#nav-shadow {
2020-03-18 02:41:09 +00:00
height: 2px;
2020-06-11 04:48:44 +00:00
background: linear-gradient(lightgray, transparent);
2020-01-21 06:35:58 +00:00
}
#nav-container {
2020-06-11 04:48:44 +00:00
background: white;
2020-01-21 06:35:58 +00:00
// opacity: 0.77;
2020-01-21 06:35:58 +00:00
// filter: alpha(opacity=77)
height: 100%;
}
#navigation {
2022-03-21 21:09:16 +00:00
position: fixed;
2020-01-21 06:35:58 +00:00
top: 0;
left: 0;
right: 0;
}
nav {
position: relative;
position: -webkit-sticky;
position: sticky;
top: 0;
width: 100%;
margin: 0 auto;
z-index: 500;
text-align: left;
ul {
margin: 0 0 0 -5px !important;
padding: 0 0 0 1%;
text-align: left;
display: inline;
list-style: none;
background: transparent;
li {
display: inline-block;
color: #FFF;
text-transform: uppercase;
position: relative;
&.home-nav-element a {
padding: 0;
height: 44px;
&:hover {
border-bottom: none;
padding-top: 0;
padding-bottom: 0;
}
}
a, button {
display: inline-block;
text-decoration: none;
vertical-align: middle;
2020-06-11 18:25:23 +00:00
color: black;
2020-01-21 06:35:58 +00:00
padding: 13px 7px;
height: 18px;
2020-06-11 04:48:44 +00:00
border-top: 2px solid transparent;
border-bottom: 2px solid transparent;
font-weight: bold;
font-size: initial;
2020-01-21 06:35:58 +00:00
&:link {
2020-06-11 18:25:23 +00:00
color: black;
2020-01-21 06:35:58 +00:00
}
&:hover {
2020-06-11 18:25:23 +00:00
border-top: 2px solid #9c3706;
2021-12-09 20:31:49 +00:00
color: lightcoral;
2020-01-21 06:35:58 +00:00
background: rgba(255, 255, 255, 0.25);
margin: 0;
}
&.active {
2020-03-16 07:56:55 +00:00
// color: #FFF;
2020-06-11 18:25:23 +00:00
border-top: 2px solid #9c3706;
color: #9c3706;
2020-06-11 04:48:44 +00:00
background: white;
2020-01-21 06:35:58 +00:00
}
.nav-expand {
display: none;
}
}
ul {
padding: 0;
position: absolute;
left: 5px;
display: none;
color: #fff;
2021-12-09 20:31:49 +00:00
background: darkcyan;
2020-01-21 06:35:58 +00:00
margin: 0 !important;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
li {
&:first-child {
a.active {
border-top: 1px solid $widget_black;
2022-10-15 15:26:00 +00:00
background-color: darkcyan !important;
2020-01-21 06:35:58 +00:00
}
}
}
li {
display: block;
2021-12-09 20:31:49 +00:00
a {
color: white !important;
}
2020-01-21 06:35:58 +00:00
a, button {
padding: 8px 20px 8px 8px !important;
font-size: 0.8em;
line-height: 18px;
display: block;
2020-06-11 04:48:44 +00:00
border-left: 4px solid black;
2020-01-21 06:35:58 +00:00
white-space: nowrap;
}
}
}
button {
background: none;
text-align: left;
border: none;
width: 100%;
border-radius: 0;
2020-06-11 04:48:44 +00:00
height: auto !important;
2020-01-21 06:35:58 +00:00
}
&:hover > ul, &:active > ul, &:focus > ul {
display: block !important;
}
&.home-nav-element a:hover {
border-bottom: 0;
padding-top: 0;
padding-bottom: 0;
background: transparent;
}
}
}
.nav-divider {
width: 1px;
vertical-align: middle;
padding-left: 3px;
display: inline-block;
height: 32px;
margin-right: 1px;
border-right: 3px solid rgba(255, 255, 255, 0.15);
}
}
hr {
color: rgba(0, 0, 0, 0.2);
}
#content {
2022-03-21 21:09:16 +00:00
margin: 4.5em auto 1em auto;
2020-01-21 06:35:58 +00:00
// Header
width: 90%;
height: 100%;
min-height: 25em;
display: block;
.title {
color: #393630;
}
}
footer {
text-align: center;
height: 40px;
border-top: 1px solid $border_gray;
background: #ededed;
}
html {
position: relative;
height: 100%;
}
a {
text-decoration: none;
display: inline;
}
noscript #noscript {
font-family: Arial, sans-serif;
font-size: 111%;
color: white;
font-weight: bold;
background: $announcement_red;
text-align: center;
padding: 5px 0;
left: 0;
right: 0;
position: fixed;
z-index: 100;
}
#announcement {
font-family: Arial, sans-serif;
font-size: 111%;
color: white;
font-weight: bold;
background: $announcement_red;
text-align: center;
max-width: 30%;
position: fixed;
border-radius: $widget_border_radius;
z-index: 100;
bottom: -4px;
right: -4px;
padding: 5px 6px 6px 5px;
a {
color: orange;
}
}
.time {
color: #555;
}
.toggle {
font-weight: bold;
2022-08-20 16:18:28 +00:00
cursor: pointer;
2020-01-21 06:35:58 +00:00
.fa {
transition: transform 0.4s;
}
&.open .fa {
transform: rotate(90deg);
}
}
#form-errors, .form-errors {
background: rgba(255, 0, 0, 0.3);
border: 3px solid red;
border-radius: $widget_border_radius;
padding: 0 1em 0.1em 1em;
margin: 0.3em 0 0.5em 0;
}
#navicon {
display: none;
}
#nav-placeholder {
height: 47px;
background: white;
border-right: 1px solid $border_gray;
border-left: 1px solid $border_gray;
}
#contest-info {
font-size: 1.25em;
border: 5px solid $highlight_blue;
border-radius: 0 $widget_border_radius $widget_border_radius 0;
z-index: 100000;
cursor: move;
position: fixed;
left: 20px;
top: 90%;
display: none;
a {
height: 1.4em;
padding: 0;
margin: 0;
color: white;
display: block;
}
}
2022-01-10 11:13:46 +00:00
#contest-info-main {
border-left: 5px dotted white;
background: rgba(0, 0, 0, 0.77);
padding: 10px 12px;
color: white;
display: inline;
}
#contest-info-toggle {
display: inline;
padding: 10px 12px;
border-radius: 0 10px 10px 0;
cursor: pointer;
}
.contest-info-toggle-mode-on {
background: rgba(0, 205, 0, 0.57);
}
.contest-info-toggle-mode-on:hover {
background: rgba(0, 205, 0, 0.97);
}
.contest-info-toggle-mode-off {
background: rgba(255, 0, 0, 0.57);
}
.contest-info-toggle-mode-off:hover {
background: rgba(255, 0, 0, 0.97);
}
2020-01-21 06:35:58 +00:00
#contest-time-remaining {
display: inline-block;
}
.spacer {
display: inline-block;
flex: 1 1 1px;
}
#user-links {
height: 100%;
ul {
margin: 0;
li {
display: block;
height: 100%;
a {
display: block;
padding: 0;
height: 100%;
}
}
}
}
#page-container {
min-height: 100%;
position: relative;
margin: 0 auto;
border-right: 1px solid $border_gray;
border-left: 1px solid $border_gray;
background: white;
}
// border-bottom: 1px solid rgb(204, 204, 204)
// border-bottom-left-radius: 4px
// border-bottom-right-radius: 4px
#content-body {
padding-bottom: 4em;
}
// Offset the footer
.title-line-action {
float: right;
margin-top: 1.2em;
}
math {
font-size: 1.155em;
}
.MathJax {
&:focus {
outline: none;
}
}
@media(max-width: 1498px) {
#page-container {
border-left: none;
border-right: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
@media (max-width: 760px) {
#navigation {
height: 36px;
}
#navicon {
transition-duration: 0.25s;
display: block;
line-height: 26px;
font-size: 2em;
2020-06-11 04:48:44 +00:00
color: $widget_black;
2020-01-21 06:35:58 +00:00
padding: 0 0.25em;
margin: 4px 0.25em;
white-space: nowrap;
float: left;
&.hover {
color: #4db7fe;
text-shadow: 0 0 5px $highlight_blue;
transition-duration: 0.25s;
}
}
#nav-list {
display: none;
padding: 0;
margin-left: 0;
border-left: 4px solid $highlight_blue;
position: fixed;
top: 36px;
2020-06-11 04:48:44 +00:00
background: white;
2020-01-21 06:35:58 +00:00
bottom: 0;
2020-06-11 04:48:44 +00:00
width: fit-content;
2020-01-21 06:35:58 +00:00
left: 0;
box-shadow: none;
2020-06-11 04:48:44 +00:00
border: 1px solid;
2020-01-21 06:35:58 +00:00
li {
display: block;
a {
display: block;
2020-06-11 04:48:44 +00:00
font-weight: normal;
2020-01-21 06:35:58 +00:00
.nav-expand {
float: right;
display: block;
height: inherit;
margin: (-13px) -7px;
padding: inherit;
}
}
ul {
left: 8em;
top: auto;
bottom: auto;
margin-top: -36px;
}
&.home-nav-element {
display: none;
}
}
}
#user-links {
& > ul > li {
& > a > span {
padding-top: 4px;
height: 32px;
}
& > ul {
left: 0 !important;
margin-top: 0 !important;
}
}
}
}
@media not all and (max-width: 760px) {
#nav-list {
2020-07-03 02:50:31 +00:00
display: inline !important;
2020-01-21 06:35:58 +00:00
li {
&.home-menu-item {
display: none;
}
&:not(:hover) > ul {
display: none !important;
}
ul {
left: 0 !important;
}
}
}
}
2020-07-03 02:50:31 +00:00
#notification {
2021-12-09 20:31:49 +00:00
color: lightsteelblue;
2020-07-03 02:50:31 +00:00
}
2021-12-09 20:31:49 +00:00
2022-06-15 06:44:01 +00:00
#notification:hover {
color: darkgray;
}
2021-12-09 20:31:49 +00:00
#chat-icon {
color: lightseagreen;
}
2022-06-15 06:44:01 +00:00
#chat-icon:hover {
color: darkgreen;
}
2022-09-01 23:39:19 +00:00
#nav-lang-icon {
2022-09-02 03:04:14 +00:00
color: blue;
2022-09-01 23:39:19 +00:00
cursor: pointer;
}
#nav-lang-icon:hover {
2022-09-02 03:04:14 +00:00
color: darkblue;
2022-09-01 23:39:19 +00:00
}
#lang-dropdown {
padding: 4px 0;
border-radius: 4px;
border: 0.5px solid lightgray;
margin-top: 1px;
background: white;
display: none;
}
.lang-dropdown-item {
padding-bottom: 0.3em;
padding-left: 0.4em;
font-size: 0.9em;
cursor: pointer;
}
.lang-dropdown-item:hover {
background: lightgray;
}
2022-08-28 04:00:17 +00:00
.navbar-icons {
2022-09-01 23:39:19 +00:00
.navbar-icon {
font-size: 1.6em;
}
2022-08-28 04:00:17 +00:00
float: left;
margin-right: 0.3em;
}
.navbar-icon {
margin-right: 0.3em;
}
2021-12-09 20:31:49 +00:00
.unread_boxes {
background-color: red;
color: white;
border-radius: 50%;
padding: 1px 4px;
margin-left: -12px;
font-size: x-small;
font-family: monospace;
}
2022-09-01 23:39:19 +00:00
.sub-lang {
color: black;
font-size: x-small;
margin-left: -12px;
font-family: monospace;
text-transform: uppercase;
}
2020-07-03 02:50:31 +00:00
@media (max-width: 500px) {
#notification {
margin-top: 0.6em;
}
}
.notification-open #notification {
color: green !important;
2022-04-20 19:00:13 +00:00
}
#contest-info {
font-size: 1.25em;
border: 5px solid $highlight_blue;
border-radius: 0 $widget_border_radius $widget_border_radius 0;
z-index: 100000;
cursor: move;
position: fixed;
left: 20px;
top: 90%;
display: none;
}
#contest-info-main {
border-left: 5px dotted white;
background: rgba(0, 0, 0, 0.77);
padding: 10px 12px;
color: white;
display: inline;
}
#contest-info-toggle {
display: inline;
padding: 10px 12px;
border-radius: 0 10px 10px 0;
cursor: pointer;
}
.contest-info-toggle-mode-on {
background: rgba(0, 205, 0, 0.57);
}
.contest-info-toggle-mode-on:hover {
background: rgba(0, 205, 0, 0.97);
}
.contest-info-toggle-mode-off {
background: rgba(255, 0, 0, 0.57);
}
.contest-info-toggle-mode-off:hover {
background: rgba(255, 0, 0, 0.97);
2022-08-28 04:00:17 +00:00
}
@media (max-width: 799px) {
.navbar-icons {
2022-09-01 23:39:19 +00:00
margin-top: 6px;
2022-08-28 04:00:17 +00:00
}
}
@media (min-width: 800px) {
.navbar-icons {
2022-09-01 23:39:19 +00:00
margin-top: 12px;
2022-08-28 04:00:17 +00:00
}
}