mirror of https://github.com/perkeep/perkeep.git
161 lines
3.5 KiB
CSS
161 lines
3.5 KiB
CSS
/*
|
|
Copyright 2013 The Camlistore 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.
|
|
*/
|
|
|
|
.cam-nav {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
background: rgb(51, 51, 51);
|
|
font-family: 'Open Sans', sans-serif;
|
|
width: 275px;
|
|
box-shadow: 0.1em 0 1em 0.3em rgba(0, 0, 0, 0.25);
|
|
transition: width 75ms ease-out;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cam-nav.cam-nav-collapsed {
|
|
width: 36px;
|
|
}
|
|
|
|
.cam-nav>.cam-nav-close {
|
|
cursor: pointer;
|
|
height: 34px;
|
|
opacity: 0.6;
|
|
padding: 9px;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 3px;
|
|
width: 34px;
|
|
z-index: 1;
|
|
}
|
|
.cam-nav>.cam-nav-close:hover {
|
|
opacity: 0.9;
|
|
}
|
|
.cam-nav.cam-nav-collapsed>.cam-nav-close {
|
|
opacity: 0;
|
|
}
|
|
|
|
.cam-nav-item {
|
|
background-color: transparent;
|
|
background-position: 8px center;
|
|
background-repeat: no-repeat;
|
|
background-size: auto 17px;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 1);
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: 19px;
|
|
font-weight: 400;
|
|
margin: 0;
|
|
opacity: 0.9;
|
|
padding: 8px 11px 8px 36px;
|
|
text-align: left;
|
|
transition: color 300ms ease-out;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
|
|
/* This is a bummer, but it appears that different fonts can actually layout
|
|
at different heights for the same pixel size, thus we get a layout glitch
|
|
during load when the font load completes. 42px is the minimum of the size that
|
|
Firefox and Chrome render this box at with the above font size, padding,
|
|
etc. */
|
|
min-height: 42px;
|
|
}
|
|
|
|
.cam-nav-item:hover,
|
|
.cam-nav-item:focus {
|
|
background-color: rgb(60, 60, 60);
|
|
}
|
|
|
|
.cam-nav-searchitem:hover,
|
|
.cam-nav-searchitem:focus,
|
|
.cam-logo:hover,
|
|
.cam-logo:focus {
|
|
background-color:inherit!important;
|
|
}
|
|
|
|
.cam-nav.cam-nav-collapsed .cam-nav-item {
|
|
color: rgba(255, 255, 255, 0);
|
|
}
|
|
|
|
.cam-nav-item:first-child {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.cam-nav-searchitem {
|
|
cursor: default;
|
|
padding-left: 34px;
|
|
}
|
|
|
|
.cam-nav-searchitem input {
|
|
border: 1px rgba(255, 255, 255, 0);
|
|
border-style: solid none;
|
|
cursor: default;
|
|
background: none;
|
|
font: inherit;
|
|
color: inherit;
|
|
transition: border-color 200ms ease-out;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 26px;
|
|
width: 207px;
|
|
}
|
|
|
|
.cam-nav-searchitem input::-webkit-input-placeholder {
|
|
color:inherit;
|
|
}
|
|
.cam-nav-searchitem input::-moz-placeholder {
|
|
color:inherit;
|
|
}
|
|
.cam-nav-searchitem input:-ms-input-placeholder {
|
|
color:inherit;
|
|
}
|
|
|
|
.cam-nav-searchitem input:focus {
|
|
outline: none;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.cam-nav-searchitem input:focus::-webkit-input-placeholder {
|
|
transition: color 200ms ease-out;
|
|
color:rgba(255, 255, 255, 0.5);
|
|
}
|
|
.cam-nav-searchitem input:focus::-moz-placeholder {
|
|
transition: color 200ms ease-out;
|
|
color:rgba(255, 255, 255, 0.5);
|
|
}
|
|
.cam-nav-searchitem input:focus:-ms-input-placeholder {
|
|
transition: color 200ms ease-out;
|
|
color:rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.cam-logo {
|
|
bottom: 0;
|
|
font-size: 15px;
|
|
min-height: 0;
|
|
left: 0;
|
|
opacity: 0.8;
|
|
padding: 4px 9px 4px 31px;
|
|
position: absolute;
|
|
text-decoration: none;
|
|
width: auto;
|
|
}
|
|
|
|
.cam-logo:hover {
|
|
text-decoration: underline;
|
|
}
|