changeset 2369:6d2770f69ffe

Fixes #19, using form-control-focus mixin from bootstrap
author sharky93 <rishabhr123@gmail.com>
date Thu, 08 Aug 2013 12:50:53 +0530
parents b17c686f87ae
children 662e78afcb9f
files MoinMoin/themes/basic/static/css/basic.css MoinMoin/themes/basic/static/css/common.css MoinMoin/themes/basic/static/custom-less/basic.less MoinMoin/themes/basic/templates/itemviews.html
diffstat 4 files changed, 15 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/basic.css	Wed Aug 07 20:55:06 2013 +0530
+++ b/MoinMoin/themes/basic/static/css/basic.css	Thu Aug 08 12:50:53 2013 +0530
@@ -4305,3 +4305,9 @@
   overflow: hidden;
   background-color: #e5e5e5;
 }
+.moin-shadow > li > a:focus {
+  border-color: #66afe9;
+  outline: 0;
+  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
+  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
+}
--- a/MoinMoin/themes/basic/static/css/common.css	Wed Aug 07 20:55:06 2013 +0530
+++ b/MoinMoin/themes/basic/static/css/common.css	Thu Aug 08 12:50:53 2013 +0530
@@ -1,11 +1,6 @@
 html{
   overflow-y:scroll;
 }
-.nav-tabs > li > a:focus {
-  outline: 0px none;
-  border-color: rgba(82, 168, 236, 0.8);
-  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 4px rgba(82, 168, 236, 0.6);
-}
 .moin-hist-rev {
 	text-align: center;
 }
--- a/MoinMoin/themes/basic/static/custom-less/basic.less	Wed Aug 07 20:55:06 2013 +0530
+++ b/MoinMoin/themes/basic/static/custom-less/basic.less	Thu Aug 08 12:50:53 2013 +0530
@@ -12,4 +12,12 @@
 .moin-nav {
   .nav;
   margin-bottom: 20px;  // override bottom-margin nav-tabs
+}
+
+.moin-shadow {
+  > li {
+    > a {
+      .form-control-focus(); // adds shadow onfocus
+    }
+  }
 }
\ No newline at end of file
--- a/MoinMoin/themes/basic/templates/itemviews.html	Wed Aug 07 20:55:06 2013 +0530
+++ b/MoinMoin/themes/basic/templates/itemviews.html	Thu Aug 08 12:50:53 2013 +0530
@@ -3,7 +3,7 @@
 
 {% block views %}
 
-    <ul class="moin-nav nav-tabs">
+    <ul class="moin-nav nav-tabs moin-shadow">
         {%- for endpoint, label, title, check_exists in cfg.item_views if not endpoint in cfg.endpoints_excluded %}
             {%- if not check_exists or check_exists and exists %}