mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
set same layout to user menu and section menu
This commit is contained in:
parent
6f73c9ee09
commit
42f17f11e0
@ -1,52 +1,88 @@
|
|||||||
.navigation {
|
.navigation {
|
||||||
background-color: $chill-blue;
|
background-color: $chill-blue;
|
||||||
|
|
||||||
|
|
||||||
a.more:after {
|
a.more:after {
|
||||||
color: $chill-dark-gray;
|
color: $chill-dark-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.nav-link2 {
|
li.nav-link2 {
|
||||||
a {
|
a {
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.lang-selection {
|
&.lang-selection {
|
||||||
color: $chill-light-gray;
|
|
||||||
font-size: 0.7em;
|
|
||||||
|
|
||||||
a.more:after {
|
|
||||||
color: $chill-light-gray;
|
color: $chill-light-gray;
|
||||||
}
|
font-size: 0.7em;
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
a.more:after {
|
||||||
top: 58px;
|
color: $chill-light-gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
ul {
|
||||||
padding-left: 0;
|
top: 58px;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
div.nav, div.navigation-search {
|
a {
|
||||||
float: right;
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
input[type=search] {
|
div.nav, div.navigation-search {
|
||||||
padding: 0.2em;
|
float: right;
|
||||||
float: left;
|
|
||||||
|
|
||||||
border: none;
|
input[type=search] {
|
||||||
}
|
padding: 0.2em;
|
||||||
|
float: left;
|
||||||
button {
|
|
||||||
color: $chill-light-gray;
|
border: none;
|
||||||
background-color: $chill-blue;
|
}
|
||||||
padding: 0 0 0 7px;
|
|
||||||
top: inherit;
|
button {
|
||||||
font-size: 1.2em;
|
color: $chill-light-gray;
|
||||||
position: unset;
|
background-color: $chill-blue;
|
||||||
float: left;
|
padding: 0 0 0 7px;
|
||||||
}
|
top: inherit;
|
||||||
}
|
font-size: 1.2em;
|
||||||
|
position: unset;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
li.user-menu {
|
||||||
|
min-width: 14rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.user-menu-list {
|
||||||
|
|
||||||
|
li.user-menu__entry {
|
||||||
|
display: block;
|
||||||
|
background-color: $chill-dark-gray;
|
||||||
|
border-bottom: 1px solid #FFF;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
line-height: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.user-menu__entry--warning-entry {
|
||||||
|
background-color: $chill-red;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
span.notification-counter {
|
||||||
|
display: inline-block;
|
||||||
|
padding: .25em .6em .25rem .6em;
|
||||||
|
font-size: 100%;
|
||||||
|
line-height: 1;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
border-radius: 10rem;
|
||||||
|
background-color: $chill-red;
|
||||||
|
color: $white;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-left: .5rem;
|
||||||
|
}
|
||||||
}
|
}
|
@ -16,18 +16,27 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#}
|
#}
|
||||||
|
|
||||||
<li class="nav-link2">
|
<li class="nav-link2 user-menu">
|
||||||
<div class="li-content">
|
<div class="li-content">
|
||||||
<a href="javascript:void(0)" style="font-size: 0.8em; font-family: 'Open Sans'; font-weight:300;">
|
<a href="javascript:void(0)" style="font-size: 0.8em; font-family: 'Open Sans'; font-weight:300;">
|
||||||
{{ 'Welcome' | trans }}<br/>
|
{{ 'Welcome' | trans }}<br/>
|
||||||
<b>{{ app.user.username }}{{ render(controller('ChillMainBundle:UI:showNotificationUserCounter')) }}</b>
|
<b>{{ app.user.username }}{{ render(controller('ChillMainBundle:UI:showNotificationUserCounter')) }}</b>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<ul class="submenu width-11-em" style="padding-left: 0; padding-right: 0; background-color:transparent;">
|
<ul class="submenu width-11-em user-menu-list" style="padding-left: 0; padding-right: 0; background-color:transparent;">
|
||||||
{% for menu in menus %}
|
{% for menu in menus %}
|
||||||
<li style="display:block; background-color: #333333; border-bottom: 1px solid #FFF;padding-top:0; padding-bottom:0; padding-left:1.5em;">
|
<li style="display:block; background-color: #333333; padding-left:1.5em; border-bottom:1px; border-bottom: 1px solid #FFF;padding-top:0; padding-bottom:0;">
|
||||||
<a href="{{ menu.uri }}" style="font-family: 'Open Sans'; font-weight:300; font-size: 0.9em;">{% if menu.extras.icon is defined %}<i class="fa fa-{{ menu.extras.icon }}"></i> {% endif %}{{ menu.label|trans }}</a>
|
<div style="margin-bottom:2px;">
|
||||||
</li>
|
<div style="font-family: 'Open Sans'; font-weight:300; font-size: 0.75em; text-align:left; height: 46px; display:inline-block; width: calc(100% - 5em - 1px); vertical-align:top;">
|
||||||
|
<a href="{{ menu.uri }}">{{ menu.label|trans }}</a>
|
||||||
|
</div>
|
||||||
|
<div style="background-color: #333333; text-align:center;width: 2em; margin-left:-0.15em; font-size:1.5em; color:#FFF; height: 46px; display:inline-block; vertical-align:top;float:right">{% spaceless %}
|
||||||
|
{% if menu.extras.icon is defined %}
|
||||||
|
<i class="fa fa-{{ menu.extras.icon }}"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% endspaceless %}</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user