Skip to content

Commit

Permalink
[FEATURE] add styles for customizing search-text (Podio feature_32) (#36
Browse files Browse the repository at this point in the history
)

* [FEATURE] add styles for ease search field customizing (podio feature_32)

* [FEATURE] add variables for search field colors

* [FIX] remove unneeded variable
  • Loading branch information
myroslav321 authored and dmh committed Jan 12, 2017
1 parent 69bca51 commit d7e8f75
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
27 changes: 27 additions & 0 deletions dev/styles/customVariables.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
@header-middle-search-height: 44px;
@header-middle-search-btn-bg: @main-color;
@header-middle-search-btn-hover:lighten(@main-color, 20%);
@search-text-color: @main-text-color;



// Logo
Expand Down Expand Up @@ -173,3 +175,28 @@
//== Pills
@nav-pills-active-link-hover-bg: @main-color;
@nav-pills-active-link-hover-color: #fff;


.input-placeholder-color(@color) {
&::placeholder {
color: @color;
opacity: .6;
}
&::-webkit-input-placeholder
{
color: @color;
opacity: .6;
}
&::-moz-placeholder {
color: @color;
opacity: .6;
}
&:-ms-input-placeholder {
color: @color;
opacity: .6;
}
&:-moz-placeholder {
color: @color;
opacity: .6;
}
}
5 changes: 5 additions & 0 deletions dev/styles/main/plugins/search/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,8 @@
background: darken(@main-body-bg, 10%);
color: @main-text-color;
}

.awesomplete input{
color: @search-text-color;
.input-placeholder-color(@search-text-color);
}

0 comments on commit d7e8f75

Please sign in to comment.