1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

no org callout on sidebar

This commit is contained in:
Kyle Spearrin 2017-04-18 11:52:44 -04:00
parent 9f32e76a99
commit 69ce07ef01
2 changed files with 28 additions and 6 deletions

View File

@ -99,8 +99,14 @@
</li>
</ul>
<div class="subsection">
<ul class="list-inline">
<li ng-repeat="org in orgs | orderBy: ['name']">
<div ng-if="!orgs.length" class="hidden-collapsed">
<p>You do not belong to any organizations.</p>
<a ui-sref="backend.user.settingsCreateOrg" class="btn btn-default btn-flat btn-block">
Create an Organization
</a>
</div>
<ul class="list-inline" ng-if="orgs.length">
<li ng-repeat="org in orgs | orderBy: ['name'] track by org.id">
<a href="javascript:void(0)" ng-click="viewOrganization(org)">
<letter-avatar data="{{org.name}}" avclass="img-responsive img-rounded" round="false"
avheight="40" avwidth="40" bgcolor="#1a2226"></letter-avatar>

View File

@ -44,14 +44,30 @@ h1, h2, h3, h4, h5, h6,
}
}
.sidebar .subsection {
padding: 10px;
.sidebar {
color: #bbbbbb;
a.btn {
color: @btn-default-color;
}
.subsection {
padding: 10px;
text-align: center;
}
}
.sidebar-collapse .sidebar .list-inline li {
padding-right: 0;
.sidebar-collapse {
.sidebar .list-inline li {
padding-right: 0;
}
.hidden-collapsed {
display: none;
}
}
form div.validation-errors ul {
margin-bottom: 0;
padding-left: 20px;