durfdoen-2.0/content/stylesheets/main.css

470 lines
6.9 KiB
CSS
Raw Normal View History

2020-08-28 20:14:28 +00:00
:root {
2020-09-05 16:01:24 +00:00
--white: hsl(0, 0%, 98%);
--darkblue: #013e7a;
--lightblue: #1a77d3;
--cyan: hsl(192, 100%, 83%);
--lightCyan: hsl(192, 100%, 94%);
--yellow: #fed318;
}
2020-09-10 19:56:34 +00:00
* {
box-sizing: border-box;
}
2020-09-05 16:01:24 +00:00
html,
body {
padding: 0;
margin: 0;
2020-08-28 22:10:51 +00:00
}
html {
2020-09-05 16:01:24 +00:00
background: var(--white);
height: 100%;
}
2020-08-28 20:14:28 +00:00
body {
2020-09-05 16:01:24 +00:00
height: 100%;
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
2020-08-28 22:10:51 +00:00
}
.align {
2020-09-05 16:01:24 +00:00
margin: 0 auto;
max-width: 1280px;
padding: 0 1em;
}
2020-09-06 18:41:54 +00:00
.align .large {
max-width: 1500px;
}
2020-09-05 16:01:24 +00:00
.beforeTheFold,
main {
position: relative;
min-height: 100%;
}
2020-09-05 16:01:24 +00:00
button,
input {
font-size: inherit;
font-family: inherit;
color: inherit;
background-color: transparent;
2020-08-28 22:10:51 +00:00
}
button {
2020-09-05 16:01:24 +00:00
border: 0.15em solid var(--darkblue);
2020-08-28 22:10:51 +00:00
}
input {
2020-09-05 16:01:24 +00:00
border: none;
border-bottom: 0.15em solid var(--darkblue);
padding: 0.1em 0.3em;
2020-08-28 22:10:51 +00:00
}
header {
2020-09-05 16:01:24 +00:00
position: relative;
background-color: var(--lightCyan);
}
header.homepage {
2020-09-05 16:01:24 +00:00
background-color: transparent;
}
nav a {
2020-09-05 16:01:24 +00:00
text-decoration: none;
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
color: var(--darkblue);
padding: 1rem 2rem;
margin: 0 1rem;
}
nav ul {
2020-09-05 16:01:24 +00:00
list-style: none;
justify-content: space-between;
}
nav li {
2020-09-05 16:01:24 +00:00
display: inline-block;
}
nav {
2020-09-05 16:01:24 +00:00
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}
header .logo {
2020-09-05 16:01:24 +00:00
width: 79px;
height: 83px;
}
2020-08-28 20:14:28 +00:00
h2 {
2020-09-05 16:01:24 +00:00
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-size: 3.4rem;
color: var(--darkblue);
}
2020-09-06 18:41:54 +00:00
2020-08-28 20:14:28 +00:00
.beforeTheFold h2 {
2020-09-05 16:01:24 +00:00
max-width: 30rem;
2020-08-28 20:14:28 +00:00
}
.intro {
2020-09-05 16:01:24 +00:00
position: relative;
}
.studentZijn {
2020-09-05 16:01:24 +00:00
margin: 4rem 0 2rem 3rem;
margin: 11vh 0 2rem 3rem;
}
.hidden {
2020-09-05 16:01:24 +00:00
display: none;
}
2020-08-28 20:14:28 +00:00
.quote {
2020-09-05 16:01:24 +00:00
margin-top: 3rem;
display: flex;
position: relative;
z-index: 2;
2020-08-28 20:14:28 +00:00
}
.quote img {
2020-09-05 16:01:24 +00:00
width: 103px;
height: 185px;
margin-right: 2rem;
2020-08-28 20:14:28 +00:00
}
.quote p {
2020-09-05 16:01:24 +00:00
max-width: 25rem;
font-size: 1.5rem;
font-family: Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-style: italic;
font-weight: 500;
margin: 0.5em 0;
}
2020-08-28 20:14:28 +00:00
.quizSpotlight {
2020-09-05 16:01:24 +00:00
margin-top: 2rem;
font-size: 2rem;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
2020-08-28 22:10:51 +00:00
.quizSpotlight a {
2020-09-05 16:01:24 +00:00
position: relative;
text-decoration: none;
background: var(--white);
color: var(--darkblue);
border: 0.4rem solid var(--darkblue);
padding: 1rem 2rem;
margin-right: 3rem;
2020-08-28 22:10:51 +00:00
}
.quizSpotlight a:hover {
2020-09-05 16:01:24 +00:00
background-color: var(--lightblue);
border: 0.4rem solid var(--lightblue);
color: var(--white);
2020-08-28 20:14:28 +00:00
}
2020-08-28 22:10:51 +00:00
.scroll {
2020-09-05 16:01:24 +00:00
display: block;
position: absolute;
bottom: 0.5rem;
left: 0;
right: 0;
text-align: center;
z-index: 1;
2020-08-28 22:10:51 +00:00
}
.scroll a {
2020-09-05 16:01:24 +00:00
display: inline-block;
color: var(--darkblue);
font-size: 1.1rem;
text-decoration: none;
padding: 0.7rem 1.1rem;
font-weight: 500;
text-shadow: 0 0 1em hsla(0, 0%, 100%, 1), 0 0 1em hsla(0, 0%, 100%, 1),
0 0 0.1em hsla(0, 0%, 100%, 1);
2020-08-28 20:14:28 +00:00
}
2020-08-28 22:10:51 +00:00
.shade {
2020-09-05 16:01:24 +00:00
z-index: -1;
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 7rem;
background: linear-gradient(hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0.6));
}
.backgroundSquare {
2020-09-05 16:01:24 +00:00
z-index: -2;
position: absolute;
background-color: var(--lightCyan);
2020-08-28 22:10:51 +00:00
}
.header_blueSquare {
2020-09-05 16:01:24 +00:00
right: 20%;
left: -1000px;
left: -100vw;
top: -1000px;
top: -100vw;
bottom: -1rem;
2020-08-28 22:10:51 +00:00
2020-09-05 16:01:24 +00:00
z-index: -3;
2020-08-28 22:10:51 +00:00
}
.header_photo {
2020-09-05 16:01:24 +00:00
background: url(/assets/placeholder.jpg) center center;
background-size: cover;
right: 0;
left: 50%;
bottom: 0;
top: 20%;
}
.randomVerenigingen p:nth-child(odd) {
2020-09-05 16:01:24 +00:00
-webkit-text-stroke-width: 2px;
-webkit-text-stroke-color: var(--lightblue);
color: transparent;
}
2020-08-28 20:14:28 +00:00
.randomVerenigingen p {
2020-09-05 16:01:24 +00:00
text-transform: uppercase;
}
.underline,
.active_link {
box-shadow: inset 0 -0.15em 0 var(--yellow);
}
#postcodeField {
-webkit-appearance: none;
margin: 0;
}
#postcodeField::-webkit-outer-spin-button,
#postcodeField::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
2020-09-05 16:01:24 +00:00
/* Firefox */
#postcodeField[type="number"] {
-moz-appearance: textfield;
2020-08-28 20:14:28 +00:00
}
fieldset {
2020-09-09 22:28:10 +00:00
max-height: 60vh;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
overflow-y: auto;
margin: auto;
}
2020-09-06 18:41:54 +00:00
fieldset p label {
display: flex;
}
fieldset p {
2020-09-09 22:28:10 +00:00
margin: 15px 10px;
}
fieldset p label input {
2020-09-09 22:28:10 +00:00
margin-right: 10px;
}
.buttons {
width: 70%;
margin: 20px auto;
display: flex;
justify-content: space-between;
}
.link {
display: grid;
grid-template-columns: minmax(min-content, 25%) 80%;
2020-09-09 22:28:10 +00:00
background-color: #fff;
border-radius: 4px;
2020-09-10 19:56:34 +00:00
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
2020-09-09 22:28:10 +00:00
2020-09-10 20:02:18 +00:00
transition: 0.3s;
transition-property: box-shadow;
2020-09-09 22:28:10 +00:00
margin: 30px auto;
gap: 20px;
padding: 0.5rem;
2020-09-09 22:28:10 +00:00
}
.link:hover {
cursor: pointer;
2020-09-10 20:02:18 +00:00
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}
2020-09-09 22:28:10 +00:00
.link__img {
justify-self: center;
align-self: center;
min-width: 100px;
}
.link__content {
margin-right: 20px;
}
2020-09-09 22:28:10 +00:00
@media only screen and (max-width: 400px) {
.link {
grid-template-columns: auto;
}
}
2020-09-10 19:56:34 +00:00
2020-09-10 21:41:07 +00:00
.tile-grid--flex {
2020-09-10 20:27:07 +00:00
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
2020-09-10 19:56:34 +00:00
}
2020-09-10 21:41:07 +00:00
.tile-grid {
display: grid;
gap: 0.5rem;
align-items: center;
justify-items: center;
grid-template-columns: repeat(3, minmax(33%, 12vw));
}
2020-09-10 19:56:34 +00:00
.tile {
2020-09-10 20:27:07 +00:00
min-width: 200px;
max-width: 300px;
flex: 1 0 calc(25% - 10px);
margin: 5px;
background: #111;
2020-09-10 19:56:34 +00:00
position: relative;
}
2020-09-10 20:52:20 +00:00
.tile--small {
min-width: 50px;
2020-09-10 21:41:07 +00:00
max-width: 50px;
2020-09-10 20:52:20 +00:00
}
.tile--medium {
min-width: 150px;
2020-09-10 21:41:07 +00:00
max-width: 33%;
2020-09-10 20:52:20 +00:00
}
2020-09-12 12:12:13 +00:00
.tile--blue {
background-color: var(--darkblue);
2020-09-12 08:15:01 +00:00
}
2020-09-10 19:56:34 +00:00
.tile::before {
content: "";
2020-09-10 20:27:07 +00:00
float: left;
padding-top: 100%;
2020-09-10 19:56:34 +00:00
}
.tile__image {
2020-09-10 20:27:07 +00:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2020-09-10 19:56:34 +00:00
height: 80%;
2020-09-10 20:27:07 +00:00
width: auto;
2020-09-12 09:26:17 +00:00
transition: ease-in 0.2s;
transition-property: filter;
2020-09-12 12:12:13 +00:00
display: flex;
justify-content: center;
}
.tile__image--svg {
width: 80%;
height: auto;
fill: var(--white);
}
.tile__image svg {
width: 100%;
2020-09-12 09:26:17 +00:00
}
.tile:hover .tile__image {
filter: blur(2px);
}
.tile:hover .tile__title {
opacity: 1;
2020-09-10 19:56:34 +00:00
}
.tile__title {
2020-09-12 09:26:17 +00:00
opacity: 0;
2020-09-10 19:56:34 +00:00
position: absolute;
bottom: 0;
2020-09-10 20:27:07 +00:00
left: 0;
width: 100%;
max-width: 100%;
font-size: 1.5rem;
2020-09-10 19:56:34 +00:00
text-align: center;
2020-09-10 20:27:07 +00:00
font-weight: bold;
2020-09-10 19:56:34 +00:00
color: white;
text-shadow: 2px 2px #333;
2020-09-10 20:27:07 +00:00
padding: 5px;
2020-09-12 09:26:17 +00:00
transition: ease-in 0.2s;
transition-property: opacity;
2020-09-10 20:27:07 +00:00
}
2020-09-10 20:52:20 +00:00
.tile__title--medium {
font-size: 1.2rem;
}
2020-09-10 20:27:07 +00:00
.clickable {
transform: scale(1);
transition: ease-in 0.2s;
transition-property: transform;
}
.clickable:hover {
cursor: pointer;
transform: scale(1.05);
2020-09-10 19:56:34 +00:00
}
2020-09-10 21:41:07 +00:00
.split-2 {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
.split-2-1,
.split-2-2 {
min-width: 400px;
flex-basis: 1;
}
2020-09-12 08:15:01 +00:00
.split-2-2,
.split-2-1 {
2020-09-10 21:41:07 +00:00
width: 45%;
}
.split-title {
text-align: center;
}
@media only screen and (max-width: 600px) {
.tile-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.1rem;
}
}
@media only screen and (max-width: 400px) {
.tile-grid {
grid-template-columns: auto;
gap: 0.1rem;
}
}