catstodon/app/javascript/flavours/glitch/styles/components/local_settings.scss
Eugen Rochko d54414866c [Glitch] Change icons in web UI
Port 134de736dc to glitch-soc

Co-authored-by: Renaud Chaput <renchap@gmail.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2024-01-13 23:19:01 +01:00

175 lines
2.9 KiB
SCSS

.glitch.local-settings {
position: relative;
display: flex;
flex-direction: row;
background: $ui-secondary-color;
color: $inverted-text-color;
border-radius: 8px;
height: 80vh;
width: 80vw;
max-width: 740px;
max-height: 450px;
overflow: hidden;
label,
legend {
display: block;
font-size: 14px;
}
.boolean label,
.radio_buttons label {
position: relative;
padding-inline-start: 28px;
padding-top: 3px;
input {
position: absolute;
inset-inline-start: 0;
top: 0;
}
}
span.hint {
display: block;
color: $lighter-text-color;
}
h1 {
font-size: 18px;
font-weight: 500;
line-height: 24px;
margin-bottom: 20px;
}
h2 {
font-size: 15px;
font-weight: 500;
line-height: 20px;
margin-top: 20px;
margin-bottom: 10px;
}
}
.glitch.local-settings__navigation__item {
display: flex;
gap: 5px;
align-items: center;
padding: 15px 20px;
color: inherit;
background: lighten($ui-secondary-color, 8%);
border: 0;
border-bottom: 1px $ui-secondary-color solid;
cursor: pointer;
text-decoration: none;
outline: none;
transition: background 0.3s;
box-sizing: border-box;
width: 100%;
text-align: start;
font-size: inherit;
.text-icon-button {
color: inherit;
transition: unset;
unicode-bidi: embed;
}
&:hover {
background: $ui-secondary-color;
}
&.active {
background: $ui-highlight-color;
color: $primary-text-color;
}
&.close,
&.close:hover {
background: $error-value-color;
color: $primary-text-color;
}
}
.glitch.local-settings__navigation {
background: lighten($ui-secondary-color, 8%);
width: 212px;
font-size: 15px;
line-height: 20px;
overflow-y: auto;
}
.glitch.local-settings__page {
display: block;
flex: auto;
padding: 15px 20px;
width: 360px;
overflow-y: auto;
}
.glitch.local-settings__page__item {
margin-bottom: 2px;
.hint a {
color: $lighter-text-color;
font-weight: 500;
text-decoration: underline;
&:active,
&:focus,
&:hover {
text-decoration: none;
}
}
#mastodon-settings--collapsed-auto-height {
width: calc(4ch + 20px);
}
}
.glitch.local-settings__page__item.string,
.glitch.local-settings__page__item.radio_buttons {
margin-top: 10px;
margin-bottom: 10px;
}
@media screen and (width <= 630px) {
.glitch.local-settings__navigation {
width: 40px;
flex-shrink: 0;
}
.glitch.local-settings__navigation__item {
padding: 10px;
span:last-of-type {
display: none;
}
}
}
.deprecated-settings-label {
white-space: nowrap;
}
.deprecated-settings-info {
text-align: start;
ul {
padding: 10px;
margin-inline-start: 12px;
list-style: disc inside;
}
a {
color: $lighter-text-color;
font-weight: 500;
text-decoration: underline;
&:active,
&:focus,
&:hover {
text-decoration: none;
}
}
}