Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions templates/about-base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends "base.html" %}

{%- block body_classes -%}
centered
{%- endblock body_classes -%}

{% block header %}
<div class="docsrs-package-container">
<div class="container">
Expand Down
4 changes: 4 additions & 0 deletions templates/core/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

{%- block title -%}Docs.rs{%- endblock title -%}

{%- block body_classes -%}
centered
{%- endblock body_classes -%}

{%- block body -%}
<div class="container landing">
<h1 class="brand">{{ "cubes" | fas(fw=true) }} Docs.rs</h1>
Expand Down
5 changes: 4 additions & 1 deletion templates/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ pre {

div.container {
max-width: 1160px;
margin: 0 auto;
text-align: left;

> .chartjs-render-monitor {
Expand All @@ -220,6 +219,10 @@ div.container {
}
}

body.centered div.container {
margin: 0 auto;
}

div.landing {
text-align: center;
padding-top: 30px;
Expand Down