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

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

313 lines
6.8 KiB
SCSS
Raw Normal View History

2016-05-17 13:03:08 -04:00
.timeline-loading {
width: 900px;
}
.timeline-container {
2016-05-17 13:03:08 -04:00
box-sizing: border-box;
z-index: z("timeline");
transform: translateZ(0);
&.timeline-docked-bottom {
margin-bottom: -4em;
@media screen and (prefers-reduced-motion: no-preference) {
transition: margin-bottom 0.5s ease-in;
}
.timeline-footer-controls {
2016-05-27 14:39:31 -04:00
opacity: 0;
pointer-events: none;
cursor: default;
}
}
2016-05-17 13:03:08 -04:00
&.timeline-fullscreen.show {
max-height: 700px;
@media (prefers-reduced-motion: no-preference) {
transition: max-height 0.4s ease-out;
}
@media screen and (max-height: 425px) {
max-height: 75vh;
}
.topic-timeline {
.timeline-footer-controls {
display: flex;
}
}
2019-09-04 20:28:54 -04:00
.timeline-controls {
display: table-cell;
vertical-align: top;
}
}
&.timeline-fullscreen {
transform: translateY(var(--offset));
@media (prefers-reduced-motion: no-preference) {
&.animate {
transition: transform 0.1s linear;
}
transition: max-height 0.3s ease-in;
}
max-height: 0;
position: fixed;
margin-left: 0;
background-color: var(--secondary);
bottom: 0;
left: 0;
right: 0;
border-top: 1px solid var(--primary-low);
box-shadow: shadow("composer");
padding: 20px 0px;
z-index: z("fullscreen");
@media screen and (max-height: 425px) {
padding-top: 10px;
}
.back-button {
display: none;
}
.topic-timeline {
width: 100%;
table-layout: fixed;
margin-left: 0;
margin-right: 0;
display: table;
touch-action: none;
.timeline-date-wrapper {
text-align: right;
}
.post-excerpt {
max-width: 650px;
line-height: var(--line-height-large);
display: block;
@include line-clamp(8);
@media screen and (max-height: 425px) {
@include line-clamp(5);
}
}
.username {
color: var(--primary-high-or-secondary-low);
word-wrap: break-word;
font-weight: bold;
}
.title {
margin-top: 0;
padding-left: 1em;
display: table-cell;
vertical-align: top;
width: 100%;
h2 {
margin-top: 0;
display: block;
line-height: var(--line-height-medium);
font-size: var(--font-up-2);
@include line-clamp(4);
}
a {
color: var(--primary);
}
}
.timeline-last-read {
right: 0;
margin-left: 0;
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
.progress {
display: none;
}
}
.timeline-footer-controls {
display: none;
position: absolute;
bottom: 20px;
left: 10px;
.topic-notifications-button {
margin-right: 0.5em;
}
.jump-to-post {
margin-bottom: 0.5em;
}
.topic-admin-menu-button-container {
display: flex;
}
.topic-admin-menu-button {
display: flex;
}
}
.timeline-scrollarea-wrapper {
display: table-cell;
padding-right: 1.5em;
width: 100px;
}
.timeline-scrollarea {
border-right: 1px solid var(--tertiary-low-or-tertiary-high);
border-left: none;
max-width: 120px;
.timeline-scroller {
position: relative;
margin-right: -1.5em;
padding-right: 1.5em;
justify-content: flex-end;
.timeline-scroller-content {
box-sizing: border-box;
max-width: 100%;
overflow: hidden;
text-align: right;
padding-left: 0;
padding-right: 1em;
}
.timeline-handle {
float: none;
width: 11px;
position: relative;
right: -6px;
}
}
.timeline-padding {
margin-left: 0;
margin-right: -1em;
}
}
}
.timeline-scrollarea-wrapper::after {
content: "";
display: table;
clear: both;
}
}
2016-05-17 13:03:08 -04:00
.topic-timeline {
transition: opacity 0.2s ease-in;
touch-action: none;
.timeline-controls {
margin-bottom: 1em;
}
2016-05-17 13:03:08 -04:00
.timeline-date-wrapper {
max-width: 9em;
overflow-wrap: anywhere;
}
.timeline-footer-controls {
2018-01-12 17:27:38 -05:00
margin-top: 1.5em;
@media (prefers-reduced-motion: no-preference) {
transition: opacity 0.2s ease-in;
}
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
display: flex;
flex-wrap: wrap;
max-width: 9em;
.reply-to-post {
margin-right: 0.5em;
}
button:last-child {
margin-right: 0;
}
2016-05-17 13:03:08 -04:00
}
.show-summary {
margin-bottom: 0.5em;
}
2016-05-17 13:03:08 -04:00
.start-date {
color: var(--primary-med-or-secondary-med);
2016-05-17 13:03:08 -04:00
}
.timeline-scrollarea {
margin-top: 0.5em;
margin-left: 0.5em;
border-left: 1px solid var(--tertiary-low-or-tertiary-high);
2016-05-17 13:03:08 -04:00
position: relative;
transform: translateZ(0);
2016-05-17 13:03:08 -04:00
}
.timeline-padding {
transition: height 0.15s ease-out;
cursor: pointer;
// this element has a click event
// the negative margin lets this element overlap
// the scrollarea's vertical track and thus it
// enables taps on the track to work
margin-left: -1em;
2016-05-17 13:03:08 -04:00
.widget-dragging & {
transition: none;
}
.dragging & {
transition: none;
}
2016-05-17 13:03:08 -04:00
}
.timeline-handle {
2018-07-12 16:38:51 -04:00
border-radius: 0.8em;
2016-05-17 13:03:08 -04:00
width: 0.35em;
background-color: var(--tertiary-low-or-tertiary-high);
2016-05-17 13:03:08 -04:00
height: 100%;
float: left;
z-index: z("base") + 1;
outline: 1px solid transparent;
2016-05-17 13:03:08 -04:00
}
.timeline-scroller-content {
box-sizing: border-box;
max-width: 100%;
overflow: hidden;
2016-05-17 13:03:08 -04:00
padding-left: 1em;
position: absolute; // prevents text length from impacting width
max-height: 3em; // this hides the date when the count + date would wrap to more than 2 lines
2016-05-17 13:03:08 -04:00
}
.timeline-ago {
color: var(--primary-med-or-secondary-med);
max-width: 70px;
overflow: hidden;
text-overflow: ellipsis;
}
2016-05-17 13:03:08 -04:00
.timeline-scroller {
@include unselectable;
margin-left: -0.22em;
cursor: ns-resize;
2016-05-17 13:03:08 -04:00
display: flex;
align-items: center;
.back-button {
margin-top: 1em;
}
2016-05-17 13:03:08 -04:00
}
.timeline-replies {
overflow: hidden;
overflow-wrap: break-word;
2016-05-17 13:03:08 -04:00
font-weight: bold;
}
.timeline-last-read {
position: absolute;
margin-left: -0.35em;
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
.progress {
font-size: 0.8em;
color: var(--tertiary);
2016-05-17 13:03:08 -04:00
margin-right: 1em;
}
z-index: z("base") + 2; // above timeline-handle
2016-05-17 13:03:08 -04:00
}
.back-button {
2018-09-20 10:28:26 -04:00
min-height: unset;
padding: 2px 5px;
}
2016-05-17 13:03:08 -04:00
.now-date {
display: inline-block;
color: var(--primary-med-or-secondary-med);
2016-05-17 13:03:08 -04:00
margin-top: 0.5em;
}
}
}