Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #SB-27515 UI Dark mode enhancements - Players #67

Open
wants to merge 1 commit into
base: release-4.5.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/sunbird-player-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project-sunbird/sunbird-player-sdk-v9",
"version": "4.5.0",
"version": "4.5.1",
"peerDependencies": {
"@angular/common": "^9.1.12",
"@angular/core": "^9.1.12",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
@import "~@project-sunbird/sb-styles/assets/mixins/mixins";
::ng-deep :root {
--sdk-end-page-title:#000;
--sdk-end-page-replay-icon: #024f9d;
--sdk-end-page-replay-section-bg:#fff;
--sdk-end-page-title-span: #666666;
--sdk-end-page-replay-section-hover: #F2F2F2;
}

:host {
.player-endpage {
Expand All @@ -7,7 +14,7 @@
display: flex;
align-items: center;
justify-content: space-around;
background: var(--white);
background: var(--sdk-end-page-replay-section-bg);

@media all and (orientation: portrait) {
flex-direction: column;
Expand Down Expand Up @@ -104,15 +111,15 @@

.title-section {
.title {
color: var(--black);
color: var(--sdk-end-page-title);
font-size: calculateRem(21px);
font-weight: bold;
letter-spacing: 0;
line-height: calculateRem(28px);
}

span {
color: var(--gray-400);
color: var(--sdk-end-page-title-span);
font-size: calculateRem(12px);
word-break: break-word;

Expand Down Expand Up @@ -195,16 +202,22 @@

.replay-section, .exit-section {
cursor: pointer;
background-color: var(--white);
background-color: var(--sdk-end-page-replay-section-bg);
padding: 0.5rem;
border-radius: calculateRem(4px);

&:hover {
background-color: var(--gray-0);
background-color: var(--sdk-end-page-replay-section-hover);
}
}

.replay-section {
div svg g path{
fill: var(--sdk-end-page-replay-icon);
&:first-child{
fill: transparent;
}
}
&.disabled {
cursor: not-allowed;
.title {
Expand Down Expand Up @@ -299,6 +312,7 @@
max-height: calc(var(--lh) * var(--max-lines));
overflow: hidden;
width: 100%;font-size: 0.65rem;
color: var(--black);
}
.truncate-overflow::before {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import "~@project-sunbird/sb-styles/assets/mixins/mixins";
::ng-deep :root {
--sdk-overlay-btn-hover:#333332;
}

:host {
#overlay-button {
Expand Down Expand Up @@ -61,7 +64,7 @@
&:hover span,
&:hover span:before,
&:hover span:after {
background: #333332;
background: var(--sdk-overlay-btn-hover);
}

&:hover {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@import "~@project-sunbird/sb-styles/assets/mixins/mixins";

::ng-deep :root {
--sdk-player-icon:#6D7278;
}
:host {
.sidenav {
height: 100%;
Expand Down Expand Up @@ -97,7 +100,7 @@
.player-icon {
width: calculateRem(24px);
height: calculateRem(24px);
background-color: #6D7278;
background-color: var(--sdk-player-icon);


}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@

::ng-deep :root {
--sdk-offline-container:#fff;
}

.offline-container {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3rem;
background: var(--tertiary-color);
color: #fff;
color: var(--sdk-offline-container);
width: 100%;
display: flex;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@import "~@project-sunbird/sb-styles/assets/mixins/mixins";

::ng-deep :root {
--sdk-playersdk-text:#333;
--sdk-playersdk-bg:#fbccd1;
--sdk-playersdk-border:#ff4558;
--sdk-playersdk-closeicon:#ff4558;
--sdk-playersdk-error-header:#ff4558;
}
.playersdk {
&-msg {
position: absolute;
Expand All @@ -16,9 +22,9 @@
z-index: 111111;
// For error msg
&--error {
color: #333;
background: #fbccd1;
border-color: #ff4558;
color: var( --sdk-playersdk-text);
background: var(--sdk-playersdk-bg);
border-color: var(--sdk-playersdk-border);
}
&__body {
display: flex;
Expand All @@ -44,7 +50,7 @@
height: calculateRem(16px);
width: calculateRem(2px);
top: calculateRem(8px);
background: #ff4558;
background: var(--sdk-playersdk-closeicon);
}
&::before {
transform: rotate(45deg);
Expand All @@ -61,5 +67,5 @@
display: block;
margin-bottom: 0.5rem;
line-height: normal;
color: #ff4558;
color: var(--sdk-playersdk-error-header);
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
@import "~@project-sunbird/sb-styles/assets/mixins/mixins";

::ng-deep :root {
--sdk-sb-player-header:#fff;
--sdk-player-zoombtn:#000;
--sdk-player-zoombtn-icon:#333;
--sdk-player-zoombtn-icon-hover:#F2F2F2;
--sdk-player-page-count-bg:#fff;
--sdk-player-page-count-txt:#CCCCCC;
--sdk-player-page-count-arrow:#333333
}
:host {
.sb-player-header {
display: flex;
align-items: center;
justify-content: flex-end;
height: 3rem;
padding: .75em 1rem;
background: var(--white);
background: var(--sdk-sb-player-header);

&__panel {
.player-zoom-btns {
border-radius: .25rem;
overflow: hidden;

&__zoombtn {
color: var(--black);
color: var(--sdk-player-zoombtn);
text-align: center;
line-height: 0.8rem;
font-size: 1.5rem;
Expand All @@ -35,12 +43,12 @@
-webkit-mask-repeat: no-repeat;
mask-size: contain;
mask-repeat: no-repeat;
background-color: var(--gray-800);
background-color: var(--sdk-player-zoombtn-icon);
}


&:hover {
background: var(--gray-0);
background: var(--sdk-player-zoombtn-icon-hover);


}
Expand Down Expand Up @@ -72,9 +80,9 @@
.page-count {
height: 2rem;
width: 3rem;
border: 0.031em solid var(--gray-100);
border: 0.031em solid var(--sdk-player-page-count-txt);
border-radius: 0.25rem;
background-color: var(--white);
background-color: var(--sdk-player-page-count-bg);
text-align: center;


Expand All @@ -91,7 +99,7 @@
justify-content: center;
width: 2.2rem;
height: 2rem;
background: var(--gray-800);
background: var(--sdk-player-page-count-arrow);
border-radius: 0px 0.25em 0.25em 0px;
position: absolute;
left: calc(3rem - 0px);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
@import "~@project-sunbird/sb-styles/assets/mixins/mixins";

::ng-deep :root {
--sdk-navigation-arrows-bg:#fff;
--sdk-navigation-arrows-border:#F2F2F2;
--sdk-navigation-arrows-after:#999999;
--sdk-player-nextIcon:#fff;
}
:host {
.navigation-arrows {
height: 2rem;
width: 4rem;
cursor: pointer;
border-radius: 1rem;
background-color: var(--white);
background-color: var(--sdk-navigation-arrows-bg);
box-shadow: var(--sbt-box-shadow-3px);
border: 1px solid var(--gray-0);
border: 1px solid var(--sdk-navigation-arrows-border);
transition: all .1s ease-in;
&:hover {
border: 1px solid transparent;
Expand All @@ -23,25 +28,24 @@
content: '';
width: 0.5rem;
height: 0.5rem;
border-top: 0.125rem solid var(--gray-200);
border-left: 0.125rem solid var(--gray-200);

border-top: 0.125rem solid var(--sdk-navigation-arrows-after);
border-left: 0.125rem solid var(--sdk-navigation-arrows-after);
}
}

.player-nextIcon {
&::after {
content: '';
transform: rotate(135deg);
border-top: .125rem solid var(--white);
border-left: .125rem solid var(--white);
border-top: .125rem solid var(--sdk-player-nextIcon);
border-left: .125rem solid var(--sdk-player-nextIcon);
}
}

.navigation-arrows:hover.player-nextIcon::after {
content: '';
border-top: 0.125rem solid var(--white);
border-left: 0.125rem solid var(--white);
border-top: 0.125rem solid var(--sdk-player-nextIcon);
border-left: 0.125rem solid var(--sdk-player-nextIcon);
}

.navigation-arrows.player-nextIcon {
Expand Down