From 9472a94327c20333303810fbac90d2f4ca97eba0 Mon Sep 17 00:00:00 2001 From: Aron Carroll Date: Wed, 25 Jul 2012 11:10:52 +0100 Subject: [PATCH 1/2] [#2744] Give the text in the select boxes breathing room --- ckan/public/base/css/main.css | 5 +++++ ckan/public/base/less/forms.less | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ckan/public/base/css/main.css b/ckan/public/base/css/main.css index 0305d192fb6..631a8db132b 100644 --- a/ckan/public/base/css/main.css +++ b/ckan/public/base/css/main.css @@ -5498,6 +5498,11 @@ textarea { .select2-container-multi .select2-drop { margin-top: -2px; } +.select2-container .select2-results li { + line-height: 18px; + padding-top: 4px; + padding-bottom: 4px; +} .control-full .select2-container { width: 520px !important; } diff --git a/ckan/public/base/less/forms.less b/ckan/public/base/less/forms.less index aa6dbe938b8..61ba7cc8e1f 100644 --- a/ckan/public/base/less/forms.less +++ b/ckan/public/base/less/forms.less @@ -569,6 +569,12 @@ textarea { margin-top: -2px; } +.select2-container .select2-results li { + line-height: 18px; + padding-top: 4px; + padding-bottom: 4px; +} + .control-full .select2-container { // Important is bad but select2 incorrectly calculates the width and // sets it on the element. From bc5577740cee2fa8ec6dcb053ba06765bbda3c54 Mon Sep 17 00:00:00 2001 From: Aron Carroll Date: Wed, 25 Jul 2012 11:19:23 +0100 Subject: [PATCH 2/2] [#2375] Update the language snippet to use select2 --- ckan/public/base/css/main.css | 13 +++++++------ ckan/public/base/less/footer.less | 14 ++++++++------ ckan/templates/snippets/language_selector.html | 6 +++--- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ckan/public/base/css/main.css b/ckan/public/base/css/main.css index 631a8db132b..a23c4f63d74 100644 --- a/ckan/public/base/css/main.css +++ b/ckan/public/base/css/main.css @@ -6553,16 +6553,14 @@ li .icon-large:before { .site-footer:after { clear: both; } -.site-footer a { - color: #ffffff; -} +.site-footer, +.site-footer a, .site-footer label { - color: #ffffff; + color: #fff; + color: rgba(255, 255, 255, 0.8); } .footer-links, .attribution { - opacity: 0.8; - filter: alpha(opacity=80); float: left; margin-left: 20px; width: 460px; @@ -6587,6 +6585,9 @@ li .icon-large:before { margin-top: 2px; background: url("../images/ckan-logo-footer.png") no-repeat top left; } +.attribution .select2-drop { + color: #000; +} .profile-info { *zoom: 1; -webkit-border-radius: 3px 3px 0 0; diff --git a/ckan/public/base/less/footer.less b/ckan/public/base/less/footer.less index 24af65e26bc..21ed7160fd7 100644 --- a/ckan/public/base/less/footer.less +++ b/ckan/public/base/less/footer.less @@ -4,17 +4,15 @@ padding: 20px 0; } -.site-footer a { - color: @mastheadLinkColor; -} - +.site-footer, +.site-footer a, .site-footer label { - color: @mastheadLinkColor; + color: #fff; + color: rgba(255, 255, 255, 0.8); } .footer-links, .attribution { - .opacity(80); .makeColumn(6); } @@ -41,3 +39,7 @@ margin-top: 2px; background: url("@{imagePath}/ckan-logo-footer.png") no-repeat top left; } + +.attribution .select2-drop { + color: #000; +} diff --git a/ckan/templates/snippets/language_selector.html b/ckan/templates/snippets/language_selector.html index 0f75d3ffdf8..c6a6a5776be 100644 --- a/ckan/templates/snippets/language_selector.html +++ b/ckan/templates/snippets/language_selector.html @@ -2,10 +2,10 @@ {% set current_lang = request.environ.CKAN_LANG %}
- {% for locale in h.get_available_locales() %} - {% endfor %}