changeset 6955:354adbe687a3

style: less'en select2 styles Some steps towards the version of kallithea-select2.less prepared by Dominik Ruf.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Fri, 29 Sep 2017 20:20:03 +0200
parents 6998db277ac4
children d331cc495625
files kallithea/public/css/style.css kallithea/public/less/kallithea-select2.less
diffstat 2 files changed, 23 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/style.css	Fri Sep 29 16:34:03 2017 +0200
+++ b/kallithea/public/css/style.css	Fri Sep 29 20:20:03 2017 +0200
@@ -1510,15 +1510,11 @@
   height: 100%;
   padding: 0;
 }
-.select2-container.form-control {
-  padding: 0;
-  border: none;
-}
 .branch-switcher .select2-container,
+.repo-switcher .select2-container,
 .branch-switcher .select2-choice,
+.repo-switcher .select2-choice,
 .branch-switcher .select2-choice > span,
-.repo-switcher .select2-container,
-.repo-switcher .select2-choice,
 .repo-switcher .select2-choice > span {
   background: transparent !important;
   border: 0 !important;
@@ -1529,6 +1525,10 @@
 .repo-switcher .select2-arrow {
   display: none !important;
 }
+.select2-container.form-control {
+  padding: 0;
+  border: none;
+}
 .branch-switcher-dropdown.select2-drop.select2-drop-active,
 .repo-switcher-dropdown.select2-drop.select2-drop-active {
   box-shadow: none;
--- a/kallithea/public/less/kallithea-select2.less	Fri Sep 29 16:34:03 2017 +0200
+++ b/kallithea/public/less/kallithea-select2.less	Fri Sep 29 20:20:03 2017 +0200
@@ -2,30 +2,28 @@
 nav.navbar #quick .select2-container .select2-choice .select2-chosen {
   margin-right: 0;
 }
-.branch-switcher .select2-choice,
-.repo-switcher .select2-choice {
-  height: 100%;
-  padding: 0;
+.branch-switcher,
+.repo-switcher {
+  .select2-choice {
+    height: 100%;
+    padding: 0;
+  }
+  .select2-container,
+  .select2-choice,
+  .select2-choice > span {
+    background: transparent !important;
+    border: 0 !important;
+    box-shadow: none !important;
+    color: #FFFFFF !important;
+  }
+  .select2-arrow {
+    display: none !important;
+  }
 }
 .select2-container.form-control {
   padding: 0;
   border: none;
 }
-.branch-switcher .select2-container,
-.branch-switcher .select2-choice,
-.branch-switcher .select2-choice > span,
-.repo-switcher .select2-container,
-.repo-switcher .select2-choice,
-.repo-switcher .select2-choice > span {
-  background: transparent !important;
-  border: 0 !important;
-  box-shadow: none !important;
-  color: #FFFFFF !important;
-}
-.branch-switcher .select2-arrow,
-.repo-switcher .select2-arrow {
-  display: none !important;
-}
 .branch-switcher-dropdown.select2-drop.select2-drop-active,
 .repo-switcher-dropdown.select2-drop.select2-drop-active {
   box-shadow: none;