/* NS - OS # 04.05.2020 */ /*** IN CONSTRUCTION ***/ /* .back1 { background: repeating-linear-gradient(135deg, black, black 10%, yellow 10%, yellow 20%); } */ /* body { background: #CE5937; background: -moz-linear-gradient(45deg, #CE5937 0%, #C59237 100%); background: -webkit-linear-gradient(45deg, #CE5937 0%, #C59237 100%); background: linear-gradient(45deg, #CE5937 0%, #C59237 100%); background-repeat: no-repeat; width: 100%; height: 100%; } */ * { position: relative; box-sizing: border-box; } #sa_reset { // remove sa_reset in future text-decoration: underline; cursor: pointer; color: $color_a_text; &:hover { color: $color_a_text_hover; } } a { text-decoration: inherit; color: inherit; } table { width: 100%; tr { background-color: $color_tbody_background; } tr:nth-of-type(even) { background-color: $color_tbody_background_secondary; } td, th { p { padding: 6px; } } tbody { background-color: white; } td > *, th > * { text-overflow: ellipsis; overflow: hidden; } } cspan { white-space: nowrap; text-overflow: ellipsis; position: relative; } cspan[data-tooltip]:hover { &::before, &::after { opacity: 100; transition: opacity 0.2s; transition-delay: 0.1s; } } [data-tooltip]::after { content: attr(data-tooltip); opacity: 0; pointer-events: none; width: 100%; overflow: visible; color: #fff; z-index: 10000; width: auto; height: auto; border-radius: 5px; padding: 5px 7px; position: absolute; left: 0; transform: translate(calc(-30% + 10px), -100%); background-color: #292929; } /* [data-tooltip]::before { content: attr(data-tooltip); position: absolute; bottom: -5px; left: calc(30% - 8px); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #292929; } */ .help-radio + label::before { position: relative; content: "+ "; margin-right: 1em; } .help-radio ~ .help-content { display: none; } .help-radio:checked ~ .help-content { display: block; } // AntiSpam .main_page { display: flex; flex-direction: row; flex-wrap: wrap; max-width: 1200px; margin: auto; padding: 0 50px; } .main_page_divider, .main_page_divider-50 { display: flex; flex-direction: row; justify-content: center; box-sizing: border-box; } .main_page_divider { width: 100%; } .main_page_divider-50 { width: 50%; } .main-page { display: flex; flex-direction: row; flex-wrap: wrap; margin: auto; width: 100%; box-sizing: border-box; justify-content: space-around; max-width: 1700px; } @media screen and (max-width: 800px) { .main_page_divider, .main_page_divider-50 { width: 100%; justify-content: flex-start; } } .option-box { margin: 0; height: 100%; width: 100%; display: flex; flex-direction: column; align-items: flex-start; } .option-inner-row { width: 100%; height: 100%; display: flex; flex-direction: row; } .option-row { width: 100%; display: flex; flex-direction: row; padding: 0.8em; } .option-inner-row:not(:last-child), .option-row:not(:last-child) { margin-bottom: 1.2em; } .option-row:not(:last-child) { padding-bottom: 0.9em; border-bottom: 2px solid #ddd; } .option-key { width: 100%; margin-right: 11px; color: #555; } .num { width: 40px; height: 40px; box-sizing: border-box; text-align: center; border: none; background-color: $color_num_background; border: 2px solid $color_num_border; color: $color_num_text; display: block; &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } &[type="number"] { -moz-appearance: textfield; } } .num-range[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; background-color: $color_num_track_background; box-sizing: border-box; outline: none; opacity: 0.7; -webkit-transition: 0.2s; transition: opacity 0.2s; &:hover { opacity: 1; cursor: pointer; } &::-webkit-slider-runnable-track { -webkit-appearance: none; appearance: none; background-color: $color_num_track_progress_background; width: 100%; height: 10px; } &::-moz-range-progress { background-color: $color_num_track_progress_background; content: ""; height: 10px; } &::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 20px; background: $color_num_thumb_background; border: 1px solid $color_num_thumb; border-radius: 1px; cursor: grabbing; margin-top: -4px; } &::-moz-range-thumb { width: 10px; height: 20px; background: $color_num_thumb_background; border: 1px solid $color_num_thumb; border-radius: 1px; cursor: grabbing; } } .userslist-box { width: 100%; padding: 0.8em; } #users-list { padding-top: 1em; flex-direction: column; width: 100%; } .users_table { width: 100%; } .filter_users { width: 100% !important; padding: 0.5em; border: 1px solid #555; } .users_table { border-collapse: collapse; width: 100%; border: 1px solid #ddd; //font-size: 18px; th { padding: 0.5em; background-color: #f1f1f1; cursor: pointer; } td { padding: 0.5em; } } .users_table tr.header, .users_table tr:hover { background-color: #f1f1f1; } .sa_save { width: 100%; display: flex; flex-direction: row; justify-content: flex-end; padding-top: 1.5em; align-items: center; } #sa_reset { margin: 1em; } /* NS HEADER */ html { height: 100%; } body { background-color: $color_background; color: $color_background_text; height: 100%; overflow-x: hidden; /*makes the body non-scrollable (we will add scrolling to the sidebar and main content containers)*/ margin: 0; /*removes default style*/ display: flex; /*enables flex content for its children*/ box-sizing: border-box; } body.login { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-content: center; .container { width: 100%; background-color: $color_login_container_background; position: relative; } .staff { position: absolute; left: 100%; background-color: $color_login_container_staff_background; border-radius: 0 5px 5px 0; top: 20; bottom: 20; padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; } .logo { text-align: right; margin-bottom: 10px; } h1 { color: $color_login_container_h1_text; } p { margin-top: 10px; color: $color_login_container_p_text; } input { margin-top: 8px; margin-bottom: 8px; } input[type="submit"] { margin-top: 10px; margin-bottom: 10px; padding: 0 20px; height: 30px; background-color: $color_login_container_button_background; color: $color_login_container_button_text; box-sizing: border-box; } select { outline: none; margin-top: 10px; margin-bottom: 10px; width: 100%; height: 40px; padding-left: 10px; cursor: pointer; box-sizing: border-box; background-color: $color_login_container_select_background; color: $color_login_container_select_text; -moz-appearance: none; -webkit-appearance: none; appearance: none; border: 1px solid rgba($color_login_container_select_border, 0.5); &:hover { border-color: $color_login_container_select_border_hover; } } } .login-container { margin: auto; } .login-form { display: flex; flex-direction: column; } .column { height: 100%; display: flex; flex-grow: 1; flex-direction: column; } header.column { overflow-y: auto; flex-grow: 0; width: 250px; font-size: 110%; box-shadow: 0 8px 10px rgba(155, 155, 155, 0.85); z-index: 900; } .content { flex-grow: 1; overflow-y: auto; //background-color: #4DD44D; //background-color: #EEE; background-color: $color_background_secondary; &::-webkit-scrollbar { display: none; } -ms-overflow-style: none; scrollbar-width: none; & > markdown { margin-left: 2em; margin-right: 2em; width: -webkit-fill-available; width: -moz-available; width: stretch; } } header { position: sticky; flex-shrink: 0; flex-grow: 0; .content { background-color: $color_header_background; } .site-logo { padding-bottom: 25px; flex-shrink: 0; user-select: none; background-color: $color_header_background; .small { display: none; height: 50px; } } .site-logo img { width: 100%; max-width: 298px; } hr { width: 100%; height: 2px; background-color: $color_header_hr_background; border: none; margin: 0; } nav { display: flex; flex-direction: column; width: 100%; height: 100%; } a { text-decoration: none; } nav-button { -webkit-user-select: none; /* Chrome all / Safari all */ -moz-user-select: none; /* Firefox all */ -ms-user-select: none; /* IE 10+ */ user-select: none; /*margin-top: 5px;*/ width: 100%; height: 50px; min-height: 50px; display: flex; align-items: center; cursor: pointer; background-color: $color_nav_button_background; color: $color_nav_button_text; //border-top: 2px solid $color_darker; border-top: 2px solid transparent; border-bottom: 2px solid $color_nav_button_border; &.selected { background-color: $color_nav_button_background_active; border-top-color: $color_nav_button_border_active; border-bottom-color: transparent; } &:hover { background-color: $color_nav_button_background_hover; border-top-color: $color_nav_button_border_hover; border-bottom-color: transparent; } &:hover .logo img { animation: wiggle-animation 1s ease 0.3s; } .logo, .text { height: 100%; display: flex; align-items: center; background-color: transparent; overflow: hidden; } .logo { flex-grow: 0; width: 40px; img { margin: auto; user-select: none; } } .text { flex-grow: 1; padding-left: 7px; } } header_menu { margin: 0; padding: 0; border-left: 10px solid $color_nav_button_border; width: 100%; max-height: 0; transition: max-height 0.15s ease-out; overflow: hidden; box-sizing: border-box; } } .active + header_menu { max-height: 1000px; display: table; transition: max-height 0.25s ease-in; //border-top: 10px solid transparent; //border-bottom: 10px solid transparent; } .toggleable::after { color: $color_toggleable_text; display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.4em solid; border-right: 0.4em solid transparent; border-bottom: 0; border-left: 0.4em solid transparent; margin-right: 10px; } .active.toggleable::after { border-top: 0; border-right: 0.4em solid transparent; border-bottom: 0.4em solid; border-left: 0.4em solid transparent; } mobile-header { display: none; flex-shrink: 0; width: 100%; height: 50px; background-color: $color_header_background; .site-logo { width: auto; //important! auto doesnt work in mobile height: 50px; margin: auto; img { height: 100%; width: 100%; } } } .mobile-nav-button { margin: 2px; position: absolute; top: 0; left: 0; width: 45px; height: 45px; border-radius: 3px; background-color: $color_mobile_nav_button_background; &:hover { cursor: pointer; transform: scale(0.95); } &::before { box-sizing: border-box; position: absolute; top: 7px; left: 7px; content: ""; width: 30px; height: 30px; border-top: solid 4px $color_mobile_nav_button_text; border-bottom: solid 4px $color_mobile_nav_button_text; background-color: none; } &::after { position: absolute; top: 20px; left: 7px; content: ""; width: 30px; height: 4px; background-color: $color_mobile_nav_button_text; } } .mobile-nav-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba($color_mobile_nav_overlay_background, 0.4); display: none; z-index: 99; cursor: pointer; } .asc::before { color: #fff; display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0; border-right: 0.4em solid transparent; border-bottom: 0.4em solid; border-left: 0.4em solid transparent; margin-right: 10px; } .desc::before { color: #fff; display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.4em solid; border-right: 0.4em solid transparent; border-bottom: 0; border-left: 0.4em solid transparent; margin-right: 10px; } /* #info { display: none; padding: 30px 20px; border: 2px solid #FFF; border-radius: 2px; margin: auto; max-width: 2000px; margin: 2em; font-size: 1.3em; &.success { background-color: #9cde76a6; border-color: #88aa75; color: #2b8a05; } &.error { background-color: #e29b9bc2; border-color: #e06868; color: #d41f1f; } } */ input[type="text"], input[type="password"], input[type="email"] { &:required { &:valid:not(:placeholder-shown) { background: url(../images/svg/form_valid.svg); background-size: 18px; background-repeat: no-repeat; background-position-x: 6px; background-position-y: center; padding-left: 30px; border-color: #00a91c; background-color: $color-0; & ~ helper { display: none; } } &:invalid:not(:placeholder-shown) { background: url(../images/svg/form_invalid.svg); background-size: 20px; background-repeat: no-repeat; background-position-x: 5px; background-position-y: center; padding-left: 30px; background-color: $color-0; border-color: #d80000; //show helpers text & ~ helper { display: inline; } } } &:disabled:-moz-read-only { background: url(../images/svg/textfield_lock.svg); background-size: 20px; background-repeat: no-repeat; background-position-x: 5px; background-position-y: center; padding-left: 30px; border-color: #3e7efb; } &:disabled:read-only { background: url(../images/svg/textfield_lock.svg); background-size: 20px; background-repeat: no-repeat; background-position-x: 5px; background-position-y: center; padding-left: 30px; border-color: #3e7efb; } } .container, .settings-box, .expl-box { background-color: $color_container_background; padding: 1em 1em; h1 { font-size: 2em; color: $color_container_h1_text; margin: 0; margin-bottom: 1em; } h2 { font-size: 1.6em; color: $color_container_h2_text; margin-left: 1em; } h3 { font-size: 1.4em; margin-left: 0.5em; } h4 { font-size: 1.1em; margin-bottom: 1em; margin-left: 0.5em; } } .container { border-radius: 20px; margin: auto; max-width: 2000px; margin: 2em; } .center { text-align: center; & > * { margin: auto; } } @media screen and (max-width: 1024px) and (min-width: 700px) { header { &.column { width: 50px; } .site-logo { .normal { display: none; } .small { display: block; } } nav-button { .logo { width: 50px; } .text { width: 0; position: absolute; padding: 0; } } } } @media screen and (max-width: 700px) { .content { & > markdown { margin-left: 1em; margin-right: 1em; } } .container { border-radius: 0; margin: 0; width: 100%; &:nth-of-type(even) { background-color: #f0f8ff; } } .main-page { flex-direction: column; align-items: center; } .expl-box, .settings-box { width: 100%; } .column { width: 100%; height: auto; } body { flex-direction: column; } header.column { width: 100%; height: 100%; box-shadow: none; } header { background-color: #00000066; position: fixed; top: 0; max-width: 0; transition: max-width 0.1s ease-out; z-index: 900; } header.open { max-width: 82%; transition: max-width 0.2s ease-in; } mobile-header { display: flex; position: sticky; top: 0; left: 0; z-index: 800; } .mobile-nav-background.open { display: block; } .mobile-nav-close-button { position: absolute; right: 10px; top: 10px; width: 50px; height: 50px; &::before { position: absolute; top: 0; bottom: 0; left: 0; right: 0; content: "\2715"; color: $color_nav_close_button_text; line-height: 48px; font-size: 22px; text-align: center; cursor: pointer; } } } .flexcontainer { display: flex; flex-direction: column; max-width: 900px; }