diff --git a/app/assets/stylesheets/common/base/crawler_layout.scss b/app/assets/stylesheets/common/base/crawler_layout.scss new file mode 100644 index 00000000000..874b11df9de --- /dev/null +++ b/app/assets/stylesheets/common/base/crawler_layout.scss @@ -0,0 +1,24 @@ +body.crawler { + > header { + width: 100%; + position: absolute; + top: 0; + z-index: 1001; + background-color: #fff; + padding: 10px; + box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25); + } + div.topic-list div[itemprop='itemListElement'] { + padding: 10px 0px; + border-bottom: 1px solid #e9e9e9; + } + .page-links a { + padding: 0px 4px; + } + footer nav { + margin: 50px 0px; + a { + padding: 15px; + } + } +} diff --git a/app/views/layouts/crawler.html.erb b/app/views/layouts/crawler.html.erb index a04edf944a0..e4e7f9a47e8 100644 --- a/app/views/layouts/crawler.html.erb +++ b/app/views/layouts/crawler.html.erb @@ -5,18 +5,23 @@ <%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %> <%= render partial: "layouts/head" %> + <%- if rtl? %> + <%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %> + <%- else %> + <%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %> + <%- end %> <%- unless customization_disabled? %> <%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %> <%- end %> <%= render_google_universal_analytics_code %> <%= yield :head %> - + <%- unless customization_disabled? %> <%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %> <%- end %>
- "> + ">
<%= yield %> diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 9b1513915f5..0ac6b2821fb 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -33,7 +33,7 @@ <%= t.title %> - <%= page_links(t) %> + <%= page_links(t) %> <% if (!@category || @category.has_children?) && t.category %> [<%= t.category.name %>] <% end %> diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 4f20a507f08..e72ebb1a00c 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -69,11 +69,6 @@ <% if @topic_view.print %> <% content_for :after_body do %> - <%- if rtl? %> - <%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl, 'print') %> - <%- else %> - <%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile : :desktop, 'print') %> - <%- end %>