mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 17:15:47 +08:00
373 lines
5.5 KiB
SCSS
373 lines
5.5 KiB
SCSS
.reviewable {
|
|
.nav-pills {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.reviewable-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin-top: 1em;
|
|
|
|
.reviewable-list {
|
|
flex: 1;
|
|
box-sizing: border-box;
|
|
max-width: 760px; // Match topic post width
|
|
min-width: 320px;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.reviewable-filters {
|
|
width: 250px;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.reviewable-list + .reviewable-filters {
|
|
margin-left: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewable-settings {
|
|
p.description {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.saved {
|
|
margin-left: 0.5em;
|
|
}
|
|
.reviewable-score-type {
|
|
display: flex;
|
|
|
|
.title {
|
|
width: 30%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewable-user-info {
|
|
margin: 0.5em 0;
|
|
.reviewable-user-fields {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.reviewable-user-details {
|
|
border-bottom: 1px solid $primary-low;
|
|
padding-bottom: 0.25em;
|
|
|
|
display: flex;
|
|
.name {
|
|
width: 8em;
|
|
font-weight: bold;
|
|
margin-right: 1em;
|
|
}
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
.no-review {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.reviewable-filters {
|
|
background-color: $primary-very-low;
|
|
padding: 1em;
|
|
margin-bottom: 1em;
|
|
|
|
.reviewable-filter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0 0 1em 0;
|
|
|
|
.filter-label {
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
|
|
.score-filter {
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.category-chooser {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewable-topics {
|
|
width: 100%;
|
|
|
|
tbody {
|
|
td {
|
|
padding: 0.5em;
|
|
}
|
|
}
|
|
|
|
.reviewable-details {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
.btn {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewable-filters {
|
|
.topic-filter .btn {
|
|
display: flex;
|
|
width: auto;
|
|
}
|
|
|
|
.refresh {
|
|
height: 1em;
|
|
display: flex;
|
|
}
|
|
|
|
.score-filter {
|
|
width: 5em;
|
|
}
|
|
}
|
|
.user-flag-percentage {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 0.5em;
|
|
|
|
.percentage-label {
|
|
margin-right: 0.25em;
|
|
&.agreed {
|
|
color: $success;
|
|
}
|
|
&.disagreed {
|
|
color: $danger;
|
|
}
|
|
&.ignored {
|
|
color: $primary-medium;
|
|
}
|
|
}
|
|
.d-icon {
|
|
font-size: 0.9em;
|
|
}
|
|
}
|
|
|
|
.reviewable-item {
|
|
padding-top: 2em;
|
|
border-top: 1px solid dark-light-choose($primary-low, $secondary-low);
|
|
|
|
.topic-statuses {
|
|
font-size: $font-up-2;
|
|
}
|
|
|
|
.reviewable-meta-data {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
display: flex;
|
|
width: 100%;
|
|
margin-bottom: 0.5em;
|
|
font-size: $font-down-1;
|
|
align-items: baseline;
|
|
.reviewable-type {
|
|
margin-right: 0.25em;
|
|
}
|
|
.reply-count {
|
|
margin-left: 1em;
|
|
}
|
|
.created-at {
|
|
margin-left: 1em;
|
|
margin-right: auto;
|
|
a {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
}
|
|
}
|
|
.score {
|
|
font-size: $font-down-1;
|
|
}
|
|
.status {
|
|
color: $primary-medium;
|
|
span.approved {
|
|
color: $success;
|
|
}
|
|
span.rejected {
|
|
color: $danger;
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewable-contents {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.reviewable-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
button {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.reviewable-action,
|
|
.reviewable-action-dropdown {
|
|
margin-right: 0.5em;
|
|
|
|
&.delete-user {
|
|
@extend .btn-danger;
|
|
}
|
|
}
|
|
}
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
.reviewable-histories {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.reviewable-scores-and-history {
|
|
display: inline-block;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.reviewable-scores,
|
|
.reviewable-histories {
|
|
min-width: 50%;
|
|
|
|
.user {
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
|
|
.user-flag-percentage {
|
|
margin-left: 0.5em;
|
|
}
|
|
}
|
|
|
|
.d-icon {
|
|
font-size: $font-down-1;
|
|
color: $primary-high;
|
|
}
|
|
|
|
.badge-notification {
|
|
line-height: $line-height-medium;
|
|
}
|
|
|
|
tbody {
|
|
border-width: 1px;
|
|
td {
|
|
white-space: nowrap;
|
|
}
|
|
td:first-of-type {
|
|
padding-right: 1em;
|
|
}
|
|
td:last-of-type {
|
|
width: 100%;
|
|
white-space: normal;
|
|
}
|
|
> tr > th {
|
|
text-align: left;
|
|
}
|
|
> tr > th,
|
|
> tr > td {
|
|
padding: 0.5em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewable-conversation {
|
|
margin: 0.5em 0;
|
|
|
|
.reviewable-conversation-post {
|
|
max-width: $topic-body-width;
|
|
margin-bottom: 0.5em;
|
|
|
|
.username {
|
|
font-weight: bold;
|
|
margin-right: 0.25em;
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
margin-top: 0.25em;
|
|
}
|
|
}
|
|
|
|
.reviewable-item {
|
|
.post-title {
|
|
background-color: yellow;
|
|
}
|
|
.created-by {
|
|
margin-right: 1em;
|
|
padding-top: 0.35em;
|
|
}
|
|
|
|
.names {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.post-contents-wrapper {
|
|
display: flex;
|
|
width: 100%;
|
|
margin-top: 1em;
|
|
min-width: 275px;
|
|
}
|
|
|
|
.post-contents {
|
|
width: 100%;
|
|
}
|
|
|
|
.post-body {
|
|
max-width: $topic-body-width;
|
|
max-height: 300px;
|
|
margin-top: 0.5em;
|
|
overflow-y: auto;
|
|
|
|
p,
|
|
aside {
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
pre,
|
|
code {
|
|
word-break: break-all;
|
|
}
|
|
}
|
|
|
|
.post-topic {
|
|
width: 100%;
|
|
color: $primary-medium;
|
|
margin-bottom: 0.75em;
|
|
.title-text {
|
|
font-weight: bold;
|
|
color: $primary;
|
|
display: block;
|
|
font-size: $font-up-2;
|
|
margin-right: 0.75em;
|
|
}
|
|
.topic-statuses {
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.editable-fields {
|
|
width: 100%;
|
|
.editable-field {
|
|
.mini-tag-chooser {
|
|
margin: 0;
|
|
}
|
|
|
|
.reviewable-input-text {
|
|
width: 100%;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.reviewable-input-textarea {
|
|
width: 100%;
|
|
height: 10em;
|
|
}
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|