Skip to content

Commit

Permalink
improved select styles (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Telma Antunes authored May 10, 2017
1 parent 46ee2cf commit 4a12b55
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@
<section id="main" class="main">
<div class="main__wrapper">
<div class="main__content">
<div class="subheader">How many wcs in the property?</div>
<div class="select-wrapper">
<select class="select">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</div>
<div class="subheader">How many bedrooms in the property?</div>
<div class="input-container">
<input type="text" class="input input--range" placeholder="2 bedrooms">
Expand Down
11 changes: 6 additions & 5 deletions src/styles/_components/_inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,10 @@ $checkbox-size: 32px;
height: $input-height;
@include height-modifiers();
font-size: em(18px);
color: color('text', 'input');
background: color("dropdown", "background");
color: color("dropdown");
padding: 0 46px 0 14px;
border: 2px solid color('borders');
border: 2px solid color("dropdown", "border");
border-radius: 4px;

will-change: border;
Expand All @@ -593,7 +594,7 @@ $checkbox-size: 32px;

&:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 color('text', 'input');
text-shadow: 0 0 0 color("text", "input");
}

&-wrapper {
Expand All @@ -608,7 +609,7 @@ $checkbox-size: 32px;
width: 8px;
height: 2px;
top: 50%;
background-color: color('text', 'input');
background-color: color("dropdown");
}

&:before {
Expand All @@ -623,7 +624,7 @@ $checkbox-size: 32px;
}

&:focus {
border: 2px solid color('input', 'border-focus');
border: 2px solid color("dropdown", "active");
outline: none;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/styles/demo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,7 @@ body {
.multi-selector {
@include multi-selector();
}

.select {
@include select();
}

0 comments on commit 4a12b55

Please sign in to comment.