Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CSS layout #5602

Merged
merged 1 commit into from
Jul 14, 2019
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
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ Tareq Alayan
Ted Xiao
Thomas Grainger
Thomas Hisch
Tim Hoffmann
Tim Strazny
Tom Dalton
Tom Viner
Expand Down
71 changes: 42 additions & 29 deletions doc/en/_themes/flask/static/flasky.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@

{% set page_width = '1020px' %}
{% set sidebar_width = '220px' %}
/* orange of logo is #d67c29 but we use black for links for now */
{% set link_color = '#000' %}
{% set link_hover_color = '#000' %}
/* muted version of green logo color #C9D22A */
{% set link_color = '#606413' %}
/* blue logo color */
{% set link_hover_color = '#009de0' %}
{% set base_font = 'sans-serif' %}
{% set header_font = 'serif' %}
{% set header_font = 'sans-serif' %}

@import url("basic.css");

/* -- page layout ----------------------------------------------------------- */

body {
font-family: {{ base_font }};
font-size: 17px;
font-size: 16px;
background-color: white;
color: #000;
margin: 0;
Expand Down Expand Up @@ -78,13 +79,13 @@ div.related {
}

div.sphinxsidebar a {
color: #444;
text-decoration: none;
border-bottom: 1px dotted #999;
border-bottom: none;
}

div.sphinxsidebar a:hover {
border-bottom: 1px solid #999;
color: {{ link_hover_color }};
border-bottom: 1px solid {{ link_hover_color }};
}

div.sphinxsidebar {
Expand Down Expand Up @@ -205,10 +206,13 @@ div.body p, div.body dd, div.body li {
line-height: 1.4em;
}

ul.simple li {
margin-bottom: 0.5em;
}

div.admonition {
background: #fafafa;
margin: 20px -30px;
padding: 10px 30px;
padding: 10px 20px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
}
Expand All @@ -217,11 +221,6 @@ div.admonition tt.xref, div.admonition a tt {
border-bottom: 1px solid #fafafa;
}

dd div.admonition {
margin-left: -60px;
padding-left: 60px;
}

div.admonition p.admonition-title {
font-family: {{ header_font }};
font-weight: normal;
Expand All @@ -231,7 +230,7 @@ div.admonition p.admonition-title {
line-height: 1;
}

div.admonition p.last {
div.admonition :last-child {
margin-bottom: 0;
}

Expand All @@ -243,7 +242,7 @@ dt:target, .highlight {
background: #FAF3E8;
}

div.note {
div.note, div.warning {
background-color: #eee;
border: 1px solid #ccc;
}
Expand All @@ -257,6 +256,11 @@ div.topic {
background-color: #eee;
}

div.topic a {
text-decoration: none;
border-bottom: none;
}

p.admonition-title {
display: inline;
}
Expand Down Expand Up @@ -358,21 +362,10 @@ ul, ol {

pre {
background: #eee;
padding: 7px 30px;
margin: 15px -30px;
padding: 7px 12px;
line-height: 1.3em;
}

dl pre, blockquote pre, li pre {
margin-left: -60px;
padding-left: 60px;
}

dl dl pre {
margin-left: -90px;
padding-left: 90px;
}

tt {
background-color: #ecf0f3;
color: #222;
Expand All @@ -393,6 +386,20 @@ a.reference:hover {
border-bottom: 1px solid {{ link_hover_color }};
}

li.toctree-l1 a.reference,
li.toctree-l2 a.reference,
li.toctree-l3 a.reference,
li.toctree-l4 a.reference {
border-bottom: none;
}

li.toctree-l1 a.reference:hover,
li.toctree-l2 a.reference:hover,
li.toctree-l3 a.reference:hover,
li.toctree-l4 a.reference:hover {
border-bottom: 1px solid {{ link_hover_color }};
}

a.footnote-reference {
text-decoration: none;
font-size: 0.7em;
Expand All @@ -408,6 +415,12 @@ a:hover tt {
background: #EEE;
}

#reference div.section h3 {
/* separate code elements in the reference section */
border-top: 1px solid #ccc;
padding-top: 0.5em;
}


@media screen and (max-width: 870px) {

Expand Down