mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 17:33:44 +08:00
d87a0216bb
* FEATURE: add penalty history when silencing a user Display penalty history (last 6 months) when silencing/suspending a user * FEATURE: allow default penalty values to be chosen Adds a site setting that designates default penalty values in hours. Silence/suspend modals will auto-fill in the default values, but otherwise will still allow moderators to pick and overwrite values as normal. First silence/suspend: first value Second silence/suspend: second value etc. Penalty counts are forgiven at the same rate as tl3 promotion requirements do. Co-authored-by: jjaffeux <j.jaffeux@gmail.com>
59 lines
915 B
SCSS
59 lines
915 B
SCSS
.suspend-user-modal {
|
|
.until-controls {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.suspend-reason {
|
|
width: 100%;
|
|
|
|
&.combo-box {
|
|
margin-bottom: 9px;
|
|
}
|
|
}
|
|
|
|
.suspend-reason-label,
|
|
.suspend-message-label {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.textarea,
|
|
input[type="text"] {
|
|
box-sizing: border-box;
|
|
height: 2.5em;
|
|
}
|
|
|
|
.inline-spinner {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.modal-body {
|
|
.penalty-post-edit {
|
|
margin-top: 1em;
|
|
|
|
textarea {
|
|
height: 10em;
|
|
}
|
|
}
|
|
.penalty-history {
|
|
margin-bottom: 1em;
|
|
padding-bottom: 0.5em;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
display: flex;
|
|
& > * {
|
|
flex-basis: 100%;
|
|
text-align: center;
|
|
padding: 1em 0;
|
|
font-weight: 600;
|
|
label {
|
|
font-weight: 600;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
.danger {
|
|
background-color: var(--danger);
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
}
|