FEATURE: adds support for mobile view on page publishing (#10662)

This commit is contained in:
Joffrey JAFFEUX 2020-09-13 13:50:23 +02:00 committed by GitHub
parent e8053d17f6
commit 0a4a273ccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
@import "publish";

View File

@ -0,0 +1 @@
@import "publish_desktop";

View File

@ -0,0 +1,20 @@
@import "publish";
.published-page-header {
.published-page-header-wrapper {
width: auto;
.published-page-title {
font-size: $font-up-3;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.published-page-content-wrapper {
margin: 2em auto;
padding: 0 10px;
}

View File

@ -0,0 +1 @@
@import "publish_mobile";

View File

@ -1,5 +1,11 @@
<%= discourse_stylesheet_link_tag 'publish', theme_ids: nil %>
<%- if rtl? %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :publish_mobile_rtl : :publish_mobile_rtl) %>
<%- else %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :publish_mobile : :publish_desktop) %>
<%- end %>
<%- Discourse.find_plugin_css_assets(include_official: allow_plugins?, include_unofficial: allow_third_party_plugins?, mobile_view: mobile_view?, desktop_view: !mobile_view?, request: request).each do |file| %>
<%= discourse_stylesheet_link_tag(file) %>
<%- end %>