Image toolbar
by Will Stott
HTML
<div class='out'>
<div class='mid'><div class='mid'>
<div class='in'>
<!-- Buttons! -->
<ul>
<li id="fit-w" class= "active"></li>
<li id="fit-h"></li>
<li id="actual"></li>
</ul>
</div>
</div></div>
</div>
CSS
body {
width: 100%;
background: url(http://cdn-media.nationaljournal.com/?controllerName=image&action=get&id=43498&format=nj2013_10_columns);
-webkit-user-select: none;
}
div {
opacity:0.5;
transition: opacity 0.2s;
display: inline-flex;
height: 50%;
/* background: rgba(0, 0, 0, 0.4); */
}
div:hover {
opacity:1;
}
.out {
opacity:0;
width: 100%;
position: absolute;
bottom: 0px;
}
.out div {
margin: auto;
width: 80%;
}
.in {
background: rgba(0, 0, 0, 0.8);
height: 35px;
min-width: 300px;
max-width: 500px;
border-radius: 8px;
border: 1px;
border-style: solid;
border-color: lightgrey;
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
}
ul {
margin: auto;
padding: 0px;
color: white;
width: 100%;
}
li {
display: inline-flex;
width: 33.3%;
height: 35px;
text-align: center;
background-repeat: no-repeat;
background-position: center;
background-origin: content-box;
opacity:0.5;
border-radius: 8px;
}
.active {
opacity:0.94;
background-color: rgba(255,255,255,0.2);
}
li:hover {
opacity:1;
}
#fit-w {
background-image:url('https://dl.dropboxusercontent.com/u/4366411/Images/extension/fitW.png');
float: left;
}
#fit-h {
background-image:url('https://dl.dropboxusercontent.com/u/4366411/Images/extension/fitH.png');
}
#actual {
background-image:url('https://dl.dropboxusercontent.com/u/4366411/Images/extension/100.png');
float:right;
}