summaryrefslogtreecommitdiff
path: root/style
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-12 11:51:38 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-12 12:07:41 -0500
commitaa5717ba8ce873f405d5391521216fea173aa818 (patch)
tree9bff236d226cf4a4f94d0f9097958ec70c0a0b38 /style
parent1eae4ecd749a703657f12b4efefa695de9499fe5 (diff)
downloadgtk-doc-aa5717ba8ce873f405d5391521216fea173aa818.tar.gz
Make navigation header size adaptive
See http://www.w3.org/TR/css3-mediaqueries/
Diffstat (limited to 'style')
-rw-r--r--style/style.css22
1 files changed, 18 insertions, 4 deletions
diff --git a/style/style.css b/style/style.css
index 367fc3a..002fc94 100644
--- a/style/style.css
+++ b/style/style.css
@@ -35,7 +35,6 @@ body
{
position: relative;
top: 0em ! important;
-
}
/* this is needed so that the local anchors are displayed below the naviagtion */
div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name]
@@ -56,12 +55,11 @@ body
{
padding-top: 5em;
padding-bottom: 500px;
- max-width: 800px;
- margin: auto;
+ max-width: 60em;
}
p
{
- max-width: 800px
+ max-width: 60em;
}
/* style and size the navigation bar */
table.navigation#top
@@ -98,6 +96,22 @@ body
color: #babdb6;
}
}
+@media screen and (min-width: 60em) {
+ /* screen larger than 60em */
+ body { margin: auto; }
+}
+@media screen and (max-width: 60em) {
+ /* screen less than 60em */
+ #nav_hierarchy { display: none; }
+ #nav_interfaces { display: none; }
+ #nav_prerequisites { display: none; }
+ #nav_derived_interfaces { display: none; }
+ #nav_implementations { display: none; }
+ #nav_child_properties { display: none; }
+ #nav_style_properties { display: none; }
+ #nav_index { display: none; }
+ #nav_glossary { display: none; }
+}
@media print {
table.navigation {
visibility: collapse;