소스 검색

attempting to force hour minute and second fields in WikiApiary to width:auto, and wrapping a <span> around the h2s to force the label above the pagetitle.

Garrick van Buren 12 년 전
부모
커밋
2e4932c6b9
2개의 변경된 파일10개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      assets/scripts/foreground.js
  2. 9 4
      assets/stylesheets/foreground.css

+ 1 - 1
assets/scripts/foreground.js

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

+ 9 - 4
assets/stylesheets/foreground.css

@@ -26,11 +26,11 @@ h2 small.label {
   display:inline-block;
 }
 
-h2 small.label:after,
-h2 small.label::after {
+h2 span {
   clear:both;
 }
 
+
 .clear_both {
   clear:both;
 }
@@ -246,8 +246,14 @@ table.wikitable > * > tr > td {
 
 .inputSpan select.createboxInput,
 .dateInput select.monthInput,
+input.hourInput,
+input.minuteInput,
+input.secondInput,
 input.dayInput,
-input.yearInput {
+input.yearInput,
+input[name='Website[Founded date][hour]'],
+input[name='Website[Founded date][minute]'],
+input[name='Website[Founded date][second]'] {
   width: auto;
   float: left;
   margin-right: 1em;
@@ -310,7 +316,6 @@ input[type="submit"] {
     background-color: #5da423;
     border-color: #457a1a;
     color: white;
-    display: block;
     -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
     box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
     -webkit-transition: background-color 300ms ease-out;