Skip to content

Commit 515af44

Browse files
committed
1.9.1 - Improving performance, UI&UX
1 parent b17e5f3 commit 515af44

File tree

11 files changed

+248
-140
lines changed

11 files changed

+248
-140
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Just take files from ***dist*** folder
5656
Angular2 YT Player v1.9.1
5757
- Saving settings.json to localstorage if your localstorage is empty
5858
- Cleaning the css
59-
- Auto saving playlists
6059
- Auto saving all changes you do, you can disable auto save from settings
6160
- Toggle light/dark mode
6261
- UI/UX improvements and fixes
62+
- Performance improvements
6363

6464
Angular2 YT Player v1.9
6565
- Add/remove items from playlist, first time when is initialized It is prepopulated with related videos

dist/assets/css/main.css

Lines changed: 73 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ body {
5050
cursor: default;
5151
-webkit-app-region: drag;
5252
overflow: hidden;
53-
animation: loading-animation 0.6s 1;
53+
animation: loading-animation 2s 1;
5454
}
5555

5656
@media screen and (max-width: 991px) {
@@ -636,7 +636,7 @@ a:active {
636636
.current-video-range .current-video-range-max-value,
637637
.current-video-range .current-video-range-value {
638638
position: absolute;
639-
top: 0;
639+
top: -4px;
640640
margin: 0;
641641
color: var(--c-primary);
642642
}
@@ -652,38 +652,13 @@ a:active {
652652
.player-range {
653653
width: 100%;
654654
height: 16px;
655-
margin-top: 3px;
656655
overflow: hidden;
657656
cursor: pointer;
658657
background: transparent;
659658
-webkit-appearance: none;
660659
outline: 0;
661660
}
662661

663-
.player-range::-webkit-slider-runnable-track, .player-range::-webkit-slider-thumb {
664-
-webkit-appearance: none;
665-
}
666-
667-
.player-range::-webkit-slider-runnable-track {
668-
width: 100%;
669-
height: 3px;
670-
background: var(--c-primary);
671-
}
672-
673-
.player-range::-webkit-slider-thumb {
674-
position: relative;
675-
height: 15px;
676-
width: 15px;
677-
margin-top: -6px;
678-
background: var(--c-primary);
679-
border-radius: 50%;
680-
transition: all 0.2s ease-out;
681-
}
682-
683-
.player-range.inactive::-webkit-slider-thumb {
684-
display: none;
685-
}
686-
687662
.volume-range-value {
688663
color: var(--c-primary);
689664
display: flex;
@@ -703,6 +678,47 @@ a:active {
703678
visibility: hidden;
704679
}
705680

681+
.duration-range-container {
682+
position: relative;
683+
height: 12px;
684+
background-color: var(--c-light-gray);
685+
width: 100%;
686+
margin-top: 10px;
687+
margin-bottom: 10px;
688+
border-radius: 20px;
689+
overflow: hidden;
690+
}
691+
692+
.duration-range-container .duration-input-shadow {
693+
position: absolute;
694+
top: 0;
695+
left: 0;
696+
height: 100%;
697+
border-radius: 0;
698+
background-color: var(--c-primary);
699+
transition: all 0.1s ease-out;
700+
border-radius: 20px;
701+
}
702+
703+
.duration-range-container .player-range {
704+
-webkit-appearance: none;
705+
z-index: 1;
706+
position: relative;
707+
}
708+
709+
.duration-range-container .player-range::-webkit-slider-runnable-track, .duration-range-container .player-range::-webkit-slider-thumb {
710+
background: transparent;
711+
visibility: hidden;
712+
}
713+
714+
.duration-range-container .player-range:hover + .duration-input-shadow {
715+
background-color: var(--c-primary-active);
716+
}
717+
718+
.duration-range-container .player-range:active + .duration-input-shadow {
719+
background-color: var(--c-primary-active-focus);
720+
}
721+
706722
.volume-input-container {
707723
position: relative;
708724
width: 80px;
@@ -712,6 +728,20 @@ a:active {
712728
overflow: hidden;
713729
}
714730

731+
.volume-input-container .volume-input-shadow {
732+
position: absolute;
733+
top: 0;
734+
left: 0;
735+
height: 100%;
736+
border-radius: 20px;
737+
background-color: var(--c-primary);
738+
transition: all 0.1s ease-out;
739+
}
740+
741+
.volume-input-container .volume-input-shadow.inactive {
742+
width: 0% !important;
743+
}
744+
715745
.volume-input-container .volume-input {
716746
background: transparent;
717747
cursor: pointer;
@@ -730,18 +760,12 @@ a:active {
730760
visibility: hidden;
731761
}
732762

733-
.volume-input-container .volume-input-shadow {
734-
position: absolute;
735-
top: 0;
736-
left: 0;
737-
height: 100%;
738-
border-radius: 20px;
739-
background-color: var(--c-primary);
740-
transition: all 0.1s ease-out;
763+
.volume-input-container .volume-input:hover + .volume-input-shadow {
764+
background-color: var(--c-primary-active);
741765
}
742766

743-
.volume-input-container .volume-input-shadow.inactive {
744-
width: 0% !important;
767+
.volume-input-container .volume-input:active + .volume-input-shadow {
768+
background-color: var(--c-primary-active-focus);
745769
}
746770

747771
select {
@@ -1210,18 +1234,20 @@ iframe {
12101234

12111235
.video-item-head-btn {
12121236
float: right;
1213-
background-color: var(--c-white);
1237+
background-color: var(--c-black);
1238+
border: 1px solid var(--c-primary);
12141239
cursor: pointer;
1215-
color: var(--c-primary-inverse);
1240+
color: var(--c-primary);
12161241
border-radius: 3px;
1217-
padding: 1px 7px;
1242+
padding: 2px 8px;
12181243
margin-top: 2px;
12191244
text-transform: uppercase;
1220-
font-size: 12px;
1245+
font-size: 11px;
12211246
}
12221247

12231248
.video-item-head-btn:active {
1224-
background-color: var(--c-light-gray);
1249+
background-color: var(--c-primary);
1250+
color: var(--c-black);
12251251
user-select: none;
12261252
}
12271253

@@ -1539,6 +1565,11 @@ iframe {
15391565
#feed-video-list.grid-list .video-item .video-item-image {
15401566
margin: 0;
15411567
position: relative;
1568+
width: 100%;
1569+
height: 180px;
1570+
background-size: cover;
1571+
background-repeat: no-repeat;
1572+
background-position: center center;
15421573
}
15431574

15441575
#feed-video-list.grid-list .video-item .video-item-content {

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)