mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #4548 from xfalcox/crawler-layout
Adds some styling for crawler view
This commit is contained in:
commit
3494ed363f
24
app/assets/stylesheets/common/base/crawler_layout.scss
Normal file
24
app/assets/stylesheets/common/base/crawler_layout.scss
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -5,18 +5,23 @@
|
|||||||
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
|
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
|
||||||
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
||||||
<%= render partial: "layouts/head" %>
|
<%= 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? %>
|
<%- unless customization_disabled? %>
|
||||||
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<%= render_google_universal_analytics_code %>
|
<%= render_google_universal_analytics_code %>
|
||||||
<%= yield :head %>
|
<%= yield :head %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="crawler">
|
||||||
<%- unless customization_disabled? %>
|
<%- unless customization_disabled? %>
|
||||||
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
|
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<header>
|
<header>
|
||||||
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 400px;"></a>
|
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;"></a>
|
||||||
</header>
|
</header>
|
||||||
<div id="main-outlet" class="wrap">
|
<div id="main-outlet" class="wrap">
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<a href='<%= t.relative_url %>' itemprop='item'>
|
<a href='<%= t.relative_url %>' itemprop='item'>
|
||||||
<span itemprop='name'><%= t.title %></span>
|
<span itemprop='name'><%= t.title %></span>
|
||||||
</a>
|
</a>
|
||||||
<%= page_links(t) %>
|
<span class="page-links"><%= page_links(t) %></span>
|
||||||
<% if (!@category || @category.has_children?) && t.category %>
|
<% if (!@category || @category.has_children?) && t.category %>
|
||||||
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
|
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -69,11 +69,6 @@
|
|||||||
|
|
||||||
<% if @topic_view.print %>
|
<% if @topic_view.print %>
|
||||||
<% content_for :after_body do %>
|
<% 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 %>
|
|
||||||
<style media="print">
|
<style media="print">
|
||||||
/* For readability */
|
/* For readability */
|
||||||
a, a:visited {
|
a, a:visited {
|
||||||
|
Loading…
Reference in New Issue
Block a user