Skip to content

Commit 06278be

Browse files
committed
Style updates.
1 parent 588e409 commit 06278be

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

examples/basic.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<body>
2020
<div id="wrapper">
2121
<h1>Selectize Demos</h1>
22-
22+
2323
<div class="demo">
2424
<h2>&lt;input type="text"&gt;</h2>
2525
<div class="control-group">
@@ -39,13 +39,13 @@ <h2>&lt;input type="text"&gt;</h2>
3939
});
4040
</script>
4141
</div>
42-
42+
4343
<div class="demo">
4444
<h2>&lt;select&gt;</h2>
4545
<div class="control-group">
4646
<label for="select-beast">Beast:</label>
47-
<select id="select-beast" class="demo-default" placeholder="Pick something...">
48-
<option value="">Select a beast...</option>
47+
<select id="select-beast" class="demo-default" placeholder="Select a person...">
48+
<option value="">Select a person...</option>
4949
<option value="4">Thomas Edison</option>
5050
<option value="1">Nikola</option>
5151
<option value="3">Nikola Tesla</option>
@@ -58,12 +58,13 @@ <h2>&lt;select&gt;</h2>
5858
});
5959
</script>
6060
</div>
61-
61+
6262
<div class="demo">
6363
<h2>&lt;select multiple&gt;</h2>
6464
<div class="control-group">
6565
<label for="select-state">States:</label>
66-
<select id="select-state" name="state[]" multiple class="demo-default" style="width:50%">
66+
<select id="select-state" name="state[]" multiple class="demo-default" style="width:50%" placeholder="Select a state...">
67+
<option value="">Select a state...</option>
6768
<option value="AL">Alabama</option>
6869
<option value="AK">Alaska</option>
6970
<option value="AZ">Arizona</option>
@@ -126,8 +127,9 @@ <h2>&lt;select multiple&gt;</h2>
126127
<div class="demo">
127128
<div class="control-group">
128129
<label for="select-country">Country:</label>
129-
<select id="select-country" class="demo-default">
130-
<option value="AF">Afghanistan</option>
130+
<select id="select-country" class="demo-default" placeholder="Select a country...">
131+
<option value="">Select a country...</option>
132+
<option value="AF">Afghanistan</option>
131133
<option value="AX">&Aring;land Islands</option>
132134
<option value="AL">Albania</option>
133135
<option value="DZ">Algeria</option>

jquery.selectize.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
5757
}
5858
.selectize-input.dropdown-active {
59-
-webkit-border-radius: 3px 3px 0 0;
60-
-moz-border-radius: 3px 3px 0 0;
61-
border-radius: 3px 3px 0 0;
59+
-webkit-border-radius: 3px 3px 0 0 !important;
60+
-moz-border-radius: 3px 3px 0 0 !important;
61+
border-radius: 3px 3px 0 0 !important;
6262
}
6363
.selectize-input.full {
6464
background-color: #f2f2f2;
@@ -88,7 +88,7 @@
8888
.selectize-input > input {
8989
margin-right: 2px !important;
9090
}
91-
.selectize-dropdown, .selectize-input {
91+
.selectize-dropdown, .selectize-input, .selectize-control.single .selectize-input.dropdown-active {
9292
border: 1px solid #d0d0d0;
9393
}
9494
.selectize-dropdown {
@@ -131,17 +131,17 @@
131131

132132
.selectize-control.single .selectize-input {
133133
cursor: pointer;
134-
border-color: #aeaeae;
135-
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 0 rgba(0,0,0,0.05);
136-
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 0 rgba(0,0,0,0.05);
137-
box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 0 rgba(0,0,0,0.05);
134+
border-color: #b8b8b8;
135+
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #c6c6c6;
136+
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #c6c6c6;
137+
box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #e0e0e0, 0 3px 0 #c8c8c8, 0 4px 1px rgba(0,0,0,0.1);
138138
background: #f6f6f6;
139-
background: -moz-linear-gradient(top, #f8f8f8 0%, #e6e6e6 100%);
140-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#e6e6e6));
141-
background: -webkit-linear-gradient(top, #f8f8f8 0%,#e6e6e6 100%);
142-
background: -o-linear-gradient(top, #f8f8f8 0%,#e6e6e6 100%);
143-
background: -ms-linear-gradient(top, #f8f8f8 0%,#e6e6e6 100%);
144-
background: linear-gradient(to bottom, #f8f8f8 0%,#e6e6e6 100%);
139+
background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 100%);
140+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#efefef));
141+
background: -webkit-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
142+
background: -o-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
143+
background: -ms-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
144+
background: linear-gradient(to bottom, #fafafa 0%,#f2f2f2 100%);
145145
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f6f6', endColorstr='#e8e8e8',GradientType=0 );
146146
}
147147

0 commit comments

Comments
 (0)