blob: 10d97cc44622ed142c92e4f2cfb66dd8cb0efe20 [file] [log] [blame]
// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
.sidebar {
grid-area: sidebar;
z-index: 4;
background-color: #262f3c;
overflow-y: auto;
>* {
border-bottom: 1px solid #404854;
}
input[type=file] { display:none; }
>header {
font-family: 'Raleway';
height: var(--topbar-height);
line-height: var(--topbar-height);
vertical-align: middle;
padding: 0 20px;
color: #fff;
font-weight: 400;
font-size: 24px;
letter-spacing: 0.5px;
&:before {
width: 32px;
height: 32px;
display: inline-block;
content: '';
vertical-align: middle;
background-image: url('assets/logo.png');
background-size: contain;
background-repeat: no-repeat;
margin-right: 15px;
}
}
>section {
@include transition();
padding: 20px 0;
max-height: 80px;
overflow: hidden;
.section-header {
cursor: pointer;
>h1,
>h2 {
font-family: 'Raleway';
letter-spacing: 0.25px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0 24px;
}
>h1 {
color: #fff;
font-size: 15px;
font-weight: 500;
}
>h2 {
@include transition();
color: rgba(255, 255, 255, 0.5);
font-size: 12px;
margin-top: 8px;
font-weight: 400;
}
}
&:hover {
background-color: #373f4b;
}
&.expanded {
background-color: #19212b;
max-height: unset;
.section-header h2 {
opacity: 0;
}
.section-content {
pointer-events: inherit;
opacity: 1;
}
}
}
.section-content {
pointer-events: none;
@include transition();
opacity: 0;
color: #b4b7ba;
a {
color: #b4b7ba;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
@include transition();
a {
line-height: 24px;
font-size: 14px;
font-weight: 400;
font-family: 'Raleway';
letter-spacing: 0.5px;
padding: 5px 24px;
text-decoration: none;
display: block;
}
.material-icons {
vertical-align: middle;
margin-right: 10px;
}
&:hover {
background-color: #373f4b;
}
}
}
}