diff options
| author | 2024-11-21 14:09:58 +0100 | |
|---|---|---|
| committer | 2024-11-21 13:09:58 +0000 | |
| commit | 301543616b5376585a7caff097499421acdf1806 (patch) | |
| tree | 4cac6aea2c33687b1339fc3bc18e6eb64def6f9a /web/source/settings/style.css | |
| parent | [feature] Allow emoji shortcode to be 1-character length (#3556) (diff) | |
| download | gotosocial-301543616b5376585a7caff097499421acdf1806.tar.xz | |
[feature] Add domain permission drafts and excludes (#3547)
* [feature] Add domain permission drafts and excludes
* fix typescript complaining
* lint
* make filenames more consistent
* test own domain excluded
Diffstat (limited to 'web/source/settings/style.css')
| -rw-r--r-- | web/source/settings/style.css | 95 |
1 files changed, 90 insertions, 5 deletions
diff --git a/web/source/settings/style.css b/web/source/settings/style.css index ecfe5910a..740c30059 100644 --- a/web/source/settings/style.css +++ b/web/source/settings/style.css @@ -194,7 +194,8 @@ nav.menu-tree { } } - li.nested { /* any deeper nesting, just has indent */ + /* Deeper nesting. */ + li.nested { a.title { padding-left: 1rem; font-weight: normal; @@ -210,11 +211,35 @@ nav.menu-tree { background: $settings-nav-bg-hover; } } + + &.active > a.title { + color: $fg-accent; + font-weight: bold; + } - &.active { - a.title { - color: $fg-accent; - font-weight: bold; + &.category { + & > a.title { + &::after { + content: "▶"; + left: 0.8rem; + bottom: 0.1rem; + position: relative; + } + } + + &.active { + & > a.title { + &::after { + content: "▼"; + bottom: 0; + } + + border-bottom: 0.15rem dotted $gray1; + } + } + + li.nested > a.title { + padding-left: 2rem; } } } @@ -1334,6 +1359,66 @@ button.tab-button { } } +.domain-permission-drafts-view, +.domain-permission-excludes-view { + .domain-permission-draft, + .domain-permission-exclude { + display: flex; + flex-direction: column; + flex-wrap: nowrap; + gap: 0.5rem; + + &.block { + border-left: 0.3rem solid $error3; + } + + &.allow { + border-left: 0.3rem solid $green1; + } + + &:hover { + border-color: $fg-accent; + } + + .info-list { + border: none; + + .info-list-entry { + background: none; + padding: 0; + } + } + + .action-buttons { + display: flex; + gap: 0.5rem; + align-items: center; + + > .mutation-button + > button { + font-size: 1rem; + line-height: 1rem; + } + } + } +} + +.domain-permission-draft-details, +.domain-permission-exclude-details { + .info-list { + margin-top: 1rem; + } +} + +.domain-permission-drafts-view, +.domain-permission-draft-details { + dd.permission-type { + display: flex; + gap: 0.35rem; + align-items: center; + } +} + .instance-rules { list-style-position: inside; margin: 0; |
