lychee/assets/scss/infobox.scss

171 lines
3.3 KiB
SCSS
Raw Normal View History

/**
* @name infobox.css
* @author Tobias Reich
* @copyright 2014 by Tobias Reich
*/
#infobox_overlay {
z-index: 3;
position: fixed;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
2014-06-20 21:22:36 +00:00
background-color: rgba(0,0,0,.8);
}
#infobox {
z-index: 4;
position: fixed;
right: 0px;
2014-03-16 18:23:23 +00:00
width: 350px;
height: 100%;
background-color: rgba(20,20,20,0.98);
box-shadow: -1px 0px 2px rgba(0,0,0,.8);
display: none;
2014-03-16 18:23:23 +00:00
transform: translateX(370px);
transition: transform .3s cubic-bezier(0.51,.92,.24,1.15);
}
#infobox.active {
2014-03-16 18:23:23 +00:00
transform: translateX(50px);
}
/* Misc ------------------------------------------------*/
#infobox .wrapper {
float: left;
height: 100%;
2014-03-16 18:23:23 +00:00
width: 300px;
overflow: scroll;
2014-06-26 10:42:37 +00:00
-webkit-overflow-scrolling: touch;
}
#infobox .edit {
display: inline;
margin-left: 3px;
width: 20px;
height: 5px;
cursor: pointer;
}
#infobox .bumper {
float: left;
width: 100%;
height: 50px;
}
/* Header ------------------------------------------------*/
#infobox .header {
float: left;
height: 49px;
width: 100%;
2014-07-18 21:01:19 +00:00
background-image: linear-gradient(to bottom, #2A2A2A, #131313);
border-bottom: 1px solid #000;
}
#infobox .header h1 {
position: absolute;
2014-03-16 18:23:23 +00:00
margin: 15px 30% 15px calc(30% - 25px);
width: 40%;
color: #fff;
font-size: 16px;
font-weight: bold;
text-align: center;
2014-06-20 21:22:36 +00:00
text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
}
#infobox .header a {
float: right;
2014-03-16 18:23:23 +00:00
padding: 15px 65px 15px 15px;
color: #fff;
font-size: 20px;
font-weight: bold;
2014-06-20 21:22:36 +00:00
text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
opacity: .5;
cursor: pointer;
}
#infobox .header a:hover {
opacity: 1;
}
/* Seperator ------------------------------------------------*/
#infobox .separator {
float: left;
width: 100%;
border-top: 1px solid rgba(255,255,255,.04);
box-shadow: 0px -1px 0px #000;
}
#infobox .separator h1 {
margin: 20px 0px 5px 20px;
color: #fff;
font-size: 14px;
font-weight: bold;
2014-06-20 21:22:36 +00:00
text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
}
/* Table ------------------------------------------------*/
#infobox table {
float: left;
margin: 10px 0px 15px 20px;
}
#infobox table tr td {
padding: 5px 0px;
color: #fff;
font-size: 14px;
line-height: 19px;
2014-03-16 18:23:23 +00:00
2014-02-08 20:43:37 +00:00
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
}
#infobox table tr td:first-child {
width: 110px;
}
#infobox table tr td:last-child {
padding-right: 10px;
}
/* Tags ------------------------------------------------*/
#infobox #tags {
width: calc(100% - 40px);
margin: 16px 20px 12px 20px;
color: #fff;
display: inline-block;
}
#infobox #tags .empty {
font-size: 14px;
margin-bottom: 8px;
}
2014-03-16 18:23:23 +00:00
#infobox #tags .edit {
display: inline-block;
}
2014-03-16 18:23:23 +00:00
#infobox #tags .empty .edit {
display: inline;
}
2014-03-16 18:23:23 +00:00
#infobox .tag {
float: left;
padding: 4px 7px;
margin: 0px 6px 8px 0px;
background-color: rgba(0,0,0,.5);
border: 2px solid rgba(255,255,255,.3);
border-radius: 100px;
font-size: 12px;
transition: border .3s;
}
#infobox .tag:hover {
border: 2px solid #aaa;
}
#infobox .tag span {
float: right;
width: 0px;
padding: 0px;
margin: 0px 0px -2px 0px;
color: red;
2014-02-02 22:55:18 +00:00
font-size: 11px;
cursor: pointer;
overflow: hidden;
transform: scale(0);
transition: width .3s, margin .3s, transform .3s;
}
#infobox .tag:hover span {
width: 10px;
margin: 0px 0px -2px 6px;
transform: scale(1);
}