From 2385ed22b1eabdfd9b313c54ef29eddcbc7ad9b2 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 20 Sep 2012 09:16:04 -0500 Subject: [PATCH] new web2py_bootstrap_nojs.css, thanks Paolo --- VERSION | 2 +- .../static/css/web2py_bootstrap_nojs.css | 90 ++++++++++++++++++- 2 files changed, 88 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index b87091cc..d1bc5824 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-20 09:14:45) stable +Version 2.0.9 (2012-09-20 09:15:59) stable diff --git a/applications/welcome/static/css/web2py_bootstrap_nojs.css b/applications/welcome/static/css/web2py_bootstrap_nojs.css index 2b75915e..0ec7312f 100644 --- a/applications/welcome/static/css/web2py_bootstrap_nojs.css +++ b/applications/welcome/static/css/web2py_bootstrap_nojs.css @@ -1,3 +1,23 @@ +/*============================================================= + BOOTSTRAP DROPDOWN MENU +==============================================================*/ + +.dropdown-menu ul{ + left:100%; + position:absolute; + top:0; + visibility:hidden; + margin-top:-1px; +} +.dropdown-menu li:hover ul{visibility:visible;} +.navbar .dropdown-menu ul:before{ + border-bottom:7px solid transparent; + border-left:none; + border-right:7px solid rgba(0, 0, 0, 0.2); + border-top:7px solid transparent; + left:-7px; + top:5px; +} .nav > li.dropdown > a:after { border-left: 4px solid transparent; border-right: 4px solid transparent; @@ -15,8 +35,7 @@ border-bottom-color: #FFFFFF; border-top-color: #FFFFFF; } - - +.dropdown-menu span{display:inline-block;} ul.dropdown-menu li.dropdown > a:after { border-left: 4px solid #000; border-right: 4px solid transparent; @@ -35,4 +54,69 @@ ul.dropdown-menu li.dropdown > a:after { ul.nav li.dropdown:hover ul.dropdown-menu { display: block; -} \ No newline at end of file +} + +.open >.dropdown-menu ul{display:block;} /* fix menu issue when BS2.0.4 is applied */ + +/*============================================================= + BOOTSTRAP SUBMIT BUTTON +==============================================================*/ + +input[type='submit']:not(.btn) { +display: inline-block; +padding: 4px 14px; +margin-bottom: 0; +font-size: 14px; +line-height: 20px; +color: #333; +text-align: center; +text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); +vertical-align: middle; +cursor: pointer; +background-color: whiteSmoke; +background-image: -webkit-gradient(linear,0 0,0 100%,from(white),to(#E6E6E6)); +background-image: -webkit-linear-gradient(top,white,#E6E6E6); +background-image: -o-linear-gradient(top,white,#E6E6E6); +background-image: linear-gradient(to bottom,white,#E6E6E6); +background-image: -moz-linear-gradient(top,white,#E6E6E6); +background-repeat: repeat-x; +border: 1px solid #BBB; +border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); +border-bottom-color: #A2A2A2; +-webkit-border-radius: 4px; +-moz-border-radius: 4px; +border-radius: 4px; +filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0); +filter: progid:dximagetransform.microsoft.gradient(enabled=false); +-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05); +-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05); +box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05); +} + +input[type='submit']:not(.btn):hover { +color: #333; +text-decoration: none; +background-color: #E6E6E6; +background-position: 0 -15px; +-webkit-transition: background-position .1s linear; +-moz-transition: background-position .1s linear; +-o-transition: background-position .1s linear; +transition: background-position .1s linear; +} + +input[type='submit']:not(.btn).active, input[type='submit']:not(.btn):active { +background-color: #E6E6E6; +background-color: #D9D9D9 9; +background-image: none; +outline: 0; +-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05); +-moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05); +box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05); +} + +/*============================================================= + OTHER +==============================================================*/ + +.ie-lte8 .navbar-fixed-top {position:static;} +