Skip to content

Commit 5cce108

Browse files
committed
1.9.1 - Auto saving playlist to localstorage
1 parent d4c045f commit 5cce108

File tree

11 files changed

+179
-66
lines changed

11 files changed

+179
-66
lines changed

dist/assets/css/main.css

Lines changed: 42 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/* --- Fonts --- */
33
:root {
44
--c-base: #17171d;
5-
--c-primary: #bb2222;
6-
--c-primary-active: #9c1717;
7-
--c-primary-active-focus: #801212;
5+
--c-primary: #d42222;
6+
--c-primary-active: #bb2222;
7+
--c-primary-active-focus: #9c1717;
88
--c-primary-inverse: #232228;
99
--c-danger: red;
1010
--c-danger-active: #D30000;
@@ -1561,13 +1561,25 @@ iframe {
15611561
#feed-video-list.grid-list .video-item {
15621562
width: calc(33.333% - 10px);
15631563
display: block;
1564-
margin: 0 5px;
1564+
margin: 0 5px 10px;
15651565
padding: 0;
15661566
position: relative;
15671567
overflow: hidden;
15681568
}
15691569

1570-
#feed-video-list.grid-list .video-item .video-item-image {
1570+
#feed-video-list.grid-list .video-item-details {
1571+
text-align: center;
1572+
margin-top: 8px;
1573+
font-size: 11px;
1574+
margin-bottom: 5px;
1575+
}
1576+
1577+
#feed-video-list.grid-list .video-item-details p {
1578+
width: 100%;
1579+
margin: 0 5px;
1580+
}
1581+
1582+
#feed-video-list.grid-list .video-item-image {
15711583
margin: 0;
15721584
position: relative;
15731585
width: 100%;
@@ -1577,18 +1589,35 @@ iframe {
15771589
background-position: center center;
15781590
}
15791591

1580-
#feed-video-list.grid-list .video-item .video-item-content {
1581-
margin: 5px 0 15px 0;
1592+
#feed-video-list.grid-list .video-item-image:before {
1593+
content: '';
1594+
display: block;
1595+
height: 100%;
1596+
width: 100%;
1597+
position: absolute;
1598+
left: 0;
1599+
top: 0;
1600+
background: linear-gradient(to bottom, transparent 0%, transparent 35%, var(--c-black) 75%, var(--c-black) 100%);
1601+
}
1602+
1603+
#feed-video-list.grid-list .video-item-content {
1604+
margin: 0;
1605+
position: absolute;
1606+
bottom: 0;
1607+
}
1608+
1609+
#feed-video-list.grid-list .video-item-content > p {
1610+
padding: 0 10px;
15821611
}
15831612

15841613
#feed-video-list.grid-list .video-item-info {
15851614
display: block;
15861615
padding: 0;
15871616
}
15881617

1589-
#feed-video-list.grid-list .video-item.hidden-thumbnails .video-item-settings {
1590-
height: 26px;
1591-
width: 30px;
1618+
#feed-video-list.grid-list .video-item.hidden-thumbnails .video-item-content {
1619+
position: relative;
1620+
padding: 10px 0;
15921621
}
15931622

15941623
#feed-video-list.grid-list .video-item:hover .video-item-info {
@@ -1613,14 +1642,7 @@ iframe {
16131642
}
16141643
}
16151644

1616-
#feed-video-list.grid-list .video-item-details {
1617-
text-align: center;
1618-
margin-top: 8px;
1619-
}
1620-
1621-
#feed-video-list.grid-list .video-item-details p {
1622-
font-size: 14px;
1623-
width: 100%;
1624-
margin-right: 0;
1625-
margin-bottom: 5px;
1645+
#feed-video-list::-webkit-scrollbar {
1646+
width: 6px;
1647+
background-color: transparent;
16261648
}

dist/assets/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
{
99
"name": "Set list for trending",
10-
"value": true,
10+
"value": false,
1111
"visible": true
1212
},
1313
{

dist/inline.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.bundle.js

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ $f-32: 32px;
2323
// If you don't use darken and other sass functions use this
2424
:root {
2525
--c-base: #17171d;
26-
--c-primary: #bb2222;
27-
--c-primary-active: #9c1717;
28-
--c-primary-active-focus: #801212;
26+
--c-primary: #d42222;
27+
--c-primary-active: #bb2222;
28+
--c-primary-active-focus: #9c1717;
2929
--c-primary-inverse: #232228;
3030

3131
--c-danger: red;

scss/_videos.scss

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -351,30 +351,55 @@ iframe {
351351
.video-item {
352352
width: calc(33.333% - 10px);
353353
display: block;
354-
margin: 0 5px;
354+
margin: 0 5px 10px;
355355
padding: 0;
356356
position: relative;
357357
overflow: hidden;
358-
.video-item-image {
358+
&-details {
359+
text-align: center;
360+
margin-top: 8px;
361+
font-size: $f-11;
362+
margin-bottom: 5px;
363+
p {
364+
width: 100%;
365+
margin: 0 5px;
366+
}
367+
}
368+
&-image {
359369
margin: 0;
360370
position: relative;
361371
width: 100%;
362372
height: 180px;
363373
background-size: cover;
364374
background-repeat: no-repeat;
365375
background-position: center center;
376+
&:before {
377+
content: '';
378+
display: block;
379+
height: 100%;
380+
width: 100%;
381+
position: absolute;
382+
left: 0;
383+
top: 0;
384+
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 35%, var(--c-black) 75%, var(--c-black) 100%);
385+
}
366386
}
367-
.video-item-content {
368-
margin: 5px 0 15px 0;
387+
&-content {
388+
margin: 0;
389+
position: absolute;
390+
bottom: 0;
391+
> p {
392+
padding: 0 10px;
393+
}
369394
}
370395
&-info {
371396
display: block;
372397
padding: 0;
373398
}
374399
&.hidden-thumbnails {
375-
.video-item-settings {
376-
height: 26px;
377-
width: 30px;
400+
.video-item-content {
401+
position: relative;
402+
padding: 10px 0;
378403
}
379404
}
380405
&:hover {
@@ -394,15 +419,9 @@ iframe {
394419
width: calc(100% - 10px);
395420
}
396421
}
397-
.video-item-details {
398-
text-align: center;
399-
margin-top: 8px;
400-
p {
401-
font-size: $f-14;
402-
width: 100%;
403-
margin-right: 0;
404-
margin-bottom: 5px;
405-
}
406-
}
422+
}
423+
&::-webkit-scrollbar {
424+
width: 6px;
425+
background-color: transparent;
407426
}
408427
}

0 commit comments

Comments
 (0)