durfdoen-2.0/content/stylesheets/main.css

620 lines
9 KiB
CSS
Raw Normal View History

2020-08-28 22:14:28 +02:00
:root {
2020-09-05 18:01:24 +02: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 21:56:34 +02:00
* {
box-sizing: border-box;
}
2020-09-05 18:01:24 +02:00
html,
body {
padding: 0;
margin: 0;
2020-08-29 00:10:51 +02:00
}
html {
2020-09-05 18:01:24 +02:00
background: var(--white);
height: 100%;
}
2020-08-28 22:14:28 +02:00
body {
2020-09-05 18:01:24 +02:00
height: 100%;
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
2020-08-29 00:10:51 +02:00
}
2020-09-15 21:48:02 +02:00
a {
2020-09-16 01:22:41 +02:00
color: inherit;
2020-09-15 21:48:02 +02:00
}
2020-09-12 22:02:12 +02:00
main {
margin-left: 5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
width: calc(100%-5rem);
padding: 2rem 2rem 0 2rem;
}
2020-09-16 01:22:41 +02:00
.main_content {
width: 100%;
margin: 0 auto;
}
2020-09-12 22:02:12 +02:00
.beforeTheFold {
min-height: 100vh;
}
2020-09-16 01:22:41 +02:00
.quizSpotlight {
margin-top: 2rem;
font-size: 2rem;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.quizSpotlight:hover {
cursor: pointer;
}
.quizSpotlight a {
position: relative;
text-decoration: none;
background: var(--white);
color: var(--darkblue);
border: 0.4rem solid var(--darkblue);
padding: 1rem 2rem;
margin-right: 3rem;
}
.quizSpotlight a:hover {
background-color: var(--lightblue);
border: 0.4rem solid var(--lightblue);
color: var(--white);
}
2020-09-12 22:02:12 +02:00
footer {
width: 80%;
2020-09-05 18:01:24 +02:00
margin: 0 auto;
2020-09-12 22:02:12 +02:00
}
2020-09-15 21:48:02 +02:00
details {
2020-09-16 01:22:41 +02:00
margin-bottom: 1rem;
2020-09-15 21:48:02 +02:00
}
summary {
2020-09-16 01:22:41 +02:00
cursor: pointer;
2020-09-15 21:48:02 +02:00
}
details[open] {
2020-09-16 01:22:41 +02:00
border-bottom: 1px solid #000;
2020-09-15 21:48:02 +02:00
}
2020-09-12 22:02:12 +02:00
.align {
2020-09-05 18:01:24 +02:00
max-width: 1280px;
}
2020-09-06 20:41:54 +02:00
.align .large {
max-width: 1500px;
}
2020-09-12 22:02:12 +02:00
.navbar {
z-index: 10;
position: fixed;
background-color: var(--lightblue);
width: 5rem;
height: 100vh;
padding-bottom: 2rem;
transition: width 600ms ease;
}
.navbar-nav {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
}
.nav-item {
width: 100%;
}
.nav-item:last-child {
margin-top: auto;
}
.nav-link {
width: 100%;
display: flex;
align-items: center;
height: 5rem;
color: var(--yellow);
text-decoration: none;
2020-09-13 11:59:34 +02:00
transition: 0.4s;
padding-right: 0.5rem;
2020-09-12 22:02:12 +02:00
}
2020-09-13 11:59:34 +02:00
.nav-link a {
color: inherit;
2020-09-12 22:02:12 +02:00
}
2020-09-16 01:22:41 +02:00
.nav-link:hover,
.active_link {
2020-09-12 22:02:12 +02:00
background: var(--yellow);
color: var(--lightblue);
}
.link-text {
display: none;
margin-left: 1rem;
overflow: hidden;
font-weight: bolder;
}
.nav-link svg {
width: 2rem;
min-width: 2rem;
margin: 0 1.5rem;
}
.nav-item input {
width: 100%;
border: none;
background-color: var(--white);
color: var(--darkblue);
margin: 0;
}
.nav-item input:hover,
.nav-item input:focus {
border: none;
outline: none;
}
2020-09-15 17:56:12 +02:00
.randomVerenigingen p:nth-child(odd) {
2020-09-16 01:22:41 +02:00
-webkit-text-stroke-width: 2px;
-webkit-text-stroke-color: var(--lightblue);
color: transparent;
2020-09-15 17:56:12 +02:00
}
.randomVerenigingen p {
2020-09-16 01:22:41 +02:00
text-transform: uppercase;
2020-09-15 17:56:12 +02:00
}
2020-09-16 01:22:41 +02:00
.randomVereniging {
border: 2px solid var(--yellow);
padding: 1rem;
margin: 1rem;
2020-09-15 17:56:12 +02:00
}
2020-09-16 01:22:41 +02:00
.randomVerenigingWrapper {
min-width: 20rem;
flex: 1;
2020-09-15 17:56:12 +02:00
}
.randomVerenigingenWrapper {
2020-09-16 01:22:41 +02:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2020-09-15 17:56:12 +02:00
}
2020-09-16 01:22:41 +02:00
.randomVerenigingWrapper:nth-child(1) {
padding-top: 4rem;
2020-09-15 17:56:12 +02:00
}
2020-09-16 01:22:41 +02:00
.randomVerenigingWrapper:nth-child(2) {
padding-top: 2rem;
2020-09-15 17:56:12 +02:00
}
2020-09-16 01:22:41 +02:00
.randomVereniging_imageWrapper {
display: flex;
justify-content: center;
margin-bottom: 2rem;
margin-top: 1rem;
2020-09-15 17:56:12 +02:00
}
2020-09-13 11:59:34 +02:00
/* Small screens */
@media only screen and (max-width: 600px) {
.navbar {
bottom: 0;
width: 100vw;
height: 5rem;
padding: 0;
}
.navbar-nav {
flex-direction: row;
}
.nav-link {
justify-content: center;
}
main {
margin: 0;
width: 100%;
padding: 0.5rem;
}
}
/* Large screens */
@media only screen and (min-width: 600px) {
.navbar {
top: 0;
width: 5rem;
height: 100vh;
}
.nav-link__logo {
justify-content: center;
transform: rotate(-90deg);
transition: 0.4s;
2020-09-15 21:44:40 +02:00
margin-bottom: 0.7rem;
2020-09-13 11:59:34 +02:00
}
.navbar:hover,
.navbar:focus,
.navbar:focus-within {
width: 16rem;
}
.navbar:hover .link-text,
.navbar:focus .link-text,
.navbar:focus-within .link-text {
display: block;
}
.navbar:hover .nav-link__logo,
.navbar:focus .nav-link__logo,
.navbar:focus-within .nav-link__logo {
transform: rotate(0deg);
}
main {
min-height: 100%;
}
}
2020-09-12 22:02:12 +02:00
form {
padding: 0;
}
.logo__image {
width: 79px;
height: 83px;
}
.fa-primary {
color: #ff7eee;
}
.fa-secondary {
color: #df49a6;
}
.fa-primary,
.fa-secondary {
transition: var(--transition-speed);
}
2020-09-05 18:01:24 +02:00
button,
input {
font-size: inherit;
font-family: inherit;
color: inherit;
background-color: transparent;
2020-08-29 00:10:51 +02:00
}
2020-09-16 01:22:41 +02:00
2020-08-29 00:10:51 +02:00
button {
2020-09-05 18:01:24 +02:00
border: 0.15em solid var(--darkblue);
2020-08-29 00:10:51 +02:00
}
2020-09-16 01:22:41 +02:00
2020-08-29 00:10:51 +02:00
input {
2020-09-05 18:01:24 +02:00
border: none;
border-bottom: 0.15em solid var(--darkblue);
padding: 0.1em 0.3em;
2020-08-29 00:10:51 +02:00
}
header {
2020-09-05 18:01:24 +02:00
position: relative;
background-color: var(--lightCyan);
}
2020-08-28 22:14:28 +02:00
h2 {
2020-09-05 18:01:24 +02:00
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-size: 3.4rem;
color: var(--darkblue);
}
2020-09-06 20:41:54 +02:00
2020-08-28 22:14:28 +02:00
.beforeTheFold h2 {
2020-09-05 18:01:24 +02:00
max-width: 30rem;
2020-08-28 22:14:28 +02:00
}
.intro {
2020-09-05 18:01:24 +02:00
position: relative;
}
.studentZijn {
2020-09-05 18:01:24 +02:00
margin: 4rem 0 2rem 3rem;
margin: 11vh 0 2rem 3rem;
}
.hidden {
2020-09-05 18:01:24 +02:00
display: none;
}
2020-08-28 22:14:28 +02:00
.quote {
2020-09-05 18:01:24 +02:00
margin-top: 3rem;
display: flex;
position: relative;
z-index: 2;
2020-08-28 22:14:28 +02:00
}
.quote img {
2020-09-05 18:01:24 +02:00
width: 103px;
height: 185px;
margin-right: 2rem;
2020-08-28 22:14:28 +02:00
}
.quote p {
2020-09-05 18:01:24 +02: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-29 00:10:51 +02:00
.scroll {
2020-09-05 18:01:24 +02:00
display: block;
position: absolute;
bottom: 0.5rem;
left: 0;
right: 0;
text-align: center;
z-index: 1;
2020-08-29 00:10:51 +02:00
}
.scroll a {
2020-09-05 18:01:24 +02: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 22:14:28 +02:00
}
2020-08-29 00:10:51 +02:00
.shade {
2020-09-05 18:01:24 +02: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 18:01:24 +02:00
z-index: -2;
position: absolute;
background-color: var(--lightCyan);
2020-08-29 00:10:51 +02:00
}
.header_blueSquare {
2020-09-05 18:01:24 +02:00
right: 20%;
left: -1000px;
left: -100vw;
top: -1000px;
top: -100vw;
bottom: -1rem;
2020-08-29 00:10:51 +02:00
2020-09-05 18:01:24 +02:00
z-index: -3;
2020-08-29 00:10:51 +02:00
}
.header_photo {
2020-09-05 18:01:24 +02:00
background: url(/assets/placeholder.jpg) center center;
background-size: cover;
right: 0;
left: 50%;
bottom: 0;
top: 20%;
}
2020-09-15 21:44:40 +02:00
.underline {
2020-09-05 18:01:24 +02:00
box-shadow: inset 0 -0.15em 0 var(--yellow);
}
2020-09-16 01:22:41 +02:00
.home_link .active_link {
box-shadow: inset 0 -0.1rem 0 var(--darkblue);
2020-09-10 00:28:10 +02:00
}
.link {
2020-09-15 21:05:34 +02:00
color: inherit;
text-decoration: none;
2020-09-10 00:28:10 +02:00
display: grid;
grid-template-columns: minmax(min-content, 25%) 80%;
2020-09-10 00:28:10 +02:00
background-color: #fff;
border-radius: 4px;
2020-09-10 21:56:34 +02:00
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
2020-09-10 00:28:10 +02:00
2020-09-10 22:02:18 +02:00
transition: 0.3s;
transition-property: box-shadow;
2020-09-10 00:28:10 +02:00
gap: 20px;
padding: 0.5rem;
2020-09-16 01:40:48 +02:00
max-width: 600px;
2020-09-15 21:05:34 +02:00
flex-grow: 1;
2020-09-15 21:44:23 +02:00
min-width: 20%;
2020-09-15 21:05:34 +02:00
}
.fancy_link_container {
display: flex;
margin: auto;
gap: 20px;
flex-wrap: wrap;
justify-content: space-evenly;
2020-09-10 00:28:10 +02:00
}
.link:hover {
cursor: pointer;
2020-09-10 22:02:18 +02:00
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}
2020-09-10 00:28:10 +02:00
.link__img {
justify-self: center;
align-self: center;
min-width: 100px;
}
.link__content {
margin-right: 20px;
}
2020-09-10 00:28:10 +02:00
@media only screen and (max-width: 400px) {
.link {
grid-template-columns: auto;
}
}
2020-09-10 21:56:34 +02:00
2020-09-10 23:41:07 +02:00
.tile-grid--flex {
2020-09-10 22:27:07 +02:00
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
2020-09-10 21:56:34 +02:00
}
2020-09-10 23:41:07 +02:00
.tile-grid {
display: grid;
2020-09-12 16:48:24 +02:00
column-gap: 0.5rem;
row-gap: 0.5rem;
2020-09-10 23:41:07 +02:00
2020-09-15 20:46:04 +02:00
align-items: top;
2020-09-10 23:41:07 +02:00
justify-items: center;
2020-09-12 16:48:24 +02:00
align-content: center;
grid-template-columns: repeat(3, minmax(33%, 170px));
2020-09-10 23:41:07 +02:00
}
2020-09-10 21:56:34 +02:00
.tile {
2020-09-15 20:46:04 +02:00
flex-direction: column;
2020-09-10 21:56:34 +02:00
position: relative;
2020-09-15 20:46:04 +02:00
width: 200px;
text-decoration: none;
}
.tile__image {
width: 200px;
height: 200px;
2020-09-10 21:56:34 +02:00
}
2020-09-10 22:52:20 +02:00
.tile--small {
2020-09-15 20:46:04 +02:00
width: 50px;
}
.tile--small .tile__image {
width: 50px;
height: 50px;
2020-09-10 22:52:20 +02:00
}
.tile--medium {
2020-09-15 20:46:04 +02:00
width: 150px;
2020-09-10 22:52:20 +02:00
}
2020-09-15 20:46:04 +02:00
.tile--medium .tile__image {
width: 150px;
height: 150px;
2020-09-12 10:15:01 +02:00
}
2020-09-15 20:46:04 +02:00
.tile__image--blue {
background-color: var(--darkblue);
2020-09-10 21:56:34 +02:00
}
.tile__image {
2020-09-15 20:46:04 +02:00
height: 100%;
width: 100%;
2020-09-12 14:12:13 +02:00
2020-09-15 20:46:04 +02:00
padding: 1rem;
2020-09-12 14:12:13 +02:00
display: flex;
justify-content: center;
2020-09-15 21:02:50 +02:00
transform: scale(1);
transition: transform ease-in 0.1s;
}
.tile:hover .tile__image {
transform: scale(1.1);
2020-09-12 14:12:13 +02:00
}
.tile__image--svg {
width: 100%;
2020-09-15 20:46:04 +02:00
height: 100%;
2020-09-12 11:26:17 +02:00
}
2020-09-16 01:22:41 +02:00
.tile__image img,
.tile__image svg {
2020-09-15 20:46:04 +02:00
width: auto;
height: 100%;
}
.tile__image svg {
fill: var(--white);
2020-09-12 11:26:17 +02:00
}
.tile:hover .tile__title {
opacity: 1;
2020-09-10 21:56:34 +02:00
}
.tile__title {
2020-09-15 20:46:04 +02:00
color: black;
2020-09-10 22:27:07 +02:00
width: 100%;
font-size: 1.5rem;
2020-09-10 21:56:34 +02:00
text-align: center;
2020-09-10 22:27:07 +02:00
font-weight: bold;
padding: 5px;
}
2020-09-10 22:52:20 +02:00
.tile__title--medium {
font-size: 1.2rem;
}
2020-09-10 23:41:07 +02:00
.split-2 {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
2020-09-12 16:48:24 +02:00
gap: 1rem;
2020-09-10 23:41:07 +02:00
}
.split-title {
text-align: center;
2020-09-12 16:48:24 +02:00
min-width: 400px;
2020-09-10 23:41:07 +02:00
}
@media only screen and (max-width: 600px) {
.tile-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
}
2020-09-15 17:56:12 +02:00
@media only screen and (max-width: 1024px) {
2020-09-16 01:22:41 +02:00
.randomVerenigingWrapper:nth-child(1),
.randomVerenigingWrapper:nth-child(2) {
/* Dit heeft hogere prioriteit dan elk kind. */
padding-top: 0;
2020-09-15 17:56:12 +02:00
}
}
2020-09-12 16:48:24 +02:00
@media only screen and (max-width: 300px) {
2020-09-10 23:41:07 +02:00
.tile-grid {
grid-template-columns: auto;
}
}