NDOJ/resources/base.scss

947 lines
16 KiB
SCSS
Raw Permalink 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 {
2023-09-20 04:01:22 +00:00
color: $theme_color;
2020-01-21 06:35:58 +00:00
}
}
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;
2024-10-03 06:50:21 +00:00
font-size: 1.7em;
2020-01-21 06:35:58 +00:00
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 {
2023-09-20 06:39:14 +00:00
display: flex;
text-align: center;
padding: 4px;
margin-right: 1em;
gap: 5px;
&:hover {
color: black;
border-radius: 2px;
border: 0.5px solid black;
cursor: pointer;
padding: 3.5px;
2020-01-21 06:35:58 +00:00
}
}
#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;
2023-09-21 17:25:02 +00:00
&.home-nav-element {
display: flex;
align-items: center;
margin-right: 1em;
}
2020-01-21 06:35:58 +00:00
&.home-nav-element a {
padding: 0;
height: 44px;
&:hover {
border-bottom: none;
padding-top: 0;
padding-bottom: 0;
}
}
a, button {
2023-09-20 06:39:14 +00:00
display: flex;
height: 100%;
align-items: center;
gap: 2px;
2020-01-21 06:35:58 +00:00
text-decoration: none;
2020-06-11 18:25:23 +00:00
color: black;
2020-06-11 04:48:44 +00:00
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-20 04:01:22 +00:00
border-top: 2px solid $theme_color;
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-20 04:01:22 +00:00
border-top: 2px solid $theme_color;
color: $theme_color;
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;
}
}
}
}
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;
}
#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;
}
@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 {
2023-09-25 07:12:06 +00:00
height: $navbar_height_mobile;
}
#content {
margin-top: $navbar_height_mobile;
2020-01-21 06:35:58 +00:00
}
#navicon {
transition-duration: 0.25s;
2023-09-20 06:39:14 +00:00
display: flex;
2020-01-21 06:35:58 +00:00
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;
2023-09-20 06:39:14 +00:00
flex-grow: 1;
2020-01-21 06:35:58 +00:00
&.hover {
color: #4db7fe;
text-shadow: 0 0 5px $highlight_blue;
transition-duration: 0.25s;
}
}
#nav-list {
display: none;
padding: 0;
margin-left: 0;
2023-09-20 04:01:22 +00:00
text-align: center;
2020-01-21 06:35:58 +00:00
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;
2023-09-20 06:39:14 +00:00
text-align: left;
padding: 7px 13px;
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;
}
}
}
}
2023-09-20 06:39:14 +00:00
@media(min-width: 800px) {
2020-01-21 06:35:58 +00:00
#nav-list {
2023-09-20 06:39:14 +00:00
display: flex !important;
gap: 1.5em;
flex-grow: 1;
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-25 07:12:06 +00:00
color: darkgreen;
2021-12-09 20:31:49 +00:00
}
2022-06-15 06:44:01 +00:00
#chat-icon:hover {
2023-09-25 07:12:06 +00:00
color: $theme_color;
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
display: none;
2023-11-28 03:47:12 +00:00
background-color: white;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 4px 0;
z-index: 1;
border-radius: 5px;
2022-11-10 02:57:50 +00:00
a {
2023-11-28 03:47:12 +00:00
display: block;
text-decoration: none;
transition: background-color 0.3s;
2022-11-10 02:57:50 +00:00
color: black;
}
2022-09-01 23:39:19 +00:00
}
2022-11-10 02:57:50 +00:00
.dropdown-item {
2023-11-28 03:47:12 +00:00
font-size: 16px;
padding: 6px 40px 6px 15px;
2022-09-01 23:39:19 +00:00
cursor: pointer;
2023-11-28 03:47:12 +00:00
color: black;
font-weight: 600;
border-top: 1px solid #ccc;
i {
width: 1.5em;
}
2022-09-01 23:39:19 +00:00
}
2022-11-10 02:57:50 +00:00
.dropdown-item:hover {
2023-11-28 03:47:12 +00:00
color: $theme_color;
background-color: #f8f8f2;
2023-11-28 03:47:12 +00:00
}
.popper-arrow,
.popper-arrow::before {
position: absolute;
width: 8px;
height: 8px;
background: inherit;
}
.popper-arrow {
visibility: hidden;
}
.popper-arrow::before {
visibility: visible;
content: '';
transform: rotate(45deg);
}
.popper-arrow {
top: -4px;
2022-09-01 23:39:19 +00:00
}
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 {
z-index: 1001 !important;
2022-11-28 05:08:15 +00:00
}
2023-09-20 04:01:22 +00:00
// @media (max-width: 500px) {
// #notification {
// margin-top: 0.6em;
// }
// }
2020-07-03 02:50:31 +00:00
.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-royalblue {
background-color: royalblue !important;
}
.background-green {
background-color: #28a745 !important;
}
.background-red {
background-color: #dc3545 !important;
}
2022-12-18 09:31:31 +00:00
.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;
2023-09-20 04:01:22 +00:00
background-color: $theme_color;
2023-09-01 23:09:30 +00:00
width: 0;
z-index: 9999;
}
2023-09-20 06:39:14 +00:00
.nav-right-text {
font-weight: normal;
font-size: small;
text-align: center;
}
.anon {
display: flex;
gap: 1em;
padding-right: 1em;
a {
color: black;
}
}
2022-08-28 04:00:17 +00:00
@media (max-width: 799px) {
2023-09-20 06:39:14 +00:00
.nav-fa-icon {
display: none;
2022-08-28 04:00:17 +00:00
}
2024-10-03 01:27:49 +00:00
.page-title {
margin-left: 0.5em;
}
2022-08-28 04:00:17 +00:00
}
2023-02-15 00:05:58 +00:00
@media(min-width: 800px) {
2023-09-20 06:39:14 +00:00
.normal-text {
font-weight: normal;
font-size: small;
text-align: left;
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;
2024-05-06 03:47:57 +00:00
padding-bottom: 0.25em;
display: block;
2023-09-06 00:30:05 +00:00
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
opacity: 1; /* Firefox */
text-align: center;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
text-align: center;
}
::-ms-input-placeholder { /* Microsoft Edge */
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
text-align: center;
}
input::placeholder{
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
text-align: center;
}
::-webkit-input-placeholder {
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
text-align: center;
}
:-moz-placeholder { /* Firefox 18- */
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
text-align: center;
}
::-moz-placeholder { /* Firefox 19+ */
2023-09-08 18:14:09 +00:00
color: $theme_color;
2023-09-06 00:30:05 +00:00
text-align: center;
2023-09-20 04:01:22 +00:00
}
.nav-fa-icon {
i {
margin-right: 0.1em;
color: #000;
font-size: 21px;
2023-09-20 04:01:22 +00:00
}
}
.nav-fa-icon-active {
i {
color: $theme_color;
font-size: 22.5px;
margin-right: 0.1em;
}
}
.featherlight-content {
max-height: 80% !important;
border-radius: 10px;
2023-02-15 00:05:58 +00:00
}