diff options
author | Thomas Park <thomas@thomaspark.me> | 2012-05-01 10:03:53 -0400 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2012-05-01 10:03:53 -0400 |
commit | 87835fb3e2ff966fb15765ed73e65c17b4b59db5 (patch) | |
tree | ab2f3d0318318e11f4c796e328818a8a96714705 /journal | |
parent | 0533d54a8a04bb685e758b120eb49fa9752e711a (diff) |
cyborg, journal, readable: fix .dropdown.active.open on hover
Diffstat (limited to 'journal')
-rw-r--r-- | journal/bootstrap.css | 36 | ||||
-rw-r--r-- | journal/bootstrap.min.css | 13 | ||||
-rwxr-xr-x | journal/bootswatch.less | 27 | ||||
-rwxr-xr-x | journal/variables.less | 4 |
4 files changed, 51 insertions, 29 deletions
diff --git a/journal/bootstrap.css b/journal/bootstrap.css index 7acfe1cd..e6b2be71 100644 --- a/journal/bootstrap.css +++ b/journal/bootstrap.css @@ -3156,7 +3156,7 @@ input[type="submit"].btn.btn-mini { padding: 5px 5px 6px; } .navbar .nav > li > a:hover { - background-color: transparent; + background-color: #eeeeee; color: #222222; text-decoration: none; } @@ -3164,7 +3164,7 @@ input[type="submit"].btn.btn-mini { .navbar .nav .active > a:hover { color: #222222; text-decoration: none; - background-color: #fcfbfd; + background-color: #eeeeee; } .navbar .divider-vertical { height: 40px; @@ -4212,21 +4212,22 @@ a.btn, .navbar .nav > li > a { text-shadow: none; } -.navbar .nav .active > a, -.navbar .nav .active > a:hover { - color: #222222; - background-color: rgba(0, 0, 0, 0); -} -.navbar .nav .active > a:hover, -.navbar .nav > li > a:hover, .navbar .nav-collapse.in .nav li > a:hover { - background-color: #EEEEEE; + background-color: #eeeeee; } .navbar .dropdown-menu { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } +.navbar .nav li.dropdown.active > .dropdown-toggle, +.navbar .nav li.dropdown.active > .dropdown-toggle:hover, +.navbar .nav li.dropdown.open > .dropdown-toggle, +.navbar .nav li.dropdown.active.open > .dropdown-toggle, +.navbar .nav li.dropdown.active.open > .dropdown-toggle:hover { + background-color: #eeeeee; + color: #222222; +} .navbar .nav li.dropdown .dropdown-toggle .caret, .navbar .nav .open .caret, .navbar .nav .open .dropdown-toggle:hover .caret { @@ -4348,3 +4349,18 @@ pre.prettyprint, -moz-border-radius: 0; border-radius: 0; } +.pull-right { + float: right; +} +.pull-left { + float: left; +} +.hide { + display: none; +} +.show { + display: block; +} +.invisible { + visibility: hidden; +} diff --git a/journal/bootstrap.min.css b/journal/bootstrap.min.css index d332e488..8386b0b6 100644 --- a/journal/bootstrap.min.css +++ b/journal/bootstrap.min.css @@ -573,8 +573,8 @@ button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding- .navbar .nav>li>a{float:none;padding:9px 10px 11px;line-height:19px;color:#222222;text-decoration:none;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);} .navbar .btn{display:inline-block;padding:4px 10px 4px;margin:5px 5px 6px;line-height:18px;} .navbar .btn-group{margin:0;padding:5px 5px 6px;} -.navbar .nav>li>a:hover{background-color:transparent;color:#222222;text-decoration:none;} -.navbar .nav .active>a,.navbar .nav .active>a:hover{color:#222222;text-decoration:none;background-color:#fcfbfd;} +.navbar .nav>li>a:hover{background-color:#eeeeee;color:#222222;text-decoration:none;} +.navbar .nav .active>a,.navbar .nav .active>a:hover{color:#222222;text-decoration:none;background-color:#eeeeee;} .navbar .divider-vertical{height:40px;width:1px;margin:0 9px;overflow:hidden;background-color:#fcfbfd;border-right:1px solid #fcfbfd;} .navbar .nav.pull-right{margin-left:10px;margin-right:0;} .navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-left:5px;margin-right:5px;background-color:#fcfbfd;background-image:-moz-linear-gradient(top, #fcfbfd, #fcfbfd);background-image:-ms-linear-gradient(top, #fcfbfd, #fcfbfd);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fcfbfd), to(#fcfbfd));background-image:-webkit-linear-gradient(top, #fcfbfd, #fcfbfd);background-image:-o-linear-gradient(top, #fcfbfd, #fcfbfd);background-image:linear-gradient(top, #fcfbfd, #fcfbfd);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfbfd', endColorstr='#fcfbfd', GradientType=0);border-color:#fcfbfd #fcfbfd #d6c8e4;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);*background-color:#fcfbfd;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);}.navbar .btn-navbar:hover,.navbar .btn-navbar:active,.navbar .btn-navbar.active,.navbar .btn-navbar.disabled,.navbar .btn-navbar[disabled]{background-color:#fcfbfd;*background-color:#efeaf5;} @@ -720,9 +720,9 @@ a{text-decoration:underline;} .navbar .navbar-inner{-webkit-box-shadow:0 2px 4px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);-moz-box-shadow:0 2px 4px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);box-shadow:0 2px 4px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);border-top:1px solid #E5E5E5;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} .navbar .brand{text-shadow:none;}.navbar .brand:hover{background-color:#EEEEEE;} .navbar .nav>li>a{text-shadow:none;} -.navbar .nav .active>a,.navbar .nav .active>a:hover{color:#222222;background-color:rgba(0, 0, 0, 0);} -.navbar .nav .active>a:hover,.navbar .nav>li>a:hover,.navbar .nav-collapse.in .nav li>a:hover{background-color:#EEEEEE;} +.navbar .nav-collapse.in .nav li>a:hover{background-color:#eeeeee;} .navbar .dropdown-menu{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.navbar .nav li.dropdown.active>.dropdown-toggle,.navbar .nav li.dropdown.active>.dropdown-toggle:hover,.navbar .nav li.dropdown.open>.dropdown-toggle,.navbar .nav li.dropdown.active.open>.dropdown-toggle,.navbar .nav li.dropdown.active.open>.dropdown-toggle:hover{background-color:#eeeeee;color:#222222;} .navbar .nav li.dropdown .dropdown-toggle .caret,.navbar .nav .open .caret,.navbar .nav .open .dropdown-toggle:hover .caret{border-top-color:#000000;opacity:1;} .navbar .nav-collapse .nav li>a{color:#222222;text-decoration:none;font-weight:normal;} .navbar .nav-collapse .navbar-form,.navbar .nav-collapse .navbar-search{border-color:transparent;} @@ -739,3 +739,8 @@ div.subnav .nav>li:first-child>a,div.subnav .nav>li:first-child>a:hover{-webkit- code,pre,pre.prettyprint,.well{background-color:#eeeeee;} .hero-unit{-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);border:1px solid rgba(0, 0, 0, 0.05);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} .table-bordered,.well,.prettyprint{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.pull-right{float:right;} +.pull-left{float:left;} +.hide{display:none;} +.show{display:block;} +.invisible{visibility:hidden;} diff --git a/journal/bootswatch.less b/journal/bootswatch.less index 65e6f68c..3c422fbe 100755 --- a/journal/bootswatch.less +++ b/journal/bootswatch.less @@ -46,29 +46,30 @@ a { .nav > li > a { text-shadow: none; } - - .nav .active > a, - .nav .active > a:hover { - color: @navbarLinkColor; - background-color: rgba(0, 0, 0, 0); - } - - .nav .active > a:hover, - .nav > li > a:hover, - .nav-collapse.in .nav li > a:hover { - background-color: #EEEEEE; - } - + .dropdown-menu { .border-radius(0); } + .nav li.dropdown.active > .dropdown-toggle, + .nav li.dropdown.active > .dropdown-toggle:hover, + .nav li.dropdown.open > .dropdown-toggle, + .nav li.dropdown.active.open > .dropdown-toggle, + .nav li.dropdown.active.open > .dropdown-toggle:hover { + background-color: @grayLighter; + color: @linkColor; + } + .nav li.dropdown .dropdown-toggle .caret, .nav .open .caret, .nav .open .dropdown-toggle:hover .caret { border-top-color: @black; opacity: 1; } + + .nav-collapse.in .nav li > a:hover { + background-color: @grayLighter; + } .nav-collapse .nav li > a { color: @textColor; diff --git a/journal/variables.less b/journal/variables.less index 11553e3d..b5cf182a 100755 --- a/journal/variables.less +++ b/journal/variables.less @@ -152,8 +152,8 @@ @navbarLinkColor: @linkColor; @navbarLinkColorHover: @linkColor; @navbarLinkColorActive: @navbarLinkColorHover; -@navbarLinkBackgroundHover: transparent; -@navbarLinkBackgroundActive: @navbarBackground; +@navbarLinkBackgroundHover: @grayLighter; +@navbarLinkBackgroundActive: @grayLighter; @navbarSearchBackground: lighten(@navbarBackground, 25%); @navbarSearchBackgroundFocus: @white; |