diff options
author | Thomas Lange <code@nerdmind.de> | 2024-11-21 20:59:05 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2024-11-21 21:27:03 +0100 |
commit | 5ccca11a448ea315a6e64453e630694ba2c20e66 (patch) | |
tree | d29b46acc6ade8c3d94e272695122e7d1c611bf6 /theme/default/static/css/import/_responsive.scss | |
parent | 52cb2b8aef3ba86e4abe551a3df9831d347e948e (diff) | |
download | blog-5ccca11a448ea315a6e64453e630694ba2c20e66.tar.gz blog-5ccca11a448ea315a6e64453e630694ba2c20e66.tar.xz blog-5ccca11a448ea315a6e64453e630694ba2c20e66.zip |
Rename "rsrc" directories to "static"
Stop using "rsrc" as name for the directories which contain static files
and rename them to "static". This affects the global static directory
and the static sub-directories in the theme directories.
If you've stored your own files in the old global "rsrc" directory, you
must move them to the new "static" directory.
Diffstat (limited to 'theme/default/static/css/import/_responsive.scss')
-rw-r--r-- | theme/default/static/css/import/_responsive.scss | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/theme/default/static/css/import/_responsive.scss b/theme/default/static/css/import/_responsive.scss new file mode 100644 index 0000000..d248bf4 --- /dev/null +++ b/theme/default/static/css/import/_responsive.scss @@ -0,0 +1,77 @@ +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Responsive Level #1 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +@media only screen and (max-width: 50em) { + html { + font-size: 1.125rem; /*18px*/ + background-image: none !important; + } + + body { + line-height: 1.2rem; + } + + #container { + margin: 0; + border-right: none; + border-left: none; + } +} + +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Responsive Level #2 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +@media only screen and (max-width: 37.5em) { + main, #main-header > div { + padding: 1rem; + } + + #main-navi { + padding: 0.25rem 1rem; + } + + #main-navi a { + border: 0.05rem solid transparent; + } + + #main-navi a:hover, #main-navi a:focus { + border: 0.05rem solid #BBB; + } + + #main-navi > ul { + display: none; + float: none; + } + + #main-navi > ul > li a { + display: block; + text-align: left; + padding: 0 0.25rem; + } + + #main-navi { + overflow: hidden; + } + + #toogle-nav-label { + display: block; + } + + #toogle-nav:checked + ul { + display: block; + } + + #main-navi li:last-child { + float: none; + } + + .item > header { + text-align: center; + } + + .item > header > h2, + .item > header > .info { + float: none; + display: block; + } +} |