aboutsummaryrefslogtreecommitdiffstats
path: root/theme/default/rsrc/css/import/_responsive.scss
diff options
context:
space:
mode:
Diffstat (limited to 'theme/default/rsrc/css/import/_responsive.scss')
-rw-r--r--theme/default/rsrc/css/import/_responsive.scss77
1 files changed, 77 insertions, 0 deletions
diff --git a/theme/default/rsrc/css/import/_responsive.scss b/theme/default/rsrc/css/import/_responsive.scss
new file mode 100644
index 0000000..d248bf4
--- /dev/null
+++ b/theme/default/rsrc/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;
+ }
+}