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

265 lines
4.9 KiB
SCSS
Raw Normal View History

@keyframes button-jump-up {
0% {
bottom: 0;
}
50% {
bottom: 45px;
}
65% {
bottom: 40px;
}
77% {
bottom: 43px;
}
100% {
bottom: 40px;
}
}
.progress-back-container {
position: fixed;
bottom: 40px;
z-index: z("dropdown");
margin-right: 0;
animation-duration: 0.5s;
animation-name: button-jump-up;
width: 145px;
text-align: center;
.btn {
margin: 0;
}
}
#topic-progress-wrapper {
.topic-admin-menu-button-container {
position: relative;
right: 38px;
top: 35px;
.widget-button {
height: 35px;
border-right: 1px solid dark-light-diff($primary, $secondary, 80%, -70%);
}
}
.topic-admin-popup-menu.right-side {
position: relative;
right: 50px;
}
}
#topic-progress-wrapper.docked {
.topic-admin-popup-menu.right-side {
right: 50px;
bottom: -150px; // Prevents menu from being too high when a topic is very short
}
}
.title-wrapper {
display: flex;
flex-wrap: wrap;
width: 90%;
2018-02-02 21:29:51 -05:00
align-items: flex-end;
.btn-small {
margin: 0 6px 0 0;
}
a.topic-featured-link {
display: inline-block;
}
}
h1 {
margin: 0 0 4px 0;
}
a.badge-category {
margin-top: 5px;
}
2014-10-06 11:50:18 -04:00
#topic-title {
2015-01-14 15:36:38 -05:00
.title-wrapper {
display: flex;
flex-wrap: wrap;
width: 90%;
2015-01-14 15:36:38 -05:00
.btn-small {
margin: 0 6px 0 0;
}
a.topic-featured-link {
display: inline-block;
}
2015-01-14 15:36:38 -05:00
}
h1 {
margin: 0 0 4px 0;
width: 90%;
}
2014-10-06 11:50:18 -04:00
a.badge-category {
margin-top: 5px;
2015-01-14 15:36:38 -05:00
}
a.edit-topic i {
font-size: 0.8em;
}
.edit-topic-title {
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
max-width: 758px;
#edit-title {
flex: 1 1 auto;
}
.private-message-glyph {
margin: 5px 5px 0 0;
}
.category-chooser,
.mini-tag-chooser {
flex: 1 1 49%;
margin: 0 0 9px 0;
@media all and (max-width: 500px) {
flex: 1 1 100%;
}
}
.mini-tag-chooser {
margin-left: 2%;
@media all and (max-width: 500px) {
margin-left: 0;
}
}
}
2014-10-06 11:50:18 -04:00
}
2018-04-05 22:33:58 -04:00
.private-message-glyph {
color: dark-light-choose($primary-low-mid, $secondary-high);
margin-right: 5px;
}
2018-02-13 15:46:25 -05:00
.archetype-private_message #topic-title .edit-topic-title .tag-chooser {
margin-left: 19px;
}
.private_message {
#topic-title {
.edit-topic-title {
#edit-title {
width: calc(100% - 50px);
}
}
}
}
.topic-title-outlet {
clear: both;
}
2015-04-14 15:54:17 -04:00
.extra-info-wrapper {
.badge-wrapper {
float: left;
}
}
.has-pending-posts {
padding: 0.5em;
2017-06-11 22:20:14 -04:00
background-color: $highlight-medium;
a[href] {
float: right;
}
margin-top: 1em;
max-width: 757px;
}
// Target the .badge-category text, the bullet icon needs to maintain `display: block`
#suggested-topics h3 .badge-wrapper.bullet span.badge-category,
#suggested-topics h3 .badge-wrapper.box span,
#suggested-topics h3 .badge-wrapper.bar span {
display: inline;
}
#suggested-topics h3 .badge-wrapper.bullet span.badge-category {
// Override vertical-align: text-top from `badges.css.scss`
vertical-align: baseline;
2018-01-12 17:27:38 -05:00
line-height: $line-height-medium;
}
#suggested-topics h3 .badge-wrapper.bullet,
#suggested-topics h3 .badge-wrapper.bullet span.badge-category-parent-bg,
#suggested-topics h3 .badge-wrapper.bullet span.badge-category-bg {
// Top of bullet aligns with top of line - adjust line height to vertically align bullet.
line-height: 0.8;
}
#suggested-topics .badge-wrapper.bullet span.badge-category,
#suggested-topics .badge-wrapper.bar span.badge-category {
max-width: 150px;
}
2018-03-15 12:51:19 -04:00
#suggested-topics .suggested-topics-title {
display: flex;
align-items: center;
}
.post-links-container {
@include unselectable;
clear: both;
.post-links {
margin-top: 1em;
padding-top: 1em;
border-top: 1px solid $primary-low;
2018-02-09 12:43:15 -05:00
li:last-of-type {
margin-bottom: 1em;
}
}
.expand-links {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
.track-link {
2018-02-09 12:43:15 -05:00
display: flex;
align-items: center;
span:not(.badge) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
ul {
margin: 0;
list-style: none;
li {
margin-bottom: 0.5em;
a[href] {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
.clicks {
margin-left: 0.5em;
flex: 0 0 auto;
}
i {
2018-01-12 17:27:38 -05:00
font-size: $font-down-2;
2018-02-09 12:43:15 -05:00
margin: 0 0.5em 0 0;
}
}
}
a.reply-new {
i {
background: $secondary;
border-radius: 20px;
transition: all linear 0.15s;
}
&:hover {
color: $tertiary;
i {
2017-06-11 22:20:14 -04:00
background: $tertiary-low;
}
}
}
}
a.topic-featured-link {
display: inline-block;
text-transform: lowercase;
color: dark-light-choose($primary-medium, $secondary-medium);
font-size: 0.875rem;
&::before {
position: relative;
top: 0.1em;
padding-right: 3px;
font-family: FontAwesome;
content: "\f08e";
}
}