discourse/app/assets/stylesheets/common/admin/flagging.scss

319 lines
5.6 KiB
SCSS
Raw Normal View History

2017-09-12 02:01:59 +08:00
.flagged-post.hidden-post {
.flagged-post-excerpt,
.flagged-post-avatar {
2017-09-12 02:01:59 +08:00
opacity: 0.5;
}
}
.flagged-post.deleted {
.flagged-post-excerpt,
.flagged-post-avatar {
2017-10-11 04:07:46 +08:00
background-color: $danger-low;
2017-09-12 02:01:59 +08:00
}
}
.flagged-post {
padding: 1em 0 0.55em 0;
2017-09-12 02:01:59 +08:00
border-bottom: 1px solid $primary-low;
.flagged-post-details {
display: flex;
.flagged-post-avatar {
position: relative;
2018-07-03 11:14:53 +08:00
margin-right: 10px;
2017-09-12 02:01:59 +08:00
img.avatar {
min-width: 45px;
}
2017-09-26 04:29:48 +08:00
.edited-after {
text-align: center;
margin-top: 0.5em;
}
2017-09-12 02:01:59 +08:00
.previous-flagged-posts {
position: absolute;
right: -5px;
top: -5px;
background-color: $danger;
}
}
.flagged-post-contents {
2018-07-03 11:14:53 +08:00
width: calc(100% - 55px);
2017-09-12 02:01:59 +08:00
word-wrap: break-word;
.flagged-post-user-details {
display: flex;
justify-content: space-between;
.username {
font-weight: bold;
color: $primary;
}
margin-bottom: 0.5em;
}
2017-09-12 02:01:59 +08:00
.d-icon {
display: inline-block;
}
h3 {
margin-top: 0;
margin-bottom: 0.5em;
}
p:last-child {
margin-bottom: 0;
}
}
}
.flagged-post-reply-count {
font-weight: normal;
}
.flag-user-lists {
2017-09-12 02:01:59 +08:00
display: flex;
align-items: flex-start;
margin-top: 1em;
2017-09-12 02:01:59 +08:00
}
.user-list-title {
font-weight: bold;
margin: 0;
2017-09-12 02:01:59 +08:00
}
.flag-users {
margin: 0.5em 0;
display: flex;
flex-wrap: wrap;
}
.flag-user {
2017-09-12 02:01:59 +08:00
display: flex;
margin-bottom: 1em;
margin-right: 2em;
align-items: center;
justify-content: space-between;
.flag-user-who {
display: flex;
width: 13em;
}
.flag-user-username {
font-weight: bold;
margin-right: 0.5em;
}
.flag-user-date {
color: $primary-medium;
}
.flag-user-avatar {
margin-right: 0.5em;
}
.flag-user-extra {
display: flex;
align-items: center;
.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;
}
}
}
}
2017-09-12 02:01:59 +08:00
}
.flag-conversation {
2018-07-03 11:14:53 +08:00
padding: 1em 0;
.reply-conversation {
margin-left: 32px;
}
2017-09-12 02:01:59 +08:00
}
2017-09-15 02:10:39 +08:00
.suspended-message {
padding: 0.5em;
background-color: $danger;
margin-bottom: 1em;
color: $secondary;
}
2017-09-12 02:01:59 +08:00
.flagged-post-message {
2017-09-15 02:10:39 +08:00
padding: 0.5em 1em;
margin: 0.5em 0;
2017-09-12 02:01:59 +08:00
background-color: $highlight-medium;
.text {
margin-right: 1em;
}
&:hover {
2017-10-11 04:07:46 +08:00
background-color: dark-light-choose($highlight-low, $highlight-medium);
2017-09-12 02:01:59 +08:00
}
}
.flagged-post-response {
display: flex;
align-items: center;
margin-bottom: 0.5em;
.response-avatar {
margin-right: 0.5em;
}
.has-more {
margin-left: 1em;
}
}
.flagged-post-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
2017-09-12 02:01:59 +08:00
button {
margin-right: 0.5em;
margin-bottom: 0.5em;
2017-09-12 02:01:59 +08:00
}
}
}
.flag-counts {
display: inline-block;
margin-right: 0.5em;
.type-count {
color: $primary-medium;
2018-01-13 06:27:38 +08:00
font-size: $font-down-1;
2017-09-12 02:01:59 +08:00
}
}
.flagged-topic {
td.topic-title {
width: 400px;
a {
width: 400px;
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
2018-07-13 04:38:51 +08:00
@include breakpoint(tablet) {
2018-07-03 11:14:53 +08:00
td.topic-title {
width: auto;
max-width: 600px;
a {
width: auto;
white-space: unset;
}
}
}
2017-09-12 02:01:59 +08:00
}
.flagged-topic-details {
display: flex;
justify-content: space-between;
}
.mobile-view {
.flagged-posts {
2018-07-03 11:14:53 +08:00
overflow: hidden;
2017-10-03 03:14:07 +08:00
.flagged-post {
.flag-user-lists {
display: block;
2017-09-12 02:01:59 +08:00
}
}
}
}
.show-details {
.d-icon {
padding-right: 0.25em;
}
}
2018-07-03 11:14:53 +08:00
.admin-contents table.grid {
@media screen and (max-width: 767px) {
tr.flagged-topic {
grid-template-columns: 0.25fr 1fr 1fr;
td.topic-title {
grid-column-start: 2;
grid-column-end: -2;
min-width: 0;
align-self: start;
}
td.last-flagged {
grid-row: 1;
grid-column-end: -1;
text-align: right;
align-self: start;
}
td.flag-details {
grid-row: 2;
grid-column-end: -1;
text-align: right;
}
td.flagged-topic-users {
grid-row: 1;
grid-column-start: 1;
max-width: 60px;
align-self: start;
a {
display: inline-block;
margin: 0 0.25em 0.25em 0;
}
}
td.flag-counts {
grid-row: 2;
grid-column-start: 2;
}
}
}
//IE11 Support
@media screen and (max-width: 767px) {
tr.flagged-topic {
display: -ms-grid;
-ms-grid-columns: 0.25fr 1fr 1fr;
-ms-grid-rows: auto auto;
td {
display: -ms-grid;
&.flagged-topic-users {
-ms-grid-row: 1;
-ms-grid-column: 1;
-ms-grid-column-span: 1;
}
&.topic-title {
-ms-grid-row: 1;
-ms-grid-column: 2;
}
&.last-flagged {
-ms-grid-row: 1;
-ms-grid-column: 3;
}
&.flag-counts {
-ms-grid-row: 2;
-ms-grid-column: 2;
}
&.flag-details {
-ms-grid-row: 2;
-ms-grid-column: 3;
}
}
}
}
}