Dark Theme with design fixes
lk.samgtu.ru Dark by lampadov
Details
Authorlampadov
LicenseNo License
Categorylk.samgtu.ru
Created
Updated
Size48 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Only for students!
Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name lk.samgtu.ru Dark
@namespace github.com/openstyles/stylus
@version 0.1.0
@description Dark userstyle with design fixes
@author lampadov
==/UserStyle== */
@-moz-document url-prefix("https://lk.samgtu.ru") {
/*ОСНОВНЫЕ*/
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
:root {
--primary: #1443b8;
--primary_lighter: #a3baf5;
--primary_darker: #173582;
--secondary: #F51933;
--tertiary: #66d9ff;
--background: #17181c;
--surface: #22252a;
--surface2: #292c32;
--btn: #2b303b;
--btn_pressed: #1c1f26;
--text: #fff;
--class: #1f2530;
--class_personal: #52e08d;
--class_unread: #f04444;
--class_newtask: #eb9947;
--class_projectwork: #44e8ee;
}
body {
color: var(--text);
background-color: var(--background);
font-family: "Inter", sans-serif !important;
line-height: 1.5;
}
* {
font-family: "Inter", sans-serif;
}
.page-container,
#page-content,
.page-content {
background: var(--background)!important;
}
a {
color: var(--primary_lighter);
text-decoration: none!important;
transition: color ease-in-out .2s;
}
a:hover {
color: #668bcc;
}
.table .table {
background-color: var(--background);
}
.styled-button {
font-family: "Inter", sans-serif!important;
font-size: 14px;
}
h1,
h2 {
font-weight: 600;
line-height: 26px;
color: var(--text);
}
h1 {
margin: 50px 0 32px;
font-size: 32px;
}
/* .container, .container-fluid {
padding-left: 0;
padding-right: 0;
}
.row {
margin-left: 0;
margin-right: 0;
} */
.wrapper {
max-width: 2000px;
}
/*MENU*/
.header-sidebar,
.header-sidebar .sidebar-content {
height: initial;
background: var(--surface);
}
.header-sidebar {
border-bottom: none;
}
.sidebar {
background: var(--surface);
width: 75px;
min-height: calc(100vh - 125px);
transition: width .2s;
overflow: hidden;
padding-bottom: 40px;
}
#scrollbar-menu::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, .25);
background-image: none;
border: 4px solid var(--surface);
border-radius: 20px;
}
#scrollbar-menu::-webkit-scrollbar-track {
background-color: var(--surface);
}
.main-menu {
margin-top: 30px;
padding: 0;
}
#scrollbar-menu > div > ul > li:nth-child(16),
#scrollbar-menu > div > ul > li:nth-child(1) {
display: none;
}
.main-menu__item {
display: block;
padding: 16px 16px 16px 27px!important;
}
.main-menu__item--active,
.main-menu__item--dropdown--open {
background: var(--surface2);
}
.main-menu__item--has-dropdown:after {
content: "";
position: absolute;
width: 8px;
height: 8px;
transform: rotate(45deg);
border: 2px solid #fff;
border-left: 0;
border-top: 0;
right: 26px;
top: 18px;
transition: transform ease-out 0.3s, top 0.3s, border ease-in-out 0.2s;
}
.main-menu__item--dropdown--open:after {
transform: rotate(-135deg);
top: 22px;
}
.main-menu__link {
line-height: 22px;
font-weight: 500;
transition: color ease-in-out 0.2s;
}
.main-menu__item:hover .main-menu__link {
color: var(--tertiary);
text-decoration: none;
}
.main-menu__item:hover .main-menu__icon {
fill: var(--tertiary);
}
.main-menu__item:hover.main-menu__item--has-dropdown:after,
.main-menu__item--dropdown--open:hover:after {
border: 2px solid var(--tertiary);
border-left: 0;
border-top: 0;
}
.main-menu__icon {
fill: #fff;
width: 20px;
height: 20px;
margin-right: 20px;
transition: fill ease-in-out 0.2s;
}
.toggle-menu {
width: 20px;
height: 20px;
position: relative;
margin: 0 27px;
}
.toggle-menu:hover:after,
.toggle-menu:hover:before {
background: var(--secondary);
}
.toggle-menu:hover:before {
box-shadow: 0 6px 0 0 var(--secondary);
}
.logo {
width: 150px;
padding: 16px;
}
.toggle-menu:before {
top: 2px;
-webkit-box-shadow: 0 6px 0 0 #fff;
box-shadow: 0 6px 0 0 #fff;
}
.toggle-menu:after {
bottom: 4px;
}
.toggle-menu:after,
.toggle-menu:before {
height: 2px;
transition: all ease-in-out .2s;
}
/*end MENU*/
/*HEADER*/
.header {
height: initial;
background-color: var(--background);
align-items: center;
}
.header > .header-content .container-fluid {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.header > .header-content .container-fluid:before,
.header > .header-content .container-fluid:after {
content: none;
}
.current-user {
margin: 0;
float: none;
font-weight: 400;
display: flex;
align-items: center;
}
.current-user__icon-box {
line-height: initial!important;
text-align: initial;
vertical-align: initial;
border-radius: 50%;
float: initial;
margin-right: 16px;
}
.current-user__icon,
.header-link__icon {
width: 16px;
height: 16px;
fill: var(--text);
transition: fill ease-in-out 0.2s;
}
.header-links {
float: none;
margin: 0;
display: flex;
gap: 16px;
flex-grow: 1;
justify-content: flex-end;
}
.header-link__item:nth-child(1) {
display: none;
}
.header-link__item {
width: 40px;
height: 40px;
margin-left: 0;
}
.header-link,
.current-user__icon-box {
width: 40px;
height: 40px;
background-color: transparent;
border: 1px solid rgba(255, 255, 255, .25);
display: flex;
align-items: center;
justify-content: center;
}
.current-user:hover .current-user__name,
.current-user:hover .current-user__icon,
.header-link:hover .header-link__icon {
color: var(--primary_lighter);
fill: var(--primary_lighter);
}
.current-user__name {
font-size: 18px;
color: var(--text);
margin-bottom: 4px;
font-weight: 600;
transition: color ease-in-out 0.2s;
}
.current-user__info {
font-size: 14px;
color: rgba(255, 255, 255, .4);
}
.logout {
float: none;
color: var(--text);
margin: 0;
display: flex;
order: 999;
align-items: center;
font-weight: 400;
transition: color ease-in-out 0.2s;
}
.logout:hover {
color: var(--primary_lighter);
text-decoration: none;
}
.logout:hover .logout__icon {
fill: var(--primary_lighter);
}
.logout__icon {
width: 20px;
height: 20px;
margin-right: 8px;
fill: var(--text);
transition: fill ease-in-out 0.2s;
}
/*end HEADER*/
.distance-learning-index {
padding-left: 0;
padding-right: 0;
}
.menu-btns {
margin-top: 20px;
padding-top: 0;
padding-bottom: 0;
margin-bottom: 16px;
}
.menu-btns > .btn-group,
.menu-btns > .btn-group-vertical {
display: flex;
vertical-align: middle;
flex-wrap: wrap;
align-items: center;
row-gap: 8px;
column-gap: 24px;
}
.menu-btns > .btn-group > .btn {
padding: 0;
text-transform: initial;
font-size: 20px!important;
font-weight: 600;
letter-spacing: 0;
background: none!important;
border: none;
margin: 0;
text-align: left;
flex-grow: 0;
margin-bottom: 0;
color: rgba(255, 255, 255, .25);
}
.menu-btns > .btn-group > .btn[href="https://samgtu.ru/distance-learning/instructions-for-students"] {
display: none;
}
.menu-btns .active:after,
.menu-btns a:after,
.menu-btns a:after {
width: 0;
height: 2px;
background-color: var(--primary_lighter);
content: "";
display: block;
margin: 4px auto;
transition: width 0.3s ease-out;
}
.menu-btns .active,
.menu-btns a:hover,
.menu-btns a:focus {
color: var(--text)!important;
box-shadow: none;
}
.menu-btns .active:after,
.menu-btns a:hover:after,
.menu-btns a:focus:after {
width: 100%;
}
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
box-shadow: none;
}
.square {
display: none !important;
}
.lgnd {
border: none;
padding: 0;
background: none;
margin: 0px;
color: var(--background);
line-height: 20px;
font-weight: 400;
}
.lgnd > .lgnd:nth-child(1) {
background-color: var(--class);
color: var(--text);
}
.lgnd > .lgnd:nth-child(2) {
background-color: var(--class_personal);
}
.lgnd > .lgnd:nth-child(3) {
background-color: var(--class_unread);
color: var(--text);
}
.lgnd > .lgnd:nth-child(4) {
background-color: var(--class_newtask);
}
...