Skip to content

Commit

Permalink
feat(styles): added background styling [ci visual] (#5595)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhristov14 authored Aug 30, 2024
1 parent 0da41ac commit a2a039d
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/styles/src/popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,30 @@
$block: #{$fd-namespace}-popover;
$blockBody: #{$fd-namespace}-popover__body;

body.fd-overlay-active::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: var(--fdModal_BackgroundColor);
z-index: 999;
pointer-events: all;
}

.#{$block} {
@include fd-reset();

position: relative;
display: inline-block;
max-width: 100%;

&__modal {
position: relative;
z-index: 1000;
}

&__control {
@include fd-reset();
@include fd-action-cursor();
Expand Down
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_fiori_3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0.125rem 0 rgb(34 53 72 / 16%), 0 0.5rem 1rem 0 rgb(34 53 72 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 60%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0.125rem 0 rgb(0 0 0 / 16%), 0 0.5rem 1rem 0 rgb(0 0 0 / 32%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 60%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_hcb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0 0.0625rem #fff, 0 0.5rem 1rem 0 rgb(255 255 255 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 80%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_hcw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0 0.0625rem #000, 0 0.5rem 1rem 0 rgb(0 0 0 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(255 255 255 / 80%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_light_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0.125rem 0 rgb(34 53 72 / 16%), 0 0.5rem 1rem 0 rgb(34 53 72 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 60%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_horizon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0.125rem 0 rgb(34 53 72 / 16%), 0 0.5rem 1rem 0 rgb(34 53 72 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 20%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_horizon_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0.125rem 0 rgb(0 0 0 / 16%), 0 0.5rem 1rem 0 rgb(0 0 0 / 32%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 20%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_horizon_hcb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0 0.0625rem #fff, 0 0.5rem 1rem 0 rgb(255 255 255 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(0 0 0 / 30%);
}
3 changes: 3 additions & 0 deletions packages/styles/src/theming/sap_horizon_hcw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,7 @@

/** Splitter */
--sapSplitPane_Shadow1: 0 0 0 0.0625rem #000, 0 0.5rem 1rem 0 rgb(0 0 0 / 16%);

/** Modal */
--fdModal_BackgroundColor: rgb(255 255 255 / 80%);
}

0 comments on commit a2a039d

Please sign in to comment.