Permalink
Browse files

Move css changes into a css files to save space

  • Loading branch information...
lazka committed Mar 10, 2014
1 parent 916dcaa commit 209423c2959ccbe60d683aaebc1cc1c09f22a4ab
Showing with 63 additions and 71 deletions.
  1. +7 −71 data/theme/layout.html
  2. +56 −0 data/theme/static/css/pgi.css
View
@@ -29,77 +29,11 @@
{% endif %}
{# CSS #}
- <style>
-@font-face {
- font-family: 'Lato'; font-weight: 400; src: url({{ pathto('_static/fonts/lato.woff', 1) }});
-}
-@font-face {
- font-family: 'Lato'; font-weight: 700; src: url({{ pathto('_static/fonts/lato-bold.woff', 1) }});
-}
-@font-face {
- font-family: 'Roboto Slab'; font-weight: 400; src: url({{ pathto('_static/fonts/lato.woff', 1) }});
-}
-@font-face {
- font-family: 'Roboto Slab'; font-weight: 700; src: url({{ pathto('_static/fonts/lato-bold.woff', 1) }});
-}
-
-.local-toc {
- display: none;
-}
-
-@media screen and (min-width: 768px){
- .local-toc {
- position:fixed;
- right: 1em;
- bottom: 1em;
- display: block;
- }
-
- .local-toc li
- {
- display:block;
- text-align:right;
- padding:0.3em 0;
- text-transform:uppercase;
- font-size: 0.9em;
- }
-}
-
-.wy-nav-content {
- margin: 0 !important;
-}
-
-.wy-side-nav-search, .wy-nav-top {
- background-color: #75507b !important;
-}
-.wy-side-nav-search input[type="text"] {
- border-color: #75507b !important;
-}
-
-@media screen and (max-width: 768px){
- img {
- width: auto !important;
- }
-}
-
-.wy-table-responsive table th,
-.wy-table-responsive table td {
- white-space: normal !important;
-}
-
-.rst-content a tt {
- color: #174666 !important;
-}
-
-.versionmodified {
- color: #a40000 !important;
- font-size: 0.9em;
-}
-
-tt.descname, tt.descclassname {
- font-family: "Lato" !important;
-}
-
+<style>
+@font-face {font-family: 'Lato'; font-weight: 400; src: url({{ pathto('_static/fonts/lato.woff', 1) }});}
+@font-face {font-family: 'Lato'; font-weight: 700; src: url({{ pathto('_static/fonts/lato-bold.woff', 1) }});}
+@font-face {font-family: 'Roboto Slab'; font-weight: 400; src: url({{ pathto('_static/fonts/lato.woff', 1) }});}
+@font-face {font-family: 'Roboto Slab'; font-weight: 700; src: url({{ pathto('_static/fonts/lato-bold.woff', 1) }});}
</style>
{# OPENSEARCH #}
@@ -119,6 +53,8 @@
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
{% endfor %}
+ <link rel="stylesheet" href="{{ pathto('_static/css/pgi.css', 1) }}" type="text/css" />
+
{%- block linktags %}
{%- if hasdoc('about') %}
<link rel="author" title="{{ _('About these documents') }}"
@@ -0,0 +1,56 @@
+.local-toc {
+ display: none;
+}
+
+@media screen and (min-width: 768px){
+ .local-toc {
+ position:fixed;
+ right: 1em;
+ bottom: 1em;
+ display: block;
+ }
+
+ .local-toc li
+ {
+ display:block;
+ text-align:right;
+ padding:0.3em 0;
+ text-transform:uppercase;
+ font-size: 0.9em;
+ }
+}
+
+.wy-nav-content {
+ margin: 0;
+}
+
+.wy-side-nav-search, .wy-nav-top {
+ background-color: #75507b;
+}
+.wy-side-nav-search input[type="text"] {
+ border-color: #75507b;
+}
+
+@media screen and (max-width: 768px){
+ img {
+ width: auto;
+ }
+}
+
+.wy-table-responsive table th,
+.wy-table-responsive table td {
+ white-space: normal;
+}
+
+.rst-content a tt {
+ color: #174666;
+}
+
+.versionmodified {
+ color: #a40000;
+ font-size: 0.9em;
+}
+
+tt.descname, tt.descclassname {
+ font-family: "Lato";
+}

0 comments on commit 209423c

Please sign in to comment.