com web/shared: Constrained some nav styles to the main nav; also reworked responsive sizes: styles/defaults.css
| From: | Levi Morrison | Date: | Thu, 24 Apr 2014 01:20:02 +0000 |
| Subject: | com web/shared: Constrained some nav styles to the main nav; also reworked responsive sizes: styles/defaults.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-18800@lists.php.net to get a copy of this message | ||
Commit: edea25af6fbda736059d2db44cceea43eac809b8
Author: Levi Morrison <levim@php.net> Wed, 23 Apr 2014 19:20:02 -0600
Parents: e25bb81299f1efc61f3255d23d4d23c9928bab42
Branches: master
Link: http://git.php.net/?p=web/shared.git;a=commitdiff;h=edea25af6fbda736059d2db44cceea43eac809b8
Log:
Constrained some nav styles to the main nav; also reworked responsive sizes
Changed paths:
M styles/defaults.css
Diff:
diff --git a/styles/defaults.css b/styles/defaults.css
index 6c1938b..4cef05c 100644
--- a/styles/defaults.css
+++ b/styles/defaults.css
@@ -279,7 +279,7 @@ th {
/* This just has to be big enough to cover whatever's in nav. */
max-height: 50em;
}
-@media (max-width:640px) {
+@media (max-width:40rem) {
#mainmenu-toggle-overlay {
background: #4F5B93 url(//php.net/images/mobile-menu.png) no-repeat center center;
float: right;
@@ -309,7 +309,9 @@ th {
overflow-y: auto;
clear: both;
}
- nav ul, nav li, nav a {
+ header nav ul,
+ header nav li,
+ header nav a {
display: block;
text-align: center;
}
@@ -330,7 +332,7 @@ th {
}
}
-@media (min-width: 641px) {
+@media (min-width: 40rem) {
img {
max-width: 100%
}
@@ -339,7 +341,7 @@ th {
}
}
-@media (min-width: 1020px) {
+@media (min-width: 48rem) {
nav a.home {
margin-left:1.5rem;
}