discourse/app/assets/stylesheets/common/base/reviewables.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

515 lines
8.1 KiB
SCSS
Raw Normal View History

.reviewable {
.flagged-post-header {
width: 100%;
display: flex;
justify-content: space-between;
}
.status {
color: var(--primary-medium);
span.approved {
color: var(--success);
2019-04-10 13:22:28 -04:00
.d-icon {
color: currentColor;
}
}
span.rejected {
color: var(--danger);
2019-04-10 13:22:28 -04:00
.d-icon {
color: currentColor;
}
}
}
.explain {
margin-left: 0.5em;
}
.nav-pills {
margin: 0 0 1em;
}
.reviewable-container {
display: flex;
flex-direction: row;
2019-04-02 13:50:47 -04:00
margin-top: 1em;
.reviewable-list {
flex: 1;
box-sizing: border-box;
2019-04-02 16:25:53 -04:00
max-width: 760px; // Match topic post width
min-width: 0;
2019-04-02 16:25:53 -04:00
margin-right: auto;
}
.reviewable-filters {
width: 250px;
height: 100%;
box-sizing: border-box;
}
.reviewable-list + .reviewable-filters {
margin-left: 1em;
}
}
}
.reviewable-settings {
h4 {
margin-top: 1em;
margin-bottom: 1em;
}
.saved {
margin-left: 0.5em;
}
.reviewable-score-type {
display: flex;
margin-bottom: 0.5em;
.select-kit {
min-width: 10em;
}
.title {
width: 30%;
}
}
}
.reviewable-user-info {
margin: 0.5em 0;
.reviewable-user-fields {
margin-bottom: 2em;
}
.reviewable-user-details {
border-bottom: 1px solid var(--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: var(--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-claimed-topic {
display: flex;
align-items: center;
.btn-small {
margin-left: 0.5em;
}
}
.reviewable-actions .claimed-actions {
display: flex;
flex: 1 1 100%;
margin-right: 0;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5em;
}
.claimed-by {
display: flex;
align-items: center;
.claimed-username {
margin-left: 0.5em;
}
}
.reviewable-topics {
width: 100%;
tbody {
td {
padding: 0.5em;
}
}
.reviewable-details {
display: flex;
justify-content: flex-end;
.btn {
display: flex;
align-items: center;
margin-left: 1em;
}
}
}
.reviewable-filters {
.topic-filter .btn {
display: flex;
width: auto;
}
.score-filter {
width: 5em;
}
}
.user-flag-percentage {
display: flex;
align-items: center;
margin-left: 0.5em;
.percentage-label {
margin-right: 0.25em;
&.agreed {
color: var(--success);
2019-04-10 13:22:28 -04:00
+ .d-icon {
color: var(--success);
2019-04-10 13:22:28 -04:00
}
}
&.disagreed {
color: var(--danger);
2019-04-10 13:22:28 -04:00
+ .d-icon {
color: var(--danger);
2019-04-10 13:22:28 -04:00
}
}
&.ignored {
color: var(--primary-medium);
}
}
.d-icon {
font-size: 0.9em;
}
}
.reviewable-item {
2019-04-02 17:22:22 -04:00
padding-top: 2em;
border-top: 1px solid var(--primary-low);
.topic-statuses {
2019-04-02 16:25:53 -04:00
font-size: $font-up-2;
}
.reviewable-meta-data {
color: var(--primary-med-or-secondary-med);
display: flex;
width: 100%;
2019-04-02 17:22:22 -04:00
margin-bottom: 0.5em;
font-size: $font-down-1;
2019-04-02 13:50:47 -04:00
align-items: baseline;
.reviewable-type {
2019-04-02 13:50:47 -04:00
margin-right: 0.25em;
}
.reply-count {
margin-left: 1em;
}
.created-at {
margin-left: 1em;
margin-right: auto;
a {
color: var(--primary-med-or-secondary-med);
}
}
.score {
2019-04-02 13:50:47 -04:00
font-size: $font-down-1;
}
}
.reviewable-contents {
display: flex;
2019-04-02 13:50:47 -04:00
flex-wrap: wrap;
margin-bottom: 2em;
}
.reviewable-actions {
display: flex;
2019-04-02 13:50:47 -04:00
flex-wrap: wrap;
width: 100%;
2019-04-02 13:50:47 -04:00
button {
white-space: nowrap;
}
.reviewable-action,
.reviewable-action-dropdown {
margin-right: 0.5em;
}
}
padding-bottom: 1em;
}
.reviewable-stale {
opacity: 0.7;
}
.blur-images {
img:not(.avatar):not(.emoji) {
filter: blur(10px);
transition: 0.2s ease-in-out;
&:hover {
filter: blur(0);
transition: 0.2s ease-in-out;
}
}
}
.reviewable-histories {
margin-top: 1em;
}
2019-04-10 13:22:28 -04:00
.reviewable-scores {
min-width: 50%;
color: var(--primary-high);
2019-04-09 16:43:08 -04:00
.reviewed-by {
.date {
margin-left: 0.5em;
}
}
.user,
.reviewed-by {
display: flex;
align-items: center;
}
.user-flag-percentage {
margin-left: 0.5em;
}
2019-04-02 13:50:47 -04:00
.d-icon {
font-size: $font-down-1;
color: var(--primary-medium);
}
2019-04-02 13:50:47 -04:00
.badge-notification {
line-height: $line-height-medium;
2019-04-10 13:22:28 -04:00
vertical-align: text-top;
2019-04-02 13:50:47 -04:00
}
tbody {
border-width: 1px;
td {
white-space: nowrap;
2019-04-10 13:22:28 -04:00
vertical-align: baseline;
&.user a,
&.reviewed-by a {
max-width: 150px;
@include ellipsis;
2019-04-10 13:22:28 -04:00
}
}
2019-04-10 13:22:28 -04:00
td:last-of-type {
width: 100%;
white-space: normal;
}
2019-04-02 13:50:47 -04:00
> tr > th {
text-align: left;
}
> tr > th,
> tr > td {
2019-05-22 14:27:17 -04:00
&:not(:empty) {
padding: 0.5em 1em 0.5em 0;
}
2019-07-18 16:33:12 -04:00
@include breakpoint("mobile-large") {
@include ellipsis;
padding-right: 0.5em;
}
2019-04-10 13:22:28 -04:00
}
.reviewable-score-spacer {
padding-right: 1em;
2019-04-02 13:50:47 -04:00
}
}
}
.reviewable-score-reason {
margin: 0.5em 0;
max-width: $topic-body-width;
margin-bottom: 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 {
.show-raw-email {
color: var(--primary-medium);
font-size: $font-down-2;
}
.post-title {
background-color: yellow;
}
.created-by {
margin-right: 1em;
2019-04-02 13:50:47 -04:00
padding-top: 0.35em;
2019-07-18 16:33:12 -04:00
@include breakpoint("mobile-large") {
float: left;
margin-bottom: 1em;
}
2019-04-02 13:50:47 -04:00
}
.names {
font-weight: bold;
}
.post-contents-wrapper {
width: 100%;
margin-top: 1em;
min-width: 275px;
word-break: break-word;
2019-07-18 16:33:12 -04:00
@include breakpoint("mobile-large", min-width) {
display: flex;
}
}
.reviewable-post-header {
display: flex;
justify-content: space-between;
max-width: $topic-body-width;
width: $topic-body-width;
align-items: center;
.reviewable-reply-to {
display: flex;
align-items: center;
color: var(--primary-medium);
font-size: 0.9em;
.d-icon {
margin-right: 0.5em;
}
}
}
.post-contents {
width: 100%;
min-width: 0; // Flexbox fix
}
.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 {
2019-04-02 13:50:47 -04:00
width: 100%;
color: var(--primary-medium);
2019-04-02 13:50:47 -04:00
margin-bottom: 0.75em;
.title-text {
2019-04-02 17:22:22 -04:00
font-weight: bold;
color: var(--primary);
2019-04-02 13:50:47 -04:00
display: block;
font-size: $font-up-2;
margin-right: 0.75em;
}
}
}
.editable-fields {
.editable-created-by {
display: flex;
.avatar {
margin-right: 0.25em;
}
margin-bottom: 0.5em;
}
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;
}
}
.flag-modal .modal-inner-container .select-kit.reviewable-action-dropdown {
width: initial;
}
@media screen and (max-width: 1000px) {
table.reviewable-scores {
width: 100%;
display: block;
tbody {
width: calc(100% - 5px);
display: block;
clear: both;
}
}
tr.reviewable-score {
display: grid;
grid-template-columns: auto auto 1fr;
}
td.reviewable-score-spacer {
display: none;
}
}
2019-07-18 16:33:12 -04:00
@include breakpoint("mobile-large") {
tr.reviewable-score {
grid-template-columns: auto auto auto;
}
}