瀏覽代碼

Addition of icons, CSS tweaks and improvements. Updated ReadMe and Changelog

Tom Hutchison 9 年之前
父節點
當前提交
9d5632e06e
共有 4 個文件被更改,包括 29 次插入5 次删除
  1. 3 1
      CHANGELOG.md
  2. 5 1
      README.md
  3. 5 1
      assets/scripts/foreground.js
  4. 16 2
      assets/stylesheets/foreground.css

+ 3 - 1
CHANGELOG.md

@@ -1,6 +1,8 @@
 ## Version 2.0
 
-* [feature] Upgrade to Foundation 5.5.3
+* [feature] [b/c break] Upgrade to Foundation 5.5.3 (Foundation Tabs have a coding change to build tabs on pages)
+* [code] [b/c break] Use the help page set with MediaWiki:Helppage
+* [feature] [code] Remove "Login" word for annon users, dropdown for log in and create account links
 * [icons] Update to Font Awesome 4.5
 * [icons] Missing icons for Visual Editor, CiteThisPage, et al were added
 * [feature] Support of more menu items in top-bar, flows automatically

+ 5 - 1
README.md

@@ -60,7 +60,7 @@ These are the default values:
       'showFooterIcons' => 0,
       'addThisFollowPUBID' => ''
     );
-
+	
 ### Usage of NavWrapperType
 
 With a setting like:
@@ -89,6 +89,10 @@ A top navbar icon will be set using the current image set by `$wgLogo` in `Local
 
 The icon will be resized to fit into a maximum width of 64px x 36px wide or a 16:9 ratio.
 
+### Show Help under Tools
+
+This will add the help link under tools. To control what the help link will link to use the message page, `MediaWiki:Helppage` to set the link target. The link target can be a local page, Help:Contents, or an external URL, https://www.mediawiki.org/wiki/Help:Contents.
+
 ### AddThis Buttons
 
 With a setting like:

+ 5 - 1
assets/scripts/foreground.js

@@ -46,7 +46,11 @@ if ( jQuery( '#ca-addsection' ).length ) {
   jQuery('li#pt-watchlist a').prepend('<div class="drop-icon"><i class="fa fa-th-list fa-fw"></i></div>')
   jQuery('li#pt-mycontris a').prepend('<div class="drop-icon"><i class="fa fa-smile-o fa-fw"></i></div>')
   jQuery('li#pt-logout a').prepend('<div class="drop-icon"><i class="fa fa-sign-out fa-fw"></i></div>')
-
+  jQuery('li#pt-login a').prepend('<div class="drop-icon"><i class="fa fa-sign-in fa-fw"></i></div>')
+  jQuery('li#pt-createaccount a').prepend('<div class="drop-icon"><i class="fa fa-lock fa-fw"></i></div>')
+  jQuery('li#pt-anonuserpage a').prepend('<div class="drop-icon"><i class="fa fa-user-secret fa-fw"></i></div>')
+  jQuery('li#pt-anontalk a').prepend('<div class="drop-icon"><i class="fa fa-commenting-o fa-fw"></i></div>')
+  
   jQuery('li#t-smwbrowselink a').prepend('<div class="drop-icon"><i class="fa fa-eye fa-fw"></i></div>')
   jQuery('li#t-whatlinkshere a').prepend('<div class="drop-icon"><i class="fa fa-arrows fa-fw"></i></div>')
   jQuery('li#t-blockip a').prepend('<div class="drop-icon"><i class="fa fa-ban fa-fw"></i></div>')

+ 16 - 2
assets/stylesheets/foreground.css

@@ -76,8 +76,9 @@ small {
 }
 
 h4.namespace.label {
-  font-size: small;
-  display:inline-block;
+	font-size: 1rem;
+	display:inline-block;
+	margin-bottom: 0.5rem;
 }
 
 .label {
@@ -256,6 +257,19 @@ li#footer-disclaimer { float: none; margin-right: 0;}
  margin-left: 2em;
 }
 
+#catlinks {
+    border: 1px solid #aaa;
+    padding: 0.25rem;
+}
+
+#catlinks .label {
+    font-size: .9rem;
+}
+
+#catlinks a.label.new {
+    background-color: #BA0F2A;
+}
+
 .catlinks li {border-left:none;}
 
 .mw-specialpages-table td ul.columns li {width: 50%;}