changeset 6954:6998db277ac4

style: extract select2 styling to separate file The styling is moved without other changes and generate the same css as before.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Fri, 29 Sep 2017 16:34:03 +0200
parents 42718729687e
children 354adbe687a3
files kallithea/public/less/kallithea-select2.less kallithea/public/less/style.less
diffstat 2 files changed, 44 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kallithea/public/less/kallithea-select2.less	Fri Sep 29 16:34:03 2017 +0200
@@ -0,0 +1,41 @@
+#context-bar .select2-container .select2-choice .select2-chosen,
+nav.navbar #quick .select2-container .select2-choice .select2-chosen {
+  margin-right: 0;
+}
+.branch-switcher .select2-choice,
+.repo-switcher .select2-choice {
+  height: 100%;
+  padding: 0;
+}
+.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;
+  background-color: #577632;
+  border: 1px solid rgba(0, 0, 0, 0.15);
+  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
+}
+.repo-switcher-dropdown.select2-drop.select2-drop-active {
+  color: black;
+}
+.repo-switcher-dropdown.select2-drop.select2-drop-active .select2-result-label {
+  color: white;
+}
--- a/kallithea/public/less/style.less	Thu Sep 28 22:03:01 2017 +0200
+++ b/kallithea/public/less/style.less	Fri Sep 29 16:34:03 2017 +0200
@@ -1501,47 +1501,9 @@
 #content #left #menu li ul.expanded {
   display: block !important;
 }
-#context-bar .select2-container .select2-choice .select2-chosen,
-nav.navbar #quick .select2-container .select2-choice .select2-chosen {
-  margin-right: 0;
-}
-.branch-switcher .select2-choice,
-.repo-switcher .select2-choice {
-  height: 100%;
-  padding: 0;
-}
-.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;
-  background-color: #577632;
-  border: 1px solid rgba(0, 0, 0, 0.15);
-  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
-}
-.repo-switcher-dropdown.select2-drop.select2-drop-active {
-  color: black;
-}
-.repo-switcher-dropdown.select2-drop.select2-drop-active .select2-result-label {
-  color: white;
-}
+
+@import "kallithea-select2.less";
+
 #content div.panel ol.lower-roman,
 #content div.panel ol.upper-roman,
 #content div.panel ol.lower-alpha,