chaos/css/main.css

174 lines
2.5 KiB
CSS

/** main layout **/
#parameters, #renderer {
position: fixed;
height: 100%;
top: 0;
}
/* parameters tab */
#parameters {
width: 25%;
right: 0;
overflow-y: auto;
padding: 10px;
background: #ecf0f1;
}
#parameters .bottom {
position: absolute;
bottom: 0;
left: 0;
text-align: right;
margin: 0;
padding: 10px;
width: 100%;
}
/* rendering tab */
#renderer {
width: 75%;
left: 0;
}
#renderer h3 {
margin-top: 0;
position: relative;
z-index: 1;
background: white;
display: inline-block;
padding: 20px;
}
#renderer h3:hover {
opacity: 0;
cursor: default;
}
#renderer canvas {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
#renderer #zoomer {
position: absolute;
bottom: 20px;
left: 20px;
z-index: 1;
}
/** individual elements **/
/* box model */
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-shadow: border-box;
}
/* links in buttons (download image) */
button a, button a:hover {
color: inherit;
}
/* inputs */
:focus {
outline: none !important; /* fix bootstrap behaviour */
}
/* slider */
input[type="range"].ui-slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: white;
display: block;
width: 100%;
height: 10px;
border: 2px solid #bdc3c7;
}
input[type="range"].ui-slider:focus {
outline: none;
}
input[type="range"].ui-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background-color: #16a085;
border-radius: 50%;
cursor: pointer;
width: 18px;
height: 18px;
-webkit-transition: background 0.25s;
-moz-transition: background 0.25s;
transition: background 0.25s;
}
/* fractions */
.fraction {
height: 50px;
width: 50px;
display: block;
vertical-align: middle;
position: relative;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-shadow: content-box;
padding: 0;
background: url('data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=') center center repeat-x white;
margin-left: 4px;
}
.fraction sup, .fraction sub {
font-size: inherit;
vertical-align: baseline;
display: block;
position: absolute;
left: 0;
}
.fraction sup {
top: 0;
}
.fraction sub {
bottom: 0;
}
.fraction input {
width: 50px;
height: 22px;
border: 0;
padding: 0;
background: transparent;
text-align: center;
}
.fraction input:focus {
outline: none;
font-weight: bold;
}