OSDN Git Service

Use triangle for current tab highlight
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 28 Jun 2013 20:33:14 +0000 (23:33 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 28 Jun 2013 20:33:14 +0000 (23:33 +0300)
app/assets/stylesheets/sections/nav.scss

index f14fc52..c92c63d 100644 (file)
@@ -6,9 +6,7 @@
 
   ul {
     margin: auto;
-    height: 41px;
-    position: relative;
-    top: 3px;
+    height: 42px;
     overflow: hidden;
     .count {
       font-weight: normal;
       display: table-cell;
       width: 1%;
       &.active {
-        border-bottom: 3px solid #777;
         a {
           color: $style_color;
           font-weight: bolder;
+
+          &:after {
+            content: '';
+            display: block;
+            position: relative;
+            bottom: 8px;
+            left: 50%;
+            width: 0;
+            height: 0;
+            border-color: transparent transparent #777 transparent;
+            border-style: solid;
+            border-width: 6px;
+            margin-left: -6px;
+          }
         }
       }
 
@@ -67,6 +78,7 @@
       text-shadow: 0 1px 1px white;
       padding: 0 10px;
       text-decoration: none;
+      padding-top: 4px;
     }
   }
 }