aboutsummaryrefslogtreecommitdiffstats
path: root/skins/amethyst
diff options
context:
space:
mode:
authorTom Gilder <tomgilder@users.mediawiki.org>2005-01-15 23:21:52 +0000
committerTom Gilder <tomgilder@users.mediawiki.org>2005-01-15 23:21:52 +0000
commit221156150edbf9fdace17d13a5a27af15d580a7f (patch)
tree2a9d060d937aebcb6a8e7ec63179697ca0832f8c /skins/amethyst
parent82846cbd0711fa7979ef2dc283018b573b1015f1 (diff)
downloadmediawikicore-221156150edbf9fdace17d13a5a27af15d580a7f.tar.gz
mediawikicore-221156150edbf9fdace17d13a5a27af15d580a7f.zip
Complete TOC recode: proper HTML list; CSS for layout; JS recode; hidden TOC stays hidden across different pages; never show TOC if no headings; more opportunity to style TOC
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/7073
Diffstat (limited to 'skins/amethyst')
-rw-r--r--skins/amethyst/main.css52
1 files changed, 41 insertions, 11 deletions
diff --git a/skins/amethyst/main.css b/skins/amethyst/main.css
index d852168d5c90..898910c782c9 100644
--- a/skins/amethyst/main.css
+++ b/skins/amethyst/main.css
@@ -329,20 +329,50 @@ table.small { font-size: 100% }
** content styles
*/
+/* IE/mac fixes */
#toc {
- /* border:1px solid #2f6fab;*/
- padding:0.5em;
- border:1px solid #aaaaaa;
- background-color: #2F333B;
+ display: inline-table;
+}
+#toc h2, #toc div, #toc ul, #toc li {
+ float: left;
+ clear: left;
+}
+@media all {
+ #toc {
+ display: block;
+ text-align: center;
+ }
+ #toc * {
+ float: none!important;
+ }
+}
+/* end IE/mac fixes */
+
+#toc {
+ border: 1px solid #aaa;
+ background-color: #2f333b;
+ padding: 0.5em;
font-size: 95%;
+ float: left;
+}
+#toc h2 {
+ display: inline;
+ border: none;
+ padding: 0;
+ font-size: 100%;
+ font-weight: bold;
+}
+#toc ul {
+ list-style-type: none;
+ list-style-image: none;
+ margin-left: 0;
+ padding-left: 0;
+ text-align: left;
+}
+#toc ul ul {
+ margin: 0 0 0 2em;
}
-#toc .toctitle { background: #2A3C61;}
-#toc .tocindent { margin-left: 2em; }
-#toc .tocline { margin-bottom: 0px; }
-#toc p { margin: 0 }
-#toc .toctoggle { font-size: 94%; }
-#toc .editsection {
- margin-top: 0.7em;
+#toc .toctoggle {
font-size: 94%;
}