perkeep/server/perkeepd/ui/header.css

168 lines
3.2 KiB
CSS

/*
Copyright 2013 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";
@cam-header-bg: #3a3a3a;
.cam-header {
cursor: default;
font-family: 'Open Sans', sans-serif;
font-weight: 700;
font-size: 13px;
left: 0;
position: fixed;
top: 0;
z-index: 1;
.transform(translateZ(0));
}
.cam-header-main {
background: @cam-header-bg;
border-collapse: true;
border-spacing: 0;
box-shadow: 0.1em 0 0.5em 0.1em rgba(0, 0, 0, 0.4);
color: #e4e4e4;
height: 38px;
position: relative;
width: 100%;
z-index: 3;
}
.cam-header.cam-header-sub-active .cam-header-main {
box-shadow: none;
}
.cam-header.cam-header-sub-active .cam-header-sub {
box-shadow: 0.1em 0 0.5em 0.1em rgba(0, 0, 0, 0.4);
.transform(translate3d(0, 0, 0));
}
.cam-header-item {
padding: 0;
position: relative;
vertical-align: middle;
white-space: nowrap;
}
.cam-header-title {
margin-top: 10px;
padding-right: 2em;
}
.cam-header-title span {
font-size: 14px;
}
.cam-header-title span:first-child {
margin-right: 5px;
}
.cam-header-menu-dropdown {
box-shadow: 0.1em 0 1em 0.3em rgba(0, 0, 0, 0.25);
cursor: default;
left: 0;
font-weight: 500;
position: absolute;
top: 38px;
white-space: nowrap;
min-width: 140px;
max-width: 280px;
.transition-transform(100ms ease-out);
z-index: 2;
}
.cam-header-menu-item {
background: @cam-header-bg;
border-top: 1px solid #666;
color: #eee;
cursor: pointer;
display: block;
padding: 10px 24px;
position: relative;
text-decoration: none;
.transition(background-color 100ms ease-out);
overflow: hidden;
text-overflow: ellipsis;
}
.cam-header-menu-item-icon {
position: absolute;
left: 8px;
top: 13px;
}
.cam-header-menu-item-error {
color: rgb(255, 157, 148);
.transition(background-color 100ms ease-out);
}
.cam-header-menu-item:hover {
background-color: #444;
}
.cam-header-main input {
color: white;
height: 30px;
width: 100%;
background: #444;
border: 1px solid #555;
outline: none;
padding: 1ex;
font-size: 110%;
font-family: default;
font-weight: normal;
.transition(border-color 100ms ease-out);
}
.cam-header-main input:focus {
background: #4c4c4c;
border-color: #888;
}
.cam-header-main-controls {
padding-left: 1em;
}
.cam-header-main-controls.cam-header-main-controls-empty {
padding-left: 6px;
}
.cam-header-main-controls a {
color: #eee;
display: inline-block;
height: 38px;
font-family: 'Open Sans', sans-serif;
font-weight: 500;
font-size: 13px;
line-height: 38px;
padding-left: 1em;
padding-right: 1em;
text-decoration: none;
white-space: nowrap;
}
.cam-header-main-controls a:hover {
background: #555;
}
.cam-header-main-controls a.cam-header-main-control-active {
height: 38px;
border-bottom: 3px solid rgb(232,139,131);
}