Skip to content

Commit 106cbd9

Browse files
committed
1.7 - Fixing design issues
1 parent e8e249e commit 106cbd9

18 files changed

+123
-125
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Just take files from ***dist*** folder
6060

6161
Angular2 YT Player v1.7
6262
- Added featured video as first video from trending
63+
- Notifications for important actions you do
64+
- Removed debugging details
6365
- Improved UI/UX
6466

6567
Angular2 YT Player v1.6
@@ -119,7 +121,6 @@ Angular2 YT Player v1.0.0
119121
- *Save your settings **(unversioned)***
120122

121123
#### Roadmap to 2.0
122-
- Notifications for important actions you do **(in v1.7)**
123124
- Change and create theme **(in v1.7)**
124125
- Add your videos in playlist **(in v1.9)**
125126
- Next/prev video from your playlist **(in v1.9)**

dist/assets/css/main.css

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,6 @@ a:active {
200200
color: #111111;
201201
}
202202

203-
.debugging-info {
204-
display: none;
205-
color: #ffffff;
206-
}
207-
208-
.debugging-info.active {
209-
display: block;
210-
}
211-
212203
.fa-color-danger {
213204
color: #e52d27;
214205
}
@@ -270,7 +261,7 @@ a:active {
270261
}
271262

272263
.app-feed {
273-
box-shadow: rgba(0, 0, 0, 0.03) 0 0 10px 5px;
264+
box-shadow: rgba(0, 0, 0, 0.05) 0 0 10px 10px;
274265
z-index: 1;
275266
}
276267

@@ -301,13 +292,15 @@ a:active {
301292
.notif {
302293
position: absolute;
303294
bottom: -41px;
304-
background-color: #111111;
295+
background-color: #232228;
305296
color: #ffffff;
306297
left: 50%;
307298
transform: translateX(-50%);
308299
min-width: 300px;
309300
padding: 10px 15px;
310301
text-align: center;
302+
opacity: 0;
303+
visibility: hidden;
311304
transition: all 0.1s ease-in-out;
312305
z-index: 1;
313306
}
@@ -318,6 +311,8 @@ a:active {
318311

319312
.notif.active {
320313
bottom: 0;
314+
opacity: 1;
315+
visibility: visible;
321316
}
322317

323318
.current-video-all {
@@ -682,10 +677,6 @@ input[type="radio"]:checked + label .round-check:after {
682677
transform: translate(-50%, -50%);
683678
}
684679

685-
#logo:hover {
686-
transform: translate(-50%, -50%) scale(1.1);
687-
}
688-
689680
#logo small {
690681
position: absolute;
691682
left: calc(100% + 5px);
@@ -1183,16 +1174,6 @@ iframe {
11831174
padding-top: 10px;
11841175
}
11851176

1186-
#feed-video-list.grid-list .video-item-count {
1187-
position: absolute;
1188-
top: 0;
1189-
left: 0;
1190-
background-color: rgba(0, 0, 0, 0.7);
1191-
padding: 7px 12px;
1192-
color: #ffffff;
1193-
z-index: 1;
1194-
}
1195-
11961177
#feed-video-list.grid-list .video-item {
11971178
width: calc(33.333% - 10px);
11981179
display: block;
@@ -1210,10 +1191,31 @@ iframe {
12101191
margin: 5px 0 15px 0;
12111192
}
12121193

1194+
#feed-video-list.grid-list .video-item .video-item-count {
1195+
position: absolute;
1196+
top: 0;
1197+
left: 0;
1198+
background-color: rgba(0, 0, 0, 0.7);
1199+
padding: 7px 12px;
1200+
color: #ffffff;
1201+
z-index: 1;
1202+
}
1203+
1204+
#feed-video-list.grid-list .video-item:not(.hidden-thumbnails) .video-item-count {
1205+
top: 10px;
1206+
left: 10px;
1207+
height: 40px;
1208+
width: 40px;
1209+
line-height: 27px;
1210+
font-size: 12px;
1211+
text-align: center;
1212+
border-radius: 50%;
1213+
}
1214+
12131215
#feed-video-list.grid-list .video-item.hidden-thumbnails .video-item-count {
12141216
position: relative;
12151217
text-align: center;
1216-
background-color: #232228;
1218+
background-color: #000;
12171219
padding: 5px;
12181220
}
12191221

dist/assets/scss/_common.scss

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@
4949
color: $c-gray;
5050
}
5151

52-
.debugging-info {
53-
display: none;
54-
color: $c-white;
55-
&.active {
56-
display: block;
57-
}
58-
}
59-
6052
.fa-color-danger {
6153
color: $c-primary;
6254
}
@@ -108,7 +100,7 @@
108100
}
109101
}
110102
&-feed {
111-
box-shadow: rgba($c-black, 0.03) 0 0 10px 5px;
103+
box-shadow: rgba($c-black, 0.05) 0 0 10px 10px;
112104
z-index: 1;
113105
.app-content {
114106
padding: 0 20px;
@@ -137,19 +129,23 @@
137129
.notif {
138130
position: absolute;
139131
bottom: -41px;
140-
background-color: $c-gray;
132+
background-color: $c-primary-inverse;
141133
color: $c-white;
142134
left: 50%;
143135
transform: translateX(-50%);
144136
min-width: 300px;
145137
padding: 10px 15px;
146138
text-align: center;
139+
opacity: 0;
140+
visibility: hidden;
147141
transition: all 0.1s ease-in-out;
148142
z-index: 1;
149143
p {
150144
margin: 0;
151145
}
152146
&.active {
153147
bottom: 0;
148+
opacity: 1;
149+
visibility: visible;
154150
}
155151
}

dist/assets/scss/_header.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
top: 50%;
4848
left: 50%;
4949
transform: translate(-50%, -50%);
50-
&:hover {
51-
transform: translate(-50%, -50%) scale(1.1);
52-
}
5350
small {
5451
position: absolute;
5552
left: calc(100% + 5px);

dist/assets/scss/_videos.scss

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,6 @@ iframe {
268268
display: flex;
269269
flex-wrap: wrap;
270270
padding-top: 10px;
271-
.video-item-count {
272-
position: absolute;
273-
top: 0;
274-
left: 0;
275-
background-color: rgba($c-black, 0.7);
276-
padding: 7px 12px;
277-
color: $c-white;
278-
z-index: 1;
279-
}
280271
.video-item {
281272
width: calc(33.333% - 10px);
282273
display: block;
@@ -290,11 +281,32 @@ iframe {
290281
.video-item-content {
291282
margin: 5px 0 15px 0;
292283
}
284+
.video-item-count {
285+
position: absolute;
286+
top: 0;
287+
left: 0;
288+
background-color: rgba($c-black, 0.7);
289+
padding: 7px 12px;
290+
color: $c-white;
291+
z-index: 1;
292+
}
293+
&:not(.hidden-thumbnails) {
294+
.video-item-count {
295+
top: 10px;
296+
left: 10px;
297+
height: 40px;
298+
width: 40px;
299+
line-height: 27px;
300+
font-size: 12px;
301+
text-align: center;
302+
border-radius: 50%;
303+
}
304+
}
293305
&.hidden-thumbnails {
294306
.video-item-count {
295307
position: relative;
296308
text-align: center;
297-
background-color: $c-primary-inverse;
309+
background-color: $c-black;
298310
padding: 5px;
299311
}
300312
}

dist/assets/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"form_settings": [
33
{
4-
"name": "Show Debugging Info",
5-
"value": false
6-
}, {
74
"name": "Show Thumbnails",
85
"value": true
96
}

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)