Preparing release

This commit is contained in:
squidfunk 2016-02-09 12:58:55 +01:00
parent b3d8700531
commit 3678fa53f0
56 changed files with 274 additions and 20774 deletions

3
.gitignore vendored
View File

@ -28,7 +28,8 @@ node_modules
# Build files # Build files
build build
MANIFEST MANIFEST
site
# Distribution files # Distribution files
dist dist
mkdocs_materializr.egg-info mkdocs_material.egg-info

View File

@ -1,3 +1,3 @@
materializr-0.1.0 (2016-xx-xx) mkdocs-material-0.1.0 (2016-xx-xx)
* Initial release * Initial release

View File

@ -105,7 +105,7 @@ gulp.task('assets:stylesheets', function() {
])) ]))
.pipe(gulpif(args.sourcemaps, sourcemaps.write())) .pipe(gulpif(args.sourcemaps, sourcemaps.write()))
.pipe(gulpif(args.production, mincss())) .pipe(gulpif(args.production, mincss()))
.pipe(gulp.dest('materializr/assets/stylesheets/')); .pipe(gulp.dest('material/assets/stylesheets/'));
}); });
/* /*
@ -127,7 +127,7 @@ gulp.task('assets:javascripts', function() {
.pipe(concat('application.js')) .pipe(concat('application.js'))
.pipe(gulpif(args.sourcemaps, sourcemaps.write())) .pipe(gulpif(args.sourcemaps, sourcemaps.write()))
.pipe(gulpif(args.production, uglify())) .pipe(gulpif(args.production, uglify()))
.pipe(gulp.dest('materializr/assets/javascripts/')); .pipe(gulp.dest('material/assets/javascripts/'));
}); });
/* /*
@ -138,8 +138,8 @@ gulp.task('assets:modernizr', [
'assets:javascripts' 'assets:javascripts'
], function() { ], function() {
return gulp.src([ return gulp.src([
'materializr/assets/stylesheets/application.css', 'material/assets/stylesheets/application.css',
'materializr/assets/javascripts/application.js' 'material/assets/javascripts/application.js'
]).pipe( ]).pipe(
modernizr({ modernizr({
options: [ options: [
@ -153,22 +153,22 @@ gulp.task('assets:modernizr', [
.pipe(addsrc.append('bower_components/respond/dest/respond.src.js')) .pipe(addsrc.append('bower_components/respond/dest/respond.src.js'))
.pipe(concat('modernizr.js')) .pipe(concat('modernizr.js'))
.pipe(gulpif(args.production, uglify())) .pipe(gulpif(args.production, uglify()))
.pipe(gulp.dest('materializr/assets/javascripts')); .pipe(gulp.dest('material/assets/javascripts'));
}); });
/* /*
* Copy static assets like images and webfonts. * Copy static assets like images and webfonts.
*/ */
gulp.task('assets:static', function() { gulp.task('assets:static', function() {
return gulp.src('src/assets/{fonts,images}/*.{ico,jpg,png,gif}') return gulp.src('src/assets/{fonts,images}/*.{jpg,png,gif}')
.pipe(gulpif(args.production, .pipe(gulpif(args.production,
minimage({ minimage({
optimizationLevel: 5, optimizationLevel: 5,
progressive: true, progressive: true,
interlaced: true interlaced: true
}))) })))
.pipe(addsrc.append('src/assets/{fonts,images}/*.{eot,svg,ttf,woff}')) .pipe(addsrc.append('src/assets/{fonts,images}/*.{ico,eot,svg,ttf,woff}'))
.pipe(gulp.dest('materializr/assets/')); .pipe(gulp.dest('material/assets/'));
}); });
/* /*
@ -191,20 +191,20 @@ gulp.task('assets:views', args.production ? [
.pipe(compact()) .pipe(compact())
.pipe(gulpif(args.production, .pipe(gulpif(args.production,
addsrc.append([ addsrc.append([
'materializr/manifest.json', 'material/manifest.json',
'materializr/**/*.css' 'material/**/*.css'
]))) ])))
.pipe(gulpif(args.production, collect())) .pipe(gulpif(args.production, collect()))
.pipe(ignore.exclude(/manifest\.json$/)) .pipe(ignore.exclude(/manifest\.json$/))
.pipe(gulp.dest('materializr')); .pipe(gulp.dest('material'));
}); });
/* /*
* Clean outdated revisions. * Clean outdated revisions.
*/ */
gulp.task('assets:revisions:clean', function() { gulp.task('assets:revisions:clean', function() {
return gulp.src(['materializr/**/*.{css,js,png,jpg,gif}']) return gulp.src(['material/**/*.{ico,css,js,png,jpg,gif}'])
.pipe(ignore.include(/-[a-f0-9]{8}\.(css|js|png|jpg|gif)$/)) .pipe(ignore.include(/-[a-f0-9]{8}\.(ico|css|js|png|jpg|gif)$/))
.pipe(vinyl(clean)); .pipe(vinyl(clean));
}); });
@ -217,12 +217,12 @@ gulp.task('assets:revisions', [
'assets:javascripts', 'assets:javascripts',
'assets:static' 'assets:static'
], function() { ], function() {
return gulp.src(['materializr/**/*.{css,js,png,jpg,gif}']) return gulp.src(['material/**/*.{ico,css,js,png,jpg,gif}'])
.pipe(ignore.exclude(/-[a-f0-9]{8}\.(css|js|png|jpg|gif)$/)) .pipe(ignore.exclude(/-[a-f0-9]{8}\.(css|js|png|jpg|gif)$/))
.pipe(rev()) .pipe(rev())
.pipe(gulp.dest('materializr')) .pipe(gulp.dest('material'))
.pipe(rev.manifest('manifest.json')) .pipe(rev.manifest('manifest.json'))
.pipe(gulp.dest('materializr')); .pipe(gulp.dest('material'));
}); });
/* /*

View File

@ -1,3 +1,4 @@
recursive-include materializr *.ico *.js *.css *.html *.eot *.svg *.ttf *.woff recursive-include material *.ico *.js *.css *.html *.eot *.svg *.ttf *.woff
recursive-exclude site *
recursive-exclude * __pycache__ recursive-exclude * __pycache__
recursive-exclude * *.py[co] recursive-exclude * *.py[co]

View File

@ -1,4 +1,4 @@
materializr mkdocs-material
=========== ===========
A material design theme for MkDocs A material design theme for MkDocs

View File

@ -1,8 +1,8 @@
{ {
"name": "materializr", "name": "mkdocs-material",
"version": "0.1.0", "version": "0.1.0",
"description": "A material design theme for MkDocs", "description": "A material design theme for MkDocs",
"homepage": "https://github.com/squidfunk/materializr", "homepage": "https://github.com/squidfunk/mkdocs-material",
"authors": [ "authors": [
"squidfunk <martin.donath@squidfunk.com>" "squidfunk <martin.donath@squidfunk.com>"
], ],

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1555,6 +1555,28 @@ pre span {
.pagination .direction { .pagination .direction {
color: rgba(255, 255, 255, 0.7); } color: rgba(255, 255, 255, 0.7); }
/*
* Admonition support
*/
.admonition {
background: #eceef8;
/*
* Embedded code blocks
*/
/*
* A warning hint
*/ }
.admonition pre {
background: rgba(255, 255, 255, 0.3); }
.admonition.warning {
background: #fce8e9; }
/*
* Permalink support
*/
.article h2 a, .article h3 a, .article h4 a, .article h5 a, .article h6 a {
color: rgba(0, 0, 0, 0.26); }
/* /*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com> * Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
* *
@ -1585,6 +1607,7 @@ pre span {
.article { .article {
font-size: 14px; font-size: 14px;
line-height: 1.7em; line-height: 1.7em;
overflow-x: hidden;
/* [tablet landscape+]: Indent to account for drawer */ /* [tablet landscape+]: Indent to account for drawer */
/* /*
* Clearfix * Clearfix
@ -1672,8 +1695,16 @@ pre span {
padding-top: 36px; padding-top: 36px;
margin: 0; } margin: 0; }
.article h3, .article h4 { .article h3, .article h4 {
font-size: 1.0em; } font-size: 14px;
.article p, .article h3, .article h4, .article ul, .article ol { padding-top: 76px;
margin-top: -56px;
/*
* No offset correction in iOS web application
*/ }
.ios.standalone .article h3, .ios.standalone .article h4 {
padding-top: 20px;
margin-top: 0; }
.article p, .article ul, .article ol {
margin-top: 1.5em; } margin-top: 1.5em; }
.article li { .article li {
margin-top: 0.75em; margin-top: 0.75em;
@ -1841,6 +1872,35 @@ pre span {
font-size: 18px; font-size: 18px;
padding: 11px 0 13px; } padding: 11px 0 13px; }
/*
* Admonition support
*/
.admonition {
margin: 20px -16px 0;
padding: 20px 16px;
/*
* Remove redundant margin of first child
*/
/* [tablet portait+]: Increase horizontal spacing */ }
.admonition > :first-child {
margin-top: 0; }
/*
* Permalink support
*/
.article {
/*
* Hide link to main headline
*/
/*
* Align permalinks on the right
*/ }
.article h1 a {
display: none; }
.article h2 a, .article h3 a, .article h4 a, .article h5 a, .article h6 a {
float: right;
margin-left: 20px; }
/* /*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com> * Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
* *
@ -1881,6 +1941,19 @@ pre span {
font-weight: 400; font-weight: 400;
font-style: italic; } font-style: italic; }
/*
* Admonition support
*/
.admonition-title {
font-weight: 700; }
/*
* Permalink support
*/
.article h2 a, .article h3 a, .article h4 a, .article h5 a, .article h6 a {
font-weight: 400;
font-style: normal; }
/* /*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com> * Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
* *
@ -2362,8 +2435,6 @@ pre span {
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Nothing to see here, move along * Nothing to see here, move along
* ------------------------------------------------------------------------- */ * ------------------------------------------------------------------------- */
.admonition {
background: red; }
@media only screen and (min-width: 960px) { @media only screen and (min-width: 960px) {
.backdrop { .backdrop {
background: #f2f2f2; } background: #f2f2f2; }
@ -2445,6 +2516,8 @@ pre span {
.article {/* .article {/*
* Account for larged header bar and anchors * Account for larged header bar and anchors
*//* *//*
* Sub headlines
*//*
* Increase spacing for code blocks * Increase spacing for code blocks
*/ } */ }
.article h2 { .article h2 {
@ -2455,6 +2528,14 @@ pre span {
.ios.standalone .article h2 { .ios.standalone .article h2 {
padding-top: 28px; padding-top: 28px;
margin-top: 8px; } margin-top: 8px; }
.article h3, .article h4 {
padding-top: 84px;
margin-top: -64px;/*
* No offset correction in iOS web application
*/ }
.ios.standalone .article h3, .ios.standalone .article h4 {
padding-top: 20px;
margin-top: 0; }
.article pre { .article pre {
padding: 1.5em 24px; padding: 1.5em 24px;
margin: 1.5em -24px 0; } margin: 1.5em -24px 0; }
@ -2473,6 +2554,9 @@ pre span {
bottom: 40px; } bottom: 40px; }
.pagination .stretch { .pagination .stretch {
padding: 0 8px; } padding: 0 8px; }
.admonition {
margin: 20px -24px 0;
padding: 20px 24px; }
.bar.search .query { .bar.search .query {
font-size: 20px; font-size: 20px;
padding: 12px 0; } padding: 12px 0; }

View File

@ -28,16 +28,11 @@
<meta name="apple-mobile-web-app-title" content="{{ site_name }}"> <meta name="apple-mobile-web-app-title" content="{{ site_name }}">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" type="image/x-icon" href="{{ icon | default('/assets/images/favicon.ico') }}"> <link rel="shortcut icon" type="image/x-icon" href="{{ icon | default(base_url + '/assets/images/favicon.ico') }}">
<link rel="icon" type="image/x-icon" href="{{ icon | default('/assets/images/favicon.ico') }}"> <link rel="icon" type="image/x-icon" href="{{ icon | default(base_url + '/assets/images/favicon.ico') }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu+Mono"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu+Mono">
{% if config.extra.color %} <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.css">
{% set color = config.extra.color %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.{{ color }}.css">
{% else %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.css">
{% endif %}
{% for path in extra_css %} {% for path in extra_css %}
<link rel="stylesheet" href="{{ path }}"> <link rel="stylesheet" href="{{ path }}">
{% endfor %} {% endfor %}
@ -54,7 +49,7 @@
{% include "header.html" %} {% include "header.html" %}
</header> </header>
<main class="main"> <main class="main">
{% set h1 = "\x3c/h1\x3e" in content %} {% set h1 = "\x3ch1 id=" in content %}
<div class="drawer"> <div class="drawer">
{% include "drawer.html" %} {% include "drawer.html" %}
</div> </div>
@ -75,8 +70,8 @@
Documentation built with Documentation built with
<a href="http://www.mkdocs.org" target="_blank">MkDocs</a> <a href="http://www.mkdocs.org" target="_blank">MkDocs</a>
using the using the
<a href="https://github.com/squidfunk/materializr" target="_blank"> <a href="https://github.com/squidfunk/mkdocs-material" target="_blank">
Materializr Material
</a> </a>
theme. theme.
</aside> </aside>

6
material/manifest.json Normal file
View File

@ -0,0 +1,6 @@
{
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa.ico",
"assets/javascripts/application.js": "assets/javascripts/application-1a680198.js",
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-79394028.js",
"assets/stylesheets/application.css": "assets/stylesheets/application-9ec7095f.css"
}

File diff suppressed because it is too large Load Diff

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 it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +0,0 @@
{
"assets/javascripts/application.js": "assets/javascripts/application-3bd5fcbd.js",
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-e95367ea.js",
"assets/stylesheets/application.blue.css": "assets/stylesheets/application.blue-5e22f1b7.css",
"assets/stylesheets/application.css": "assets/stylesheets/application-dd5b6433.css",
"assets/stylesheets/application.green.css": "assets/stylesheets/application.green-ed0b1b20.css",
"assets/stylesheets/application.grey.css": "assets/stylesheets/application.grey-35d3a667.css",
"assets/stylesheets/application.pink.css": "assets/stylesheets/application.pink-c98c1339.css",
"assets/stylesheets/application.purple.css": "assets/stylesheets/application.purple-d52c9e49.css",
"assets/stylesheets/application.red.css": "assets/stylesheets/application.red-9049f37d.css",
"assets/stylesheets/application.teal.css": "assets/stylesheets/application.teal-51e9fed7.css"
}

View File

@ -19,25 +19,24 @@
# IN THE SOFTWARE. # IN THE SOFTWARE.
# Project information # Project information
site_name: materializr site_name: mkdocs-material
site_description: A material design theme for MkDocs site_description: A material design theme for MkDocs
site_author: Martin Donath site_author: Martin Donath
site_url: https://squidfunk.com/materializr site_url: https://github.com/squidfunk/mkdocs-material
# Repository # Repository
repo_name: GitHub repo_name: GitHub
repo_url: https://github.com/squidfunk/materializr repo_url: https://github.com/squidfunk/mkdocs-material
# Copyright # Copyright
copyright: Copyright (c) 2016 Martin Donath copyright: Copyright (c) 2016 Martin Donath
# Documentation and theme # Documentation and theme
docs_dir: docs theme_dir: material
theme_dir: materializr theme: amelia
# Extra variables # Extra variables
extra: extra:
color:
version: 0.1.0 version: 0.1.0
logo: logo:
author: author:
@ -48,7 +47,10 @@ extra:
markdown_extensions: markdown_extensions:
- fenced_code - fenced_code
- codehilite(css_class=code) - codehilite(css_class=code)
- admonition
- toc:
permalink:
# Page tree # Page tree
pages: pages:
- About: index.md - Home: index.md

View File

@ -1,8 +1,8 @@
{ {
"name": "materializr", "name": "mkdocs-material",
"version": "0.1.0", "version": "0.1.0",
"description": "A material design theme for MkDocs", "description": "A material design theme for MkDocs",
"homepage": "https://github.com/squidfunk/materializr", "homepage": "https://github.com/squidfunk/mkdocs-material",
"authors": [ "authors": [
"squidfunk <martin.donath@squidfunk.com>" "squidfunk <martin.donath@squidfunk.com>"
], ],
@ -13,7 +13,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/squidfunk/materializr.git" "url": "https://github.com/squidfunk/mkdocs-material.git"
}, },
"private": true, "private": true,
"devDependencies": { "devDependencies": {

View File

@ -22,9 +22,9 @@ from setuptools import setup, find_packages
# Package description # Package description
setup( setup(
name = 'mkdocs-materializr', name = 'mkdocs-material',
version = '0.1.0', version = '0.1.0',
url = 'https://github.com/squidfunk/materializr', url = 'https://github.com/squidfunk/mkdocs-material',
license = 'MIT', license = 'MIT',
description = 'A material design theme for MkDocs', description = 'A material design theme for MkDocs',
author = 'Martin Donath', author = 'Martin Donath',
@ -33,7 +33,7 @@ setup(
include_package_data = True, include_package_data = True,
entry_points = { entry_points = {
'mkdocs.themes': [ 'mkdocs.themes': [
'materializr = materializr', 'material = material',
] ]
}, },
zip_safe = False zip_safe = False

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $light-blue-500;
$accent: $red-a400;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $light-green-700;
$accent: $cyan-a700;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $blue-grey-700;
$accent: $red-a400;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $pink-500;
$accent: $indigo-a400;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $deep-purple-500;
$accent: $light-green-a700;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $red-500;
$accent: $light-blue-a400;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -1,56 +0,0 @@
/*
* Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* ----------------------------------------------------------------------------
* Dependencies
* ------------------------------------------------------------------------- */
@import "bourbon";
@import "quantum-colors";
@import "quantum-shadows";
/* ----------------------------------------------------------------------------
* Palette
* ------------------------------------------------------------------------- */
$primary: $teal-500;
$accent: $pink-a400;
/* ----------------------------------------------------------------------------
* Application
* ------------------------------------------------------------------------- */
@import "reset";
@import "palette";
@import "highlight";
@import "fonts/icon";
@import "mixins/break";
@import "modules/base";
@import "modules/drawer";
@import "modules/article";
@import "modules/search";
@import "print";
@import "shame";

View File

@ -146,4 +146,36 @@
.direction { .direction {
color: $white-light; color: $white-light;
} }
}
/*
* Admonition support
*/
.admonition {
background: mix($primary, $white, 10%);
/*
* Embedded code blocks
*/
pre {
background: $white-lighter;
}
/*
* A warning hint
*/
&.warning {
background: mix($red-500, $white, 10%);
}
}
/*
* Permalink support
*/
.article {
h2, h3, h4, h5, h6 {
a {
color: $black-lighter;
}
}
} }

View File

@ -30,6 +30,7 @@
.article { .article {
font-size: 14px; font-size: 14px;
line-height: 1.7em; line-height: 1.7em;
overflow-x: hidden;
/* [tablet landscape+]: Indent to account for drawer */ /* [tablet landscape+]: Indent to account for drawer */
@include break-from-device(tablet landscape) { @include break-from-device(tablet landscape) {
@ -113,13 +114,23 @@
* Sub headlines * Sub headlines
*/ */
h3, h4 { h3, h4 {
font-size: 1.0em; font-size: 14px;
padding-top: (20px + 56px);
margin-top: (0 - 56px);
/*
* No offset correction in iOS web application
*/
.ios.standalone & {
padding-top: 20px;
margin-top: 0;
}
} }
/* /*
* Paragraphs and section titles * Paragraphs and section titles
*/ */
p, h3, h4, ul, ol { p, ul, ol {
margin-top: 1.5em; margin-top: 1.5em;
} }
@ -271,6 +282,22 @@
} }
} }
/*
* Sub headlines
*/
h3, h4 {
padding-top: (20px + 64px);
margin-top: (0 - 64px);
/*
* No offset correction in iOS web application
*/
.ios.standalone & {
padding-top: 20px;
margin-top: 0;
}
}
/* /*
* Increase spacing for code blocks * Increase spacing for code blocks
*/ */
@ -466,4 +493,48 @@
padding: 0 8px; padding: 0 8px;
} }
} }
}
/*
* Admonition support
*/
.admonition {
margin: 20px -16px 0;
padding: 20px 16px;
/*
* Remove redundant margin of first child
*/
> :first-child {
margin-top: 0;
}
/* [tablet portait+]: Increase horizontal spacing */
@include break-from-device(tablet portrait) {
margin: 20px -24px 0;
padding: 20px 24px;
}
}
/*
* Permalink support
*/
.article {
/*
* Hide link to main headline
*/
h1 a {
display: none;
}
/*
* Align permalinks on the right
*/
h2, h3, h4, h5, h6 {
a {
float: right;
margin-left: 20px;
}
}
} }

View File

@ -43,4 +43,23 @@
font-weight: 400; font-weight: 400;
font-style: italic; font-style: italic;
} }
}
/*
* Admonition support
*/
.admonition-title {
font-weight: 700;
}
/*
* Permalink support
*/
.article {
h2, h3, h4, h5, h6 {
a {
font-weight: 400;
font-style: normal;
}
}
} }

View File

@ -47,9 +47,9 @@
<!-- Favicon --> <!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" <link rel="shortcut icon" type="image/x-icon"
href="{{ icon | default('/assets/images/favicon.ico') }}" /> href="{{ icon | default(base_url + '/assets/images/favicon.ico') }}" />
<link rel="icon" type="image/x-icon" <link rel="icon" type="image/x-icon"
href="{{ icon | default('/assets/images/favicon.ico') }}" /> href="{{ icon | default(base_url + '/assets/images/favicon.ico') }}" />
<!-- Webfonts --> <!-- Webfonts -->
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
@ -58,14 +58,8 @@
href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" /> href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" />
<!-- Theme-related and custom stylesheets --> <!-- Theme-related and custom stylesheets -->
{% if config.extra.color %} <link rel="stylesheet" type="text/css"
{% set color = config.extra.color %} href="{{ base_url }}/assets/stylesheets/application.css" />
<link rel="stylesheet" type="text/css"
href="{{ base_url }}/assets/stylesheets/application.{{ color }}.css" />
{% else %}
<link rel="stylesheet" type="text/css"
href="{{ base_url }}/assets/stylesheets/application.css" />
{% endif %}
{% for path in extra_css %} {% for path in extra_css %}
<link rel="stylesheet" type="text/css" href="{{ path }}" /> <link rel="stylesheet" type="text/css" href="{{ path }}" />
{% endfor %} {% endfor %}
@ -101,7 +95,7 @@
necessary for correctly rendering the table of contents which is necessary for correctly rendering the table of contents which is
embedded into the navigation and the actual headline. embedded into the navigation and the actual headline.
--> -->
{% set h1 = "\x3c/h1\x3e" in content %} {% set h1 = "\x3ch1 id=" in content %}
<!-- Drawer with navigation --> <!-- Drawer with navigation -->
<div class="drawer"> <div class="drawer">
@ -132,9 +126,9 @@
Documentation built with Documentation built with
<a href="http://www.mkdocs.org" target="_blank">MkDocs</a> <a href="http://www.mkdocs.org" target="_blank">MkDocs</a>
using the using the
<a href="https://github.com/squidfunk/materializr" <a href="https://github.com/squidfunk/mkdocs-material"
target="_blank"> target="_blank">
Materializr Material
</a> </a>
theme. theme.
</aside> </aside>