Fixed print styles in mobile/tablet configuration

This commit is contained in:
squidfunk 2016-02-16 15:51:07 +01:00
parent 42ba9c32cf
commit cf37693e2b
10 changed files with 24 additions and 25 deletions

View File

@ -2,6 +2,7 @@ mkdocs-material-0.x.x (2016-xx-xx)
* Fixed styles for deep navigational hierarchies * Fixed styles for deep navigational hierarchies
* Fixed webfont delivery problem when hosted in subdirectories * Fixed webfont delivery problem when hosted in subdirectories
* Fixed print styles in mobile/tablet configuration
* Added option to configure fonts in mkdocs.yml with fallbacks * Added option to configure fonts in mkdocs.yml with fallbacks
* Set download link to latest version if available * Set download link to latest version if available
* Set up tracking of outgoing links and actions for Google Analytics * Set up tracking of outgoing links and actions for Google Analytics

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,7 @@
font-style: normal; font-style: normal;
} }
</style> </style>
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-aa50e5707f.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-3a649dbde3.css">
{% if config.extra.font != 'none' %} {% if config.extra.font != 'none' %}
{% set text = 'Ubuntu' %} {% set text = 'Ubuntu' %}
{% if config.extra.font and config.extra.font.text %} {% if config.extra.font and config.extra.font.text %}

View File

@ -21,12 +21,12 @@
<ul class="repo"> <ul class="repo">
<li class="repo-download"> <li class="repo-download">
{% set version = config.extra.version | default('master') %} {% set version = config.extra.version | default('master') %}
<a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" title="Download {{ repo_id }} from GitHub" data-action="download"> <a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" title="Download {{ site_name }} from GitHub" data-action="download">
<i class="icon icon-download"></i> Download <i class="icon icon-download"></i> Download
</a> </a>
</li> </li>
<li class="repo-stars"> <li class="repo-stars">
<a href="{{ repo_url }}" target="_blank" title="Star {{ repo_id }} on GitHub" data-action="star"> <a href="{{ repo_url }}" target="_blank" title="Star {{ site_name }} on GitHub" data-action="star">
<i class="icon icon-star"></i> Star <i class="icon icon-star"></i> Star
<span class="count">&ndash;</span> <span class="count">&ndash;</span>
</a> </a>

View File

@ -2,5 +2,5 @@
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico", "assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
"assets/javascripts/application.js": "assets/javascripts/application-c6d2e828bd.js", "assets/javascripts/application.js": "assets/javascripts/application-c6d2e828bd.js",
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js", "assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js",
"assets/stylesheets/application.css": "assets/stylesheets/application-aa50e5707f.css" "assets/stylesheets/application.css": "assets/stylesheets/application-3a649dbde3.css"
} }

View File

@ -32,7 +32,7 @@
/* /*
* Hide non-relevant elements * Hide non-relevant elements
*/ */
.header, .project, .footer { .header, .drawer, .headerlink, .footer {
display: none; display: none;
} }
@ -41,6 +41,13 @@
*/ */
.article { .article {
/*
* Remove top spacing
*/
.wrapper {
padding-top: 0;
}
/* /*
* Remove color in all code blocks * Remove color in all code blocks
*/ */
@ -48,6 +55,10 @@
color: $black !important; color: $black !important;
} }
pre {
border: 1px solid $black-lightest;
}
/* /*
* Border-radius makes this table entirely black on paper, so scrap it * Border-radius makes this table entirely black on paper, so scrap it
*/ */

View File

@ -31,7 +31,7 @@
/* [tablet landscape-]: Light gray background */ /* [tablet landscape-]: Light gray background */
@include break-to-device(tablet landscape) { @include break-to-device(tablet landscape) {
background: darken($white, 5%); background: $white;
} }
/* /*
@ -67,17 +67,6 @@
.section { .section {
color: $black-light; color: $black-light;
} }
/*
* Content wrapper
*/
.wrapper {
/* [tablet landscape-]: Light gray background */
@include break-to-device(tablet landscape) {
background: darken($white, 5%);
}
}
} }
/* /*
@ -113,7 +102,7 @@
*/ */
&:hover .logo img, &:hover .logo img,
&:focus .logo img { &:focus .logo img {
@include drop-shadow(3); @include drop-shadow(2);
} }
} }
@ -121,8 +110,6 @@
* Repository buttons * Repository buttons
*/ */
.repo a { .repo a {
@include drop-shadow(1);
background: $accent; background: $accent;
color: $white; color: $white;
border-radius: 3px; border-radius: 3px;
@ -131,7 +118,7 @@
* Hovered button * Hovered button
*/ */
&:hover, &:focus { &:hover, &:focus {
@include drop-shadow(3); @include drop-shadow(2);
opacity: 0.8; opacity: 0.8;
} }

View File

@ -37,14 +37,14 @@
<li class="repo-download"> <li class="repo-download">
{% set version = config.extra.version | default('master') %} {% set version = config.extra.version | default('master') %}
<a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" <a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank"
title="Download {{ repo_id }} from GitHub" title="Download {{ site_name }} from GitHub"
data-action="download"> data-action="download">
<i class="icon icon-download"></i> Download <i class="icon icon-download"></i> Download
</a> </a>
</li> </li>
<li class="repo-stars"> <li class="repo-stars">
<a href="{{ repo_url }}" target="_blank" <a href="{{ repo_url }}" target="_blank"
title="Star {{ repo_id }} on GitHub" title="Star {{ site_name }} on GitHub"
data-action="star"> data-action="star">
<i class="icon icon-star"></i> Star <i class="icon icon-star"></i> Star
<span class="count">&ndash;</span> <span class="count">&ndash;</span>