From 1555c306e2a50208444feb11c1386ac59c88fffa Mon Sep 17 00:00:00 2001 From: Davor Spasovski Date: Fri, 14 Sep 2012 15:24:21 -0700 Subject: [PATCH] update filter styles (bug 784078) --- media/css/mkt/filters.less | 65 +++++++++++++++--------- media/css/mkt/header.less | 2 +- mkt/search/templates/search/results.html | 4 +- 3 files changed, 43 insertions(+), 28 deletions(-) diff --git a/media/css/mkt/filters.less b/media/css/mkt/filters.less index 5eaa586b88..00cd59ce64 100644 --- a/media/css/mkt/filters.less +++ b/media/css/mkt/filters.less @@ -27,9 +27,10 @@ line-height: 50px; display: block; color: @white; - text-align: center; + text-align: left; position: absolute; width: 100%; + padding-left: 36px; } } } @@ -41,7 +42,7 @@ margin: 0; list-style-type: none; font-size: 14px; - .border-radius(5px); + .border-radius(3px); li { float: left; width: 33%; @@ -53,31 +54,48 @@ } } &:first-child, &:first-child a, &:nth-child(3n+1), &:nth-child(3n+1) a { - .border-radius(5px 0 0 5px); + .border-radius(3px 0 0 3px); } &:last-child, &:last-child a, &:nth-child(3n), &:nth-child(3n) a { - .border-radius(0 5px 5px 0); + .border-radius(0 3px 3px 0); } } } -.toggles li a, .picker { - line-height: 33px; +.toggles.two-col { + li { + width: 50%; + } +} +.toggles li a, .picker, .footer-action .apply { + line-height: 40px; border: 1px solid #cdcbcb; display: inline-block; width: 100%; text-align: center; .gradient-two-color(#f7f7f7, @faint-gray); - font-weight: 600; + font-weight: 500; color: @text; .ellipsis(); &.sel, &:active { - background: rgba(68,82,91,.08); - border-top: 1px solid #a5b0b6; + .gradient-two-color(#328ccc, #2475b3); + color: @white; + border-color: #235f8c; + .box-shadow(0 0 3px 1px rgba(0,0,0,0.3) inset); + text-shadow: rgba(0,0,0,0.5) 0 1px 1px; + } +} +.footer-action .apply { + font-size: 14px; + width: auto; + padding: 0 15px; + .border-radius(3px); + &:hover { + text-decoration: none; } } .picker { margin: 0; - .border-radius(5px); + .border-radius(3px); cursor: pointer; font-size: 14px; width: auto; @@ -91,7 +109,7 @@ margin: 5px 0 0 5px; position: absolute; height: 0; - top: 10px; + top: 13px; width: 0; } &:hover:after { @@ -113,7 +131,7 @@ .box-shadow(0 0 5px 2px rgba(0,0,0,0.5)); li { a { - .border-radius(5px); + .border-radius(3px); width: 100%; margin-bottom: 6px; font-size: 14px; @@ -148,19 +166,16 @@ } } .footer-action { - top: auto; - bottom: 0; - text-align: center; - a { - padding: 0 30px; - &:hover { - line-height: 31px; - } - } + text-align: right; + margin: 30px 0 10px; + padding-top: 20px; + border-top: 1px solid #cdcbcb; } // Ugh! -.force-mobile .confirm-action { - max-width: 320px; - left: 50%; - margin-left: -160px; +.force-mobile { + .confirm-action { + max-width: 320px; + left: 50%; + margin-left: -160px; + } } diff --git a/media/css/mkt/header.less b/media/css/mkt/header.less index 993c6aaaf9..3c0d14cd6a 100644 --- a/media/css/mkt/header.less +++ b/media/css/mkt/header.less @@ -47,7 +47,7 @@ display: none; } -#site-header, .classic-header, .footer-action { +#site-header, .classic-header { > section { position: relative; } diff --git a/mkt/search/templates/search/results.html b/mkt/search/templates/search/results.html index 0ec8ead86d..43bb793ce4 100644 --- a/mkt/search/templates/search/results.html +++ b/mkt/search/templates/search/results.html @@ -67,7 +67,7 @@ {# We're not iterating over all the sort options on purpose. #}

{{ _('Sort by') }}

-