Skip to content

Commit ce3f1f4

Browse files
author
Farshad
committed
finished the control panel
1 parent 463c0a7 commit ce3f1f4

File tree

2 files changed

+37
-23
lines changed

2 files changed

+37
-23
lines changed

css/style.css

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ footer {
228228
left: 0;
229229
bottom: 0;
230230
display: grid;
231-
grid-template-columns: 1fr 2fr 1fr;
231+
grid-template-columns: .6fr 2fr .6fr;
232232
background-color: #282828;
233233
}
234234

@@ -254,23 +254,10 @@ footer {
254254
fill: white;
255255
}
256256

257-
.play-tools {
258-
background-color: antiquewhite;
259-
}
260-
261-
.sound-volume {
262-
background-color: blueviolet;
263-
}
264-
.small-left-sidebar {
265-
grid-area: left-side-bar;
266-
background-color: blueviolet;
267-
width: .5fr;
268-
}
269-
270257
.control-panel {
271-
padding: 10px 5px 20px 5px;
258+
padding: 10px 5px 10px 5px;
272259
display: grid;
273-
grid-template-rows: 50px 50px;
260+
grid-template-rows: 30px 30px;
274261
border: 5px solid red;
275262
}
276263
.contorl-buttons {
@@ -287,20 +274,40 @@ footer {
287274
transform: rotate(180deg);
288275
}
289276
#play-icon {
290-
height: 35px;
291-
width: 35px;
277+
height: 30px;
278+
width: 30px;
292279
padding: 0 10px 0 10px;
293280
}
294281

295282
.range-form {
283+
display: grid;
284+
grid-template-columns: .6fr 3fr .6fr;
285+
grid-template-areas: '. range-area .';
286+
}
287+
288+
.range-area {
289+
grid-area: range-area;
290+
display: grid;
291+
grid-template-columns: .1fr 1fr .1fr;
292+
}
293+
294+
.range-area time {
295+
padding: 10px;
296+
color: white;
296297
margin: auto;
297-
width: 70%;
298298
}
299299
#music-range {
300-
max-width: 500px;
301300
width: 100%;
302301
}
303302

303+
.sound-volume {
304+
background-color: blueviolet;
305+
}
306+
.small-left-sidebar {
307+
grid-area: left-side-bar;
308+
background-color: blueviolet;
309+
width: .5fr;
310+
}
304311

305312
@media screen and (max-width:668px) {
306313
.left-side-bar {
@@ -327,6 +334,11 @@ footer {
327334
text-align: center;
328335
grid-template-areas: '. main-header .';
329336
}
337+
.range-form {
338+
display: grid;
339+
grid-template-columns: .1fr 3fr .1fr;
340+
grid-template-areas: '. range-area .';
341+
}
330342
}
331343

332344
@media screen and (min-width:668px ) {

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,11 @@ <h5>
281281
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z"/></svg>
282282
</div>
283283
<div class="range-form">
284-
<time>0:00</time>
285-
<input type="range" id="music-range" >
286-
<time>3:03</time>
284+
<div class="range-area">
285+
<time>0:00</time>
286+
<input type="range" id="music-range" >
287+
<time>3:03</time>
288+
</div>
287289
</div>
288290
</section>
289291
<section class="sound-volume">

0 commit comments

Comments
 (0)