tracman-server/static/css/header.css

237 lines
5.1 KiB
CSS
Raw Normal View History

2017-04-12 17:39:39 -06:00
/* Main */
2016-03-31 17:06:21 -06:00
header {
background: #222;
padding: 0;
position: fixed;
top: 0; left: 0;
width: 100%;
z-index: 200;
2017-05-22 20:32:51 -06:00
}
header a:hover,
header a:focus {
2017-04-01 11:03:05 -06:00
color: #fbc93d;
2016-03-31 17:06:21 -06:00
}
2017-04-12 17:39:39 -06:00
/* Logo */
2016-03-31 17:06:21 -06:00
header .logo {
float: left;
font-family: 'Open Sans', sans-serif;
padding: 13px 23px;
color: #fbc93d;
font-weight: 800;
font-size: 22px;
line-height: 30px;
margin: 0;
2017-05-22 20:32:51 -06:00
}
header .logo a {
2016-03-31 17:06:21 -06:00
color:inherit;
font:inherit;
text-decoration:inherit;
cursor: pointer;
2017-05-22 20:32:51 -06:00
}
header .logo img {
2016-03-31 17:06:21 -06:00
margin-right: 10px;
2017-04-01 11:03:05 -06:00
vertical-align: middle;
2017-05-22 20:32:51 -06:00
}
header .logo:hover {
2017-04-01 11:03:05 -06:00
text-decoration: none;
background: rgba(255,255,255,0.1);
2016-03-31 17:06:21 -06:00
}
2017-04-12 17:39:39 -06:00
/* Navigation */
2016-03-31 17:06:21 -06:00
header nav {
float: right;
2017-05-22 20:32:51 -06:00
}
header nav ul {
2016-03-31 17:06:21 -06:00
padding: 0;
margin: 0;
2017-05-22 20:32:51 -06:00
}
header nav ul li {
2016-03-31 17:06:21 -06:00
display: inline-block;
float: left;
2017-05-22 20:32:51 -06:00
}
header nav ul li a,
header nav ul li span {
2016-03-31 17:06:21 -06:00
text-decoration:inherit;
display: inline-block;
padding: 15px 20px;
color: #fff;
2017-04-01 11:03:05 -06:00
transition: 100ms;
2017-05-22 20:32:51 -06:00
}
header nav ul li a:hover,
header nav ul li a:focus {
text-decoration: none;
background: rgba(255,255,255,0.1);
}
2017-05-22 20:32:51 -06:00
header nav ul li a.active {
color: #fbc93d;
pointer-events: none;
cursor: default;
}
2017-04-12 17:39:39 -06:00
/* Hamburger */
2016-03-31 17:06:21 -06:00
header .hamburger {
display: none;
padding: 5px;
cursor: pointer;
transition-property: opacity, -webkit-filter;
transition-property: opacity, filter;
transition-property: opacity, filter, -webkit-filter;
2017-04-01 11:03:05 -06:00
transition-duration: 150ms;
transition-timing-function: linear;
} header .hamburger:hover {
opacity: 0.7;
} header .hamburger-box {
2016-03-31 17:06:21 -06:00
width: 40px;
height: 24px;
2017-04-01 11:03:05 -06:00
position: relative;
} header .hamburger-inner {
2016-03-31 17:06:21 -06:00
top: 50%;
2017-04-01 11:03:05 -06:00
margin-top: -2px;
} header .hamburger-inner,
header .hamburger-inner::before,
2017-04-01 11:03:05 -06:00
header .hamburger-inner::after {
2016-03-31 17:06:21 -06:00
width: 40px;
height: 4px;
background-color: #fff;
border-radius: 4px;
position: absolute;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
2017-04-01 11:03:05 -06:00
transition-duration: 150ms;
transition-timing-function: ease;
} header .hamburger-inner::before, header .hamburger-inner::after {
2016-03-31 17:06:21 -06:00
content: "";
2017-04-01 11:03:05 -06:00
display: block;
} header .hamburger-inner::before {
top: -10px;
} header .hamburger-inner::after {
bottom: -10px;
} header .hamburger--slider .hamburger-inner {
top: 0;
} header .hamburger--slider .hamburger-inner::before {
2016-03-31 17:06:21 -06:00
top: 10px;
transition-property: opacity, -webkit-transform;
transition-property: transform, opacity;
transition-property: transform, opacity, -webkit-transform;
transition-timing-function: ease;
2017-04-01 11:03:05 -06:00
transition-duration: 200ms;
} header .hamburger--slider .hamburger-inner::after {
top: 20px;
} header .hamburger--slider.is-active .hamburger-inner {
-webkit-transform: translate3d(0, 10px, 0) rotate(45deg);
-moz-transform: translate3d(0, 10px, 0) rotate(45deg);
-md-transform: translate3d(0, 10px, 0) rotate(45deg);
-o-transform: translate3d(0, 10px, 0) rotate(45deg);
transform: translate3d(0, 10px, 0) rotate(45deg);
} header .hamburger--slider.is-active .hamburger-inner::before {
2016-03-31 17:06:21 -06:00
-webkit-transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
2017-04-01 11:03:05 -06:00
-moz-transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
-ms-transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
-o-transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
opacity: 0;
} header .hamburger--slider.is-active .hamburger-inner::after {
2016-03-31 17:06:21 -06:00
-webkit-transform: translate3d(0, -20px, 0) rotate(-90deg);
2017-04-01 11:03:05 -06:00
-moz-transform: translate3d(0, -20px, 0) rotate(-90deg);
-ms-transform: translate3d(0, -20px, 0) rotate(-90deg);
-o-transform: translate3d(0, -20px, 0) rotate(-90deg);
transform: translate3d(0, -20px, 0) rotate(-90deg);
}
2016-03-31 17:06:21 -06:00
@media (max-width: 800px) {
header nav ul li a { padding:15px; }
}
2017-05-19 18:35:42 -06:00
/* Hamburger menu starts this window width */
@media (max-width: 655px) {
2016-03-31 17:06:21 -06:00
header nav {
float: none;
position: fixed;
top: 56px;
right: -300px;
bottom: 0;
width: 100%;
max-width: 300px;
background: #333;
2017-04-01 11:03:05 -06:00
transition: 100ms;
} header nav.visible {
2016-03-31 17:06:21 -06:00
right: 0px;
2017-04-01 11:03:05 -06:00
} header nav ul li {
2016-03-31 17:06:21 -06:00
display: block;
float: none;
width: 100%;
2017-04-01 11:03:05 -06:00
} header nav ul li a {
2016-03-31 17:06:21 -06:00
display: block;
width: 100%;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
header .hamburger {
display: inline-block;
color: #fff;
position: absolute;
right: 10px;
top: 13px;
}
2017-04-12 17:39:39 -06:00
}
/* Alerts */
.alert {
padding: 15px;
border: 1px solid transparent;
border-radius: 4px;
}
noscript .alert-danger {
z-index: 40;
}
.alert-danger {
z-index: 30;
color: #f2dede;
background-color: #a94442;
}
.alert-warning {
z-index: 20;
color: #fcf8e3;
background-color: #8a6d3b;
}
.alert-success {
z-index: 10;
color: #dff0d8;
background-color: #3c763d;
}
.alert.alert-header {
position: relative;
border-radius: 0;
top: 58px;
width: 100%;
}
.alert a {
z-index: 10;
color: inherit;
font-weight: bold;
text-decoration: underline;
}
.alert a:hover {
color: inherit;
text-decoration: none;
}
.alert h4 {
margin-top: 0;
color: inherit;
}
.alert > p,
.alert > ul {
margin-bottom: 0;
}
.alert > p + p {
margin-top: 5px;
}
.alert-dismissable {
padding-right: 35px;
}
.alert .close,
.alert-dismissible .close {
cursor: pointer;
float: right;
color: inherit;
}