mirror of
https://github.com/discourse/discourse.git
synced 2024-12-27 20:48:32 +08:00
98fc614162
Automatically add `moderators` and `admins` auto groups to specific site settings. In the new group-based permissions systems, we just want to check the user’s groups since it more accurately reflects reality Affected settings: - tag_topic_allowed_groups - create_tag_allowed_groups - send_email_messages_allowed_groups - personal_message_enabled_groups - here_mention_allowed_groups - approve_unless_allowed_groups - approve_new_topics_unless_allowed_groups - skip_review_media_groups - email_in_allowed_groups - create_topic_allowed_groups - edit_wiki_post_allowed_groups - edit_post_allowed_groups - self_wiki_allowed_groups - flag_post_allowed_groups - post_links_allowed_groups - embedded_media_post_allowed_groups - profile_background_allowed_groups - user_card_background_allowed_groups - invite_allowed_groups - ignore_allowed_groups - user_api_key_allowed_groups
103 lines
2.2 KiB
SCSS
103 lines
2.2 KiB
SCSS
.select-kit {
|
|
&.multi-select {
|
|
width: 300px;
|
|
background: var(--secondary);
|
|
|
|
.select-kit-filter {
|
|
& + .selected-content,
|
|
& + .select-kit-collection {
|
|
border-top: 1px solid var(--primary-low);
|
|
}
|
|
}
|
|
|
|
.select-kit-row {
|
|
min-height: 1px;
|
|
}
|
|
|
|
&.is-disabled {
|
|
.multi-select-header {
|
|
background: var(--primary-low);
|
|
border-color: var(--primary-low-mid);
|
|
color: var(--primary-medium);
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
}
|
|
}
|
|
}
|
|
|
|
.selected-content {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
padding: 0;
|
|
justify-content: flex-start;
|
|
box-sizing: border-box;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
padding: 0.25em 0.25em 0 0.25em;
|
|
|
|
.disabled {
|
|
margin: 0 0.25em 0.25em 0;
|
|
align-content: center;
|
|
}
|
|
|
|
.selected-choice {
|
|
margin: 0 0.25em 0.25em 0;
|
|
font-size: var(--font-down-1);
|
|
|
|
&.selected-choice-color {
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
.multi-select-header {
|
|
background: var(--secondary);
|
|
border-color: var(--primary-400);
|
|
|
|
.formatted-selection {
|
|
margin: 0;
|
|
cursor: pointer;
|
|
@include ellipsis;
|
|
display: inline-block;
|
|
}
|
|
|
|
.select-kit-header--filter {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin: -0.35em;
|
|
margin-left: -0.25em;
|
|
position: relative;
|
|
.selected-choice {
|
|
margin: 0.125em 0.25em 0.125em 0;
|
|
padding: 0.2em 0.3em;
|
|
font-size: var(--font-down-1);
|
|
|
|
&.selected-choice-color {
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
}
|
|
|
|
.select-kit-filter {
|
|
display: inline-flex;
|
|
flex: 1 1 30px;
|
|
width: auto;
|
|
margin-left: 0.25em;
|
|
position: static;
|
|
min-height: 28px;
|
|
&.is-expanded {
|
|
padding: 0;
|
|
}
|
|
.filter-input {
|
|
min-height: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.is-expanded .multi-select-header,
|
|
.multi-select-header:focus {
|
|
@include default-focus;
|
|
}
|
|
}
|
|
}
|