Pārlūkot izejas kodu

fixed js issues in the H2 tag namespace re-writing, added Jamie's standard title hiding CSS

Garrick van Buren 12 gadi atpakaļ
vecāks
revīzija
dc32594cb7
2 mainītis faili ar 21 papildinājumiem un 3 dzēšanām
  1. 2 2
      assets/scripts/foreground.js
  2. 19 1
      assets/stylesheets/foreground.css

+ 2 - 2
assets/scripts/foreground.js

@@ -1,8 +1,8 @@
 jQuery(document).ready(function() {
 jQuery(document).ready(function() {
   jQuery(document).foundation();
   jQuery(document).foundation();
   // Split the namespace title into a title and a label
   // Split the namespace title into a title and a label
-  var $title = jQuery('h2:not(:contains("\""))').jQuery('h2:contains(":")').text().split(":");
-  jQuery('h2:not(:contains("\""))').jQuery('h2:contains(":")').html('<small class="label">' + $title[0] + '</small><div class="clear_both"></div>' + $title[1]);
+  var $title = jQuery("h2:contains(':')").not(":contains('\"')").text().split(":");
+  jQuery("h2:contains(':')").not(":contains('\"')").html('<small class="label">' + $title[0] + '</small><div class="clear_both"></div>' + $title[1]);
 
 
   // Turn categories into labels
   // Turn categories into labels
   jQuery('#mw-normal-catlinks ul li a').addClass('label');
   jQuery('#mw-normal-catlinks ul li a').addClass('label');

+ 19 - 1
assets/stylesheets/foreground.css

@@ -1,3 +1,4 @@
+
 body {
 body {
   line-height: 1.6em;
   line-height: 1.6em;
 }
 }
@@ -76,7 +77,11 @@ div#userloginprompt, p#userloginlink {
 
 
 
 
 /* LISTS */
 /* LISTS */
-#mw-content-text ul,
+#mw-content-text ul {
+  list-style-type: disc;
+  margin: .5em 1.25em;
+}
+
 footer.row ul {
 footer.row ul {
   list-style-type: none;
   list-style-type: none;
   margin: .5em 1.25em;
   margin: .5em 1.25em;
@@ -328,3 +333,16 @@ div.mw-htmlform-field-HTMLCheckField div.mw-label { height:0; }
 #p-toolboxend { display:none;}
 #p-toolboxend { display:none;}
 y {background-color: green;}
 y {background-color: green;}
 }
 }
+
+/* hide some page titles that seem redundant */
+body.page-Main_Page h1.firstHeading,
+body.page-Main_Page #siteSub,
+body.page-Extension_Main_Page h1.firstHeading,
+body.page-Extension_Main_Page #siteSub,
+body.page-Skin_Main_Page h1.firstHeading,
+body.page-Skin_Main_Page #siteSub,
+body.page-Farm_Main_Page h1.firstHeading,
+body.page-Farm_Main_Page #siteSub {
+  display:none;
+}
+