I hate responsive design

This commit is contained in:
Laurent
2025-03-17 13:22:06 +01:00
parent 6074dc6fd1
commit bdcba88bfd
7 changed files with 55 additions and 45 deletions

View File

@@ -5,7 +5,6 @@
--header-color : #FCFCFC; --header-color : #FCFCFC;
--background-color : rgba(252, 252, 252, 0.43); --background-color : rgba(252, 252, 252, 0.43);
--radius : 3px; --radius : 3px;
--font-size : 1.3rem;
} }
* *
@@ -15,4 +14,19 @@
font-family: 'Afacad Flux', sans-serif; font-family: 'Afacad Flux', sans-serif;
transition: 0.3s all; transition: 0.3s all;
box-sizing: border-box; box-sizing: border-box;
} }
@media screen and (min-width: 1001px) {
:root
{
--font-size : 1.3rem;
}
}
@media screen and (max-width: 1000px) {
:root
{
--font-size : 1.1rem;
}
}

View File

@@ -10,7 +10,6 @@ body
{ {
background-color: white; background-color: white;
font-size: var(--font-size); font-size: var(--font-size);
overflow: hidden;
} }
.layout .layout
@@ -27,21 +26,22 @@ body
align-items: center; align-items: center;
height: 100%; height: 100%;
max-height: 100%; max-height: 100%;
gap: 10vw;
width: 80%; width: 80%;
} }
@media screen and (min-width: 801px) { @media screen and (min-width: 1001px) {
.container .container
{ {
flex-direction: row; flex-direction: row;
gap: 10vw;
} }
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 1000px) {
.container { .container {
flex-direction: column; flex-direction: column;
gap: 50px;
} }
} }

View File

@@ -16,7 +16,6 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
/*justify-content: start;*/
word-break: break-word; word-break: break-word;
height: fit-content; height: fit-content;
@@ -26,17 +25,16 @@
background: rgb(239, 239, 239); background: rgb(239, 239, 239);
} }
@media screen and (min-width: 1001px) {
@media screen and (max-width: 800px) {
.text-block { .text-block {
padding: 5px 15px 5px 15px; padding: 30px;
width: 50%;
} }
} }
@media screen and (min-width: 801px) { @media screen and (max-width: 1000px) {
.text-block { .text-block {
padding: 10px 30px 10px 30px; padding: 10px;
} }
} }
</style> </style>

View File

@@ -64,7 +64,7 @@ nav p {
height: fit-content; height: fit-content;
} }
@media screen and (min-width: 801px) { @media screen and (min-width: 1001px) {
::v-deep(nav .button) { ::v-deep(nav .button) {
width: 5vw; width: 5vw;
@@ -74,7 +74,7 @@ nav p {
} }
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 1000px) {
::v-deep(nav .button) { ::v-deep(nav .button) {
width: 7vw; width: 7vw;

View File

@@ -35,7 +35,7 @@ import NavLink from "@/components/NavLink.vue";
} }
/* MEDIA QUERIES */ /* MEDIA QUERIES */
@media screen and (min-width: 801px) { @media screen and (min-width: 1001px) {
.title { .title {
width: 50%; width: 50%;
@@ -52,7 +52,7 @@ import NavLink from "@/components/NavLink.vue";
} }
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 1000px) {
.title, .event-form { .title, .event-form {
width: 100%; width: 100%;

View File

@@ -4,10 +4,12 @@ import TextBlock from "@/components/TextBlock.vue";
</script> </script>
<template> <template>
<TextBlock> <div class="container">
<h1>Oopsie</h1> <TextBlock>
<p>Something went wrong</p> <h1>Oopsie</h1>
</TextBlock> <p>Something went wrong</p>
</TextBlock>
</div>
</template> </template>
@@ -15,8 +17,6 @@ import TextBlock from "@/components/TextBlock.vue";
.text-block { .text-block {
border-left: solid 4px red; border-left: solid 4px red;
width: 35%;
height: 35%;
} }
</style> </style>

View File

@@ -40,7 +40,6 @@ import TextBlock from "@/components/TextBlock.vue";
.introduction p .introduction p
{ {
width: 80%;
text-align: justify; text-align: justify;
} }
@@ -67,13 +66,13 @@ import TextBlock from "@/components/TextBlock.vue";
.actions-group::after { .actions-group::after {
content: ""; content: "";
position: absolute; position: absolute;
width: 5%; width: 50px;
height: 15%; height: 50px;
border: 4px solid black; border: 4px solid black;
} }
.actions-group::before { .actions-group::before {
top: 0; top: -20px;
left: 0; left: 0;
border-radius: var(--radius); border-radius: var(--radius);
border-right: none; border-right: none;
@@ -81,60 +80,59 @@ import TextBlock from "@/components/TextBlock.vue";
} }
.actions-group::after { .actions-group::after {
bottom: 0; bottom: -20px;
right: 0; right: 0;
border-radius: var(--radius); border-radius: var(--radius);
border-left: none; border-left: none;
border-top: none; border-top: none;
} }
.button { .button {
width: 50%; width: 50%;
min-width: 50%; min-width: 50%;
} }
/* MEDIA QUERIES */ /* MEDIA QUERIES */
@media screen and (min-width: 801px) { @media screen and (min-width: 1001px) {
.introduction {
padding: 0 0 1vw 0;
width: 50%;
min-height: 40vh;
}
.actions-group { .actions-group {
width: 35%; width: 35%;
min-height: 40vh; }
.introduction p
{
width: 90%;
margin-bottom: 0;
} }
.introduction h1 .introduction h1
{ {
font-size: 4rem; font-size: 4rem;
margin-bottom: 5px; margin: 0 5px 5px 5px;
} }
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 1000px) {
.introduction, .actions-group { .introduction, .actions-group {
width: 100%; width: 100%;
} }
.introduction {
height: 60%;
}
.actions-group { .actions-group {
height: 40%; height: 40%;
} }
.introduction p
{
width: 95%;
margin-bottom: 0;
}
.introduction h1 .introduction h1
{ {
font-size: 2.5rem; font-size: 2.5rem;
margin: 5px; margin: 0 5px 5px 5px;
} }
} }
</style> </style>