Browse Source

changed page titles to h2, decreased size of editsection links, adjusted the jquery that makes the namespace label to ignore h2s that contain quotes

Garrick van Buren 12 years ago
parent
commit
c743975f26
3 changed files with 8 additions and 9 deletions
  1. 2 3
      assets/scripts/foreground.js
  2. 5 5
      assets/stylesheets/foreground.css
  3. 1 1
      foreground.skin.php

+ 2 - 3
assets/scripts/foreground.js

@@ -1,9 +1,8 @@
 jQuery(document).ready(function() {
 jQuery(document).ready(function() {
   jQuery(document).foundation();
   jQuery(document).foundation();
-  var $title = jQuery('h3:contains(":")').text().split(":");
-
   // Split the namespace title into a title and a label
   // Split the namespace title into a title and a label
-  jQuery('h3:contains(":")').html('<small class="label">' + $title[0] + '</small>' + $title[1]);
+  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]);
 
 
   // 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');

+ 5 - 5
assets/stylesheets/foreground.css

@@ -24,7 +24,10 @@ small {
 h3 small.label {
 h3 small.label {
   font-size: small;
   font-size: small;
   display:block;
   display:block;
-  width:6em;
+}
+
+.clear_both {
+  clear:both;
 }
 }
 
 
 
 
@@ -128,11 +131,8 @@ h1,h2,h3,h4,h5,h6 {
   margin-bottom: 0.5em;
   margin-bottom: 0.5em;
 }
 }
 
 
-h2 {
-  font-size: 2em;
-}
 
 
-h2 .editsection {
+.editsection {
   font-weight: normal;
   font-weight: normal;
   font-size: 0.3em;
   font-size: 0.3em;
 }
 }

+ 1 - 1
foreground.skin.php

@@ -99,7 +99,7 @@ class ForegroundTemplate extends BaseTemplate {
 
 
 		<div class="row">
 		<div class="row">
 				<div class="large-12 columns">
 				<div class="large-12 columns">
-					<h3><?php $this->html('title') ?></h3>
+					<h2><?php $this->html('title') ?></h2>
 					<h5><?php $this->html('subtitle') ?></h5>
 					<h5><?php $this->html('subtitle') ?></h5>
 					<?php $this->html('bodytext') ?>
 					<?php $this->html('bodytext') ?>
 		    	<div class="group"><?php $this->html('catlinks'); ?></div>
 		    	<div class="group"><?php $this->html('catlinks'); ?></div>