[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www layout.css
From: |
Therese Godefroy |
Subject: |
www layout.css |
Date: |
Sat, 24 Apr 2021 03:26:50 -0400 (EDT) |
CVSROOT: /webcvs/www
Module name: www
Changes by: Therese Godefroy <th_g> 21/04/24 03:26:50
Modified files:
. : layout.css
Log message:
Navigation:
- move li.current to Consensus (only pages that use it);
- simplify.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/layout.css?cvsroot=www&r1=1.285&r2=1.286
Patches:
Index: layout.css
===================================================================
RCS file: /webcvs/www/www/layout.css,v
retrieving revision 1.285
retrieving revision 1.286
diff -u -b -r1.285 -r1.286
--- layout.css 24 Apr 2021 06:56:14 -0000 1.285
+++ layout.css 24 Apr 2021 07:26:49 -0000 1.286
@@ -226,64 +226,51 @@
/** LAYOUT **/
+/* 'submenu' would be a more appropriate name than 'edu-navigation'. */
#navigation, #edu-navigation {
font-size: .94em;
font-weight: bold;
}
#navigation ul { margin: 0; }
-ul#edu-navigation { margin: 0 -3.2%; }
+#edu-navigation { margin: 0 -3.2%; }
-/* line-height is defined here for NetSurf 1.2.
- No effect in NetSurf 2.9 or Firefox. */
-#navigation ul, ul#edu-navigation {
- line-height: 2.25em;
- padding: 0 2%;
+#navigation ul, #edu-navigation {
+ line-height: 2.125em;
+ padding: 0 2% ;
}
-#navigation li, ul#edu-navigation li {
+#navigation li, #edu-navigation li {
white-space: nowrap;
display: inline;
- display: inline-block;
- line-height: 2.25em;
+ line-height: 2.125em;
margin: 0 .2em;
}
-#navigation li a, ul#edu-navigation a {
-/* For Firefox (can't set line-height when "a" is displayed inline) */
+#navigation li a, #edu-navigation a {
display: inline-block;
line-height: 2em;
padding: 0 .6em;
- margin: .125em 0;
+ margin-top: .125em;
}
#more-links, #less-links { display: none; }
/** STYLE **/
-#navigation a, ul#edu-navigation a {
+#navigation a, #edu-navigation a {
text-decoration: none;
}
-#navigation ul { background: #a32d2a; }
-ul#edu-navigation { background: #eee; }
+#navigation { background: #a32d2a; }
+#edu-navigation { background: #eee; }
#navigation a { color: white; }
-ul#edu-navigation a { color: #333; }
+#edu-navigation a { color: #333; }
-#navigation li a:hover { background: #8c0300; }
-ul#edu-navigation li a:hover { background: #fafafa; }
+#navigation li a:hover,
+#navigation li.active a { background: #800300; }
+#edu-navigation li a:hover { background: white; }
-#navigation li.active a,
-ul#edu-navigation li.active a,
-ul#edu-navigation li.current {
+#navigation li.active a {
font-style: italic;
cursor: default;
}
-#navigation li.active a,
-#navigation li.active a:hover {
- background: #800300;
-}
-ul#edu-navigation li.active,
-ul#edu-navigation li.active a:hover,
-ul#edu-navigation li.current {
- background: white;
-}
/*****************************************/
@@ -468,8 +455,6 @@
#fsf-support a { font-weight: bold; }
#languages { margin-top: 5.5em; }
-
- ul#edu-navigation { display: block; }
}
@media (min-width: 57em) { /* 912px */
@@ -1565,7 +1550,7 @@
font-family: "Noto Sans Display", "Noto Sans", "Liberation Sans",
sans-serif;
}
-#navigation a[href], ul#edu-navigation a[href] {
+#navigation a[href], #edu-navigation a[href] {
font-family: "Dosis", "Noto Sans Display", "Noto Sans", "Liberation Sans",
sans-serif;
}
- www layout.css, Therese Godefroy, 2021/04/24
- www layout.css, Therese Godefroy, 2021/04/24
- www layout.css,
Therese Godefroy <=
- www layout.css, Therese Godefroy, 2021/04/26
- www layout.css, Therese Godefroy, 2021/04/26
- www layout.css, Therese Godefroy, 2021/04/26
- www layout.css, Therese Godefroy, 2021/04/26
- www layout.css, Therese Godefroy, 2021/04/27