2020-10-23 12:49:02 -04:00
|
|
|
$category-settings-width: unquote("min(500px, 90%)");
|
|
|
|
$number-input-width: 75px;
|
|
|
|
|
|
|
|
div.edit-category {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 5fr;
|
|
|
|
grid-template-rows: auto auto auto;
|
|
|
|
grid-row-gap: 1em;
|
|
|
|
grid-column-gap: 1.5em;
|
2021-01-26 09:43:47 -05:00
|
|
|
grid-template-areas: "header header" "sidebar content" "sidebar warning" "sidebar footer";
|
2020-10-23 12:49:02 -04:00
|
|
|
|
2021-05-25 14:40:11 -04:00
|
|
|
.edit-category-title-bar {
|
2020-10-23 12:49:02 -04:00
|
|
|
grid-area: header;
|
2020-11-12 12:51:25 -05:00
|
|
|
grid-column: 1 / span 2;
|
2020-10-23 12:49:02 -04:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-self: start;
|
2020-11-12 12:51:25 -05:00
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
padding: 20px;
|
2021-05-25 14:40:11 -04:00
|
|
|
|
|
|
|
.category-back {
|
|
|
|
height: 2em;
|
|
|
|
align-self: flex-end;
|
|
|
|
}
|
2020-10-23 12:49:02 -04:00
|
|
|
}
|
|
|
|
|
2020-11-12 12:51:25 -05:00
|
|
|
.edit-category-nav {
|
2020-10-23 12:49:02 -04:00
|
|
|
grid-area: sidebar;
|
2020-11-12 12:51:25 -05:00
|
|
|
grid-row: 2 / span 3;
|
|
|
|
.nav-stacked {
|
|
|
|
background-color: var(--secondary);
|
|
|
|
}
|
2020-10-23 12:49:02 -04:00
|
|
|
}
|
|
|
|
|
2020-11-20 10:44:34 -05:00
|
|
|
.edit-category-content {
|
|
|
|
grid-area: content;
|
|
|
|
}
|
|
|
|
|
2020-10-23 12:49:02 -04:00
|
|
|
#list-area & h2 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
section.field {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2020-11-20 10:44:34 -05:00
|
|
|
.warning {
|
|
|
|
background-color: var(--tertiary-low);
|
|
|
|
padding: 0.5em 2.5em 0.5em 1em;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2020-10-23 12:49:02 -04:00
|
|
|
.edit-category-tab-general {
|
|
|
|
.category-chooser {
|
|
|
|
width: unquote("min(340px, 90%)");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-category-tab-security {
|
|
|
|
.permission-selector {
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pending-permission-change-alert {
|
|
|
|
margin-left: auto;
|
|
|
|
max-width: 250px;
|
|
|
|
background: var(--primary-very-high);
|
|
|
|
color: var(--secondary);
|
|
|
|
margin-top: 10px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
position: relative;
|
|
|
|
.arrow-div {
|
|
|
|
border: solid transparent;
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
border-bottom-color: var(--primary-very-high);
|
|
|
|
border-width: 7px;
|
|
|
|
top: -13px;
|
|
|
|
left: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.permission-list {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0 0 30px;
|
|
|
|
padding: 0;
|
|
|
|
.name {
|
|
|
|
margin-right: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
.permission {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
.d-icon-times-circle {
|
|
|
|
margin-left: 5px;
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-category-tab-settings {
|
|
|
|
> section {
|
|
|
|
margin-bottom: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"],
|
|
|
|
.select-kit {
|
|
|
|
width: $category-settings-width;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
max-width: $category-settings-width;
|
|
|
|
}
|
|
|
|
input[type="number"] {
|
|
|
|
width: $number-input-width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-category-tab-tags {
|
|
|
|
#category-min-tags-from-group {
|
|
|
|
width: $number-input-width;
|
|
|
|
min-height: 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select-kit {
|
|
|
|
&.tag-chooser {
|
2021-04-18 19:43:50 -04:00
|
|
|
width: 250px;
|
2020-10-23 12:49:02 -04:00
|
|
|
|
|
|
|
.select-kit-filter,
|
|
|
|
.filter-input {
|
|
|
|
min-width: 250px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.manage-tag-groups {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-26 09:43:47 -05:00
|
|
|
.edit-category-delete-warning {
|
|
|
|
grid-area: warning;
|
|
|
|
}
|
|
|
|
|
2020-10-23 12:49:02 -04:00
|
|
|
.edit-category-footer {
|
|
|
|
grid-area: footer;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-self: start;
|
2020-11-20 10:44:34 -05:00
|
|
|
padding: 0 1.5em 2em 0;
|
2020-10-23 12:49:02 -04:00
|
|
|
}
|
2021-02-15 21:07:30 -05:00
|
|
|
|
2021-06-27 15:46:11 -04:00
|
|
|
.category-topic-auto-close-hours,
|
|
|
|
.category-default-slow-mode-seconds {
|
2021-02-15 21:07:30 -05:00
|
|
|
width: 200px;
|
|
|
|
}
|
2022-04-06 09:08:06 -04:00
|
|
|
|
|
|
|
.required-tag-groups {
|
|
|
|
.required-tag-group-row {
|
|
|
|
display: flex;
|
|
|
|
gap: 0.5em;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="number"] {
|
|
|
|
width: 4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|
2020-10-23 12:49:02 -04:00
|
|
|
}
|
2020-11-20 10:44:34 -05:00
|
|
|
|
|
|
|
.category-permissions-table {
|
|
|
|
max-width: 450px;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
|
|
|
|
.permission-row {
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
display: flex;
|
|
|
|
&.row-header {
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: 2px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
.group-name,
|
|
|
|
.options {
|
|
|
|
display: flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
text-align: center;
|
|
|
|
width: 50%;
|
|
|
|
margin: 0px;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.group-name {
|
|
|
|
text-align: left;
|
|
|
|
padding: 0.5em;
|
|
|
|
padding-left: 0;
|
|
|
|
.group-name-label {
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.cell,
|
|
|
|
.btn-flat {
|
|
|
|
width: 33%;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
.btn-flat:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
.btn-flat .d-icon-check-square,
|
|
|
|
.btn-flat:hover .d-icon-check-square {
|
|
|
|
color: var(--success);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.remove-permission {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
padding: 0.15em;
|
|
|
|
color: var(--danger);
|
|
|
|
&:hover {
|
|
|
|
color: var(--danger-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-empty {
|
|
|
|
padding: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-empty {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
|
|
|
|
.add-group {
|
|
|
|
margin: 1em 0;
|
|
|
|
.group-name {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|