/* basic page styles */ /* current default: 111833 - blue-weak: #1f2833; brown-red: 33111b; /* light yellow: FBF7EB, new lighter: #f7f2ea */ /* light grey: #c5c6c7*/ /* neon green: #66FCF1 */ *, *:before, *:after { box-sizing: border-box; padding: 0; margin: 0; } body { /* font-family: georgia, cambria, "times new roman", times, serif; */ font-family: 'Open Sans', sans-serif; font-size: 1.05em; /* only with position static text will auto-format when making window smaller */ /* position: relative; */ /* margin-top: 60px; */ /* margin-left: 310px; */ /* TODO: not sure this is clean solution */ /* set background-color for all parts default, specially below content */ /* background-color: #f7f2ea; */ /* color: #111833; */ line-height: 1.5; /* TODO: put footer at bottom https://stackoverflow.com/questions/643879/css-to-make-html-page-footer-stay-at-bottom-of-the-page-with-a-minimum-height-b */ /* min-height: 100%; */ /* TODO: repair, only scrolling in body possible */ overflow: auto; /* padding-top: 30px; */ } article, aside, details, figcaption, figure, footer, header, main, nav, section, summary { display: block; } h1, h2, .logo { /* font-family: arial, helvetica, free-sans, sans-serif; */ font-family: 'Oswald', sans-serif; font-weight: normal; } h1 { font-size: 1.6em; text-transform: uppercase; } h2 { font-size: 1.4em; margin: 2rem 0 0 0; } p { margin: 0 0 1em 0; } ul, ol { margin: 1em 0 1.5em 3em; } li { margin: 0 0 0.75em 0; } img { float: right; width: auto; height: auto; max-width: 50%; margin: 0 0 1em 1em; border: 0 none; } pre { /* font-size: 1.05em; */ font-weight: bold; padding: 0.2em 0.4em; margin: 1em 0 1.5em 3em; background-color: #111833; border-radius: 3px; overflow: auto; } code { font-size: 0.88em; font-family: Consolas, Menlo, "DejaVu Mono", monospace; color: #E831C1; background-color: #ddd7d4; /* CHECK needed for bold, pre not enough!? */ font-weight: bold; /* makes single code border round */ border-radius: 5px; padding: 0 0.4em; } pre code { padding: 0; color: #eff5ef; background-color: #111833; padding-left: 8px; line-height: 2.5; font-size: 0.82em; /* TODO make border round */ /* border-radius: 5px; */ } a:link, a:visited { text-decoration: none; color: #fff; } a:hover, a:active { color: #c5c6c7; } .pagelist { list-style-type: none; /* TODO: check what flex does here */ display: flex; flex-wrap: wrap; margin: 0; line-height: 1.3; } .pagelist li { flex: 1 1 45%; margin: 0 1em 1em 0; } .pagelist a { display: block; height: 100%; padding: 5px 10px; border: 1px solid #ccc; outline: 0 none; overflow: hidden; /* color for links in pagelist type page eg "Installation" (1 from 3) */ color: #111833; } .pagelist a:hover, .pagelist a:focus { /* background-color: #5a14dd; */ border-color: rgb(238, 9, 150); } .pagelist h2, .pagelist p { margin: 0; } .pagelist p { color: #111833; } p.articleinfo { font-size: 0.8em; /* currently date */ color: #111833; } /* layout */ main { /* for page and article template */ clear: both; background-color: #fff; margin-top: 60px; /* margin-bottom: 0; */ background-color: #f7f2ea; /* min-height: 100%; */ /* min-width: 100%; */ overflow: auto; min-height: 100%; } .content { /* min-height "influences" the content of navmain=header but it should exclude the
*/ /* CHECK min-width makes things too wide in the
area */ /* min-width: 100%; */ /* TODO: there must be bug in other place! this is needed to remove scroll in header navigation, so its main navigation header!? */ /* min-height: 100%; */ /* overflow: auto; */ /* move font a little down */ padding-top: 10px; } article { /* this only applys to
while .content is also applied */ /* for page and article template */ /* Distance left, right 4em */ padding: 0 4em; /* Distance top 2em for content */ padding-top: 2em; } article a:link, article a:visited, article a:hover { color: #2092bc; } article a:hover { text-decoration: underline; } header { /* header global */ clear: both; width: 100%; /* eg can overwrite value for "if desktop" below */ height: 60px; overflow: auto; background-color: #111833; border-bottom: solid; color: #66fcf1; } footer { /* footer global */ /* TODO: move footer bottom when article not end of page */ clear: both; /* width: 100%; */ margin-left: 310px; height: 70px; /* margin-top: -70px; */ /* overflow: auto; */ background-color: #f7f2ea; } footer { /* font-family: 'Open Sans', sans-serif; */ font-size: 0.90em; padding: 1em; text-align: center; } footer p { margin: 0; } footer a:link, footer a:visited, footer a:hover { color: #2092bc; } footer a:hover { text-decoration: underline; } .logo { font-size: 1.5em; margin: 0.2em 0 0 0; } .logo a { padding: 0.2em 0; color: #66fcf1; } /* navigation */ .nav ul { display: flex; flex-wrap: wrap; list-style-type: none; margin: 0; } .nav li { flex: 1 1 100%; margin: 0; } .nav a, .nav strong { display: block; text-align: left; white-space: nowrap; padding: 0.6em 0; } .nav.main a { color: #fff; /* font-size: 1.6em; */ text-transform: uppercase; font-weight: bold; font-family: 'Oswald', sans-serif; } .nav a.active, .nav strong { background-color: #111833; } .nav a:hover { color: #c5c6c7; } /* this is the prev-next-link at bottom in articles */ .nav.page { margin-top: 1.5em; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } @media (min-width: 16em) { .nav li { flex: 1 1 50%; } } @media (min-width: 32em) { header { /* header global */ position: fixed; /* defined global above */ /* height: 60px; */ top: 0; } .logo { float: left; margin-left: 20px; } .nav.main { float: right; margin-right: 20px; } .nav li { flex: 1 1 auto; } .nav.main li { width: 6em; } main { /* global template */ position: static; /* margin-top: 60px; */ /* min-height: 100%; */ /* margin: 0px 0px 0px 0px; */ /* padding: 3em 0em 2em 0em; */ /* overflow: auto; */ /* color: #66fcf1; */ } .subpages .content { /* article template */ /* CHECK What does flex do?? */ /* display: flex; */ margin-left: 310px; } .subpages article { /* article template */ /* flex: 1 1 70%; */ /* min-width for text content, eg "next: xxx" */ /* min-width: 100%; */ } .subpages .nav.sub { /* article template */ height: 100%; width: 310px; position: fixed; /* z-index: 1; */ top: 0; left: 0; background-color: #111833; overflow-x: hidden; overflow-y: scroll; padding-top: 40px; margin-top: 60px; color: #fff; } .nav.sub ul { /* margin-top: 1em; */ flex-direction: column; /* border above first link */ /* border-top: 1px solid rgb(185, 27, 27); */ } .nav.sub li { /* put smth around nav.sub links */ /* border-bottom: 1px solid rgb(58, 17, 17); */ } .nav.sub a, .nav.sub strong { text-align: left; padding-left: 0.75em; font-family: 'Open Sans', sans-serif; font-size: 1.05em; } .nav.page a { text-align: left; padding-left: 0.5em; padding-right: 0.5em; } .nav.page a.next { text-align: right; } }