Skip to content

Commit

Permalink
style(mat-menu): apply black background to representation menu (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelez committed Jun 26, 2023
1 parent 76f495b commit f367394
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 12 deletions.
Expand Up @@ -26,7 +26,7 @@
<button mat-icon-button [matMenuTriggerFor]="more">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #more="matMenu" class="mat-menu-custom-black">
<mat-menu #more="matMenu" class="representation-menu">
<button
class="menu-content"
mat-menu-item
Expand Down
Expand Up @@ -5,7 +5,7 @@
width: 100%;

.container {
background: #292929;
background: $dark;
border-radius: 8px 8px 0px 0px;
display: flex;
justify-content: center;
Expand Down
Expand Up @@ -31,7 +31,7 @@
<button mat-icon-button [matMenuTriggerFor]="more">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #more="matMenu" class="mat-menu-custom-black">
<mat-menu #more="matMenu" class="representation-menu">
<button
class="menu-content"
mat-menu-item
Expand Down
Expand Up @@ -5,7 +5,7 @@
width: 100%;

.container {
background: #292929;
background: $dark;
border-radius: 8px 8px 0px 0px;
display: flex;
justify-content: center;
Expand Down
Expand Up @@ -27,7 +27,7 @@
<button mat-icon-button [matMenuTriggerFor]="more">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #more="matMenu" class="mat-menu-custom-black">
<mat-menu #more="matMenu" class="representation-menu">
<button
class="menu-content"
mat-menu-item
Expand Down
Expand Up @@ -23,7 +23,7 @@ $osd-height: 460px;
.pdf-container {
color: $bright;
height: 90%;
background-color: #292929;
background-color: $dark;
border-radius: 8px 8px 0px 0px;

pdf-viewer {
Expand Down Expand Up @@ -56,7 +56,7 @@ $osd-height: 460px;
width: 100%;

.container {
background: #292929;
background: $dark;
border-radius: 8px 8px 0px 0px;
display: flex;
justify-content: center;
Expand Down
Expand Up @@ -55,7 +55,7 @@
<button mat-icon-button [matMenuTriggerFor]="more">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #more="matMenu" class="mat-menu-custom-black">
<mat-menu #more="matMenu" class="representation-menu">
<button
class="menu-content"
mat-menu-item
Expand Down
Expand Up @@ -25,7 +25,7 @@
<button mat-icon-button [matMenuTriggerFor]="more">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #more="matMenu" class="mat-menu-custom-black">
<mat-menu #more="matMenu" class="representation-menu">
<button
class="menu-content"
mat-menu-item
Expand Down
Expand Up @@ -5,7 +5,7 @@
width: 100%;

.container {
background: #292929;
background: $dark;
border-radius: 8px 8px 0px 0px;
display: flex;
justify-content: center;
Expand Down
Expand Up @@ -87,7 +87,7 @@
<button mat-icon-button [matMenuTriggerFor]="more">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #more="matMenu" class="mat-menu-custom-black">
<mat-menu #more="matMenu" class="representation-menu">
<button
mat-menu-item
class="menu-content"
Expand Down
11 changes: 10 additions & 1 deletion apps/dsp-app/src/styles/_elements.scss
Expand Up @@ -3,6 +3,7 @@
@use "sass:math";
@use "@material/snackbar" as snackbar;
@use "@material/button" as button;
@use "@material/menu-surface" as menu-surface;

.fill-remaining-space {
/* This fills the remaining space, by using flexbox.
Expand Down Expand Up @@ -305,7 +306,7 @@ a,
}

&.overlay {
background: #292929;
background: $dark;
}

&.vertical {
Expand Down Expand Up @@ -342,6 +343,14 @@ a,
// }
}

// file representation menu styling
.representation-menu {
&.mdc-menu-surface {
@include menu-surface.fill-color($dark);
@include menu-surface.ink-color($white);
}
}

.no-results {
margin: 64px;
min-width: 400px;
Expand Down

0 comments on commit f367394

Please sign in to comment.