chapellevictoria.fr/assets/css/main.css
2025-09-16 15:49:33 +02:00

508 lines
8.5 KiB
CSS

body {
color: #6c6c6c;
font-family: sans-serif;
line-height: 1.5;
margin: 0;
background-color: #f4f4f4;
}
/* Header */
header {
background-size: cover;
height: 520px;
background-image: url(/chapelle.png);
background-position: center;
/*background-color: rgba(244, 244, 244, 0.1);*/
background-blend-mode: overlay;
}
header > div {
padding-left: 60px;
color: #fff;
font-family: lexend, sans-serif;
font-weight: 700;
font-size: 40px;
}
#header-title {
margin: 45px 0;
max-width: 760px;
}
.burger-menu {
display: none;
}
.menu ul {
list-style-type: none;
display: flex;
justify-content: center;
margin: 0;
padding: 1em 0;
}
a {
color: #da1e2c;
}
.menu a {
margin: 0.6em;
padding: 0 1.5em;
min-width: 220px;
text-align: center;
color: #fff;
color: #fff;
font-family: lexend, sans-serif;
font-optical-sizing: auto;
font-weight: 600;
font-style: normal;
font-size: 24px;
text-decoration: none;
}
.menu a:hover {
text-decoration: underline;
}
@media (max-width: 1240px) {
header > div {
padding: 0;
display: flex;
justify-content: center;
}
#header-title {
width: 100%;
text-align: center;
}
#header-subtitle {
display: none;
}
}
@media (max-width: 750px) {
header {
height: 200px;
}
.menu {
display: none;
}
.burger-menu {
display: inline;
}
.navbar {
width: 100%;
box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
}
.nav-container {
max-width: 1050px;
width: 100%;
margin: auto;
display: flex;
justify-content: space-between;
align-items: center;
height: 62px;
}
.navbar .menu-items {
display: flex;
}
.navbar .nav-container li {
list-style: none;
}
.menu-entry {
padding-bottom: 1.5em;
}
.menu-entry a {
text-decoration: none;
color: #0e2431;
font-weight: 700;
font-size: 1.5rem;
padding: 0.7rem;
}
.nav-container {
display: block;
position: relative;
height: 60px;
}
.nav-container .checkbox {
position: absolute;
display: block;
height: 32px;
width: 32px;
top: 20px;
left: 20px;
z-index: 5;
opacity: 0;
cursor: pointer;
}
.nav-container .hamburger-lines {
display: block;
height: 26px;
width: 32px;
position: absolute;
top: 17px;
left: 20px;
z-index: 2;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.nav-container .hamburger-lines .line {
display: block;
height: 4px;
width: 100%;
border-radius: 10px;
background: #fff;
}
.nav-container .hamburger-lines .line1 {
transform-origin: 0% 0%;
transition: transform 0.4s ease-in-out;
}
.nav-container .hamburger-lines .line2 {
transition: transform 0.2s ease-in-out;
}
.nav-container .hamburger-lines .line3 {
transform-origin: 0% 100%;
transition: transform 0.4s ease-in-out;
}
.navbar .menu-items {
padding-top: 120px;
background-color: rgba(255, 255, 255, 0.9);
height: 100vh;
width: 100%;
transform: translate(-150%);
display: flex;
flex-direction: column;
transition: transform 0.5s ease-in-out;
text-align: center;
}
.nav-container input[type="checkbox"]:checked ~ .menu-items {
transform: translateX(0);
}
.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
transform: rotate(45deg);
}
.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
transform: scaleY(0);
}
.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
transform: rotate(-45deg);
}
#header-title {
font-size: 0.8em;
max-width: 310px;
margin-top: 0em;
}
}
/* Main */
main {
margin: 3.8em auto;
max-width: 1100px;
}
.home {
padding: 0 4em;
display: grid;
gap: 40px;
}
.concerts {
display: grid;
gap: 2em;
}
.concert-entry-small {
display: none;
}
.concert-entry {
padding: 20px;
display: flex;
gap: 1em;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
border-radius: 15px;
align-items: center;
background-color: #fff;
}
.concert-cover img {
max-width: 200px;
height: auto;
}
.concert-date {
min-width: 110px;
margin: 0 0.5em;
font-weight: bold;
font-size: 1.2em;
color: #da1e2c;
}
.concert-date h4 {
margin: 0;
padding: 0.2em;
}
.concert-overview {
display: flex;
flex-direction: column;
flex-grow: 8;
padding: 0 10px;
}
.concert-overview > h2,
.concert-overview > h4 {
margin: 0;
}
.concert-overview > h3 {
min-height: 5.5em;
}
.separator {
overflow: hidden;
width: 90%;
height: 1px;
align-self: center;
margin: 10px 0;
}
.concert-buttons {
width: 100%;
margin-top: 10px;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.concert-button {
background-color: transparent;
border: none;
color: #777;
margin: 0 5px 0 5px;
}
.concert-button > span {
text-decoration: underline;
font-weight: bold;
}
.upcoming {
background-color: #fff;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
border-radius: 15px;
}
.upcoming-entry {
margin-left: 20px;
display: flex;
flex-direction: row;
align-items: center;
}
@media (max-width: 750px) {
main {
max-width: 90%;
padding: 0;
margin-top: 30px;
}
.home {
padding: 0;
}
.concert-entry {
display: none;
}
.concerts {
width: 100%;
display: flex;
flex-direction: column;
}
.concert-entry-small {
display: flex;
flex-direction: column;
border: 1px solid #ddd;
border-radius: 3px;
align-items: center;
background-color: #fff;
padding-bottom: 15px;
margin-bottom: 10px;
}
.concert-entry-container {
display: grid;
grid-template-columns: 3fr 8fr;
}
.concert-entry-small .concert-date {
color: #777;
font-size: 1em;
margin: 15px 0 0 0;
}
.concert-cover {
margin-top: 25px;
margin-left: 10px;
}
.concert-cover > img {
max-width: 100px;
height: auto;
}
.concert-overview {
padding-left: 10px;
}
.concert-overview > a {
color: #da1e2c;
text-decoration: none;
font-size: 1em;
}
.concert-buttons {
width: 100%;
margin-top: 10px;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.concert-button {
background-color: transparent;
border: none;
color: #777;
margin: 0 5px 0 5px;
}
.concert-button > span {
text-decoration: underline;
font-weight: bold;
}
.upcoming h2 {
font-size: 1.3em;
}
}
footer {
text-align: center;
margin-left: auto;
margin-right: auto;
}
.subtitle-overview {
color: #4e4e4e;
margin: 0.4em 0;
}
.cover {
padding: 20px;
}
.single-cover {
width: 250px;
float: right;
margin: 0 0 2em 2em;
}
.overview h2 {
color: #600303;
}
/* Single */
.event {
display: block;
}
.event-date {
color: #da1e2c;
}
.event h2 {
margin-top: 2em;
}
.artists-table {
gap: 10px;
display: flex;
flex-direction: row;
justify-content: center;
margin: 2em 0;
}
.event-cover {
max-width: 250px;
padding: 0 2em;
float: right;
}
.event-intro {
margin-bottom: 50px;
}
.artist-entry {
display: flex;
flex-direction: column;
flex: 1 1 0;
border-radius: 10px;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
padding: 20px;
max-width: 450px;
justify-content: center;
align-items: center;
}
.artist-image {
max-width: 100%;
max-height: 350px;
}
.artist-description {
margin-top: 0;
text-align: center;
}
@media (max-width: 750px) {
.event {
display: flex;
flex-direction: column;
}
.artists-table {
flex-direction: column;
}
.event-cover {
align-self: center;
padding: 0;
margin-bottom: 30px;
}
}