зеркало из https://github.com/mozilla/treeherder.git
Bug 1199770 - Clean up navbar menu button classes
This commit is contained in:
Родитель
8b52d1440f
Коммит
cea217edf4
|
@ -84,6 +84,16 @@ input:focus::-moz-placeholder {
|
|||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Spacing for menus with adjacent checkboxes */
|
||||
.checkbox-dropdown-menu {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
/* Spacing for menus with adjacent icons */
|
||||
.icon-menu li a span {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.navbar-right {
|
||||
margin-right: 0px; /* override boostrap 3.3.5 behaviour -- doesn't work with the way we align our navbar */
|
||||
}
|
||||
|
@ -103,37 +113,11 @@ th-watched-repo {
|
|||
float: left;
|
||||
}
|
||||
|
||||
.repo-menu {
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
.repo-dropdown-menu {
|
||||
margin-right: 4px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
/* Spacing for all menu entries with adjacent icons */
|
||||
.icon-menu li a span {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
/* Override bootstrap for flush right navbar menus */
|
||||
.navbar-collapse {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.navbar .repo-menu-form {
|
||||
padding: 5px 10px 0;
|
||||
overflow-y: scroll;
|
||||
top: inherit;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.nav-repo-btn {
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.nav-menu-btn {
|
||||
margin-right: -4px;
|
||||
padding-left: 14px;
|
||||
|
@ -142,6 +126,8 @@ th-watched-repo {
|
|||
|
||||
.nav-help-btn {
|
||||
margin-right: -4px;
|
||||
padding-left: 12px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.nav-help-icon {
|
||||
|
@ -169,6 +155,11 @@ th-watched-repo {
|
|||
padding-right: 27px;
|
||||
}
|
||||
|
||||
.nav-persona-btn {
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.watched-repo-main-btn {
|
||||
border-right: 0;
|
||||
padding-right: 5px;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
ng-if="user.loggedin">
|
||||
<button id="logoutLabel" title="Logged in as: {{user.email}}" role="button"
|
||||
href="#" data-toggle="dropdown" data-target="#"
|
||||
class="btn btn-view-nav btn-right-navbar nav-repo-btn">
|
||||
class="btn btn-view-nav btn-right-navbar nav-persona-btn">
|
||||
<div class="nav-user-icon">
|
||||
<span class="fa fa-user pull-left"></span>
|
||||
</div>
|
||||
|
|
|
@ -29,10 +29,10 @@
|
|||
</span>
|
||||
|
||||
<!-- Infra Menu -->
|
||||
<span class="repo-menu dropdown">
|
||||
<span class="dropdown">
|
||||
<button id="infraLabel" title="Infrastructure status" role="button"
|
||||
href="#" data-toggle="dropdown" data-target="#"
|
||||
class="btn btn-view-nav btn-right-navbar nav-repo-btn">Infra
|
||||
class="btn btn-view-nav btn-right-navbar nav-menu-btn">Infra
|
||||
<span class="fa fa-angle-down lightgray"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="infraLabel"
|
||||
|
@ -42,13 +42,14 @@
|
|||
|
||||
<!-- Repos Menu -->
|
||||
<span ng-controller="RepositoryMenuCtrl" >
|
||||
<span th-repo-dropdown-container class="repo-menu dropdown">
|
||||
<span th-repo-dropdown-container class="dropdown">
|
||||
<button id="repoLabel" title="Watch a repo" role="button"
|
||||
href="#" data-toggle="dropdown" data-target="#"
|
||||
class="btn btn-view-nav btn-right-navbar nav-repo-btn">Repos
|
||||
class="btn btn-view-nav btn-right-navbar nav-menu-btn">Repos
|
||||
<span class="fa fa-angle-down lightgray"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu repo-dropdown-menu" role="menu" aria-labelledby="repoLabel">
|
||||
<ul class="dropdown-menu checkbox-dropdown-menu"
|
||||
role="menu" aria-labelledby="repoLabel">
|
||||
<span ng-repeat="(group_order, group) in groupedRepos()">
|
||||
<li role="presentation" class="divider" ng-hide="$first"></li>
|
||||
<li role="presentation" class="dropdown-header">{{::group.name}}</li>
|
||||
|
@ -72,7 +73,7 @@
|
|||
</span>
|
||||
|
||||
<!-- Help Menu -->
|
||||
<span class="repo-menu dropdown">
|
||||
<span class="dropdown">
|
||||
<button id="helpLabel" title="Treeherder help" role="button"
|
||||
href="#" data-toggle="dropdown" data-target="#"
|
||||
class="btn btn-view-nav btn-right-navbar nav-help-btn">
|
||||
|
|
Загрузка…
Ссылка в новой задаче