Skip to content

Commit 23bd8ad

Browse files
committed
Updating slider css
1 parent f3136bb commit 23bd8ad

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/options/options.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<div class="settinggroup">
6868
<div class="settinglabel">Scrolling Speed :</div>
6969
<div class="settingoptions">
70-
<input type="range" id="scrollSpeedSliderId" min="100" max="2600" step="100" />
70+
<input type="range" id="scrollSpeedSliderId" class="slider" min="100" max="2600" step="100" />
7171
<span id="currentSpeed" style="font-size: 11px; margin-left: 10px; vertical-align: middle;"></span>
7272
</div>
7373
</div>
@@ -111,7 +111,7 @@
111111
<div class="advancedProp settinggroup">
112112
<div class="settinglabel">Transparency :</div>
113113
<div class="settingoptions">
114-
<input type="range" id="transparencySliderId" min="0.1" max="0.9" step="0.01" />
114+
<input type="range" id="transparencySliderId" class="slider" min="0.1" max="0.9" step="0.01" />
115115
<img class="blackAndWhiteCSS" style="vertical-align: middle; margin-left: 20px;" id="transparencyImgId" src="../icons/pratikabu-stt-32-1.png" />
116116
</div>
117117
</div>

src/options/res/options.css

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ a.mylink {
128128
display: none;
129129
} */
130130

131-
[class^=slider] {
132-
display: inline-block;
133-
vertical-align: middle;
134-
}
135-
136131
body {
137132
background-color: rgba(155, 155, 155, 0.2);
138133
margin: 79.5px 0 0 0; /* This margin is the height of the header section */
@@ -213,6 +208,13 @@ hr {
213208
text-decoration: none;
214209
}
215210

211+
.slider {
212+
width: 300px;
213+
display: inline-block;
214+
vertical-align: middle;
215+
}
216+
217+
216218
@media screen and (max-width: 750px) {
217219
.mainContentWidth {
218220
width: 600px;
@@ -222,7 +224,7 @@ hr {
222224
width: 30%;
223225
}
224226

225-
#scrollSpeedSliderId-slider {
227+
.slider {
226228
width: 280px;
227229
}
228230

@@ -257,18 +259,14 @@ hr {
257259
margin-top: 10px;
258260
}
259261

260-
#scrollSpeedSliderId-slider {
262+
.slider {
261263
width: 140px;
262264
}
263265

264266
#currentSpeed {
265267
margin-left: 0px !important;
266268
}
267269

268-
#transparencySliderId-slider {
269-
width: 190px;
270-
}
271-
272270
#transparencyImgId {
273271
margin-left: 0px !important;
274272
}

0 commit comments

Comments
 (0)