/** * style.css * Design for the IntraNet core. */ /******************************* External Fonts *******************************/ @font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 300; src: url("fonts/SourceSansPro.woff2") format("woff2"); unicode-range: U+0-FF, U+131, U+152-153, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; } /******************************* General design *******************************/ body, html { padding: 0px; margin: 0px; height: 100%; } body { background: #1e262b url('background.jpg') fixed top right no-repeat; font-family: "Source Sans Pro", Cantarell, sans-serif; color: black; } /* Mobile devices only */ @media only screen and (max-width: 600px), only screen and (max-device-width: 600px) { body { font-size: 180%; } } a { color: inherit; text-decoration: inherit; cursor: pointer; } /********************************* Navigation *********************************/ header { position: fixed; top: 0px; width: 100%; margin: auto; height: 57px; background-color: #1e262b; color: white; z-index: 2; } header h1 { float: left; font-size: 225%; font-weight: 500; margin: 0px; padding: 5px 20px 8px; /* top sides bottom */ } header nav { float: right; padding: 0px 20px; } header nav ul { margin: 0px; padding: 0px; } header nav > ul > li { display: inline-block; } header nav > ul > li a, header a#openmenu, header a#closemenu { display: block; padding: 16px 20px; margin: 0px; font-size: 125%; color: rgba(255, 255, 255, 0.7); } header nav > ul > li a:hover { color: rgba(255, 255, 255, 1.0); } /* dropdown menus */ header nav > ul > li > ul { display: none; background-color: #1e262b; position: absolute; } header nav > ul > li > ul > li { display: block; } header nav > ul > li > ul > li a { padding: 8px 20px; } header nav > ul > li:hover > ul, header nav > ul > li:active > ul { display: block; } header a#openmenu, header a#closemenu { display: none; } /* Mobile devices only */ @media only screen and (max-width: 600px), only screen and (max-device-width: 600px) { header { height: 100px; } header a#openmenu { display: block; position: absolute; top: 0; left: 0; font-size: 190%; font-weight: bold; color: white; } header nav a#closemenu { display: block; font-size: 250%; font-weight: bold; color: white; text-align: right; margin-right: 0.5em; } header h1 { float: none; text-align: center; } header nav { position: fixed; top: 0; left: 0; height: 100%; padding: 0; z-index: 1; background: inherit; font-size: 125%; overflow-y: scroll; width: 0; max-width: 100%; } header nav > ul { height: auto; margin: 0px 0px 50px; /* top sides bottom */ } header nav > ul > li { display: block; } header nav > ul > li a { color: rgba(255, 255, 255, 1.0); margin-top: 35px; padding: 10px 150px 10px 40px; /* top right bottom left */ } header nav > ul > li > ul { display: block; position: static; /* reset absolute positionning */ } header nav > ul > li > ul > li a { color: rgba(255, 255, 255, 0.7); margin: 0px; padding: 10px 100px 10px 90px; /* top right bottom left */ } header nav li a:hover { color: inherit; background-color: #c2c2c2; } } /* breadcrump navigation menu */ ul.breadcrumb { list-style: none; padding: 0px; font-size: 90%; margin-bottom: 50px; } ul.breadcrumb li { display: inline; } ul.breadcrumb li+li:before { padding: 4px; content: "/\00a0"; } ul.breadcrumb li a, main article a { color: #748ea3; } /* Mobile devices only */ @media only screen and (max-width: 600px), only screen and (max-device-width: 600px) { ul.breadcrumb { display: none; } } /******************************** Main content *******************************/ body > aside { height: 45%; min-height: 350px; max-height: 500px; /* less than height of background.jpg */ } body > main { background: #f2f2f2; padding: 57px 0px; /* height of the navigation bar */ min-height: 500px; /* lower or equal to height of background.jpg (with padding) */ } body > main section, body > main article, body > main hr, body > footer p { width: 75%; max-width: 1200px; margin: auto; } body > main hr { height: 2px; border: 0px; background: #1e262b; margin-top: 3em; margin-bottom: 3em; } /* Mobile devices only */ @media only screen and (max-width: 600px), only screen and (max-device-width: 600px) { body > main { padding: 100px 0px; } body > main section, main hr, footer p { width: 90%; } } body > main section h2 { font-size: 200%; text-align: center; margin: 50px 0px 2em; /* top sides bottom */ } body > main article h2 { margin-bottom: 40px; } body > main section h3 { margin: 3em 0px 1em; /* top sides bottom */ } body > main div.loading { width: 100px; height: 100px; margin: auto; border: 16px solid #eaeaea; border-radius: 50%; border-top: 16px solid #a0c5e2; animation: spin 2s linear infinite; } @keyframes spin { /* animation definition */ 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } body > footer { background: #1e262b; text-align: center; color: white; padding: 15px 0px; /* top sides */ font-size: 10pt; } body > footer aside#modal { /* modal box container */ display: none; position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; color: black; background-color: rgba(0, 0, 0, 0.8); } body > footer aside#modal #modal-content { /* modal box */ background-color: #f2f2f2; margin: 15% auto; padding: 20px 25px 40px; /* top sides bottom */ border: 1px solid #1e262b; width: 400px; font-size: 125%; } /* Mobile devices only */ @media only screen and (max-width: 600px), only screen and (max-device-width: 600px) { body > footer { font-size: 13pt; } } /********************************* Error pages *********************************/ section#error h2 { color: #ff3333; } section#error p { text-align: center; } section#error p img { width: 25%; margin-bottom: 3em; } section#error a { color: #748ea3; }