aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-10 14:14:46 -0400
committerJoey Hess <joey@kitenet.net>2010-06-10 14:14:46 -0400
commit23aaa5ac45f389a741afdac6d87e077a2e44fe8b (patch)
tree6f2cee501441f1ac1e7da8cfa8eefcff37c4eaf0 /doc
parent492c61f825ed792b2bd839b76777454d4102ca8c (diff)
downloadikiwiki-23aaa5ac45f389a741afdac6d87e077a2e44fe8b.tar
ikiwiki-23aaa5ac45f389a741afdac6d87e077a2e44fe8b.tar.gz
style.css: Improvements to make floating sidebar fit better on pages with inlines.
The key is using width: auto; overflow: auto; -- this allows the div(s) to the left of the floating sidebar to be resized to fit next to it, and prevents any clear: both from pushing the div down below the end of the sidebar. Many thanks for the Hurd wiki's developers for originally figuring this out. The edit page recently developed the same problem with its textarea, now that a sidebar can appear on that page too. In editpage.tmpl I needed to add a new div around the editcontent textarea, as the above styles cannot be applied directly to textareas. The textarea's own width is reduced to 98% because at least in chromium this avoids it getting unnecessary horizonatl scrollbars when a sidebar is displayed next to it.
Diffstat (limited to 'doc')
-rw-r--r--doc/style.css12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/style.css b/doc/style.css
index 2cd7a9652..d88c93778 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -110,7 +110,12 @@ nav {
}
#editcontent {
- width: 100%;
+ width: 98%;
+}
+
+.editcontentdiv {
+ width: auto;
+ overflow: auto;
}
img {
@@ -121,8 +126,8 @@ div.recentchanges {
border-style: solid;
border-width: 1px;
overflow: auto;
- clear: both;
- width: 100%;
+ width: auto;
+ clear: none;
background: #eee;
color: black !important;
}
@@ -176,6 +181,7 @@ div.recentchanges {
.inlinepage {
padding: 10px 10px;
border: 1px solid #aaa;
+ overflow: auto;
}
.pagedate,