202 lines
3.9 KiB
CSS
202 lines
3.9 KiB
CSS
.tabs-header {
|
|
margin: 0.5em 0 3px;
|
|
background: var(--brand-bg);
|
|
}
|
|
.tabs-header > * {
|
|
display: inline-block;
|
|
}
|
|
.tabs-btn {
|
|
text-decoration: none;
|
|
font-size: 18px;
|
|
border: none;
|
|
padding: 10px 25px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
margin-bottom: -3px;
|
|
border-bottom: 3px solid #eee;
|
|
}
|
|
.tabs-btn.active {
|
|
color: var(--brand-text);
|
|
border-bottom: 3px solid var(--bg-action);
|
|
}
|
|
.tabs-body-item {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.indicator_bad {
|
|
background: var(--text-bad);
|
|
}
|
|
.indicator_good {
|
|
background: var(--text-good);
|
|
}
|
|
.indicator {
|
|
display: inline-block;
|
|
width: 1em;
|
|
height: 1em;
|
|
border: solid 1px var(--text-color2);
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
.dangerous-button, .action-button {
|
|
border: solid 1px var(--text-color2);
|
|
border-radius: 0.5em;
|
|
padding: 0.3em;
|
|
margin: 0.2em;
|
|
}
|
|
|
|
.summary-actions {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
}
|
|
.summary-actions * {
|
|
margin: 0;
|
|
}
|
|
|
|
.dangerous-button {
|
|
background: var(--bg-danger);
|
|
}
|
|
|
|
.action-button {
|
|
background: var(--bg-action);
|
|
}
|
|
|
|
.nav-bar-element {
|
|
margin: 0.5em;
|
|
border-bottom: 2px solid var(--text-color2);
|
|
}
|
|
|
|
.tabs-item-flex-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
.tabs-item-flex-container > * {
|
|
flex: 1 1 auto
|
|
}
|
|
|
|
.tabs-item-flex-container > *, .settings-set-container {
|
|
margin: 1em;
|
|
border: 1px solid var(--text-color2);
|
|
border-radius: 0.2em;
|
|
}
|
|
|
|
.settings-set-container {
|
|
padding: 1em;
|
|
}
|
|
|
|
.settings-set-container th {
|
|
text-align: left;
|
|
padding-right: 1em;
|
|
}
|
|
.settings-set-container td {
|
|
min-width: 10em;
|
|
}
|
|
.tabs-item-flex-container h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.settings-set-container > h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
label * {
|
|
display: block;
|
|
}
|
|
|
|
label {
|
|
margin: 1em 0.5em;
|
|
display: block;
|
|
/*background: var(--bg-selected);*/
|
|
color: var(--text-color2);
|
|
}
|
|
.settings-set-container input, .settings-set-container select {
|
|
margin-top: 0.5em;
|
|
border: none;
|
|
border-bottom: solid 2px var(--text-color2);
|
|
width: 20em;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.settings-set-container input:focus {
|
|
outline: none;
|
|
border: none;
|
|
border-bottom: solid 2px var(--bg-action);
|
|
}
|
|
|
|
.settings-set-container input:invalid {
|
|
border: solid 1px var(--text-bad);
|
|
}
|
|
|
|
/* костыль для браузеров, которые некорректно стилизуют элементы option */
|
|
select * {
|
|
background: var(--bg-selected);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.settings-set-container tr > * {
|
|
border-bottom: solid 1px var(--text-color2);
|
|
}
|
|
|
|
.settings-set-container tr:hover {
|
|
background: var(--bg-selected);
|
|
}
|
|
|
|
details > summary {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.submit-spinner {
|
|
display: inline-block;
|
|
width: 1em;
|
|
height: 1em;
|
|
border: 3px solid #f3f3f3; /* Цвет границы */
|
|
border-radius: 50%; /* Делаем круг */
|
|
border-top-color: #3498db; /* Цвет верхней границы */
|
|
animation: spin 0.8s linear infinite; /* Анимация вращения */
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/*********************** Стили для красивых 'switch' ***********************/
|
|
|
|
.toggle-input {
|
|
position: relative;
|
|
margin: 5px 10px;
|
|
width: 50px;
|
|
height: 16px;
|
|
background-color: var(--bg-element);
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.toggle-input input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
.toggle-input .slider {
|
|
position: absolute;
|
|
top: -4px;
|
|
left: 0;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-color: var(--text-color);
|
|
border-radius: 50%;
|
|
transition: left 0.3s;
|
|
}
|
|
|
|
.toggle-input input[type="checkbox"]:checked + .slider {
|
|
left: 25px;
|
|
background-color: var(--bg-action);
|
|
}
|
|
|
|
.toggle-input input[type="checkbox"]:checked + .slider:before {
|
|
left: 10px;
|
|
}
|