Skip to content

Commit

Permalink
style(menu): change style of menu components (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia authored Oct 8, 2019
1 parent 1b2a8c0 commit 197fcb9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 36 deletions.
16 changes: 7 additions & 9 deletions src/scripts/components/app/app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@
font-family: Arial, Helvetica, sans-serif

.layoutContainer
position: relative
display: flex
flex-direction: row
justify-content: flex-start
pointer-events: none
height: 100%
align-items: flex-end
position: relative
display: flex
flex-direction: row
justify-content: flex-start
pointer-events: none
height: 100%
align-items: flex-end

.layoutContainer > *
pointer-events: auto
border: 1px solid red


.timeslider
flex-grow: 1
3 changes: 1 addition & 2 deletions src/scripts/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ const App: FunctionComponent<{}> = () => (
<div className={styles.layoutContainer}>
<Menu />
<div className={styles.timeslider} />
<LayerSelector />
<Menu />
<ProjectionMenu />
<LayerSelector />
</div>
</div>
</Provider>
Expand Down
29 changes: 17 additions & 12 deletions src/scripts/components/menu/menu.styl
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
.menuContainer
height: 30px
width: 30px
position: relative
align-self: left
margin: 20px

.menuButton
border-radius: 50%
background-color: #ccc
font-size: 1em
outline: 0
border-radius: 50%
background-color: #ccc
font-size: 1em
outline: 0

.menuList
min-width: 250px
background-color: #fff;
padding: 0
position: absolute
bottom: 20px
left: 0
min-width: 250px
background-color: #fff;
padding: 0
list-style: none

.menuListItem
padding: 10px 15px
margin: 7px
padding: 10px 15px
margin: 7px

.menuListItem:hover,
.menuListItem:focus
background-color: #e0f1ff
background-color: #e0f1ff
28 changes: 15 additions & 13 deletions src/scripts/components/projection-menu/projection-menu.styl
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
.projectionContainer
position: relative
position: relative
margin: 20px

.projectionButton
background-color: #ccc
font-size: 1em
outline: 0
background-color: #ccc
font-size: 1em
outline: 0

.projectionList
position: absolute
bottom: 20px
left: 0
min-width: 250px
background-color: #fff;
padding: 0
position: absolute
bottom: 20px
right: 0
min-width: 200px
background-color: #fff;
padding: 0
list-style: none

.projectionListItem
padding: 10px 15px
margin: 7px
padding: 10px 15px
margin: 7px

.projectionListItem:hover,
.projectionListItem:focus
background-color: #e0f1ff
background-color: #e0f1ff

0 comments on commit 197fcb9

Please sign in to comment.