Changeset - 6998db277ac4
[Not reviewed]
default
0 1 1
Thomas De Schampheleire - 8 years ago 2017-09-29 16:34:03
thomas.de.schampheleire@gmail.com
style: extract select2 styling to separate file

The styling is moved without other changes and generate the same css as before.
2 files changed with 44 insertions and 41 deletions:
0 comments (0 inline, 0 general)
kallithea/public/less/kallithea-select2.less
Show inline comments
 
new file 100644
 
#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;
 
}
kallithea/public/less/style.less
Show inline comments
 
@@ -1480,89 +1480,51 @@ nav.navbar #home,
 
div#commit_history,
 
div#legend_data,
 
div#legend_container,
 
div#legend_choices {
 
  float: left;
 
}
 
div#commit_history {
 
  width: 450px;
 
  height: 300px;
 
}
 
div#overview {
 
  clear: both;
 
  width: 450px;
 
  height: 100px;
 
}
 
#content #left #menu ul.closed,
 
#content #left #menu li ul.collapsed,
 
.yui-tt-shadow {
 
  display: none;
 
}
 
#content #left #menu ul.opened,
 
#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,
 
#content div.panel ol.upper-alpha,
 
#content div.panel ol.decimal {
 
  margin: 10px 24px 10px 44px;
 
}
 
/* formencode htmlfill adds 'error' to failing input fields */
 
#content div.panel div.form div.form-group > div input.error,
 
#login div.form div.form-group > div input.error,
 
#register div.form div.form-group > div input.error {
 
  background: #FBE3E4;
 
  border-top: 1px solid #e1b2b3;
 
  border-left: 1px solid #e1b2b3;
 
  border-right: 1px solid #FBC2C4;
 
  border-bottom: 1px solid #FBC2C4;
 
}
 
/* formencode htmlfill injects 'error-message' */
 
#content div.panel div.form div.form-group span.error-message,
 
#login div.form div.form-group span.error-message,
 
#register div.form div.form-group span.error-message {
 
  display: inline-block;
 
  color: red;
 
  margin: 4px 0 0;
0 comments (0 inline, 0 general)