WME/css/main.css

268 lines
4.8 KiB
CSS
Raw Normal View History

a:hover {
cursor: pointer;
}
2018-10-17 16:20:59 +00:00
/* Add a black background color to the top navigation */
2018-10-27 15:06:51 +00:00
.topnav {
background: linear-gradient(to bottom, lightgrey, white);
border: 1px solid lightgrey;
overflow: hidden;
position: fixed;
left: 0;
right: 0;
top: 0;
2018-10-28 15:35:09 +00:00
}
.topnav ul, .topnav li {
list-style: none;
}
2018-10-28 15:35:09 +00:00
.topnav ul {
2018-10-29 16:28:44 +00:00
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: flex-start;
2018-10-28 15:35:09 +00:00
}
.topnav .wambo { /* der bereich der den content hält : brauchen wir für die flexbox*/
display: flex;
2018-10-29 16:28:44 +00:00
}
.topnav .pic-wrapper, .topnav a, .topnav #hamburger-toggle {
2018-10-29 16:28:44 +00:00
height: 75px;
line-height: 75px;
2018-10-29 16:28:44 +00:00
}
/* geht auch ohne .topnav .pic-wrapper {
overflow: hidden;
}*/
.topnav a {
display: block;
transition: 0.5s all ease;
padding: 0 15px;
padding-top: 12px;
/*box-sizing: border-box; kommt bereits über reset.css */
2018-10-17 16:20:59 +00:00
}
.topnav a, .footer {
color: #555;
}
.topnav a:hover {
background: lightgrey;
2018-10-17 16:20:59 +00:00
}
.topnav .pic-wrapper {
margin-right: 15px; /* abstand zu <ul> / links */
}
.topnav .pic-wrapper:hover img {
margin-top: -80px;
}
/* das <li> */
.topnav .icon {
display: block;
font-family: 'Roboto', sans-serif;
font-size: 14px;
border-left: 1px solid lightgrey;
}
.lastBorder {
border-right: 1px solid lightgrey;
}
.topnav #hamburger-toggle {
display: none; /* normal net sichtbar */
}
2018-10-29 19:38:55 +00:00
.page {
2018-11-04 15:48:16 +00:00
width: 1170px;
margin: 0 auto;
}
@media only screen and (max-width: 1050px) {
.page {
2018-11-04 15:48:16 +00:00
width: 95%;
}
}
@media only screen and (max-width: 500px) {
.page {
width: 100%;
}
2018-10-29 19:38:55 +00:00
}
2018-10-28 15:35:09 +00:00
#section {
margin-top: 85px; /* wie die header hoch ist; notwendig da header position fixed hat; 75px + 10px extra */
}
2018-10-28 15:35:09 +00:00
h1 {
2018-11-04 08:11:13 +00:00
margin: 20px 0;
2018-10-28 15:35:09 +00:00
font-family: 'Roboto', sans-serif;
2018-11-04 08:11:13 +00:00
font-size: 30px;
font-weight: 300;
2018-10-28 15:35:09 +00:00
}
.text {
font-family: 'Roboto', sans-serif;
font-size: 14px;
line-height: 145%;
font-style: normal;
border: 1px solid lightgrey;
border-top-color: lightgreen;
2018-10-28 15:35:09 +00:00
border-radius: 3px;
column-count: 3;
padding: 10px;
box-shadow: 0 2px 3px lightgrey;
margin-bottom: 12px; /* damit control nicht so daran klebt */
}
2018-11-04 09:45:46 +00:00
@media only screen and (max-width: 1000px) {
.text {
column-count: 2;
}
}
@media only screen and (max-width: 500px) {
.text {
column-count: 1;
}
}
.text a {
color: lightgreen;
2018-10-21 16:03:11 +00:00
}
2018-11-04 09:45:46 +00:00
.text a:hover {
color: darkgreen;
text-decoration: none;
}
.table-wrapper {
2018-11-04 08:11:13 +00:00
font-family: 'Roboto', sans-serif;
margin-bottom: 15px;
vertical-align: middle;
width: 100%;
overflow-x: scroll;
2018-11-04 08:11:13 +00:00
}
table#t01 {
width: 100%;
}
table#t01 tr:nth-child(odd) {
background-color: lightgrey;
}
2018-10-24 08:00:00 +00:00
table#t01 th {
background-color: #fff;
white-space: nowrap; /* kein umbruch bei schmaler ansicht */
}
/* die sort up sort down icons neben den Spaltennamen */
table#t01 th i {
font-size: 0.6em;
color: lightgreen;
2018-10-24 08:00:00 +00:00
}
table#t01 th, table#t01 td {
line-height: 1em;
padding: 11px 0;
font-size: 14px; /* same as section */
}
@media only screen and (max-width: 1200px) {
table#t01 th:nth-child(n+7), table#t01 td:nth-child(n+7) {
display: none;
}
}
@media only screen and (max-width: 900px) {
table#t01 th:nth-child(n+5), table#t01 td:nth-child(n+5) {
display: none;
}
}
@media only screen and (max-width: 600px) {
table#t01 th:nth-child(n+4), table#t01 td:nth-child(n+4) {
display: none;
}
}
2018-10-24 08:00:00 +00:00
.boxed {
border: 1px solid green;
width: 80%;
text-align: center;
2018-10-27 15:06:51 +00:00
}
th {
text-align: left;
border-bottom: 3px solid lightgrey;
2018-11-03 10:27:13 +00:00
}
.did {
border: 1px solid;
float: left;
padding: 2em;
2018-11-03 11:25:12 +00:00
min-height: 150px;
min-width: 250px;
2018-11-03 10:27:13 +00:00
}
.footer {
2018-11-04 08:11:13 +00:00
border-top: 2px solid lightgreen;
font-family: 'Roboto', sans-serif;
display: flex;
justify-content: space-between;
font-size: 12px;
2018-11-04 08:11:13 +00:00
}
.foo-left {
margin-top: 15px;
margin-bottom: 30px;
}
.foo-right {
margin-top: 15px;
margin-bottom: 30px;
text-align: right;
}
2018-11-04 16:26:54 +00:00
.option_list ul li {
display: inline;
list-style-type: none;
}
.option_list ul {
padding: 5px;
}
.option_list li {
padding: 3px;
}
/* hamburger menu stuff */
@media only screen and (max-width: 950px) {
.topnav #hamburger-toggle {
display: block; /* normal net sichtbar */
2018-11-04 15:48:16 +00:00
margin-right: 20px;
}
.topnav .wambo {
justify-content: space-between;
}
.topnav #menu {
display: none;
background-color: #ffffff;
position: fixed; /* absolute geht nicht wenn das parent fixed ist ; muss auch fixed sein */
top: 77px;
right: 0;
left: 0;
}
.topnav a {
padding-top: 0;
height: 3em;
line-height: 3em;
}
.topnav #menu.active {
display: block;
}
2018-10-17 16:20:59 +00:00
}