Forked from
stustanet / stustanet-website
274 commits behind the upstream repository.
-
Julien Schmidt authoredJulien Schmidt authored
main.css 7.62 KiB
:root {
/* --yellow: rgb(255, 232, 89);
--red: rgb(226, 107, 68);
--green: rgb(137, 187, 79);
--blue: rgb(94, 146, 189); */
}
html {
font-family: sans-serif;
font-size: 100%;
-webkit-font-smoothing: antialiased;
}
html, body {
margin: 0;
padding: 0;
outline: 0;
border: 0;
width: 100%;
height: 100%;
}
body {
line-height: 1;
font-size: 100%;
vertical-align: baseline;
color: #4B4B4B;
display: flex;
flex-direction: column;
}
#top-bar {
background: #fff;
width: 100%;
height: 54px;
position: fixed;
top: 0;
left: 0;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.12);
z-index: 1;
}
#top-bar div.logo {
display: inline-block;
flex: 1 1 0;
height: 30px;
}
#top-bar .logo a {
display: inline-block;
height: 100%;
width: 100%;
background-image: url(/logo.png);
background-size: contain;
background-position: left center;
background-repeat: no-repeat;
}
ul.menu {
list-style-type: none;
margin: 0;
padding: 0;
flex: 0 0 0;
}
ul.menu li {
display: inline-block;
}
ul.menu li a {
display: inline-block;
padding: 15px 5px;
}
.lang-dropdown {
cursor: default;
position: relative;
flex: 0 0 0;
}
.lang-dropdown > span {
text-transform: uppercase;
font-size: 12px;
}
.lang-dropdown a {
cursor: pointer;
}
.lang-dropdown .globe {
display: inline-block;
width: 13px;
height: 13px;
margin: -2px 5px 0 0;
vertical-align: middle;
background: url(/globe.svg) no-repeat;
}
.lang-dropdown.up .globe {
background: url(/globe.up.svg) no-repeat;
}
.lang-dropdown ul {
position: absolute;
right: 0;
top: 0;
list-style: none;
width: 140px;
font: bold 12px sans-serif;
overflow: hidden;
max-height: 0px;
text-align: center;
-webkit-transition: max-height 0.4s linear;
-moz-transition: max-height 0.4s linear;
transition: max-height 0.4s linear;
}
.lang-dropdown:hover ul {
max-height: 200px;
}
.lang-dropdown.up ul {
top: auto;
bottom: 20px;
}
.lang-dropdown li {
background-color: #454545;
position: relative;
line-height: 24px;
vertical-align: middle;
}
.lang-dropdown li:hover {
background-color:#555;
}
.lang-dropdown li:first-child {
border-radius: 3px 3px 0 0;
margin-top: 20px;
}
.lang-dropdown li:first-child:before {
content:'';
position: absolute;
width: 1px;
height: 1px;
border: 5px solid transparent;
border-bottom-color: #454545;
left: 75%;
top: -11px;
margin-left: -5px;
}
.lang-dropdown li:last-child {
border-radius: 0 0 3px 3px;
}
.lang-dropdown.up li:first-child {
margin-top: 0px;
}
.lang-dropdown.up li:last-child {
margin-bottom: 15px;
}
.lang-dropdown.up li:last-child:after {
content:'';
position: absolute;
width: 1px;
height: 1px;
border: 5px solid transparent;
border-top-color: #454545;
left: 75%;
bottom: -11px;
margin-left: -5px;
}
.lang-dropdown li > a,
.lang-dropdown li > span {
padding: 12px;
color: #fff !important;
text-decoration: none !important;
display: block;
}
.lang-dropdown span.shorthand {
background: #282828;
width: 24px;
height: 24px;
display: inline-block;
line-height: 24px;
text-align: center;
margin: 0 6px;
}
article > *,
.container,
header h1 {
position: relative;
margin-left: auto;
margin-right: auto;
padding: 0 20px;
}
nav .container {
display: flex;
align-items: center;
white-space: nowrap;
}
article > *,
header h1 {
max-width: 800px;
}
.container .lang-dropdown {
color: #1b54ac;
}
.container .lang-dropdown {
padding: 15px 5px 15px 25px;
}
.lang-dropdown::after {
content: '▾';
}
.up.lang-dropdown::after {
content: '▴';
}
.container .lang-dropdown ul {
top: 10px;
}
header {
position: relative;
display: block;
max-width: 100%;
background-image: url(/header.jpg);
background-size: cover;
background-position-y: 30%;
background-blend-mode: soft-light;
}
header h1 {
margin: 0 auto 15px auto;
padding: 50px 0;
text-shadow: 0px 0px 1px rgba(0,0,0,0.8);
}
.yellow {
background-color: rgb(255, 232, 89);
box-shadow: 0 0 8px 0 rgba(255, 232, 89, 0.12);
}
.yellow h1 {
color: black;
text-shadow: none;
}
.red {
background-color: rgb(226, 107, 68);
box-shadow: 0 0 8px 0 rgba(226, 107, 68, 0.12);
}
.red h1 { color: white; }
.green {
background-color: rgb(137, 187, 79);
box-shadow: 0 0 8px 0 rgba(137, 187, 79, 0.12);
}
.green h1 { color: white; }
.blue {
background-color: rgb(94, 146, 189);
box-shadow: 0 0 8px 0 rgba(94, 146, 189, 0.12);
}
.blue h1 { color: white; }
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 1.5rem;
margin-bottom: 0;
line-height: 1.5rem;
color: #363636;
}
h1 {
font-size: 2rem;
line-height: 3.5rem;
margin-top: 2.5rem;
}
h2 {
font-size: 1.7rem;
line-height: 3rem;
margin-top: 2rem;
}
h3 {
font-size: 1.3rem;
}
h4 {
font-size: 0.707rem;
}
h5 {
font-size: 0.4713333333333333rem;
}
h6 {
font-size: 0.3535rem;
}
h2 + h3 {
margin-top: 0.3rem;
}
article {
background: #FFF;
width: 100%;
position: relative;
padding: 50px 0;
flex: 1 1 0;
}
p, ul, ol {
line-height: 1.5rem;
margin-top: 0.5rem;
margin-bottom: 0;
}
ul li,
ol li {
margin-left: 25px;
line-height: 1.5rem;
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-top: 0;
margin-bottom: 0;
}
dl {
line-height: 1.2;
}
dt {
font-weight: bold;
}
hr {
border: 0;
height: 1px;
background: #363636;
margin: 15px 0;
}
blockquote {
line-height: 1.5rem;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
table {
margin-top: 1.5rem;
border-spacing: 0px;
border-collapse: collapse;
}
table td,
table th {
padding: 0;
line-height: 33px;
}
code {
vertical-align: bottom;
}
a {
color: #1b54ac;
cursor: pointer;
text-decoration: none;
}
a:hover, a:active {
text-decoration: underline;
}
footer {
background: #363636;
display: flex;
flex-shrink: 0;
white-space: nowrap;
}
footer .editPage {
padding: 15px;
flex: 1 1 0;
text-overflow: clip;
overflow: hidden;
}
footer .editPage a {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEUAAADv7+/v7+/v7+/v7+/s7Ozs7Ozt7e3t7e3t7e3s7Ozs7Ozs7Ozs7Ozt7e3t7e3t7e3t7e3ECRl9AAAAEXRSTlMAECAwQFBgkJ+gr7C/wNDv8A/g33EAAABLSURBVHjarchBAoAgDAPBUCqISjX//6xyMnh2bztIGw+DtJMNSWB8OfML/XlSxMZPki5+JP8p4R0qsaCZigNeIdJXR0CzGiyYK+0GziYE48hUzCUAAAAASUVORK5CYII=) no-repeat;
padding-left: 20px;
}
footer a {
color: #EDEDED;
}
footer .center {
padding: 15px;
text-align: center;
flex: 1 1 0;
}
footer .lang-dropdown-container {
flex: 1 1 0;
padding: 15px;
text-align: right;
}
footer .lang-dropdown {
display: inline;
color: #EDEDED;
}
.we-are-not-stuwerk {
border: 1px solid #fa7171;
border-radius: 2px;
margin: 5px 0;
padding: 10px 10px 7px 10px;
background: #ffdbdb;
line-height: 1.25;
color: red;
}
.email {
font-style: italic;
}
.vorstand ul {
padding-left: 0;
}
@media (max-width: 720px) {
main {
padding: 25px 0;
}
h1 {
font-size: 1.6rem;
line-height: 2rem;
}
h2 {
font-size: 1.4rem;
line-height: 1.6rem;
}
h3 {
font-size: 1.2rem;
}
header h1 {
padding: 50px 0 50px;
font-size: 2rem;
line-height: inherit;
}
article > *, article .container {
padding: 0 25px;
}
footer .editPage a {
color: transparent;
}
}