perkeep/server/perkeepd/ui/sidebar.css

101 lines
1.9 KiB
CSS

/*
Copyright 2014 The Perkeep Authors.
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.
*/
@import (less) "prefix-free.css";
/* TODO: can the positioning (top: 38px) be pulled from the header.css? */
.cam-sidebar {
width: 250px;
height: 100%;
position: fixed;
top: 38px;
right: 0;
background-color: #e6e6e6;
color: #444;
.transform(translate3d(0, 0, 0));
.transition-transform(100ms ease-out);
&.cam-sidebar-hidden {
.transform(translate3d(100%, 0, 0));
}
}
.cam-sidebar {
padding: 5px 0px;
}
.cam-sidebar, .cam-sidebar-collapsible-section-header {
> .header {
border-bottom: 1px solid #ccc;
display: inline-block;
width: 100%;
cursor: default;
font-family: 'Open Sans', sans-serif;
font-weight: 100;
font-size: 14px;
line-height: 38px;
padding: 0 28px;
text-align: left;
vertical-align: middle;
white-space: nowrap;
}
> button {
width: 100%;
height: 38px;
cursor: pointer;
background: transparent;
border: none;
font-family: 'Open Sans', sans-serif;
font-weight: 100;
font-size: 14px;
padding: 0 28px;
position: relative;
text-align: left;
white-space: nowrap;
> i {
color: #666;
cursor: pointer;
display: block;
left: 2px;
line-height: 38px;
position: absolute;
text-align: center;
top: 0;
width: 26px;
}
&:focus {
outline: none;
}
&:hover {
background: #d6d6d6;
}
&:active {
outline: none;
}
}
}
.cam-sidebar-section {
padding: 0 28px;
}