Fossil SCM

Added "overflow-y: hidden;" to the CSS for the default skin to prevent some browsers (Chrome, Firefox, and Safari on macOS, at least) from adding a vertical scroll bar to the navbar. This was only necesasry on this skin because of the recently-added "overflow-x: auto" style, which tells the browser to clip or horizontally-scroll the navbar if the screen width isn't sufficient to show the whole thing; previously in this skin, and currently in all other skins, this condition causes the navbar to wrap to the next line, which looks particularly bad on the default skin. I believe this then made these browsers calculate some extra space for a possible horizontal scroll bar, which then ran the layout engine out of space, so it included the vertical bar just in case. This may be macOS specific, due to the scroll bar hiding behavior introduced several OS release back.

wyoung 2018-09-01 20:19 trunk
Commit e8783b9aa2f6a0f0b5d9066e960256f0dd123b8a2870712753aef8d03db5cb0a
1 file changed +1
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -81,10 +81,11 @@
8181
clear:both;
8282
background:#eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x;
8383
border:1px solid #eaeaea;
8484
border-radius:5px;
8585
overflow-x: auto;
86
+ overflow-y: hidden;
8687
white-space: nowrap;
8788
}
8889
8990
.mainmenu a {
9091
text-decoration:none;
9192
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -81,10 +81,11 @@
81 clear:both;
82 background:#eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x;
83 border:1px solid #eaeaea;
84 border-radius:5px;
85 overflow-x: auto;
 
86 white-space: nowrap;
87 }
88
89 .mainmenu a {
90 text-decoration:none;
91
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -81,10 +81,11 @@
81 clear:both;
82 background:#eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x;
83 border:1px solid #eaeaea;
84 border-radius:5px;
85 overflow-x: auto;
86 overflow-y: hidden;
87 white-space: nowrap;
88 }
89
90 .mainmenu a {
91 text-decoration:none;
92

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button