mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
UX: New style for staff highlight
Moved highlight to cooked content, also highlighting primary name (with shield) and title (if applicable). **Before**:  **After**: <img width="809" alt="screen shot 2017-12-06 at 3 55 31 pm" src="https://user-images.githubusercontent.com/1681963/33724287-09eb66de-db3d-11e7-8e02-0062ed2b8716.png">
This commit is contained in:
parent
282633bc97
commit
ef0d9d631c
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 0.929em;
|
font-size: 0.929em;
|
||||||
padding-right: 8px;
|
margin-right: 8px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 280px;
|
max-width: 280px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -38,7 +38,7 @@
|
|||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
color: dark-light-choose($primary-medium, $secondary-medium);
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
||||||
}
|
}
|
||||||
.new_user a, .user-title, .user-title a {
|
.new_user a, .user-title, .user-title a {
|
||||||
color: dark-light-choose($primary-medium, $secondary-medium);
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -53,7 +53,6 @@
|
|||||||
del { background-color: dark-light-choose($danger-low, scale-color($danger, $lightness: -60%)); }
|
del { background-color: dark-light-choose($danger-low, scale-color($danger, $lightness: -60%)); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.cooked, .d-editor-preview {
|
.cooked, .d-editor-preview {
|
||||||
video {
|
video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@ -62,6 +61,27 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add staff color
|
||||||
|
.moderator {
|
||||||
|
.cooked {
|
||||||
|
background-color: dark-light-choose($highlight-low, $highlight-medium);
|
||||||
|
padding: 10px;
|
||||||
|
img:not(.thumbnail) {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.names {
|
||||||
|
span.user-title, .first {
|
||||||
|
background-color: dark-light-choose($highlight-low, $highlight-medium);
|
||||||
|
color: dark-light-choose($primary-high, $secondary-low);
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// we use aside to hold expandable quotes (versus, say, static blockquotes)
|
// we use aside to hold expandable quotes (versus, say, static blockquotes)
|
||||||
aside.quote {
|
aside.quote {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
@ -459,3 +479,19 @@ a.mention, a.mention-group {
|
|||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* below standard tablet portrait ----------- */
|
||||||
|
|
||||||
|
@media all
|
||||||
|
and (max-width : 767px) {
|
||||||
|
.reply-to-tab {
|
||||||
|
span {display: none;}
|
||||||
|
}
|
||||||
|
.names {
|
||||||
|
span {display: block;}
|
||||||
|
}
|
||||||
|
.user-title {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -572,11 +572,6 @@ video {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.moderator {
|
|
||||||
.topic-body {
|
|
||||||
background-color: dark-light-choose($highlight-low, $highlight-medium);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.deleted {
|
.deleted {
|
||||||
.topic-body {
|
.topic-body {
|
||||||
@ -970,19 +965,3 @@ and (max-width : 870px) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* below standard tablet portrait ----------- */
|
|
||||||
|
|
||||||
@media all
|
|
||||||
and (max-width : 767px) {
|
|
||||||
|
|
||||||
.reply-to-tab {
|
|
||||||
span {display: none;}
|
|
||||||
}
|
|
||||||
.names {
|
|
||||||
span {display: block;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -133,7 +133,6 @@ a.reply-to-tab {
|
|||||||
z-index: 400;
|
z-index: 400;
|
||||||
right: 80px;
|
right: 80px;
|
||||||
color: dark-light-choose($primary-medium, $secondary-medium);
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
||||||
span { display: none; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a.star {
|
a.star {
|
||||||
@ -360,10 +359,6 @@ span.post-count {
|
|||||||
line-height: $base-line-height + 2; /* bump up line height to match increased font */
|
line-height: $base-line-height + 2; /* bump up line height to match increased font */
|
||||||
}
|
}
|
||||||
|
|
||||||
.moderator .topic-body {
|
|
||||||
background-color: dark-light-choose($highlight-low, $highlight-medium);
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote-button.visible {
|
.quote-button.visible {
|
||||||
display: block;
|
display: block;
|
||||||
z-index: 936;
|
z-index: 936;
|
||||||
@ -488,9 +483,6 @@ span.highlighted {
|
|||||||
.names {
|
.names {
|
||||||
margin: 5px 0 0 5px;
|
margin: 5px 0 0 5px;
|
||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
span.full-name, span.user-title, span.username {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.poster-icon {
|
.poster-icon {
|
||||||
float: right;
|
float: right;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user