/** * 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; font-family: "Source Sans Pro", Cantarell, sans-serif; color: black; font-size: 1.0rem; -moz-text-size-adjust: none; -webkit-text-size-adjust: none; -ms-text-size-adjust: none; font-size-adjust: none; } /* Mobile devices only */ @media only screen and (max-width: 600px), only screen and (max-device-width: 600px) { body { font-size: 1.8rem; } } a { color: inherit; text-decoration: inherit; cursor: pointer; } /******************************************* Navigation *******************************************/ header { position: fixed; top: 0px; width: 100%; margin: auto; background-color: #1e262b; color: white; z-index: 2; } header h1 { float: left; font-size: 2.25em; 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#closemenu { display: block; padding: 16px 20px; margin: 0px; font-size: 1.25em; 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 a#openmenu { display: block; position: absolute; top: 12%; left: 20px; font-size: 2em; font-weight: bold; color: white; } header nav a#closemenu { display: block; font-size: 2.5em; 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: 1.25em; 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; } } /* breadcrumb navigation menu */ ul.breadcrumb { list-style: none; padding: 0px; font-size: 0.9em; 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 > main { background: #f7f8fa; padding: 57px 0px; /* height of the navigation bar */ } 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: 2em; text-align: center; margin: 50px 0px 2em; /* top sides bottom */ } body > main article h2 { margin-bottom: 40px; } body > main section h3 { font-size: 1.17em; 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 */ } body > footer p { font-size: 0.85em; } 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: #f7f8fa; margin: auto; margin-top: 50vh; transform: translateY(-50%); padding: 20px 25px 40px; /* top sides bottom */ border: 1px solid #1e262b; width: 425px; } body > footer aside#modal #modal-content dl { display: grid; grid-template-columns: repeat(2, 50%); grid-gap: 5px 25px; } body > footer aside#modal #modal-content dl dt { font-weight: bold; text-align: right; } body > footer aside#modal #modal-content dl dd { text-align: left; margin-left: 0; } /******************************************* 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; }