Merge pull request #3542 from mk84/21564-double-search-icon

[21564] Improve select field stylings
pull/3556/head
Oliver Günther 9 years ago
commit 08fd4ba87d
  1. 3
      app/assets/stylesheets/content/_in_place_editing.sass
  2. 30
      app/assets/stylesheets/content/_select2.scss
  3. 12
      app/assets/stylesheets/layout/_top_menu.sass

@ -161,6 +161,9 @@
&:last-of-type
margin-bottom: 0
.user-field-user-link
display: inline
.inplace-edit--preview
border: 1px solid $inplace-edit--border-color
padding: 0.375rem

@ -121,7 +121,7 @@ $se2-input-height: rem-calc(34px);
$se2-line-height: 30px;
$se2-button-width: 28px;
$se2-arrow-button-width: 18px;
$se2-results-max-height: 500px;
$se2-results-max-height: 200px;
$se-multiple-input-line-height: 19px;
$se-multiple-tags-line-height: 19px;
@ -192,14 +192,27 @@ $se2-width: 100%;
.select2-drop {
.select2-search {
&:before {
content: "\e0a1";
font-family: "openproject-icon-font";
color: #E0E0E0;
position: absolute;
top: 6px;
right: 16px;
}
.select2-input {
//possible background tweaks
background-image: none !important;
padding-right: 32px;
height: $se2-input-height !important;
}
}
.select2-results {
max-height: $se2-results-max-height;
overflow: auto;
margin: 4px 9px 9px 0;
padding: 0 0 0 9px;
.select2-highlighted {
background-color: $se2-theme-selectable-color-highlighted;
@ -208,8 +221,19 @@ $se2-width: 100%;
}
}
.select2-drop:not(.project-search-results) {
input[type="text"].select2-input {
height: $se2-input-height;
height: $se2-input-height !important;
}
.select2-search {
margin: 10px 0 6px 0;
padding: 0 9px;
input {
margin-bottom: 0;
}
}
}
.columns-modal-content {

@ -225,17 +225,13 @@ input.top-menu-search--input
background: $header-drop-down-projects-search-bg-color
margin: 0 0 10px 0
.select2-search:before
content: "\e0a1"
font-family: "openproject-icon-font"
color: #E0E0E0
position: absolute
top: 24px
&:before
top: 21px
right: 26px
.select2-search input
.select2-search input.select2-input
margin: 10px 10px
padding: 9px 7px 9px 10px
padding: 9px 32px 9px 10px !important
border: none
border-radius: 25px
width: 92%

Loading…
Cancel
Save