summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authormakitso <makitso@gmail.com>2015-05-27 07:07:13 -0500
committermakitso <makitso@gmail.com>2015-05-27 07:07:13 -0500
commitd150efd3d9e99a15f57ecb93189328e361388487 (patch)
tree6bd046b2e978f0a81d7cf4c7915decd9975634e9 /themes
parentd05f4b20758c4ce5da8a0be19c23206107665a1e (diff)
downloadwebtrees-d150efd3d9e99a15f57ecb93189328e361388487.tar.gz
webtrees-d150efd3d9e99a15f57ecb93189328e361388487.tar.bz2
webtrees-d150efd3d9e99a15f57ecb93189328e361388487.zip
Clouds-Colors, improve mobile device menus
Diffstat (limited to 'themes')
-rw-r--r--themes/clouds/css-1.7.0/style.css9
-rw-r--r--themes/colors/css-1.7.0/images/sprites-top2-menu.pngbin0 -> 21062 bytes
-rw-r--r--themes/colors/css-1.7.0/style.css54
3 files changed, 60 insertions, 3 deletions
diff --git a/themes/clouds/css-1.7.0/style.css b/themes/clouds/css-1.7.0/style.css
index 1bed294870..ac9e36943a 100644
--- a/themes/clouds/css-1.7.0/style.css
+++ b/themes/clouds/css-1.7.0/style.css
@@ -5383,3 +5383,12 @@ footer .error {
z-index: 1;
}
}
+/* Mobile low and high resolution viewports */
+@media (max-width: 480px) {
+header {
+ height: 83px;
+ }
+ .secondary-menu {
+ top: 50px;
+ }
+}
diff --git a/themes/colors/css-1.7.0/images/sprites-top2-menu.png b/themes/colors/css-1.7.0/images/sprites-top2-menu.png
new file mode 100644
index 0000000000..05e26173c8
--- /dev/null
+++ b/themes/colors/css-1.7.0/images/sprites-top2-menu.png
Binary files differ
diff --git a/themes/colors/css-1.7.0/style.css b/themes/colors/css-1.7.0/style.css
index 4a6c6168de..8530d37d46 100644
--- a/themes/colors/css-1.7.0/style.css
+++ b/themes/colors/css-1.7.0/style.css
@@ -4249,7 +4249,7 @@ header h1 {
float: left;
font-size: 24px;
font-weight: normal;
- margin: 14px 12px 3px;
+ margin: 14px 5px 3px;
}
[dir=rtl] header h1 {
@@ -4291,6 +4291,10 @@ header {
content: "";
}
+.secondary-menu li:last-child:before {
+ content: " ";
+}
+
.secondary-menu ul {
position: absolute;
background-color: #eee;
@@ -4446,7 +4450,7 @@ header nav {
background-repeat: no-repeat;
height: 40px;
line-height: 40px;
- margin: 4px 0 0 16px;
+ margin: 4px 9px 0 7px;
text-indent: 32px;
width: 40px;
}
@@ -4464,7 +4468,7 @@ header nav {
/* Reverse left and right on RTL pages */
[dir=rtl] .primary-menu > li {
- margin: 4px 16px 0 0;
+ margin: 4px 7px 0 0;
}
[dir=rtl] .primary-menu li {
@@ -5317,3 +5321,47 @@ footer {
z-index: 1;
}
}
+
+/* Mobile low and high resolution viewports */
+@media (max-width: 653px) {
+ .secondary-menu {
+ margin: 0 10px 4px 5px;
+ }
+ [dir="rtl"] .secondary-menu {
+ float: left;
+ margin: 0 0 4px 10px;
+ }
+ #home-page {
+ padding: 20px 0;
+ }
+}
+
+@media (max-width: 453px) {
+ .secondary-menu {
+ float: left;
+ }
+ [dir=rtl] .secondary-menu {
+ float: right;
+ }
+ #content {
+ margin-top: 40px;
+ }
+ #home-page {
+ padding: 40px 0;
+ }
+ .header-search {
+ display: block;
+ margin-top: 5px;
+ }
+ .primary-menu > li {
+ background-image: url("images/sprites-top2-menu.png");
+ margin: 0 0 0 7px;
+ width: 20px;
+ }
+ .primary-menu > li > ul {
+ top: 32px;
+ }
+ .primary-menu {
+ height: 40px;
+ }
+}