Skip to content

Commit 2bbc3c8

Browse files
author
kyrios
committed
added variables for font-size, border-radius and button-color
1 parent ef948c0 commit 2bbc3c8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

public/selectric.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
.selectric {
1515
border: 1px solid #DDD;
16+
border-radius: 0px;
1617
background: #F8F8F8;
1718
position: relative;
19+
overflow: hidden;
1820
}
1921

2022
.selectric .label {
@@ -40,6 +42,7 @@
4042
top: 0;
4143
width: 38px;
4244
height: 38px;
45+
background-color: #F8f8f8;
4346
color: #BBB;
4447
text-align: center;
4548
font: 0/0 a;

src/selectric.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ $selectric-main-color: #DDD !default;
22
$selectric-secondary-color: #BBB !default; // Color used in button
33
$selectric-text-color: #444 !default; // Color used in label
44
$selectric-bg-color: #F8F8F8 !default; // Background color
5+
$selectric-btn-bg-color: #F8f8f8 !default; // Button background color
56
$selectric-height: 40px !default; // Outer height
67
$selectric-spacing: 10px !default; // Label left padding
78
$selectric-border-width: 1px !default; // Outer border width
9+
$selectric-border-radius: 0px !default; // Border radius
810
$selectric-inner-height: $selectric-height - ($selectric-border-width * 2) !default; // Inner height
11+
$selectric-font-size: 12px !default; // Font size
912

1013
.selectric-wrapper {
1114
position: relative;
@@ -18,16 +21,18 @@ $selectric-inner-height: $selectric-height - ($selectric-border-width * 2) !d
1821

1922
.selectric {
2023
border: $selectric-border-width solid $selectric-main-color;
24+
border-radius: $selectric-border-radius;
2125
background: $selectric-bg-color;
2226
position: relative;
27+
overflow: hidden;
2328

2429
.label {
2530
display: block;
2631
white-space: nowrap;
2732
overflow: hidden;
2833
text-overflow: ellipsis;
2934
margin: 0 $selectric-inner-height 0 $selectric-spacing;
30-
font-size: 12px;
35+
font-size: $selectric-font-size;
3136
line-height: $selectric-inner-height;
3237
color: $selectric-text-color;
3338
height: $selectric-inner-height;
@@ -41,6 +46,7 @@ $selectric-inner-height: $selectric-height - ($selectric-border-width * 2) !d
4146
top: 0;
4247
width: $selectric-inner-height;
4348
height: $selectric-inner-height;
49+
background-color: $selectric-btn-bg-color;
4450
color: $selectric-secondary-color;
4551
text-align: center;
4652
font: 0/0 a;
@@ -177,7 +183,7 @@ $selectric-inner-height: $selectric-height - ($selectric-border-width * 2) !d
177183
list-style: none;
178184
padding: 0;
179185
margin: 0;
180-
font-size: 12px;
186+
font-size: $selectric-font-size;
181187
line-height: 20px;
182188
min-height: 20px;
183189
}

0 commit comments

Comments
 (0)