mirror of https://github.com/rancher/ui.git
header fixes
This commit is contained in:
parent
9377136d49
commit
f283251a69
|
|
@ -1,12 +1,12 @@
|
||||||
{{#if project}}
|
{{#if project}}
|
||||||
<div class="dropdown btn-group project-btn {{if hasKubernetes 'alt'}}">
|
<button class="btn dropdown project-btn r-p10 {{if hasKubernetes 'alt'}}">
|
||||||
<a role="button" class="btn btn-link dropdown-toggle text-left" href="#" aria-haspopup="true" aria-expanded="false" aria-label="{{t 'nav.environment.label'}}">
|
<a role="button" class="btn btn-link dropdown-toggle r-p0" href="#" aria-haspopup="true" aria-expanded="false" aria-label="{{t 'nav.environment.label'}}">
|
||||||
|
<label>{{t 'nav.environment.label'}}</label>
|
||||||
<span class="clip">
|
<span class="clip">
|
||||||
<i class="{{project.icon}} project-icon icon-fw"></i> {{project.displayName}}
|
<i class="{{project.icon}} project-icon icon-fw"></i> {{project.displayName}}
|
||||||
</span>
|
</span>
|
||||||
<i class="icon icon-chevron-down project-chevron"></i>
|
<i class="icon icon-chevron-down project-chevron"></i>
|
||||||
<span class="sr-only">{{t 'nav.srToggleDropdown'}}</span>
|
<span class="sr-only">{{t 'nav.srToggleDropdown'}}</span>
|
||||||
<label>{{t 'nav.environment.label'}}</label>
|
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu dropdown-menu-right project-menu" role="menu" data-dropdown-id="enviroment">
|
<ul class="dropdown-menu dropdown-menu-right project-menu" role="menu" data-dropdown-id="enviroment">
|
||||||
{{#if projectChoices.length}}
|
{{#if projectChoices.length}}
|
||||||
|
|
@ -43,18 +43,18 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li>{{#link-to "settings.projects"}}{{t 'nav.environment.manage'}}{{/link-to}}</li>
|
<li>{{#link-to "settings.projects"}}{{t 'nav.environment.manage'}}{{/link-to}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (and hasKubernetes k8s.namespace)}}
|
{{#if (and hasKubernetes k8s.namespace)}}
|
||||||
<div class="dropdown btn-group project-btn kub-btn">
|
<button class="dropdown btn project-btn kub-btn r-p10">
|
||||||
<a role="button" class="btn btn-link dropdown-toggle text-left clip" href="#" aria-haspopup="true" aria-expanded="false" aria-label="{{t 'nav.namespace.label'}}">
|
<a role="button" class="btn btn-link dropdown-toggle text-left r-p0" href="#" aria-haspopup="true" aria-expanded="false" aria-label="{{t 'nav.namespace.label'}}">
|
||||||
<span class="clip">
|
|
||||||
<i class="icon icon-folder-open icon-fw"></i> {{k8s.namespace.displayName}}
|
|
||||||
</span>
|
|
||||||
<i class="icon icon-chevron-down"></i>
|
|
||||||
<span class="sr-only">{{nav.srToggleDropdown}}</span>
|
|
||||||
<label>{{t 'nav.namespace.label'}}</label>
|
<label>{{t 'nav.namespace.label'}}</label>
|
||||||
|
<span class="clip">
|
||||||
|
<i class="icon icon-folder-open icon-fw project-icon"></i> {{k8s.namespace.displayName}}
|
||||||
|
</span>
|
||||||
|
<i class="icon icon-chevron-down project-chevron"></i>
|
||||||
|
<span class="sr-only">{{nav.srToggleDropdown}}</span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu dropdown-menu-right project-menu" role="menu" data-dropdown-id="namespace">
|
<ul class="dropdown-menu dropdown-menu-right project-menu" role="menu" data-dropdown-id="namespace">
|
||||||
{{#if k8s.namespaces.length}}
|
{{#if k8s.namespaces.length}}
|
||||||
|
|
@ -86,5 +86,5 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li>{{#link-to "k8s-tab.namespaces"}}{{t 'nav.namespace.manage'}}{{/link-to}}</li>
|
<li>{{#link-to "k8s-tab.namespaces"}}{{t 'nav.namespace.manage'}}{{/link-to}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,14 @@
|
||||||
<span class="sr-only">{{t 'nav.srToggleNav'}}</span>
|
<span class="sr-only">{{t 'nav.srToggleNav'}}</span>
|
||||||
<i class="icon icon-ellipsis"></i>
|
<i class="icon icon-ellipsis"></i>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-brand logo"></a>
|
<div class="btn-group">
|
||||||
{{page-header-environment
|
<button class="navbar-brand logo btn"></button>
|
||||||
currentPath=currentPath
|
{{page-header-environment
|
||||||
switchProject="switchProject"
|
currentPath=currentPath
|
||||||
switchNamespace="switchNamespace"
|
switchProject="switchProject"
|
||||||
}}
|
switchNamespace="switchNamespace"
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="navbar" class="navbar-collapse collapse">
|
<div id="navbar" class="navbar-collapse collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
@ -93,3 +95,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
|
@ -83,6 +83,25 @@ HEADER {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size : 14px;
|
font-size : 14px;
|
||||||
|
|
||||||
|
.navbar-nav {
|
||||||
|
margin-left: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .navbar-header {
|
||||||
|
margin-left: -15px;
|
||||||
|
|
||||||
|
.btn-group {
|
||||||
|
> .btn {
|
||||||
|
margin-left: -5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
margin: 0!important;
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-toggle {
|
.navbar-toggle {
|
||||||
padding: 11px;
|
padding: 11px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -97,7 +116,7 @@ HEADER {
|
||||||
border-width: 8px;
|
border-width: 8px;
|
||||||
border-right-color: $logo-bg;
|
border-right-color: $logo-bg;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -15px;
|
// left: -15px;
|
||||||
top: 12px;
|
top: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -250,7 +269,17 @@ HEADER {
|
||||||
color: white;
|
color: white;
|
||||||
background: $project-btn;
|
background: $project-btn;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
float: none;
|
||||||
|
|
||||||
|
label {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
label {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
span {
|
span {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
@ -287,11 +316,10 @@ HEADER {
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
text-transform: inherit;
|
text-transform: inherit;
|
||||||
padding: 0 10px;
|
position: relative;
|
||||||
|
|
||||||
&.dropdown-toggle {
|
&.dropdown-toggle {
|
||||||
line-height: inherit !important;
|
line-height: inherit !important;
|
||||||
height: 45px !important;
|
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: -webkit-focus-ring-color auto 5px !important;
|
outline: -webkit-focus-ring-color auto 5px !important;
|
||||||
|
|
@ -299,11 +327,6 @@ HEADER {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& * {
|
|
||||||
display: inline-block;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.clip {
|
.clip {
|
||||||
max-width: 155px;
|
max-width: 155px;
|
||||||
}
|
}
|
||||||
|
|
@ -324,6 +347,8 @@ HEADER {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
top: -12px;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -587,7 +587,7 @@ HR {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
// color: $input-color;
|
|
||||||
&.dropdown-menu-right {
|
&.dropdown-menu-right {
|
||||||
left: auto;
|
left: auto;
|
||||||
right: auto;
|
right: auto;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue