style(sidebar): make sidebar-header fixed, use flex instead of absolute to position footer (#1315)

pull/1336/head
1138-4EB 7 years ago committed by Anthony Lapenna
parent b5629c5b1a
commit f8451e944a

@ -1,13 +1,14 @@
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar">
<li class="sidebar-main">
<div class="sidebar-header">
<a ng-click="toggleSidebar()" class="interactive">
<img ng-if="logo" ng-src="{{ logo }}" class="img-responsive logo">
<img ng-if="!logo" src="images/logo.png" class="img-responsive logo" alt="Portainer">
<span class="menu-icon glyphicon glyphicon-transfer"></span>
</a>
</li>
</div>
<div class="sidebar-content">
<ul class="sidebar">
<li class="sidebar-title">
<span>Active endpoint</span>
</li>
@ -77,8 +78,7 @@
</div>
</li>
</ul>
<div class="sidebar-footer">
<div class="col-sm-12">
<div class="sidebar-footer-content">
<img src="images/logo_small.png" class="img-responsive logo" alt="Portainer">
<span class="version">{{ uiVersion }}</span>
</div>

@ -278,7 +278,9 @@ a[ng-click]{
}
ul.sidebar {
bottom: 40px;
position: relative;
overflow: hidden;
flex-shrink: 0;
}
ul.sidebar .sidebar-title {
@ -292,7 +294,32 @@ ul.sidebar .sidebar-list a.active {
background: #2d3e63;
}
.sidebar-footer .logo {
.sidebar-header {
height: 60px;
list-style: none;
text-indent: 20px;
font-size: 18px;
background: #2d3e63;
}
.sidebar-header a { color: #fff; }
.sidebar-header a:hover {text-decoration: none; }
.sidebar-header .menu-icon {
float: right;
padding-right: 28px;
line-height: 60px;
}
#page-wrapper:not(.open) .sidebar-footer-content {
display: none;
}
.sidebar-footer-content {
text-align: center;
}
.sidebar-footer-content .logo {
width: 100%;
max-width: 100px;
height: 100%;
@ -300,12 +327,27 @@ ul.sidebar .sidebar-list a.active {
margin: 2px 0 2px 20px;
}
.sidebar-footer .version {
.sidebar-footer-content .version {
font-size: 11px;
margin: 11px 20px 0 7px;
color: #fff;
}
#sidebar-wrapper {
display: flex;
flex-flow: column;
}
.sidebar-content {
display: flex;
flex-direction: column;
justify-content: space-between;
overflow-y: auto;
overflow-x: hidden;
height: 100%;
}
#image-layers .btn{
padding: 0;
}

Loading…
Cancel
Save