nettsiden/www/css/style.css

328 lines
6.4 KiB
CSS
Raw Normal View History

2018-01-31 01:19:31 +01:00
/* latin-ext */
@font-face {
2018-02-13 14:46:48 +01:00
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
2018-08-10 22:17:48 +02:00
src: local('Raleway'), local('Raleway-Regular'), url("fonts/raleway-latin-ext.woff2") format('woff2');
2018-02-13 14:46:48 +01:00
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
2018-01-31 01:19:31 +01:00
}
/* latin */
@font-face {
2018-02-13 14:46:48 +01:00
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: local('Raleway'), local('Raleway-Regular'), url() format('woff2');
2018-08-10 22:17:48 +02:00
src: local('Raleway'), local('Raleway-Regular'), url("fonts/raleway-latin.woff2") format('woff2');
2018-02-13 14:46:48 +01:00
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
2018-01-31 01:19:31 +01:00
}
2018-08-10 22:17:48 +02:00
/* Webfont: LatoLatin-Light */@font-face {
font-family: 'LatoLatinWebLight';
src: url('fonts/LatoLatin-Light.eot'); /* IE9 Compat Modes */
src: url('fonts/LatoLatin-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/LatoLatin-Light.woff2') format('woff2'), /* Modern Browsers */
url('fonts/LatoLatin-Light.woff') format('woff'), /* Modern Browsers */
url('fonts/LatoLatin-Light.ttf') format('truetype');
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
}
/* Webfont: LatoLatin-Regular */@font-face {
font-family: 'LatoLatinWeb';
src: url('fonts/LatoLatin-Regular.eot'); /* IE9 Compat Modes */
src: url('fonts/LatoLatin-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/LatoLatin-Regular.woff2') format('woff2'), /* Modern Browsers */
url('fonts/LatoLatin-Regular.woff') format('woff'), /* Modern Browsers */
url('fonts/LatoLatin-Regular.ttf') format('truetype');
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, nav li, .calendar-events li, .btn, p.login, a#login{
font-family: "LatoLatinWeb", sans-serif;
2018-02-13 14:46:48 +01:00
font-style: normal;
font-variant: normal;
2018-01-31 01:19:31 +01:00
}
2018-02-13 15:24:27 +01:00
nav, #menu {
2018-02-13 16:01:19 +01:00
padding: 0;
2018-02-13 15:24:27 +01:00
}
nav {
background: #024;
position: absolute;
2018-02-13 16:01:19 +01:00
width: 100%;
2018-02-13 15:24:27 +01:00
top: 0;
left: 0;
right: 0;
height: 3em;
2018-02-13 16:01:19 +01:00
display: table;
white-space: nowrap;
border: #024 0.1em solid;
2018-02-13 16:01:19 +01:00
}
nav #menu, nav #login {
display: table-cell;
2018-02-13 15:24:27 +01:00
}
2018-02-13 17:11:11 +01:00
nav #login, nav #usermenu a {
2018-02-13 16:01:19 +01:00
padding: 0 .75em;
margin: 0;
}
2018-02-13 17:11:11 +01:00
nav #login {
text-align: right;
}
2018-02-13 16:01:19 +01:00
2018-02-13 16:46:01 +01:00
nav #menu {
2016-08-15 17:43:41 +02:00
margin: .1em auto 0 auto;
text-align: center;
margin: 0;
z-index: 3; /* Make appear under #login */
2018-02-13 23:15:51 +01:00
width: 100%; /* Claim as much of the CSS table as possible */
2016-08-15 17:43:41 +02:00
}
nav li {
2018-02-13 16:01:19 +01:00
display: inline-block;
2018-02-13 15:24:27 +01:00
margin: auto .25em;
}
nav #menu_toggle {
margin: 0;
2018-02-13 16:01:19 +01:00
display: none;
2018-02-13 15:24:27 +01:00
}
2018-02-13 16:01:19 +01:00
nav li, nav #menu_toggle, nav #login {
2016-08-15 17:43:41 +02:00
line-height: 3em;
2018-02-13 16:01:19 +01:00
height: 3em;
border-bottom: 2px solid #024;
2016-08-15 17:43:41 +02:00
}
nav a {
2016-08-15 17:43:41 +02:00
display: inline-block;
margin: auto;
color: white;
2018-02-13 18:44:36 +01:00
fill: white; /* SVG icon */
2016-08-15 17:43:41 +02:00
text-decoration: none;
2018-02-13 15:24:27 +01:00
margin: 0 .75em;
2016-08-15 17:43:41 +02:00
}
nav li.active, nav li:hover {
border-bottom: 2px solid white;
2016-08-15 17:43:41 +02:00
}
2018-02-13 16:46:01 +01:00
nav #usermenu {
display: none;
position: absolute;
top: 0;
right: 0;
margin: 0;
background: #fff;
padding: 0;
z-index: 5; /* Make appear over #login */
2018-02-13 16:46:01 +01:00
}
nav #login {
z-index: 4; /* Make appear under #usermenu and over #menu */
}
2018-02-13 16:46:01 +01:00
nav #usermenu li:first-child, nav #usermenu li:first-child a {
line-height: 3em;
height: 3em;
}
nav #usermenu li, nav #usermenu li a {
line-height: 2em;
height: 2em;
color: #024;
fill: #024; /* SVG icon */
2018-02-13 16:46:01 +01:00
border: none;
display: block;
2018-02-13 17:05:09 +01:00
margin: 0;
2018-02-13 16:46:01 +01:00
}
nav #usermenu:target {
display: block;
}
2018-02-13 18:44:36 +01:00
/* Style #login when #usermenu is targeted */
/* Requires #login to appear after #usermenu, directly under nav */
nav #usermenu:target ~ #login {
color: #024;
fill: #024; /* SVG icon */
background: white;
}
2018-02-13 19:16:07 +01:00
nav #usermenu li:hover {
background: #eee;
}
nav #usermenu li:first-child:hover {
background: transparent;
}
2018-02-13 15:24:27 +01:00
@media(max-width: 800px){
nav #menu, nav #menu li.active, nav #menu_toggle, nav #login {
position: absolute;
}
nav #menu li.active {
top: -3em; /* -3em for absolute, 0 for fixed.. huh? */
left: 0;
background: transparent;
}
2018-02-13 15:24:27 +01:00
nav li.active, nav li:hover {
border: none;
}
nav #menu {
text-align: left;
top: 3em;
left: 0;
right: 0;
padding: 0;
}
nav #menu:target {
top: 0;
padding-top: 3em;
}
2018-02-13 15:24:27 +01:00
nav #menu li, nav #menu li a {
margin-left: 0;
2018-02-13 16:01:19 +01:00
display: block;
2018-02-13 15:24:27 +01:00
}
nav #menu li a {
2018-02-13 15:24:27 +01:00
padding-left: 1em;
}
nav #menu li {
display: none;
background: #024;
}
nav #menu li:hover {
background: #1a3957;
}
nav #menu li.active:hover {
background: transparent;
}
nav #menu:target li.active:hover {
background: rgba(255,255,255,.1);
2018-02-13 15:24:27 +01:00
}
nav #menu:target li, nav #menu li.active {
display: block;
}
nav #menu_toggle {
2018-02-13 15:24:27 +01:00
display: block;
2018-02-13 16:01:19 +01:00
top: 0;
2018-02-13 15:24:27 +01:00
left: 0;
right: 0;
}
nav #menu:target li.active {
right: 0;
top: 0;
}
2018-02-13 15:24:27 +01:00
nav #menu_toggle {
text-align: center;
}
2018-02-13 16:01:19 +01:00
nav #menu_toggle:hover, nav #login:hover {
2018-02-13 15:24:27 +01:00
background: rgba(255,255,255,.1);
}
2018-02-13 16:01:19 +01:00
nav #login {
right: 0;
top: 0;
}
2018-02-13 15:24:27 +01:00
}
2018-02-24 16:53:17 +01:00
2017-11-13 13:21:51 +01:00
body {
overflow-y: scroll;
overflow-x: hidden;
min-height: 100vh;
2016-08-15 17:43:41 +02:00
}
2017-11-13 13:21:51 +01:00
* {
font-style: -apple-system, 'avenir next', avenir, roboto, noto, ubuntu, 'helvetica neue', helvetica, arial, sans-serif;
2016-08-15 17:43:41 +02:00
}
2017-11-13 13:21:51 +01:00
main {
box-sizing: border-box;
padding: 5em 15vw 2em 15vw;
2017-11-13 13:21:51 +01:00
background-color: #fff;
}
2017-11-13 13:21:51 +01:00
main h2 {
color: #002244;
2016-08-15 17:43:41 +02:00
z-index: 2; /* Make appear under #menu */
2016-08-15 17:43:41 +02:00
position: relative;
}
2017-11-11 22:10:43 +01:00
article {
margin-bottom: 7vh;
}
.gridsplit {
display: grid;
grid-template-columns: 3fr 1fr;
}
.gridsplit5050 {
display: grid;
grid-template-columns: 1fr 1fr;
}
.gridsplitthirds {
display: grid;
grid-column-gap: 2em;
column-rule-style: dotted;
grid-template-columns: 1fr 1fr 1fr;
}
.gridl {
height: 100%;
grid-column: 1;
grid-row: 1;
}
.gridr {
height: 100%;
padding: 0 1em;
margin-left: 1em;
border-left: 1px dotted rgba(0,0,0,0.5);
grid-column: 2;
}
.gridsplit h1:first-child,
.gridsplit h2:first-child,
.gridsplit h3:first-child,
.gridsplit h4:first-child,
.gridsplit h5:first-child,
.gridsplit h6:first-child {
margin-top: 0;
}
.noborder {
border: none;
}
2017-11-13 13:21:51 +01:00
.btn {
padding: .5em;
border-radius: 4px;
border-width: 0;
2017-11-13 13:21:51 +01:00
text-decoration: none;
color: #fff;
background-color: #002244;
2018-08-10 22:17:48 +02:00
font-family: "LatoLatinWebLight", sans-serif;
2017-11-13 13:21:51 +01:00
transition: background-color .2s ease;
2017-11-11 22:10:43 +01:00
}
2017-11-13 13:21:51 +01:00
.btn:hover {
background-color: #00407F;
transition: background-color .2s ease;
2018-02-10 16:39:30 +01:00
}
.subnote {
margin-top: 0;
color: gray;
font-size: .7em;
font-style: italic;
}
.no-chin {
margin-bottom: 0;
}
.ruler {
border: none;
border-bottom: 1px dotted rgba(0,0,0,.5);
}
textarea.boxinput {
resize: vertical;
}