1 Commits

Author SHA1 Message Date
Nico 7c4ebd8690 FIX: Correction chevauchement menu latéral/contenu - v1.6.0 2025-10-08 20:36:36 +00:00
3 changed files with 15 additions and 6 deletions
-1
View File
@@ -11,7 +11,6 @@ function wp_theme_sen2_setup() {
add_theme_support('post-thumbnails'); add_theme_support('post-thumbnails');
add_theme_support('title-tag'); add_theme_support('title-tag');
add_theme_support('automatic-feed-links'); add_theme_support('automatic-feed-links');
add_theme_support('html5', array('search-form', 'comment-form', 'comment-list', 'gallery', 'caption'));
} }
add_action('after_setup_theme', 'wp_theme_sen2_setup'); add_action('after_setup_theme', 'wp_theme_sen2_setup');
+1 -2
View File
@@ -49,5 +49,4 @@
</aside> </aside>
<!-- Contenu principal --> <!-- Contenu principal -->
<div class="main-content"> <main class="main-content">
<main class="site-main">
+14 -3
View File
@@ -1,6 +1,10 @@
/* /*
Theme Name: WP Theme SEN2 Theme Name: WP Theme SEN2
Version: 1.5.0 Version: 1.6.0
Author: Nicolas Houzeau
Author URI: https://ton-site.com
Description: Un thème sobre et moderne pour portfolio photo, en blanc cassé. Compatible avec Envira Gallery.
License: GNU General Public License v2 or later
*/ */
:root { :root {
@@ -31,6 +35,7 @@ body {
.site-container { .site-container {
display: flex; display: flex;
flex: 1; flex: 1;
min-height: calc(100vh - 60px); /* 60px = hauteur du menu horizontal */
} }
.sidebar { .sidebar {
@@ -50,8 +55,12 @@ body {
margin-left: 250px; /* Même largeur que le sidebar */ margin-left: 250px; /* Même largeur que le sidebar */
flex: 1; flex: 1;
padding: 30px; padding: 30px;
width: calc(100% - 250px); /* Largeur calculée pour éviter le chevauchement */
min-height: calc(100vh - 60px);
overflow-y: auto;
} }
/* Menu horizontal en haut */
.main-navigation { .main-navigation {
position: fixed; position: fixed;
top: 0; top: 0;
@@ -87,9 +96,12 @@ body {
color: var(--secondary-color); color: var(--secondary-color);
} }
/* Menu latéral */
.sidebar-header { .sidebar-header {
margin-bottom: 30px; margin-bottom: 30px;
text-align: center; text-align: center;
border-bottom: 1px solid var(--medium-gray);
padding-bottom: 20px;
} }
.site-author { .site-author {
@@ -107,7 +119,6 @@ body {
font-style: italic; font-style: italic;
} }
/* Menu latéral */
.sidebar-navigation { .sidebar-navigation {
margin-bottom: 30px; margin-bottom: 30px;
} }
@@ -179,7 +190,7 @@ body {
.main-content { .main-content {
margin-left: 0; margin-left: 0;
padding: 20px; width: 100%;
} }
.main-navigation ul { .main-navigation ul {