Skip to content

Commit

Permalink
feat: minor css updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SidonieBouthors committed Nov 17, 2023
1 parent 89ac076 commit 17b4f71
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 24 deletions.
45 changes: 26 additions & 19 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,26 @@ a {
width: 5rem;
}

.container {
margin: 1.5em;
max-width: 200ch;
}
@media (min-width:30rem) {
.container {
margin: 2.5em;
}
}
@media (min-width:40rem) {
.container {
margin: 3em;
}
}
@media (min-width:60rem) {
.container {
margin: 5em;
}
}

/* buttons
************************************/

Expand Down Expand Up @@ -337,7 +357,9 @@ nav a:focus {

/****************/
main{
display: block;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
max-width: 100vw;
overflow: hidden;
Expand Down Expand Up @@ -441,7 +463,7 @@ main{

@media (min-width: 60rem){
.quick-info {
margin: 2.5em 35%;
margin: 2.5em 25%;
}
.quick-info-item {
padding: .3em;
Expand Down Expand Up @@ -479,6 +501,8 @@ main{
********************************************/

.chiffres {
width: 100%;
max-width: 140ch;
margin: 4em auto;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -584,10 +608,6 @@ main{
/* infos importantes (page infos)
********************************************/

.infos {
margin: 1.5em;
}

.info-list{
display: flex;
gap: 2em;
Expand All @@ -613,15 +633,7 @@ main{
.info-title h3 {
text-align: left;
}
@media (min-width:30rem) {
.infos {
margin: 2.5em;
}
}
@media (min-width:40rem) {
.infos {
margin: 3em;
}
.info-list{
flex-direction: row;
flex-wrap: wrap;
Expand All @@ -633,9 +645,6 @@ main{
}

@media (min-width:70rem) {
.infos {
margin: 5em;
}
.info-bloc {
max-width: 30%;
}
Expand All @@ -645,7 +654,6 @@ main{
********************************************/

.faq{
margin: 1.5em;
display: flex;
flex-direction: column;
align-items: center;
Expand All @@ -662,7 +670,6 @@ main{
flex-direction: column;
gap:.7em;
break-inside: avoid;
margin: 1em;
}

.faq-q {
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h1>Bienvenue à ICeLAN!
</div>
<img class="hero-img hero-img-2" src="assets/img/borne.svg">
</section>
<section class="about">
<section class="container about">
<h2>Qu'est-ce que c'est ?</h2>
<p class="description">
ICeLAN est un week-end de tournois de jeux vidéo et de jeux de plateau
Expand Down Expand Up @@ -95,7 +95,7 @@ <h3>Repas, Snacks et Boissons</h3>
</div>
<a class="button button-green-flip button-medium" href="/infos.html">Plus d'Infos</a>
</section>
<section class="chiffres">
<section class="conatiner chiffres">
<div class="block-compteur">
<div class="compteur" id="participant-counter">
100
Expand Down
4 changes: 2 additions & 2 deletions infos.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</header>

<main>
<section class="infos">
<section class="container infos">
<h2>Informations Importantes</h2>
<div class="info-list">
<div class="info-bloc">
Expand Down Expand Up @@ -125,7 +125,7 @@ <h3>Questions & Remarques</h3>
</div>
</section>

<section class="faq">
<section class="container faq">
<h2>Foire Aux Questions</h2>
<div class="faq-list">
<div class="faq-bloc">
Expand Down
2 changes: 1 addition & 1 deletion regles.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</header>

<main>
<section class="rules">
<section class="container rules">
<h2>Règlement ICeLAN</h2>
<div class="rule-list">
<h3>Résumé</h3>
Expand Down

0 comments on commit 17b4f71

Please sign in to comment.