lychee/src/styles/_header.scss

167 lines
3.0 KiB
SCSS
Raw Normal View History

/**
* @copyright 2014 by Tobias Reich
*/
header {
2014-11-08 10:30:25 +00:00
position: fixed;
height: 49px;
width: 100%;
2014-07-18 21:01:19 +00:00
background: linear-gradient(to bottom, #3E3E3E, #282828);
border-bottom: 1px solid #161616;
z-index: 1;
transition: transform .3s ease-out;
/* Modes ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
&.hidden {
transform: translateY(-60px);
}
2014-11-08 10:30:25 +00:00
&.loading {
transform: translateY(2px);
}
2014-11-08 10:30:25 +00:00
&.error {
transform: translateY(40px);
}
2014-11-08 10:30:25 +00:00
&.view {
2014-07-18 21:01:19 +00:00
background: none;
border-bottom: none;
2014-11-08 10:30:25 +00:00
&.error {
background-color: rgba(10, 10, 10, .99);
}
.button,
#title,
.tools {
text-shadow: none !important;
}
2014-11-08 10:30:25 +00:00
}
/* Title ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
#title {
position: absolute;
2014-11-08 10:30:25 +00:00
margin: 0 30%;
width: 40%;
2014-11-08 10:30:25 +00:00
padding: 15px 0;
color: #fff;
font-size: 16px;
font-weight: bold;
text-align: center;
2014-11-09 22:25:30 +00:00
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
2014-11-08 10:30:25 +00:00
&.editable { cursor: pointer; }
}
/* Button ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
.button {
color: #888;
font-family: 'FontAwesome';
font-size: 21px;
font-weight: bold;
text-decoration: none !important;
cursor: pointer;
2014-11-08 10:30:25 +00:00
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
&:hover {
color: #fff;
}
&.left {
float: left;
position: absolute;
padding: 16px 10px 8px 18px;
}
&.right {
float: right;
position: relative;
padding: 16px 19px 13px 11px;
}
}
2014-11-08 10:30:25 +00:00
#tools_albums,
#tools_album,
#tools_photo,
#button_signin {
display: none;
}
/* Button Divider ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
.button_divider {
float: right;
position: relative;
width: 14px;
height: 50px;
}
/* Search ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
#search {
float: right;
width: 80px;
2014-11-08 10:30:25 +00:00
margin: 12px 12px 0 0;
padding: 5px 12px 6px 12px;
background-color: #383838;
color: #fff;
2014-11-08 10:30:25 +00:00
border: 1px solid rgba(0, 0, 0, .6);
box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
outline: none;
border-radius: 50px;
opacity: .6;
transition: opacity .3s ease-out, transform .3s ease-out, box-shadow .3s, width .2s ease-out;
2014-07-18 21:01:19 +00:00
2014-11-08 10:30:25 +00:00
&:focus { width: 140px; }
2014-07-18 21:01:19 +00:00
2014-11-08 10:30:25 +00:00
&:focus ~ #clearSearch { opacity: 1; }
}
#clearSearch {
2014-01-28 13:04:09 +00:00
position: absolute;
top: 15px;
right: 81px;
padding: 0;
font-size: 20px;
opacity: 0;
transition: opacity .2s ease-out;
2014-07-18 21:01:19 +00:00
2014-11-08 10:30:25 +00:00
&:hover { opacity: 1; }
}
/* Tools ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
.tools {
float: right;
padding: 14px 8px;
color: #888;
font-size: 21px;
2014-11-08 10:30:25 +00:00
text-shadow: 0 -1px 0 #222;
cursor: pointer;
2014-11-08 10:30:25 +00:00
&:first-of-type { margin-right: 6px; }
&:hover a { color: #fff; }
.icon-star { color: #f0ef77; }
.icon-share.active { color: #ff9737; }
}
/* Hosted with Lychee ------------------------------------------------*/
2014-11-08 10:30:25 +00:00
#hostedwith {
float: right;
padding: 5px 10px;
margin: 13px 9px;
color: #888;
font-size: 13px;
2014-11-08 10:30:25 +00:00
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
display: none;
cursor: pointer;
2014-11-08 10:30:25 +00:00
&:hover {
background-color: rgba(0, 0, 0, .2);
border-radius: 100px;
}
}
2014-11-08 10:30:25 +00:00
}