From e1945c07c33a2318fdbf2479d20e6ab6b4d71499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= Date: Wed, 10 Jan 2024 17:11:13 +0100 Subject: [PATCH] =?UTF-8?q?c'est=20d=C3=A9gueux=20mais=20fonctionnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++ index.html | 21 +++--- style.css | 198 ++++++++++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 196 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index a4ea48d..5d271ac 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,7 @@ node_modules/ average.txt requirements.txt py/.DS_Store +py/.DS_Store +py/.DS_Store +py/.DS_Store +py/nathan/.DS_Store diff --git a/index.html b/index.html index e7931c3..ad6553f 100644 --- a/index.html +++ b/index.html @@ -34,13 +34,13 @@ Cherche ton code ici - +
- +
@@ -90,10 +90,10 @@

HG

- +
+ + +
+

1 2
+
@@ -134,7 +135,7 @@
-
+
diff --git a/style.css b/style.css index fec6702..5e047ba 100644 --- a/style.css +++ b/style.css @@ -1,16 +1,17 @@ -:root { - /* -webkit-user-select: none; */ +@media only screen and (max-width: 1000px) { + :root { + /* -webkit-user-select: none; */ -webkit-touch-callout: none; -ms-user-select: none; -moz-user-select: none; user-select: none; - --color-scheme : light; + --color-scheme: light; --ecriture: black; --background: white; --police: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - --scalenb : 0.5; - --iframe-width : 560px; - --iframe-height : 800px; + --scalenb: 0.5; + --iframe-width: 560px; + --iframe-height: 800px; } html { @@ -32,7 +33,7 @@ #iframe { display: flex; /* width:30vh; */ - height:76vh; + height: 76vh; transform: scale(var(--scalenb)); position: relative; transform-origin: top left; @@ -43,7 +44,7 @@ display: flex; /* margin: 5px; */ background-color: transparent; - + } #iframe-2 { @@ -55,7 +56,7 @@ .iframe-div-1 { /* display: block; */ /* height: 2043px; - width: 1477px; */ + width: 1477px; */ height: var(--iframe-height); width: var(--iframe-width); } @@ -63,16 +64,16 @@ .iframe-div-2 { /* display: block; */ /* height: 2043px; - width: 1477px; */ + width: 1477px; */ height: var(--iframe-height); width: var(--iframe-width); } iframe { /* width: 553px; - height: 794px; */ + height: 794px; */ /* width: fit-content; - height: fit-content; */ + height: fit-content; */ width: 100%; height: 100%; display: block; @@ -97,11 +98,164 @@ margin: 10px; } - #changepagebutton { - position: fixed; - bottom: 0px; + input[type="text"] { + padding: 5px; + margin-bottom: 10px; + border: 1px solid #ccc; + border-radius: 4px; + font-size: 16px; + line-height: 1.5; + width: 130px; + border-color: var(--background); + } + + input[type="radio"] { + margin-top: 10px; + margin-right: 20px; + margin-bottom: 10px; + margin-left: 5px; + } + + button { + /* padding: 5px; */ + background-color: #4CAF50; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + font-size: 16px; + line-height: 1.5; + margin-bottom: 10px; + width: 100px; + height: 40px; + } + + button:hover { + background-color: #3e8e41; + } + + + + button:last-child { + margin-right: 10px; + } + + h1 { + font-size: 15px; + } + + a { + color: #3391ff; + } + #changepagebuttondesktop { + display: none; + } + #changepagebuttonmobile { + position: absolute; + /* bottom: 0px; left: 50%; - transform: translate(-50%); + transform: translate(-50%); */ + } +} + +@media only screen and (min-width: 1001px) { + :root { + /* -webkit-user-select: none; */ + -webkit-touch-callout: none; + -ms-user-select: none; + -moz-user-select: none; + user-select: none; + --color-scheme: light; + --ecriture: black; + --background: white; + --police: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + --scalenb: 0.5; + --iframe-width: 560px; + --iframe-height: 800px; + } + + html { + /* color-scheme: dark !important; */ + color-scheme: var(--color-scheme); + background: var(--background); + color: var(--ecriture); + font-size: 1.5rem; + font-family: var(--police); + } + + body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-size: 16px; + line-height: 1.5; + background-color: var(--background); + } + + #iframe { + display: flex; + /* width:30vh; */ + height: 76vh; + transform: scale(var(--scalenb)); + position: relative; + transform-origin: top left; + margin: 10px; + } + + #iframe-1 { + display: flex; + /* margin: 5px; */ + background-color: transparent; + + } + + #iframe-2 { + display: flex; + /* margin: 5px; */ + background-color: transparent; + } + + .iframe-div-1 { + /* display: block; */ + /* height: 2043px; + width: 1477px; */ + height: var(--iframe-height); + width: var(--iframe-width); + } + + .iframe-div-2 { + /* display: block; */ + /* height: 2043px; + width: 1477px; */ + height: var(--iframe-height); + width: var(--iframe-width); + } + + iframe { + /* width: 553px; + height: 794px; */ + /* width: fit-content; + height: fit-content; */ + width: 100%; + height: 100%; + display: block; + margin-bottom: 20px; + } + + #img { + display: flex; + margin: 5px; + background-color: transparent; + transform: scale(var(--scalenb)); + position: relative; + transform-origin: top left; + } + + img { + width: 50%; + } + + label { + display: block; + margin: 10px; } input[type="text"] { @@ -152,4 +306,14 @@ a { color: #3391ff; - } \ No newline at end of file + } + #changepagebuttondesktop { + position: fixed; + bottom: 0px; + left: 50%; + transform: translate(-50%); + } + #changepagebuttonmobile { + display: none; + } +} \ No newline at end of file