Merge pull request #4548 from xfalcox/crawler-layout
Adds some styling for crawler view
This commit is contained in:
commit
3494ed363f
|
@ -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>
|
||||
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
||||
<%= 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 %>
|
||||
</head>
|
||||
<body>
|
||||
<body class="crawler">
|
||||
<%- unless customization_disabled? %>
|
||||
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
|
||||
<%- end %>
|
||||
<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>
|
||||
<div id="main-outlet" class="wrap">
|
||||
<%= yield %>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<a href='<%= t.relative_url %>' itemprop='item'>
|
||||
<span itemprop='name'><%= t.title %></span>
|
||||
</a>
|
||||
<%= page_links(t) %>
|
||||
<span class="page-links"><%= page_links(t) %></span>
|
||||
<% if (!@category || @category.has_children?) && t.category %>
|
||||
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
|
||||
<% end %>
|
||||
|
|
|
@ -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 %>
|
||||
<style media="print">
|
||||
/* For readability */
|
||||
a, a:visited {
|
||||
|
|
Loading…
Reference in New Issue