Просмотр исходного кода

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 лет назад
Родитель
Сommit
c743975f26
3 измененных файлов с 8 добавлено и 9 удалено
  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).foundation();
-  var $title = jQuery('h3:contains(":")').text().split(":");
-
   // 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
   jQuery('#mw-normal-catlinks ul li a').addClass('label');

+ 5 - 5
assets/stylesheets/foreground.css

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

+ 1 - 1
foreground.skin.php

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