From f334f873907791ab67d0de793a195b050c27b5b6 Mon Sep 17 00:00:00 2001 From: asus Date: Sun, 19 Nov 2023 21:24:54 +0100 Subject: [PATCH] resolved pbm of margin in title section, it was because of the min function in font size --- index.html | 11 +++++------ styles/elements/cv.css | 3 +++ styles/elements/sections.css | 4 ---- styles/elements/title.css | 4 ++-- styles/style.css | 10 ++++++---- styles/text.css | 4 +++- 6 files changed, 19 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 741063d..5539b8f 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,8 @@ hugulumu.fr - + @@ -16,7 +16,6 @@ - - - +
-

voici mon CV, que vous pouvez egalement télécharger en pdf

+

version pdf

Informatique

@@ -177,7 +175,7 @@       -
+
                          
                                          
@@ -720,6 +718,7 @@
 
 
 
+
 
 	
 
diff --git a/styles/elements/cv.css b/styles/elements/cv.css
index a7b1f45..318ac4b 100644
--- a/styles/elements/cv.css
+++ b/styles/elements/cv.css
@@ -1,5 +1,6 @@
 
 #cv {
+	place-items: center;
 }
 
 #cv h1,
@@ -20,6 +21,8 @@
 	/*
 	*/
 	margin-left: var(--list-padding);
+	width: fit-content;
+	margin: auto;
 }
 #cv summary + * {
 	margin-top: 10px;
diff --git a/styles/elements/sections.css b/styles/elements/sections.css
index cde8f7a..8b13789 100644
--- a/styles/elements/sections.css
+++ b/styles/elements/sections.css
@@ -1,5 +1 @@
-section {
-	justify-self: center;
-	margin: 50px 20px;
-}
 
diff --git a/styles/elements/title.css b/styles/elements/title.css
index c764b01..8e755cd 100644
--- a/styles/elements/title.css
+++ b/styles/elements/title.css
@@ -1,8 +1,8 @@
 
-#role_title #name {	
+#name {	
 	margin:30px 0px 40px 0px;
 }
-#role_title #title {	
+#title {	
 	margin:30px 0px 40px 0px;
 }
 
diff --git a/styles/style.css b/styles/style.css
index 91e0904..218f52a 100644
--- a/styles/style.css
+++ b/styles/style.css
@@ -2,10 +2,8 @@ html {
 	font-size: 62.5%;
 }
 :root {
-	--small-space: 10px;
-	--medium-space: calc(var(--small-space) * 3);
-	--big-space: calc(var(--small-space) * 10);
 	--list-padding: 10px;
+	--section_side_margin: 20px;
 }
 body {
 	overflow-x: hidden;
@@ -21,6 +19,10 @@ script, style {
 pre {
 	margin: 10px 0px;
 }
+section {
+	justify-self: center;
+	margin: 50px var(--section_side_margin);
+}
 
 
 /*
@@ -42,7 +44,7 @@ pre {
 #banner_7        { grid-area: banner_7;}
 #banner_8        { grid-area: banner_8;}
 
-body {
+#body {
 	/*
 	*/
 	display: grid;
diff --git a/styles/text.css b/styles/text.css
index d81516d..f9ecb6e 100644
--- a/styles/text.css
+++ b/styles/text.css
@@ -36,7 +36,9 @@ h3 { margin: 20px 0px; font-size: 1.75rem; }
 h4 { margin: 20px 0px; font-size: 1.5rem; }
 h5 { margin: 10px 0px; font-size: 1.25rem; }
 h6 { margin: 10px 0px; font-size: 1.0rem; }
+
 pre {
 	line-height: 0.8;
-	font-size: min(2.2vw, 1.0rem);
+	font-size: min(2.1vw, 1.0rem);
 }
+