discourse/app/assets/stylesheets/mobile/topic-post.scss

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

461 lines
7.5 KiB
SCSS
Raw Normal View History

/* hide the reply border above the time gap notices */
2018-06-18 14:10:48 -04:00
.time-gap + .topic-post article {
border-top: none;
}
.time-gap {
.topic-avatar {
display: none;
}
}
2016-03-28 14:39:55 -04:00
.topic-post article {
border-top: 1px solid var(--primary-low);
2018-01-12 17:27:38 -05:00
padding: 15px 0 8px 0;
2016-03-28 14:39:55 -04:00
}
2013-09-05 15:37:07 -04:00
span.badge-posts {
margin-right: 5px;
}
.show-replies {
2013-09-05 15:37:07 -04:00
display: none;
}
.topic-post {
nav.post-controls {
color: var(--primary-low-mid-or-secondary-high);
&.expanded {
// on small devices with many buttons this can overflow
overflow-x: scroll;
}
.actions {
display: flex;
justify-content: flex-end;
// Handles the like and flag buttons in the post menu.
.double-button {
display: flex;
flex: 0 1 auto;
align-items: center;
button {
&.like,
&.read-indicator,
&.create-flag {
flex: 1 1 auto;
}
&.button-count {
padding: 8px 4px 8px 8px;
+ .toggle-like,
+ .create-flag {
padding: 8px 8px 8px 4px;
}
&.my-likes,
&.regular-likes {
display: flex;
max-width: unset;
padding: 8px;
.d-icon {
padding-left: 8px;
}
}
}
}
}
.d-icon {
opacity: 1;
}
button {
border: none;
font-size: $font-up-1;
padding: 10px 8px;
background: transparent;
flex: 1 1 auto;
max-width: 45px;
&.hidden {
display: none;
2019-01-31 15:13:22 -05:00
}
&.admin {
position: relative;
2019-01-31 15:13:22 -05:00
}
&.expand-post {
margin: 10px 0 10px 0;
}
&.reply {
.d-icon {
color: var(--primary-high);
}
}
&.has-like {
.d-icon {
color: var(--love);
}
}
&.bookmarked {
.d-icon {
color: var(--tertiary);
}
2019-01-31 15:13:22 -05:00
}
}
2013-09-05 15:37:07 -04:00
}
&.replies-button-visible {
display: flex;
align-items: center;
.show-replies {
display: flex;
font-size: $font-up-1;
padding: 10px 8px;
+ .reply {
margin-left: 0;
}
.d-icon {
padding-left: 8px;
font-size: $font-down-1;
}
}
.actions {
flex-grow: 2;
}
}
}
}
2013-09-05 15:37:07 -04:00
2014-05-13 08:53:11 -04:00
.post-admin-menu {
bottom: -50px;
left: 135px;
@media screen and (max-width: 374px) {
left: 50px;
}
2014-05-13 08:53:11 -04:00
}
2013-09-05 15:37:07 -04:00
.embedded-posts {
.topic-meta-data h5 a {
margin-left: 10px;
}
}
.post-actions {
/* overriding display: here was causing hidden element to take up space */
}
.post-action {
float: right;
margin-right: 10px;
clear: right;
}
.post-action .relative-date {
margin-left: 5px;
2013-09-05 15:37:07 -04:00
}
a.reply-to-tab {
z-index: z("base") + 1;
color: var(--primary-med-or-secondary-med);
margin-right: 0.5em;
2013-09-05 15:37:07 -04:00
}
.topic-post .boxed .contents {
2014-06-13 02:14:58 -04:00
clear: both;
}
.topic-map {
margin: 10px 0;
h4 {
2018-01-12 17:27:38 -05:00
line-height: $line-height-medium;
2013-09-05 15:37:07 -04:00
}
2014-07-13 01:17:54 -04:00
.user {
float: left;
margin-right: 10px;
}
.map-collapsed {
.secondary {
display: none;
2013-09-05 15:37:07 -04:00
}
}
.map {
2013-09-05 15:37:07 -04:00
li {
float: left;
2014-09-23 06:06:07 -04:00
padding: 7px 8px;
2013-09-05 15:37:07 -04:00
&:last-of-type {
border-right: 0;
}
}
2018-04-23 10:45:18 -04:00
.number {
line-height: $line-height-medium;
2013-09-05 15:37:07 -04:00
}
.number,
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
.d-icon {
color: var(--primary-high-or-secondary-low);
2018-01-12 17:27:38 -05:00
font-size: $font-up-1;
2015-06-03 05:46:35 -04:00
}
2018-06-18 14:10:48 -04:00
.avatar + a {
2013-09-05 15:37:07 -04:00
float: left;
}
}
li.avatars {
2014-09-23 06:06:07 -04:00
display: none;
}
.links,
.information,
.avatars {
2018-01-12 17:27:38 -05:00
padding: 10px;
color: var(--primary);
2014-05-06 03:24:04 -04:00
overflow: auto;
2013-09-05 15:37:07 -04:00
}
2018-01-12 17:27:38 -05:00
.information {
p {
margin: 0 0 10px 0;
}
}
2013-09-05 15:37:07 -04:00
.buttons {
.btn {
border: 0;
2014-09-23 06:06:07 -04:00
padding: 0 15px;
color: var(--primary-med-or-secondary-high);
background: var(--blend-primary-secondary-5);
border-left: 1px solid var(--primary-low);
2013-12-09 16:27:49 -05:00
.fa {
2013-09-05 15:37:07 -04:00
margin: 0;
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
2013-09-05 15:37:07 -04:00
line-height: 52px;
}
}
}
.link-summary .btn {
color: var(--primary-med-or-secondary-high);
background: var(--blend-primary-secondary-5);
width: 100%;
}
2013-09-05 15:37:07 -04:00
}
#topic-footer-buttons {
.d-icon-bookmark.bookmarked,
.d-icon-discourse-bookmark-clock.bookmarked {
color: var(--tertiary);
}
.topic-footer-main-buttons {
display: flex;
align-items: stretch;
}
.topic-footer-mobile-dropdown {
margin-right: 0.5em;
display: flex;
}
.select-kit-header {
height: 100%;
}
2013-09-05 15:37:07 -04:00
.topic-notifications-button,
.pinned-button {
display: flex;
align-items: center;
.reason {
align-items: flex-start;
.select-kit {
max-width: 40%;
}
}
@include breakpoint(mobile-medium) {
display: inline-block;
.reason {
display: block;
margin: 0.5em 0 0 0;
}
}
}
2014-05-06 03:48:44 -04:00
}
.suggested-topics {
2013-09-05 15:37:07 -04:00
clear: left;
padding: 20px 0 15px 0;
th.views,
td.views,
td.activity,
th.activity,
th.likes,
td.likes {
2013-09-05 15:37:07 -04:00
display: none;
}
a.badge-category,
a.badge-category-parent {
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
vertical-align: top;
}
2013-09-05 15:37:07 -04:00
}
span.post-count {
background: var(--primary);
color: var(--secondary);
opacity: 0.8;
2013-09-05 15:37:07 -04:00
}
#topic-title {
z-index: z("base") + 1;
2013-09-05 15:37:07 -04:00
margin: 0 0 0 0 !important;
padding: 15px 0;
2013-09-05 15:37:07 -04:00
}
.quote-button.visible {
z-index: z("tooltip");
2013-09-05 15:37:07 -04:00
}
iframe {
max-width: 100%;
}
.btn-group {
margin-top: 25px;
2013-09-05 15:37:07 -04:00
position: relative;
}
.dropdown-toggle {
float: left;
2013-09-05 15:37:07 -04:00
position: relative;
}
.selected-posts {
padding: 0.1em 0.7em;
2013-09-05 15:37:07 -04:00
}
// hide the full set of selection buttons on mobile
.select-posts button {
display: none;
}
// unhide the simple "select just this post" button
button.select-post {
display: inline-block;
2013-09-05 15:37:07 -04:00
}
.deleted {
.topic-body {
background-color: var(--danger-low-mid);
}
2013-09-05 15:37:07 -04:00
}
.deleted-user-avatar {
2018-01-12 17:27:38 -05:00
font-size: $font-up-5;
}
span.btn-text {
display: none;
}
2013-09-05 15:37:07 -04:00
blockquote {
clear: both;
/* leave browser defaults for top and bottom here */
margin-left: 0;
margin-right: 0;
}
pre.copy-codeblocks code {
padding-right: 2.75em;
}
.gap {
padding: 0.25em 0;
}
.posts-wrapper {
position: relative;
}
2014-03-31 11:29:32 -04:00
span.highlighted {
background-color: var(--highlight-low);
}
.topic-avatar {
float: left;
2018-01-12 17:27:38 -05:00
margin-right: 10px;
z-index: z("base") + 1;
/* must render on top of topic-body + topic-meta-data, otherwise not tappable */
}
.topic-meta-data {
margin-left: 50px;
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
.names {
2018-01-12 17:27:38 -05:00
line-height: $line-height-medium;
display: flex;
flex-wrap: wrap;
.full-name {
font-weight: bold;
}
.first {
order: 1;
}
.poster-icon {
order: 2;
}
.second {
order: 3;
flex-basis: 100%;
}
.user-title {
order: 4;
flex-basis: 100%;
}
span {
margin-right: 4px;
}
}
}
.username.new-user a {
color: var(--primary-low-mid);
}
.user-title {
color: var(--primary-medium);
overflow: hidden;
margin-right: 50px;
2014-03-31 11:29:32 -04:00
}
.read-state {
display: none;
}
.post-notice {
margin-bottom: 1em;
&.old {
border-top: none;
padding-top: 0;
}
}
.posts-filtered-notice {
padding-right: 10em;
flex-wrap: wrap;
justify-content: flex-start;
padding-bottom: unquote("max(0.75em, env(safe-area-inset-bottom))");
margin: 1em -9px;
z-index: 101;
.filtered-replies-show-all {
position: absolute;
right: 2em;
}
.filtered-replies-viewing {
text-align: left;
width: 100%;
}
.filtered-avatar {
margin-left: 0;
img.avatar {
width: 20px;
height: 20px;
}
}
}