From 53d983023808633e5d4bf8c6c297731614533d59 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 21 Mar 2018 18:34:56 +0100 Subject: Migrate Menu styling --- src/client/react/components/container/Menu.js | 30 ++++++++++++++----------- src/client/react/components/container/Menu.scss | 25 +++++++++++++++++++++ 2 files changed, 42 insertions(+), 13 deletions(-) create mode 100644 src/client/react/components/container/Menu.scss diff --git a/src/client/react/components/container/Menu.js b/src/client/react/components/container/Menu.js index 920973b..0b5c4dc 100644 --- a/src/client/react/components/container/Menu.js +++ b/src/client/react/components/container/Menu.js @@ -28,6 +28,8 @@ import { Icon } from 'rmwc/Icon'; import users from '../../users'; import { setUser, userFromMatch } from '../../lib/url'; +import './Menu.scss'; + class Menu extends React.Component { static propTypes = { // redux @@ -59,19 +61,21 @@ class Menu extends React.Component { render() { return ( - } - onSelected={(event) => { - // Send the `data-type` of the selected - this.onItemSelected(event.detail.item.dataset.type); - }} - > - Voeg label toe - Maak favoriet -
- Lokaal zoeken - Oud rooster gebruiken - +
+ } + onSelected={(event) => { + // Send the `data-type` of the selected + this.onItemSelected(event.detail.item.dataset.type); + }} + > + Voeg label toe + Maak favoriet +
+ Lokaal zoeken + Oud rooster gebruiken + +
); } } diff --git a/src/client/react/components/container/Menu.scss b/src/client/react/components/container/Menu.scss new file mode 100644 index 0000000..3d84507 --- /dev/null +++ b/src/client/react/components/container/Menu.scss @@ -0,0 +1,25 @@ +.Menu { + .mdc-menu-anchor { + height: 100%; + } + + .mdc-button { + height: 100%; + min-width: unset; + color: black; + + &::before, &::after { + background-color: black; + } + + i { + font-size: 24px; + } + } + + .mdc-list-item { + i { + padding-right: 8px; + } + } +} -- cgit v1.1