diff --git a/conf.py b/conf.py index f6fd00c..03fb8a1 100644 --- a/conf.py +++ b/conf.py @@ -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. diff --git a/misc/_static/dftext.css b/misc/_static/dftext.css new file mode 100644 index 0000000..e62cf51 --- /dev/null +++ b/misc/_static/dftext.css @@ -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; +} diff --git a/misc/_templates/layout.html b/misc/_templates/layout.html new file mode 100644 index 0000000..4a00d7f --- /dev/null +++ b/misc/_templates/layout.html @@ -0,0 +1,5 @@ +{# layout.html #} +{# Import the theme's layout. #} +{% extends "!layout.html" %} + +{% set css_files = css_files + ['_static/dftext.css'] %} \ No newline at end of file