Files
irma-website/css/irma.css
2019-10-29 13:57:55 +01:00

359 lines
5.2 KiB
CSS

/* Language elements */
#language {
font-size: 2em;
}
#language ol {
display: flex;
}
#language li {
margin-right: 0.5em;
list-style-type: none;
}
.langicons img {
max-height: 2rem;
}
/* Scrolling to elements*/
html {
scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
/* Changing header */
.block-header-1--logo img {
max-height: 4.0rem;
}
/* Responsive navigation from: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_topnav */
.topnav {
overflow: hidden;
background-color: #fff;
border-bottom: 1px solid #000;
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.6);
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.6);
background-color: #fff;
position: sticky;
top: 0;
z-index: 999999;
}
.topnav a {
float: left;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
display: block;
}
.topnav .icon {
display: none;
}
#menu {
margin-top: 4px;
/* todo */
}
#hamburger {
max-height: 22px;
/* todo */
}
@media screen and (min-width: 600px) {
#menu {
float: right;
display: flex;
min-height: 90px;
align-items: center;
}
}
@media screen and (max-width: 600px) {
.topnav {
position: static;
}
.topnav .refs {
display: none;
}
.topnav a.icon {
float: right;
display: block;
margin-top: 22px;
/* todo */
}
}
@media screen and (max-width: 600px) {
.topnav.responsive {
position: relative;
}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
#menu a:not(#toggle):hover {
background-color: #ddd;
}
}
/* Scroll adjustment to make up for sticky header */
.destination {
position: absolute;
z-index: -1;
left: 0;
margin-top: -105px;
/* 90 (height of nav) and a 15 for extra space*/
}
/* Double call to action */
.button.primary.inverted {
margin-right: 10px;
margin-bottom: 10px;
}
/* Overwriting colors */
ul,
.faq-item {
font-weight: 400;
color: #666 !important;
}
.button.primary {
background-color: #004C92
}
.button.secondary {
border: 1.5px solid #004C92
}
.block-header-1 .nav-item.active a {
color: #004C92
}
.block-header-1 .nav-item.active a:hover {
color: #004C92
}
.block-header-1 .nav-item.active a {
color: #004C92
}
.block-header-1 .nav-item.active a:hover {
color: #004C92
}
.block-hero-1 {
--bg: #00B1E6
}
.block-hero-2 {
--bg: #004C92
}
.block-cta-bar {
background: #004C92
}
::-moz-selection {
background: #ffedbc
}
::-webkit-selection {
background: #004C92
}
::selection {
background: #004C92
}
.black {
color: #000000;
}
/* Increase font sizes */
column.text p {
font-size: 20px;
font-size: 1.25rem;
}
/* Style collapsible from https://www.w3schools.com/howto/howto_js_collapsible.asp */
/* Style the button that is used to open and close the collapsible content */
.collapsible {
background-color: #ECECEC;
display: block;
margin: auto;
width: 100%;
max-width: 900px;
color: #444;
cursor: pointer;
padding: 18px;
border: none;
border-bottom: 1px solid #fff;
text-align: left;
outline: none;
font-size: 16px;
font-size: 1rem;
}
/* Add a background color to the button if it is clicked on (add the .open class with JS), and when you move the mouse over it (hover) */
.open,
.collapsible:hover {
background-color: #ccc;
color: #313131;
}
/* Style the collapsible content. Note: hidden by default */
.content {
color: #444;
display: block;
margin: auto;
max-width: 900px;
padding: 0px 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.collapsible:after {
content: '\02795';
/* Unicode character for "plus" sign (+) */
font-size: 13px;
color: white;
float: right;
margin-left: 5px;
}
.open:after {
content: "\2796";
/* Unicode character for "minus" sign (-) */
}
.center {
display: block;
padding-bottom: 30px;
margin: auto;
text-align: center;
max-width: 900px;
}
.indent {
padding-left: 30px;
}
.block-footer-2 {
font-size: 12.8px;
font-size: .8rem;
color: white;
background: rgb(69, 68, 68);
text-align: left;
}
.block-footer-2 p {
font-weight: 400;
color: white;
}
.block-footer-2 a {
color: lightskyblue;
}
.block-footer-2 img {
max-width: 200px;
}
.block-footer-2 .column {
flex: 0 0 calc(100% - 4rem);
-ms-flex: 0 0 calc(100% - 4rem);
}
.block-footer-2 .column:first-child {
text-align: center;
}
/* Adjusting the size of elements based on screen size */
@media screen and (min-width:700px) {
.block-hero-2 .column.text {
-ms-flex: 0 0 50%;
flex: 0 0 50%
}
.block-hero-2 .column.media {
-ms-flex: 0 0 50%;
flex: 0 0 50%
}
.block-hero-2 .column.media img {
width: 25vw;
max-width: 350px
}
header {
z-index: 9999;
background-color: #fff;
position: sticky;
top: 0;
width: 100%;
height: 90px;
}
.block-hero-2 {
padding: 3rem 4rem;
}
}
@media screen and (min-width:1200px) {
.block-footer-2 .column {
flex: 0 0 calc(25% - 4rem);
-ms-flex: 0 0 calc(25% - 4rem);
}
.block-footer-2 img {
max-width: 200px;
}
}