dark theme login window

pull/19/head
prplV 2025-03-17 09:15:25 -04:00
parent c90bef284c
commit eed159e4ab
3 changed files with 30 additions and 7 deletions

View File

@ -4,7 +4,7 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.5); background: var(--modal-background);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -13,8 +13,9 @@
.modal { .modal {
background: var(--modal-background); background: var(--modal-background);
padding: 20px; padding: 20px;
/* padding-right: 3%; */
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* box-shadow: 0 0.3vh 2vh #1E1E1E; */
max-width: 400px; max-width: 400px;
width: 100%; width: 100%;
color: var(--modal-text); color: var(--modal-text);
@ -22,36 +23,52 @@
.modal h2 { .modal h2 {
margin-bottom: 20px; margin-bottom: 20px;
text-align: center;
font-size: 4vh;
} }
.modal label { .modal label {
display: block; display: block;
margin-bottom: 5px; margin-bottom: 5px;
color: var(--modal-text); color: var(--modal-text);
font-size: larger;
font-weight: bolder;
padding-bottom: 1%;
} }
.modal input { .modal input {
width: 100%; width: 100%;
padding: 8px; /* padding: 8px; */
padding-top: 3%;
padding-bottom: 3%;
/* margin-left: 3%; */
/* margin-right: 10%; */
margin-bottom: 10px; margin-bottom: 10px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
font-size: larger;
background-color: var(--modal-background); background-color: var(--modal-background);
color: var(--modal-text); color: var(--modal-text);
} }
.modal button { .modal button {
padding: 10px 20px; /* padding: 10px 20px; */
margin-top: 5vh;
margin-bottom: 5px; margin-bottom: 5px;
background: var(--accent-color); background: var(--modal--btn-background);
color: var(--text-color); color: var(--text-color);
border: none; border: none;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 0.3vh 1vh #2c2c2c;
cursor: pointer; cursor: pointer;
width: 100%;
padding-top: 4%;
padding-bottom: 4%;
transition: 0.2s;
} }
.modal button:hover { .modal button:hover {
background: var(--accent-hover-color); background: var(--hover-button);
} }
.error { .error {

View File

@ -8,7 +8,8 @@
/* Темный цвет сайдбара */ /* Темный цвет сайдбара */
--sidebar-text-color: #E0E0E0; --sidebar-text-color: #E0E0E0;
/* Светлый текст в сайдбаре */ /* Светлый текст в сайдбаре */
--modal-background: #333333; --modal-background: #2d2d2d;
--modal--btn-background: #333333;
--modal-text: #FFFFFF; --modal-text: #FFFFFF;
--table-border: #444444; --table-border: #444444;
--table-header-background: #2d2d2d; --table-header-background: #2d2d2d;
@ -17,5 +18,7 @@
/* Светлый текст в таблице */ /* Светлый текст в таблице */
--TreeChart-text-color: #ffffff; --TreeChart-text-color: #ffffff;
--scrollbar-track-color: #333; --scrollbar-track-color: #333;
/* hover for buttons */
--hover-button: #333d4d;
} }
} }

View File

@ -14,4 +14,7 @@
--table-cell-background: #FFFFFF; --table-cell-background: #FFFFFF;
--table-text-color: #000000; --table-text-color: #000000;
/* Черный текст в таблице */ /* Черный текст в таблице */
/* hover for buttons */
--hover-button: #2c579c;
} }