discourse/app/assets/stylesheets/desktop/topic-timeline.scss

138 lines
2.8 KiB
SCSS
Raw Normal View History

2016-05-17 13:03:08 -04:00
.timeline-loading {
width: 900px;
}
.composer-open {
.topic-timeline {
opacity: 0;
}
}
.timeline-container {
2016-05-17 13:03:08 -04:00
box-sizing: border-box;
z-index: 499;
2016-05-17 13:03:08 -04:00
margin-left: 757px;
@media all and (min-width: 1140px) {
margin-left: 820px;
}
@media all and (min-width: 1250px) {
margin-left: 900px;
}
2016-05-17 13:03:08 -04:00
position: fixed;
2016-05-20 11:49:54 -04:00
-webkit-transform: translate3d(0,0,0);
&.timeline-docked {
position: absolute;
}
&.timeline-docked-bottom {
.timeline-footer-controls {
2016-05-27 14:39:31 -04:00
opacity: 0;
}
}
2016-05-17 13:03:08 -04:00
.topic-timeline {
2016-05-18 17:53:02 -04:00
margin-left: 3em;
width: 150px;
transition: opacity 0.2s ease-in;
.timeline-controls {
margin-bottom: 1em;
}
2016-05-17 13:03:08 -04:00
.timeline-footer-controls {
margin-top: 1em;
line-height: 2.5em;
2016-05-27 14:39:31 -04:00
transition: opacity 0.2s ease-in;
button {
margin-right: 0.5em;
}
ul.dropdown-menu {
right: 0.5em;
top: auto;
bottom: 25px;
left: auto;
}
2016-05-17 13:03:08 -04:00
}
.start-date {
2016-05-19 13:11:36 -04:00
@include unselectable;
2016-05-17 13:03:08 -04:00
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
}
.timeline-scrollarea {
margin-top: 0.5em;
margin-left: 0.5em;
border-left: 1px solid;
border-color: dark-light-choose(scale-color($tertiary, $lightness: 80%), scale-color($tertiary, $lightness: 20%));
position: relative;
2016-05-20 11:49:54 -04:00
-webkit-transform: translate3d(0,0,0);
2016-05-17 13:03:08 -04:00
}
.timeline-padding {
transition: height 0.15s ease-out;
cursor: pointer;
.widget-dragging & {
transition: none;
}
}
.timeline-handle {
@include border-radius-all(0.8em);
width: 0.35em;
2016-06-02 02:37:57 -04:00
background-color: dark-light-choose(scale-color($tertiary, $lightness: 80%), scale-color($tertiary, $lightness: 20%));
2016-05-17 13:03:08 -04:00
height: 100%;
float: left;
}
.timeline-scroller-content {
padding-left: 1em;
}
.timeline-ago {
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
}
2016-05-17 13:03:08 -04:00
.timeline-scroller {
@include unselectable;
2016-06-02 02:37:57 -04:00
margin-left: -0.19em;
cursor: ns-resize;
2016-05-17 13:03:08 -04:00
display: flex;
align-items: center;
}
.timeline-replies {
font-weight: bold;
}
.timeline-last-read {
position: absolute;
2016-06-02 02:37:57 -04:00
margin-left: -0.19em;
2016-05-17 13:03:08 -04:00
2016-06-03 05:06:32 -04:00
.btn-small {
padding: 2px 5px;
}
2016-05-17 13:03:08 -04:00
i.progress {
font-size: 0.5em;
2016-06-02 02:37:57 -04:00
color: dark-light-choose(scale-color($tertiary, $lightness: 80%), scale-color($tertiary, $lightness: 20%));
2016-05-17 13:03:08 -04:00
margin-right: 1em;
}
}
.now-date {
2016-05-19 13:11:36 -04:00
@include unselectable;
2016-05-17 13:03:08 -04:00
display: inline-block;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
margin-top: 0.5em;
i {
margin-left: 0.15em;
}
}
}
}