bake my own dropdown menu
This commit is contained in:
parent
cc21c96b9e
commit
7bf072134c
3 changed files with 23 additions and 9 deletions
|
@ -117,7 +117,8 @@ renderLayout widget = do
|
||||||
, js_picturefill_js
|
, js_picturefill_js
|
||||||
])
|
])
|
||||||
$(combineStylesheets 'StaticR
|
$(combineStylesheets 'StaticR
|
||||||
[ css_bootstrap_min_css
|
[ css_dropdown_css
|
||||||
|
, css_bootstrap_min_css
|
||||||
, css_style_global_css
|
, css_style_global_css
|
||||||
])
|
])
|
||||||
$(widgetFile "default-layout")
|
$(widgetFile "default-layout")
|
||||||
|
|
14
static/css/dropdown.css
Normal file
14
static/css/dropdown.css
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
.nav {
|
||||||
|
list-style: none;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav ul {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav li:hover ul {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
|
@ -2,15 +2,14 @@
|
||||||
<div .row>
|
<div .row>
|
||||||
<div .col-md-9>
|
<div .col-md-9>
|
||||||
<ul #user-nav .nav .nav-pills>
|
<ul #user-nav .nav .nav-pills>
|
||||||
<li role="presentation">
|
<li>
|
||||||
<a href=@{HomeR}>
|
<a href=@{HomeR}>
|
||||||
Home
|
Home
|
||||||
$maybe su <- msu
|
$maybe su <- msu
|
||||||
<li .dropdown role="presentation">
|
<li>
|
||||||
<a .dropdown-toggle data-toggle="dropdown" role="button"
|
<a>
|
||||||
aria-haspopup="true" aria-expanded="false">
|
|
||||||
#{slug} <span class="caret"></span>
|
#{slug} <span class="caret"></span>
|
||||||
<ul .dropdown-menu>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href=@{UserR username}>
|
<a href=@{UserR username}>
|
||||||
Your Profile
|
Your Profile
|
||||||
|
@ -24,11 +23,11 @@
|
||||||
<a href=@{LogoutR}>
|
<a href=@{LogoutR}>
|
||||||
Logout
|
Logout
|
||||||
$nothing
|
$nothing
|
||||||
<li role="presentation">
|
<li>
|
||||||
<a href=@{LoginR}>
|
<a href=@{LoginR}>
|
||||||
Login
|
Login
|
||||||
$if block == False
|
$if block == False
|
||||||
<li role="presentation">
|
<li>
|
||||||
<a href=@{SignupR}>
|
<a href=@{SignupR}>
|
||||||
Signup
|
Signup
|
||||||
<div .col-md-3 #search>
|
<div .col-md-3 #search>
|
||||||
|
|
Loading…
Reference in a new issue