Add keyboard and DF text styles

This commit is contained in:
PeridexisErrant 2015-09-27 23:45:05 +10:00
parent f648e25cfc
commit d4763d3054
3 changed files with 39 additions and 2 deletions

View file

@ -32,7 +32,7 @@ extensions = [
]
# Add any paths that contain templates here, relative to this directory.
templates_path = []
templates_path = ['misc/_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
@ -143,7 +143,7 @@ html_favicon = 'misc/df-icon.ico'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
html_static_path = ['misc/_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.

32
misc/_static/dftext.css Normal file
View file

@ -0,0 +1,32 @@
@import url("alabaster.css"); /* make sure to sync this with the base theme's css filename */
/* Keybinding CSS from the DF wiki; applies to :kbd:`` directives.
* Use this directive for all keypresses, to make them look like keys.
*/
.kbd {
border: 1px solid #aaa;
border-radius: 0.2em;
-webkit-border-radius: 0.2em;
-moz-border-radius: 0.2em;
-o-border-radius: 0.2em; -ms-border-radius: 0.2em;
-moz-box-shadow: 0.1em 0.2em 0.2em #ddd;
-webkit-box-shadow: 0.1em 0.2em 0.2em #ddd;
box-shadow: 0.1em 0.2em 0.2em #ddd;
background-color: #f9f9f9;
background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee);
background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee);
background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee);
background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee);
padding: 0.1em 0.3em;
font-family: inherit;
font-size: 0.9em;
}
.guilabel {
/* In-game text CSS from the DF wiki; applies to :guilabel:`` directives.
* Use this for any text from an in-game announcement or menu.
*/
color: #C0C0C0;
font-family: 'fixedsys', monospace;
background: #000000;
}

View file

@ -0,0 +1,5 @@
{# layout.html #}
{# Import the theme's layout. #}
{% extends "!layout.html" %}
{% set css_files = css_files + ['_static/dftext.css'] %}