Skip to content

Commit adfab9f

Browse files
committed
1.7 - Fixing trending videos
1 parent f67c371 commit adfab9f

14 files changed

+226
-57
lines changed

dist/assets/css/main.css

Lines changed: 52 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -772,41 +772,36 @@ nav ul {
772772
}
773773

774774
nav li {
775-
padding-left: 15px;
775+
padding-left: 0;
776776
}
777777

778778
nav a {
779779
display: block;
780780
text-decoration: none;
781781
color: #ffffff;
782782
font-size: 14px;
783-
text-transform: uppercase;
784-
padding: 5px 15px;
785-
margin: 10px 0;
783+
padding: 10px 15px;
786784
transition: all 0.1s ease-out;
787785
border-left: 3px solid transparent;
788786
}
789787

790788
nav a .fa {
791789
margin-right: 10px;
792-
}
793-
794-
nav a:hover {
795790
color: #e52d27;
796791
}
797792

798-
nav a:active {
793+
nav a:hover {
799794
border-left-color: #e52d27;
800-
color: #ffffff;
801795
}
802796

803-
nav a.is-active {
797+
nav a.is-active, nav a:active {
798+
background: #e52d27;
804799
border-left-color: #e52d27;
805800
color: #ffffff;
806801
}
807802

808-
nav a.is-active:hover {
809-
color: #e52d27;
803+
nav a.is-active .fa, nav a:active .fa {
804+
color: #ffffff;
810805
}
811806

812807
#main-search {
@@ -1091,19 +1086,60 @@ iframe {
10911086
background-color: rgba(255, 255, 255, 0.3);
10921087
}
10931088

1089+
.video-list-featured {
1090+
margin: 10px -20px 0;
1091+
height: 200px;
1092+
background-position: center center;
1093+
background-size: cover;
1094+
position: relative;
1095+
}
1096+
1097+
.video-list-featured .video-item {
1098+
position: absolute;
1099+
bottom: 15px;
1100+
left: 0;
1101+
width: auto;
1102+
padding: 10px 15px;
1103+
max-width: 90%;
1104+
background-color: rgba(0, 0, 0, 0.6);
1105+
color: #ffffff;
1106+
border: none;
1107+
}
1108+
1109+
.video-list-featured .video-item .fa,
1110+
.video-list-featured .video-item p {
1111+
color: inherit;
1112+
font-size: inherit;
1113+
}
1114+
1115+
.video-list-featured .video-item-image {
1116+
width: 80px;
1117+
height: auto;
1118+
flex: auto;
1119+
}
1120+
1121+
.video-list-featured .video-item > div {
1122+
display: inline-block;
1123+
}
1124+
10941125
#feed-video-list {
10951126
top: inherit;
10961127
bottom: 0;
1097-
height: calc(100% - 100px);
1128+
height: calc(100% - 297px);
10981129
width: calc(100% - 20px);
10991130
max-height: none;
11001131
left: 0;
1101-
padding-left: 15px;
1132+
padding-left: 5px;
11021133
}
11031134

11041135
#feed-video-list .video-item {
11051136
background-color: transparent;
11061137
border-bottom: none;
1138+
line-height: 16px;
1139+
}
1140+
1141+
#feed-video-list .video-item:first-child {
1142+
display: none;
11071143
}
11081144

11091145
#feed-video-list::-webkit-scrollbar-track {
@@ -1127,10 +1163,11 @@ iframe {
11271163
#feed-video-list.grid-list {
11281164
display: flex;
11291165
flex-wrap: wrap;
1166+
padding-top: 10px;
11301167
}
11311168

11321169
#feed-video-list.grid-list .video-item {
1133-
width: 20%;
1170+
width: 33.333%;
11341171
display: block;
11351172
padding: 0 5px;
11361173
}

dist/assets/scss/_navbar.scss

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,30 @@ nav {
2121
margin: 0;
2222
}
2323
li {
24-
padding-left: 15px;
24+
padding-left: 0;
2525
}
2626
a {
2727
display: block;
2828
text-decoration: none;
2929
color: $c-white;
3030
font-size: 14px;
31-
text-transform: uppercase;
32-
padding: 5px 15px;
33-
margin: 10px 0;
31+
padding: 10px 15px;
3432
transition: all 0.1s ease-out;
3533
border-left: 3px solid transparent;
3634
.fa {
3735
margin-right: 10px;
38-
}
39-
&:hover {
4036
color: $c-primary;
4137
}
42-
&:active {
38+
&:hover {
4339
border-left-color: $c-primary;
44-
color: $c-white;
4540
}
46-
&.is-active {
41+
&.is-active,
42+
&:active {
43+
background: $c-primary;
4744
border-left-color: $c-primary;
4845
color: $c-white;
49-
&:hover {
50-
color: $c-primary;
46+
.fa {
47+
color: $c-white;
5148
}
5249
}
5350
}

dist/assets/scss/_videos.scss

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,17 +194,53 @@ iframe {
194194
}
195195
}
196196

197+
.video-list-featured {
198+
margin: 10px -20px 0;
199+
height: 200px;
200+
background-position: center center;
201+
background-size: cover;
202+
position: relative;
203+
.video-item {
204+
position: absolute;
205+
bottom: 15px;
206+
left: 0;
207+
width: auto;
208+
padding: 10px 15px;
209+
max-width: 90%;
210+
background-color: rgba($c-black, 0.6);
211+
color: $c-white;
212+
border: none;
213+
.fa,
214+
p {
215+
color: inherit;
216+
font-size: inherit;
217+
}
218+
&-image {
219+
width: 80px;
220+
height: auto;
221+
flex: auto;
222+
}
223+
> div {
224+
display: inline-block;
225+
}
226+
}
227+
}
228+
197229
#feed-video-list {
198230
top: inherit;
199231
bottom: 0;
200-
height: calc(100% - 100px);
232+
height: calc(100% - 297px);
201233
width: calc(100% - 20px);
202234
max-height: none;
203235
left: 0;
204-
padding-left: 15px;
236+
padding-left: 5px;
205237
.video-item {
206238
background-color: transparent;
207239
border-bottom: none;
240+
line-height: 16px;
241+
&:first-child {
242+
display: none;
243+
}
208244
}
209245
&::-webkit-scrollbar-track {
210246
border-radius: 2px;
@@ -225,8 +261,9 @@ iframe {
225261
&.grid-list {
226262
display: flex;
227263
flex-wrap: wrap;
264+
padding-top: 10px;
228265
.video-item {
229-
width: 20%;
266+
width: 33.333%;
230267
display: block;
231268
padding: 0 5px;
232269
.video-item-image {

dist/assets/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"value": "AIzaSyDcMvWlqPTHg7rHm-CTVXJwpaVGXKu7cBc"
1515
}, {
1616
"name": "Country trending",
17-
"value": "US"
17+
"value": "RO"
1818
}, {
1919
"name": "Number of search results",
2020
"value": 15

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<base href="/">
5-
<title>YouTube Player v1.6</title>
5+
<title>YouTube Player v1.7</title>
66
<link rel="icon" href="favicon.ico">
77
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,400i,700,900" rel="stylesheet">
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

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.

0 commit comments

Comments
 (0)