NDOJ/resources/base.scss

960 lines
16 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
}
2022-11-09 20:41:08 +00:00
* {
2023-02-08 05:14:48 +00:00
-webkit-tap-highlight-color: transparent;
2022-11-09 20:41:08 +00:00
}
2020-01-21 06:35:58 +00:00
.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;
2023-01-14 06:45:38 +00:00
font-family: "Noto Sans", Arial, "Lucida Grande", sans-serif;
2020-01-21 06:35:58 +00:00
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;
}
li {
text-transform: none;
}
& > ul {
display: block;
margin: 0;
2023-09-01 23:20:10 +00:00
& > li > span {
2020-01-21 06:35:58 +00:00
height: 36px;
padding-top: 8px;
display: block;
white-space: nowrap;
2023-09-01 23:20:10 +00:00
cursor: pointer;
&:hover {
border-top: 2px solid #9c3706;
color: black;
background: rgba(255, 255, 255, 0.25);
margin: 0;
}
2020-01-21 06:35:58 +00:00
& > img {
vertical-align: middle;
border-radius: $widget_border_radius;
display: inline;
margin: 2px 6px 0 5px;
}
& > span {
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;
2023-09-06 00:30:05 +00:00
right: 10px;
2023-09-01 23:09:30 +00:00
height: $navbar_height;
2020-01-21 06:35:58 +00:00
}
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 {
2023-09-06 01:00:09 +00:00
border-top: 2px solid #9c3706;
2023-03-03 00:43:15 +00:00
color: black;
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;
2023-09-06 01:00:09 +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;
2022-11-10 02:57:50 +00:00
background: white;
2020-01-21 06:35:58 +00:00
margin: 0 !important;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
2022-11-10 02:57:50 +00:00
2020-01-21 06:35:58 +00:00
li {
2022-11-10 02:57:50 +00:00
&:hover {
background: lightgray;
2020-01-21 06:35:58 +00:00
}
display: block;
2021-12-09 20:31:49 +00:00
a {
2022-11-10 02:57:50 +00:00
color: black !important;
2021-12-09 20:31:49 +00:00
}
2023-02-08 05:14:48 +00:00
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 {
2023-09-01 23:09:30 +00:00
margin: $navbar_height auto 1em auto;
2023-03-03 00:43:15 +00:00
padding-top: 1em;
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;
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%;
2022-11-10 02:57:50 +00:00
padding-right: 1em;
2020-01-21 06:35:58 +00:00
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;
}
// 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;
}
}
2023-02-15 00:05:58 +00:00
@media (max-width: 799px) {
2020-01-21 06:35:58 +00:00
#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 {
2023-09-06 00:30:05 +00:00
color: #045343;
2021-12-09 20:31:49 +00:00
}
2022-06-15 06:44:01 +00:00
#chat-icon:hover {
2023-09-06 00:30:05 +00:00
color: green;
2022-06-15 06:44:01 +00:00
}
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
}
2022-11-14 02:39:18 +00:00
#nav-darkmode-icon {
cursor: pointer;
&:hover {
color: gray;
}
}
2022-11-10 02:57:50 +00:00
.dropdown {
2022-09-01 23:39:19 +00:00
border-radius: 4px;
border: 0.5px solid lightgray;
margin-top: 1px;
background: white;
display: none;
2022-11-10 02:57:50 +00:00
a {
color: black;
}
2022-09-01 23:39:19 +00:00
}
2022-11-10 02:57:50 +00:00
.dropdown-item {
font-size: 15px;
padding: 6px 8px;
2022-09-01 23:39:19 +00:00
cursor: pointer;
}
2022-11-10 02:57:50 +00:00
.dropdown-item:hover {
2022-09-01 23:39:19 +00:00
background: lightgray;
}
2022-08-28 04:00:17 +00:00
.navbar-icons {
2022-11-10 02:57:50 +00:00
display: inline-flex;
align-items: center;
float: left;
margin-right: 0.3em;
2022-09-01 23:39:19 +00:00
.navbar-icon {
font-size: 1.6em;
}
2022-08-28 04:00:17 +00:00
}
.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;
}
2022-11-28 05:08:15 +00:00
.featherlight {
2022-12-18 09:31:31 +00:00
z-index: 1000 !important;
2022-11-28 05:08:15 +00:00
}
2022-12-16 11:11:24 +00:00
select {
visibility: hidden;
max-height: 0;
}
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
}
2022-12-18 09:31:31 +00:00
.title-row {
color: #393630;
display: inline;
}
.gray {
color: gray;
}
.white {
color: white;
}
.black {
color: black;
}
.red {
color: red;
}
.green {
color: green;
}
.grayed {
color: #666;
}
.darkcyan {
color: darkcyan;
}
.peru {
color: peru;
}
.blue {
color: blue;
}
.background-d6e8f7 {
2023-01-02 23:22:45 +00:00
background-color: #d6e8f7;
2022-12-18 09:31:31 +00:00
}
.background-bisque {
background-color: bisque;
}
.background-footer {
color: #808080;
}
2023-04-26 08:38:34 +00:00
.view-next-page {
margin-left: auto;
margin-right: auto;
margin-top: 1em;
margin-bottom: 1em;
}
2023-09-01 23:09:30 +00:00
#loading-bar {
position: fixed;
top: 0;
left: 0;
height: 2px;
background-color: #993932;
width: 0;
z-index: 9999;
}
2022-08-28 04:00:17 +00:00
@media (max-width: 799px) {
2022-11-10 02:57:50 +00:00
#user-links, .anon {
padding-right: 0.5em;
2022-08-28 04:00:17 +00:00
}
}
2023-02-15 00:05:58 +00:00
@media(min-width: 800px) {
2022-11-10 02:57:50 +00:00
.anon {
padding-right: 1em;
}
2022-08-28 04:00:17 +00:00
.navbar-icons {
2022-11-10 02:57:50 +00:00
margin-top: 6px;
2022-08-28 04:00:17 +00:00
}
2023-02-15 00:05:58 +00:00
#page-container {
background: #f1f2f2;
}
2022-11-25 06:41:13 +00:00
#event-tab {
display: none;
}
2023-02-15 00:05:58 +00:00
#content.wrapper {
background: white;
padding: 2em;
border-radius: 1em;
}
2023-04-26 08:38:34 +00:00
.view-next-page {
display: none;
}
2023-09-06 00:30:05 +00:00
}
.colored-text {
2023-09-06 01:00:09 +00:00
color: black;
2023-09-06 00:30:05 +00:00
}
.bold-text {
font-weight: bold;
}
.non-italics {
font-style: normal;
}
.margin-label{
margin-bottom: 2.5px;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: #045343;
opacity: 1; /* Firefox */
text-align: center;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: #045343;
text-align: center;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: #045343;
text-align: center;
}
input::placeholder{
color: #045343;
text-align: center;
}
::-webkit-input-placeholder {
color: #045343;
text-align: center;
}
:-moz-placeholder { /* Firefox 18- */
color: #045343;
text-align: center;
}
::-moz-placeholder { /* Firefox 19+ */
color: #045343;
text-align: center;
2023-02-15 00:05:58 +00:00
}