Skip to content

Commit 9422825

Browse files
committed
add Dropdown for planet header menu
1 parent e467862 commit 9422825

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

browser/styles/main/index.styl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,34 @@ textarea.block-input
217217
padding 7px 25px
218218
box-sizing border-box
219219
line-height 30px
220+
.dropDown
221+
z-index 500
222+
position fixed
223+
background white
224+
width 200px
225+
border solid 1px borderColor
226+
box-sizing border-box
227+
margin-top -5px
228+
margin-left 125px
229+
box-shadow popupShadow
230+
&.hide
231+
visibility hidden
232+
a
233+
color textColor
234+
display block
235+
width 100%
236+
padding 15px
237+
box-sizing border-box
238+
border-bottom solid 1px borderColor
239+
text-decoration none
240+
&:hover, &.hover
241+
background-color hoverBackgroundColor
242+
&:focus, &.focus
243+
color black
244+
&:active, &.active
245+
color brandColor
246+
&:last-child
247+
border-bottom none
220248

221249

222250
.PlanetBody

browser/styles/shared/modal.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
z-index 1000
44
overflow-y auto
55
overflow-x auto
6-
background-color transparentify(black, 35%)
6+
background-color modalBaseColor
77
&.hide
88
display none
99
.modal
@@ -13,6 +13,7 @@
1313
background-color white
1414
border-radius 10px
1515
padding 15px
16+
box-shadow popupShadow
1617
.modal-body
1718
.modal-tab
1819
text-align center

browser/styles/vars.styl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ hoverBackgroundColor= transparentify(#444, 3%)
1616
textColor = #4D4D4D
1717
backgroundColor= white
1818

19+
btnColor = #888
20+
btnHighlightenColor = #000
21+
1922
brandColor = #2BAC8F
2023

2124
planetNavBgColor = #ECECEC
2225
planetAnchorColor = #979797
2326
planetAnchorBgColor = #BEBEBE
2427
planetAnchorActiveColor = textColor
2528
planetAnchorActiveBgColor = white
29+
30+
popupShadow = 0 0 5px 0 #888
31+
modalBaseColor = transparentify(white, 65%)

0 commit comments

Comments
 (0)