mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #488 from Stremio/fix-add-nav-menu-content-glow
feat: box-shadow glow to popups
This commit is contained in:
commit
0626c8511c
3 changed files with 12 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ const { useRouteFocused } = require('stremio-router');
|
|||
const Popup = require('stremio/common/Popup');
|
||||
const useBinaryState = require('stremio/common/useBinaryState');
|
||||
const NavMenuContent = require('./NavMenuContent');
|
||||
const styles = require('./styles.less');
|
||||
|
||||
const NavMenu = (props) => {
|
||||
const routeFocused = useRouteFocused();
|
||||
|
|
@ -42,6 +43,7 @@ const NavMenu = (props) => {
|
|||
onCloseRequest={closeMenu}
|
||||
renderLabel={renderLabel}
|
||||
renderMenu={renderMenu}
|
||||
className={styles['nav-menu-popup-label']}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,6 +3,15 @@
|
|||
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
|
||||
@import (reference) '~stremio/common/screen-sizes.less';
|
||||
|
||||
:import('~stremio/common/Popup/styles.less') {
|
||||
popup-menu-container: menu-container;
|
||||
}
|
||||
|
||||
.nav-menu-popup-label {
|
||||
.popup-menu-container {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
.nav-menu-container {
|
||||
width: 22rem;
|
||||
max-height: calc(100vh - var(--horizontal-nav-bar-size));
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@
|
|||
visibility: hidden;
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--modal-background-color);
|
||||
box-shadow: 0 1.35rem 2.7rem @color-background-dark5-40,
|
||||
0 1.1rem 0.85rem @color-background-dark5-20;
|
||||
box-shadow: var(--outer-glow);
|
||||
cursor: auto;
|
||||
|
||||
&.menu-direction-top-left {
|
||||
|
|
|
|||
Loading…
Reference in a new issue