tracman-server/static/css/base.css

178 lines
3.3 KiB
CSS
Raw Normal View History

2017-04-01 11:03:05 -06:00
/* Global */
div, footer, .fa,
.container, .container:before, .container:after {
2016-03-31 17:06:21 -06:00
box-sizing: border-box;
}
body, input, textarea {
padding: 0; margin: 0;
font-family: 'Open Sans', sans-serif;
font-size: 18px;
color: #eee;
}
2017-04-01 11:03:05 -06:00
body {
background-color: #080808;
2016-03-31 17:06:21 -06:00
}
2017-04-01 11:03:05 -06:00
::-webkit-scrollbar {
width: 5vw;
min-width:10px;
max-width:40px;
}::-webkit-scrollbar-track {
background-color: #080808;
background-color: rgba(8,8,8,0);
}::-webkit-scrollbar-thumb {
border-radius: .2vw;
background: #333;
2016-03-31 17:06:21 -06:00
}
2017-04-01 11:03:05 -06:00
::selection {
background: #999;
2016-03-31 17:06:21 -06:00
}
2017-04-01 11:03:05 -06:00
::-moz-selection {
background: #999;
2016-03-31 17:06:21 -06:00
}
2017-04-01 11:03:05 -06:00
/* Elements */
h1, h2, h3 {
margin: 0 0 5% 0;
2016-03-31 17:06:21 -06:00
position: relative;
z-index: 6;
}
h1, h2, h3, h4 { font-weight: 600; }
2016-03-31 17:06:21 -06:00
h1 {
font-size: 48px;
line-height: 46px; }
h2 {
font-size: 40px;
line-height: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
2017-04-01 11:03:05 -06:00
p {
margin-top: 0;
margin-bottom: 10vh;
2017-03-18 13:40:03 -06:00
}
2016-03-31 17:06:21 -06:00
a {
color: #fbc93d;
text-decoration: none;
}
2017-04-01 11:03:05 -06:00
main a:hover:not(.btn) {
2016-03-31 17:06:21 -06:00
color: #fbc93d;
text-decoration: underline;
}
a.underline {
2016-03-31 17:06:21 -06:00
text-decoration: underline;
}
a.underline:hover:not(.btn) {
2016-03-31 17:06:21 -06:00
text-decoration: none;
}
2017-04-01 11:03:05 -06:00
hr {
width: 90%;
margin: 10% auto;
}
2016-03-31 17:06:21 -06:00
img {
max-width: 100%;
}
p img {
display: block;
margin: auto;
}
2017-04-01 11:03:05 -06:00
pre {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
2016-03-31 17:06:21 -06:00
}
2017-04-09 21:40:08 -06:00
.hide { display: none !important; }
.red, .red:hover { color: #fb6e3d !important; }
.yellow, .yellow:hover { color: #fbc93d !important; }
2017-04-01 11:03:05 -06:00
.shadow {
-moz-box-shadow: .18vw .18vw .36vw #000;
-webkit-box-shadow: .18vw .18vw .36vw #000;
box-shadow: .18vw .18vw .36vw #000;
} .shadow:active {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
2016-03-31 17:06:21 -06:00
}
2017-04-01 11:03:05 -06:00
.inline { display: inline-block; }
.flex {
width: 100%;
display: flex;
justify-content: space-around;
2016-03-31 17:06:21 -06:00
}
2017-04-01 11:03:05 -06:00
.flex.stretch { justify-content: space-between; }
.left { float: left; }
.right { float: right; }
2016-03-31 17:06:21 -06:00
2017-04-01 11:03:05 -06:00
main {
top: 60px;
position: absolute;
left: 0px;
right: 0px;
bottom: 0px;
overflow-y: auto;
}
2016-03-31 17:06:21 -06:00
.container {
2017-04-01 11:03:05 -06:00
padding-right: 5%;
padding-left: 5%;
2016-03-31 17:06:21 -06:00
width: 100%;
margin: 0 auto;
}
.container:after {
content: "";
display: block;
clear: both;
}
section {
2017-04-01 11:03:05 -06:00
padding: 10vh 0 5vh;
}
/* Buttons */
2016-03-31 17:06:21 -06:00
.btn {
font-weight:600;
display: inline-block;
padding: 15px 30px;
2017-04-01 11:03:05 -06:00
transition: 100ms;
2016-03-31 17:06:21 -06:00
cursor: pointer;
background: rgba(255,255,255,0.1);
2017-04-01 11:03:05 -06:00
color: #eee;
2017-04-12 17:39:39 -06:00
border: 1px solid #666;
2017-04-01 11:03:05 -06:00
border-radius: .5vw;
} .btn:not(.disabled) {
-moz-box-shadow:
inset .11vw .18vw .52vw rgba(255,255,255,.2),
inset -.11vw -.18vw .52vw rgba(0,0,0,.4),
.11vw .18vw .52vw #000;
-webkit-box-shadow:
inset .11vw .18vw .52vw rgba(255,255,255,.2),
inset -.11vw -.18vw .52vw rgba(0,0,0,.4),
.18vw .18vw .36vw #000;
box-shadow:
inset .11vw .18vw .52vw rgba(255,255,255,.2),
inset -.11vw -.18vw .52vw rgba(0,0,0,.4),
.18vw .18vw .36vw #000;
} .btn:hover:not(.disabled) {
2016-03-31 17:06:21 -06:00
text-decoration: none;
2017-04-01 11:03:05 -06:00
background: rgba(255,255,255,0.2);
} .btn:active:not(.disabled) {
-moz-box-shadow:
inset .11vw .18vw .52vw rgba(0,0,0,.4),
inset -.11vw -.18vw .52vw rgba(255,255,255,.2);
-webkit-box-shadow:
inset .11vw .18vw .52vw rgba(0,0,0,.4),
inset -.11vw -.18vw .52vw rgba(255,255,255,.2);
box-shadow:
inset .11vw .18vw .52vw rgba(0,0,0,.4),
inset -.11vw -.18vw .52vw rgba(255,255,255,.2);
} .btn:focus:not(.disabled){
2016-03-31 17:06:21 -06:00
border: 1px solid #fbc93d;
}
2017-04-01 11:03:05 -06:00
.btn.main {
color: #fbc93d;
2016-03-31 17:06:21 -06:00
}
.btn .fa {
margin-left: 10px;
}