Skip to content

Commit 489af18

Browse files
committed
1.9.1 - Improved UI/UX
1 parent 09238f8 commit 489af18

20 files changed

+600
-638
lines changed

dist/assets/css/main.css

Lines changed: 99 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
--c-primary-active-focus: #ffa700;
88
--c-primary-inverse: #232228;
99
--c-danger: red;
10+
--c-danger-active: #D30000;
1011
--c-secondary: #167ac6;
1112
--c-success: #23CF5F;
1213
--c-success-active: #1db351;
1314
--c-gray: #161616;
14-
--c-light-gray: #e8e8e8;
15+
--c-light-gray: #3e3e3e;
1516
--c-dark-gray: #111111;
1617
--c-white: #ffffff;
1718
--c-black: #000000;
@@ -117,10 +118,12 @@ a:active {
117118

118119
.btn-primary:hover {
119120
background-color: var(--c-primary-active);
121+
transform: scale(1.05);
120122
}
121123

122124
.btn-primary:active {
123125
background-color: var(--c-primary-active-focus);
126+
transform: scale(1);
124127
}
125128

126129
.btn-primary-inverse {
@@ -1162,7 +1165,7 @@ iframe {
11621165

11631166
.video-list::-webkit-scrollbar {
11641167
width: 6px;
1165-
background-color: var(--c-base);
1168+
background-color: var(--c-dark-gray);
11661169
}
11671170

11681171
.video-list::-webkit-scrollbar-thumb {
@@ -1232,10 +1235,9 @@ iframe {
12321235
background-color: var(--c-dark-gray);
12331236
color: var(--c-white);
12341237
padding: 0;
1235-
cursor: pointer;
12361238
position: relative;
12371239
min-height: 60px;
1238-
padding: 0 10px;
1240+
padding: 10px;
12391241
transition: all 0.1s ease-in-out;
12401242
}
12411243

@@ -1244,17 +1246,22 @@ iframe {
12441246
margin: 0;
12451247
}
12461248

1247-
.video-item p {
1248-
margin: 0;
1249-
font-weight: 100;
1250-
white-space: nowrap;
1251-
text-overflow: ellipsis;
1252-
overflow: hidden;
1249+
.video-item .video-item-autor {
1250+
font-size: 12px;
12531251
}
12541252

12551253
.video-item-content {
12561254
width: 100%;
12571255
overflow: hidden;
1256+
position: relative;
1257+
}
1258+
1259+
.video-item-content p {
1260+
margin: 0;
1261+
font-weight: 100;
1262+
white-space: nowrap;
1263+
text-overflow: ellipsis;
1264+
overflow: hidden;
12581265
}
12591266

12601267
.video-item-info {
@@ -1267,54 +1274,119 @@ iframe {
12671274
}
12681275

12691276
.video-item-settings {
1270-
display: none !important;
1271-
height: 100%;
1277+
background-color: rgba(0, 0, 0, 0.7);
1278+
color: var(--c-white);
12721279
position: absolute;
12731280
right: 0;
12741281
top: 0;
1275-
width: 30px;
1276-
display: flex;
1277-
}
1278-
1279-
.video-item-settings > p {
12801282
height: 100%;
12811283
width: 100%;
1284+
z-index: 1;
1285+
opacity: 0;
1286+
visibility: hidden;
12821287
display: flex;
12831288
align-items: center;
12841289
justify-content: center;
12851290
transition: all 0.1s ease-in-out;
12861291
}
12871292

1288-
.video-item-settings .video-item-remove {
1293+
.video-item-settings > p {
1294+
margin: 0 5px;
1295+
cursor: pointer;
1296+
transition: all 0.1s ease-in-out;
1297+
}
1298+
1299+
.video-item-settings p[class^="video-item-"] {
1300+
background-color: var(--c-light-gray);
1301+
height: 30px;
1302+
width: 30px;
1303+
border-radius: 50%;
1304+
text-align: center;
1305+
line-height: 30px;
1306+
}
1307+
1308+
.video-item-settings .video-item-play .fa {
1309+
font-size: 12px;
1310+
}
1311+
1312+
.video-item-settings .video-item-play .fa-play {
1313+
margin-left: 2px;
1314+
}
1315+
1316+
.video-item-settings .video-item-play .fa-pause {
1317+
margin-left: 1px;
1318+
}
1319+
1320+
.video-item-settings .video-item-play:hover {
1321+
color: var(--c-base);
12891322
background-color: var(--c-primary);
1323+
}
1324+
1325+
.video-item-settings .video-item-play:active {
12901326
color: var(--c-base);
1327+
background-color: var(--c-primary-active);
1328+
}
1329+
1330+
.video-item-settings .video-item-remove:hover {
1331+
background-color: var(--c-danger);
12911332
}
12921333

12931334
.video-item-settings .video-item-remove:active {
1294-
background-color: var(--c-primary-active);
1335+
background-color: var(--c-danger-active);
12951336
}
12961337

1297-
.video-item-settings .video-item-add {
1338+
.video-item-settings .video-item-add .fa {
1339+
top: 1px;
1340+
margin-left: 1px;
1341+
position: relative;
1342+
}
1343+
1344+
.video-item-settings .video-item-add:hover {
12981345
background-color: var(--c-success);
12991346
}
13001347

13011348
.video-item-settings .video-item-add:active {
13021349
background-color: var(--c-success-active);
13031350
}
13041351

1305-
.video-item:hover {
1352+
.video-item-title {
1353+
line-height: 18px;
1354+
}
1355+
1356+
.video-item-hint {
1357+
text-transform: uppercase;
1358+
font-size: 10px;
1359+
border: 1px solid var(--c-primary);
1360+
color: var(--c-primary);
1361+
display: none;
1362+
padding: 0 5px;
1363+
font-weight: 600 !important;
1364+
}
1365+
1366+
.video-item-hint .fa {
1367+
font-size: 8px;
1368+
margin-right: 3px;
1369+
}
1370+
1371+
.video-item:hover .video-item-settings {
1372+
opacity: 1;
1373+
visibility: visible;
1374+
}
1375+
1376+
.video-item.active {
13061377
background-color: var(--c-black);
13071378
}
13081379

1309-
.video-item-image {
1310-
flex: 0 0 45px;
1311-
margin: 0 10px 0 0;
1380+
.video-item.active .video-item-hint {
1381+
display: inline-block;
13121382
}
13131383

1314-
.video-item-image img {
1384+
.video-item-image {
13151385
display: block;
1316-
width: 45px;
1317-
height: auto;
1386+
height: 60px;
1387+
width: 80px;
1388+
background-position: center center;
1389+
margin-right: 15px;
13181390
}
13191391

13201392
.video-item-details {
@@ -1323,7 +1395,6 @@ iframe {
13231395

13241396
.video-item-details p {
13251397
margin: 0 15px 0 0;
1326-
line-height: 14px;
13271398
font-size: 12px;
13281399
}
13291400

@@ -1357,7 +1428,6 @@ iframe {
13571428

13581429
#related-video-list .related-video-content::-webkit-scrollbar {
13591430
width: 6px;
1360-
background-color: var(--c-base);
13611431
}
13621432

13631433
#related-video-list .related-video-content::-webkit-scrollbar-thumb {
@@ -1400,7 +1470,6 @@ iframe {
14001470

14011471
#playlist-video-list .playlist-video-content::-webkit-scrollbar {
14021472
width: 6px;
1403-
background-color: var(--c-base);
14041473
}
14051474

14061475
#playlist-video-list .playlist-video-content::-webkit-scrollbar-thumb {
@@ -1432,12 +1501,6 @@ iframe {
14321501
border: none;
14331502
}
14341503

1435-
.video-list-featured .video-item-image {
1436-
width: 80px;
1437-
height: auto;
1438-
flex: auto;
1439-
}
1440-
14411504
.video-list-featured .video-item-info {
14421505
background-color: transparent;
14431506
}
@@ -1446,17 +1509,6 @@ iframe {
14461509
display: inline-block;
14471510
}
14481511

1449-
.video-list-featured .video-item:hover .video-item-info {
1450-
left: 0;
1451-
}
1452-
1453-
.video-list-featured .video-item:hover .video-item-settings {
1454-
right: -30px;
1455-
top: 0;
1456-
opacity: 1;
1457-
visibility: visible;
1458-
}
1459-
14601512
#feed-video-list {
14611513
top: inherit;
14621514
bottom: 0;
@@ -1493,30 +1545,11 @@ iframe {
14931545
margin: 5px 0 15px 0;
14941546
}
14951547

1496-
#feed-video-list.grid-list .video-item:not(.hidden-thumbnails) .video-item-image:before {
1497-
content: '\25B6 Play';
1498-
color: var(--c-white);
1499-
background-color: rgba(0, 0, 0, 0.6);
1500-
padding: 8px 15px;
1501-
display: block;
1502-
position: absolute;
1503-
top: 50%;
1504-
right: 50%;
1505-
transform: translate(50%, -50%);
1506-
opacity: 0;
1507-
visibility: hidden;
1508-
transition: all 0.2s ease-in-out;
1509-
}
1510-
15111548
#feed-video-list.grid-list .video-item-info {
15121549
display: block;
15131550
padding: 0;
15141551
}
15151552

1516-
#feed-video-list.grid-list .video-item-info:active:not(.hidden-thumbnails) .video-item-image:before {
1517-
background-color: var(--c-black);
1518-
}
1519-
15201553
#feed-video-list.grid-list .video-item.hidden-thumbnails .video-item-settings {
15211554
height: 26px;
15221555
width: 30px;
@@ -1532,11 +1565,6 @@ iframe {
15321565
top: 0;
15331566
}
15341567

1535-
#feed-video-list.grid-list .video-item:hover:not(.hidden-thumbnails) .video-item-image:before {
1536-
opacity: 1;
1537-
visibility: visible;
1538-
}
1539-
15401568
@media screen and (max-width: 1600px) and (min-width: 992px) {
15411569
#feed-video-list.grid-list .video-item {
15421570
width: calc(50% - 10px);

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)