You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lychee/src/styles/_header.scss

146 lines
2.7 KiB

/**
* @copyright 2014 by Tobias Reich
*/
header {
position: fixed;
height: 49px;
width: 100%;
background: linear-gradient(to bottom, #222222, #1a1a1a);
border-bottom: 1px solid #0f0f0f;
z-index: 1;
transition: transform .3s ease-out;
/* Modes ------------------------------------------------*/
&.hidden {
transform: translateY(-60px);
}
&.loading {
transform: translateY(2px);
}
&.error {
transform: translateY(40px);
}
&.view {
background: none;
border-bottom: none;
&.error { background-color: rgba(10, 10, 10, .99); }
}
/* Title ------------------------------------------------*/
#title {
position: absolute;
margin: 0 30%;
width: 40%;
padding: 15px 0;
color: #fff;
font-size: 16px;
font-weight: bold;
text-align: center;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
&.editable { cursor: pointer; }
}
/* Toolbars ------------------------------------------------*/
.toolbar {
display: none;
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0 10px;
}
/* Button ------------------------------------------------*/
.button {
display: inline-block;
padding: 17px 8px 15px;
width: 15px;
cursor: pointer;
&--left { float: left; }
&--right { float: right; }
.iconic {
fill: #aaa;
filter: drop-shadow( 0 -1px 0 rgba(0, 0, 0, .2) );
transition: fill .2s ease;
}
&:hover .iconic { fill: #fff; }
&--star.active .iconic { fill: #f0ef77; }
&--eye.active .iconic { fill: #ff9737; }
&#button_signin { display: none; }
}
/* Button Divider ------------------------------------------------*/
.button_divider {
float: right;
position: relative;
width: 14px;
height: 50px;
}
/* Search ------------------------------------------------*/
#search {
float: right;
width: 80px;
margin: 12px 12px 0 0;
padding: 5px 12px 6px 12px;
background-color: #222;
color: #fff;
border: 0;
outline: none;
border-radius: 50px;
opacity: .6;
transition: opacity .3s ease-out, transform .3s ease-out, box-shadow .3s, width .2s ease-out;
&:focus { width: 140px; }
&:focus ~ #clearSearch { opacity: 1; }
}
#clearSearch {
position: absolute;
top: 13px;
right: 78px;
padding: 0;
color: #888;
font-size: 20px;
opacity: 0;
transition: opacity .2s ease-out, color .2s ease-out;
cursor: pointer;
&:hover {
color: #fff;
opacity: 1;
}
}
/* Hosted with Lychee ------------------------------------------------*/
#hostedwith {
float: right;
padding: 5px 10px;
margin: 13px 9px;
color: #888;
font-size: 13px;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
border-radius: 100px;
display: none;
cursor: pointer;
&:hover { background-color: rgba(0, 0, 0, .3); }
}
}