FEATURE: adds support for mobile view on page publishing (#10662)
This commit is contained in:
parent
e8053d17f6
commit
0a4a273ccc
|
@ -0,0 +1 @@
|
|||
@import "publish";
|
|
@ -0,0 +1 @@
|
|||
@import "publish_desktop";
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
@import "publish_mobile";
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue