Skip to content

Commit

Permalink
chore: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Chan committed May 25, 2021
1 parent 99b04da commit aad8613
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 53 deletions.
34 changes: 34 additions & 0 deletions src/lib/viewers/controls/media/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,37 @@ $bp-MediaControl-width: 36px;
@mixin bp-MediaButton {
@include bp-Control($width: $bp-MediaControl-width, $height: $bp-MediaControl-height);
}

@mixin bp-VideoControls {
display: flex;
flex-direction: column;
width: 100%;
background-image: linear-gradient(to top, rgba($black, .6) 0%, rgba($black, 0) 100%);

.bp-FullscreenToggle {
width: $bp-MediaControl-width;
height: $bp-MediaControl-height;
}
}

@mixin bp-VideoControls-bar {
display: flex;
justify-content: space-between;
padding: 0 10px 5px;
}

@mixin bp-VideoControls-group {
display: flex;
align-items: center;
}

@mixin bp-VideoControls-settings {
.bp-SettingsFlyout {
right: 15px;
}

.bp-SettingsToggle {
width: $bp-MediaControl-width;
height: $bp-MediaControl-height;
}
}
4 changes: 0 additions & 4 deletions src/lib/viewers/media/Dash.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
cursor: pointer;
}
}

.bp-VideoControlsRoot {
@include bp-VideoControlsRoot;
}
}

.bp-media-filmstrip-container {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/DashControls.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './mediaBase';
@import '../controls//media/styles';

.bp-DashControls {
@include bp-VideoControls;
Expand Down
4 changes: 0 additions & 4 deletions src/lib/viewers/media/MP4.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,4 @@
opacity: 1;
}
}

.bp-VideoControlsRoot {
@include bp-VideoControlsRoot;
}
}
2 changes: 1 addition & 1 deletion src/lib/viewers/media/MP4Controls.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './mediaBase';
@import '../controls//media/styles';

.bp-MP4Controls {
@include bp-VideoControls;
Expand Down
51 changes: 8 additions & 43 deletions src/lib/viewers/media/_mediaBase.scss
Original file line number Diff line number Diff line change
@@ -1,48 +1,5 @@
@import '../../boxuiVariables';
@import './MediaControls';
@import '../controls/media/styles';

@mixin bp-VideoControlsRoot {
position: absolute;
right: 0;
bottom: -1px;
left: 0;
width: 100%;
}

@mixin bp-VideoControls {
display: flex;
flex-direction: column;
width: 100%;
background-image: linear-gradient(to top, rgba($black, .6) 0%, rgba($black, 0) 100%);

.bp-FullscreenToggle {
width: $bp-MediaControl-width;
height: $bp-MediaControl-height;
}
}

@mixin bp-VideoControls-bar {
display: flex;
justify-content: space-between;
padding: 0 10px 5px;
}

@mixin bp-VideoControls-group {
display: flex;
align-items: center;
}

@mixin bp-VideoControls-settings {
.bp-SettingsFlyout {
right: 15px;
}

.bp-SettingsToggle {
width: $bp-MediaControl-width;
height: $bp-MediaControl-height;
}
}

.bp-media {
position: absolute;
Expand Down Expand Up @@ -134,3 +91,11 @@
display: none;
}
}

.bp-VideoControlsRoot {
position: absolute;
right: 0;
bottom: -1px;
left: 0;
width: 100%;
}

0 comments on commit aad8613

Please sign in to comment.