Files
factorio-clusterio/static/style.css
T
2017-05-26 21:17:24 +02:00

187 lines
2.9 KiB
CSS

* {
margin:0px;
color: #FFF;
}
body {
/* same as http://www.lua-api.factorio.com/latest */
background-color: rgb(38, 38, 38);
}
button {
border-radius: 0;
border: 1px solid transparent;
border-color: #FF7200;
border-width:1px;
cursor: pointer;
}
#logo {
/* using same colors as factorios official ones, taken from
http://www.lua-api.factorio.com */
background-color: #262626;
color: #C8C8C8;
}
/* search field */
#storage > input {
background-color:black;
width:300px;
}
/* Navbar on the right */
#sidenav {
position:fixed;
left:0px;
width:200px;
background-color:darkgrey;
height:100%;
}
#sidenav a p {
color: #FF7200;
transition:0.5s;
}
#sidenav a:hover p {
color: #FFF;
}
a {
color: #FF7200;
text-decoration: none;
}
a:hover {
color: #FFF;
}
/* ensure body does not overlap navbar on the right */
#body {
margin-left:200px;
}
#body > #production {
display:block;
}
/* Inventory display table */
#contents {
width:300px;
}
#contents table {
border: 1px solid black;
}
#contents td img {
height:32px;
width:32px;
}
#contentGraph {
float:left;
}
/* Slave stuff */
.slaveBox {
float:left;
width:100%;
/*height:110px;*/
background-color:#444;
/*border-radius: 10px;
margin-left:5px;
margin-right:5px;*/
}
.slaveBox > p {
margin:5px;
}
.slaveBox h2 {
margin:5px;
color: inherit;
transition:0.2s;
}
.slaveBox > button {
background-color: transparent;
color: #FF7200;
transition: 0.2s;
}
.slaveBox > button:hover {
color: #FFF;
}
.productionGraph {
float:right;
height:300px;
}
.button-black {
width:100%;
height:40px;
background-color:black;
color:white;
transition: all 300ms;
}
.button-black:hover {
background-color:#444;
color:yellow;
cursor:pointer;
}
.button-black * {
text-align:center;
position: relative;
top: 50%;
transform: translateY(-50%);
}
.canvasjs-chart-credit {
display:none;
}
/* Styling for settings page */
.settingsText {
margin-left: 10px;
margin-right:10px;
margin-top: -10px;
font-size: 18px;
}
.settingsBox .switch {
position:relative;
top:10px;
}
/* Fancy togglle switch for toggly things stolen from https://www.w3schools.com/howto/howto_css_switch.asp */
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {display:none;}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}