diff options
| author | polo <ordipolo@gmx.fr> | 2023-03-03 23:44:43 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-03-03 23:44:43 +0100 |
| commit | c0b176ae142624d6a6daa0f65ea6fead448b8b47 (patch) | |
| tree | e06445897db82e0f3cddd13bb2a67860fcf9fc3c /public | |
| parent | a1a9c5d80d800f6c38b900c66c77db05801a6f1d (diff) | |
| download | melaine-c0b176ae142624d6a6daa0f65ea6fead448b8b47.tar.gz melaine-c0b176ae142624d6a6daa0f65ea6fead448b8b47.tar.bz2 melaine-c0b176ae142624d6a6daa0f65ea6fead448b8b47.zip | |
inversion de positions
Diffstat (limited to 'public')
| -rw-r--r-- | public/css/discographie.css | 11 | ||||
| -rw-r--r-- | public/css/main.css (renamed from public/css/accueil.css) | 13 | ||||
| -rw-r--r-- | public/css/menu.css | 4 | ||||
| -rw-r--r-- | public/css/pages_articles_simples.css | 8 | ||||
| -rw-r--r-- | public/icone_descendre.png | bin | 0 -> 8648 bytes | |||
| -rw-r--r-- | public/icone_flèche.xcf | bin | 0 -> 6734 bytes | |||
| -rw-r--r-- | public/icone_monter.png | bin | 0 -> 8655 bytes | |||
| -rw-r--r-- | public/inversion.js | 16 |
8 files changed, 43 insertions, 9 deletions
diff --git a/public/css/discographie.css b/public/css/discographie.css index 0362bb4..4d602fa 100644 --- a/public/css/discographie.css +++ b/public/css/discographie.css | |||
| @@ -45,6 +45,7 @@ aside div | |||
| 45 | z-index: 1; /* placer le menu déroulant au dessus */ | 45 | z-index: 1; /* placer le menu déroulant au dessus */ |
| 46 | /*background-color: #9fa8d0;*/ | 46 | /*background-color: #9fa8d0;*/ |
| 47 | background-color: #a4afd4; | 47 | background-color: #a4afd4; |
| 48 | /*background-color: white;*/ | ||
| 48 | border: 2px #3d4c9d solid; | 49 | border: 2px #3d4c9d solid; |
| 49 | } | 50 | } |
| 50 | 51 | ||
| @@ -60,6 +61,8 @@ aside div | |||
| 60 | #chronologie p a:hover | 61 | #chronologie p a:hover |
| 61 | { | 62 | { |
| 62 | color: black; | 63 | color: black; |
| 64 | /*background-color: #a4afd4;*/ | ||
| 65 | background-color: white; | ||
| 63 | } | 66 | } |
| 64 | 67 | ||
| 65 | .linkChrono | 68 | .linkChrono |
| @@ -115,7 +118,8 @@ input | |||
| 115 | padding-bottom: 20px; | 118 | padding-bottom: 20px; |
| 116 | border-bottom: 1px black solid; | 119 | border-bottom: 1px black solid; |
| 117 | } | 120 | } |
| 118 | .boutonAlbum a | 121 | /* mêmes règles que .boutonArticle dans main.css */ |
| 122 | .boutonAlbum span | ||
| 119 | { | 123 | { |
| 120 | padding: 2px; | 124 | padding: 2px; |
| 121 | border: 4px black groove; | 125 | border: 4px black groove; |
| @@ -132,7 +136,6 @@ input | |||
| 132 | article | 136 | article |
| 133 | { | 137 | { |
| 134 | margin: 5px 0px; | 138 | margin: 5px 0px; |
| 135 | width: 22%; | ||
| 136 | /*min-width: 300px;*/ | 139 | /*min-width: 300px;*/ |
| 137 | } | 140 | } |
| 138 | .articleAvecEditeur | 141 | .articleAvecEditeur |
| @@ -230,6 +233,10 @@ a:hover figure figcaption | |||
| 230 | /* annuler le positionnement du contenu */ | 233 | /* annuler le positionnement du contenu */ |
| 231 | margin-top: 55px; | 234 | margin-top: 55px; |
| 232 | } | 235 | } |
| 236 | article | ||
| 237 | { | ||
| 238 | width: 32%; | ||
| 239 | } | ||
| 233 | } | 240 | } |
| 234 | 241 | ||
| 235 | @media screen and (max-width: 699px) | 242 | @media screen and (max-width: 699px) |
diff --git a/public/css/accueil.css b/public/css/main.css index 2a42e29..77ab7ff 100644 --- a/public/css/accueil.css +++ b/public/css/main.css | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* public/accueil.css */ | 1 | /* public/main.css */ |
| 2 | 2 | ||
| 3 | /*@font-face | 3 | /*@font-face |
| 4 | { | 4 | { |
| @@ -87,6 +87,11 @@ img | |||
| 87 | vertical-align: bottom; | 87 | vertical-align: bottom; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | .boutonArticle span | ||
| 91 | { | ||
| 92 | padding: 2px; | ||
| 93 | border: 4px black groove; | ||
| 94 | } | ||
| 90 | .boutonSubmitEditeur | 95 | .boutonSubmitEditeur |
| 91 | { | 96 | { |
| 92 | margin-top: 5px; | 97 | margin-top: 5px; |
| @@ -111,6 +116,12 @@ article | |||
| 111 | font-size: 90%; | 116 | font-size: 90%; |
| 112 | margin: 5px 0; | 117 | margin: 5px 0; |
| 113 | } | 118 | } |
| 119 | /* Eviter la superposition d’une entête fixe sur une ancre */ | ||
| 120 | article:target | ||
| 121 | { | ||
| 122 | padding-top: 71px; | ||
| 123 | margin-top: -71px; | ||
| 124 | } | ||
| 114 | .articleAvecEditeur | 125 | .articleAvecEditeur |
| 115 | { | 126 | { |
| 116 | background-color: #a8b3d9; | 127 | background-color: #a8b3d9; |
diff --git a/public/css/menu.css b/public/css/menu.css index 28cba08..4bf5262 100644 --- a/public/css/menu.css +++ b/public/css/menu.css | |||
| @@ -13,11 +13,11 @@ | |||
| 13 | { | 13 | { |
| 14 | font-size: 90%; | 14 | font-size: 90%; |
| 15 | } | 15 | } |
| 16 | .boutonArticle a | 16 | /*.boutonArticle span |
| 17 | { | 17 | { |
| 18 | padding: 2px; | 18 | padding: 2px; |
| 19 | border: 4px black groove; | 19 | border: 4px black groove; |
| 20 | } | 20 | }*/ |
| 21 | 21 | ||
| 22 | .sectionActu | 22 | .sectionActu |
| 23 | {} | 23 | {} |
diff --git a/public/css/pages_articles_simples.css b/public/css/pages_articles_simples.css index 9b6d2c3..2f3e901 100644 --- a/public/css/pages_articles_simples.css +++ b/public/css/pages_articles_simples.css | |||
| @@ -26,14 +26,14 @@ figure | |||
| 26 | } | 26 | } |
| 27 | .boutonNouvelArticle | 27 | .boutonNouvelArticle |
| 28 | { | 28 | { |
| 29 | /* comme "article" dans main.css */ | ||
| 29 | font-size: 90%; | 30 | font-size: 90%; |
| 30 | } | 31 | } |
| 31 | .boutonArticle a | 32 | .boutonArticle span |
| 32 | { | 33 | { |
| 33 | padding: 2px; | 34 | position: relative; |
| 34 | border: 4px black groove; | 35 | bottom: 6px; |
| 35 | } | 36 | } |
| 36 | |||
| 37 | @media screen and (min-width: 700px) | 37 | @media screen and (min-width: 700px) |
| 38 | { | 38 | { |
| 39 | #titre | 39 | #titre |
diff --git a/public/icone_descendre.png b/public/icone_descendre.png new file mode 100644 index 0000000..7980297 --- /dev/null +++ b/public/icone_descendre.png | |||
| Binary files differ | |||
diff --git a/public/icone_flèche.xcf b/public/icone_flèche.xcf new file mode 100644 index 0000000..7fcf5d6 --- /dev/null +++ b/public/icone_flèche.xcf | |||
| Binary files differ | |||
diff --git a/public/icone_monter.png b/public/icone_monter.png new file mode 100644 index 0000000..8e213ec --- /dev/null +++ b/public/icone_monter.png | |||
| Binary files differ | |||
diff --git a/public/inversion.js b/public/inversion.js new file mode 100644 index 0000000..20a6871 --- /dev/null +++ b/public/inversion.js | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // public/inversion.js | ||
| 2 | |||
| 3 | // inverser la position de deux "articles" ou albums d'une page | ||
| 4 | function inversion() | ||
| 5 | { | ||
| 6 | var page = ''; | ||
| 7 | var action = ''; // monter ou descendre | ||
| 8 | var fileCode = ''; // <?= $Articles->fileList[$i]['fileCode'] ?> | ||
| 9 | var position = ''; // <?= $Articles->fileList[$i]['position'] ?> | ||
| 10 | |||
| 11 | const xhr = new XMLHttpRequest(); | ||
| 12 | url = 'index.php?page='+page+'&action='+action+'&file_code='+fileCode+'&position='+position+'#'+fileCode; | ||
| 13 | url = 'index.php?action=restauration&file_name='+fileInfos.name+'&file_size='+fileInfos.size; | ||
| 14 | xhr.open("GET", url); | ||
| 15 | xhr.send(); | ||
| 16 | } \ No newline at end of file | ||
