Compare commits
7 Commits
be36f341e5
..
v1.6.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c4ebd8690 | |||
| e0e11a5c0c | |||
| d5b8237b72 | |||
| 038d0f2743 | |||
| 12a449f64c | |||
| 87ebec0e5f | |||
| 8b7a042189 |
+20
-71
@@ -1,101 +1,50 @@
|
|||||||
<?php
|
<?php
|
||||||
// Enregistrement des menus
|
// Configuration de base
|
||||||
function wp_theme_sen2_setup() {
|
function wp_theme_sen2_setup() {
|
||||||
|
// Enregistrement des menus
|
||||||
register_nav_menus(array(
|
register_nav_menus(array(
|
||||||
'primary' => 'Menu Principal',
|
'primary' => __('Menu Principal', 'wp-theme-sen2'), // Menu horizontal en haut
|
||||||
|
'sidebar' => __('Menu Latéral', 'wp-theme-sen2') // Menu latéral gauche
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// Supports du thème
|
||||||
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_action('after_setup_theme', 'wp_theme_sen2_setup');
|
add_action('after_setup_theme', 'wp_theme_sen2_setup');
|
||||||
|
|
||||||
// Ajout des feuilles de style et scripts
|
// Chargement des scripts et styles
|
||||||
function wp_theme_sen2_scripts() {
|
function wp_theme_sen2_scripts() {
|
||||||
wp_enqueue_style('wp-theme-sen2-style', get_stylesheet_uri());
|
wp_enqueue_style('wp-theme-sen2-style', get_stylesheet_uri());
|
||||||
wp_enqueue_style('wp-theme-sen2-google-fonts', 'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');
|
wp_enqueue_style('wp-theme-sen2-google-fonts', 'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');
|
||||||
wp_enqueue_style('wp-theme-sen2-font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
|
wp_enqueue_style('wp-theme-sen2-font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
|
||||||
}
|
}
|
||||||
add_action('wp_enqueue_scripts', 'wp_theme_sen2_scripts');
|
add_action('wp_enqueue_scripts', 'wp_theme_sen2_scripts');
|
||||||
|
|
||||||
// Custom Post Type pour Portfolio
|
// Personnalisation du slogan
|
||||||
function wp_theme_sen2_custom_post_type() {
|
|
||||||
register_post_type('portfolio',
|
|
||||||
array(
|
|
||||||
'labels' => array(
|
|
||||||
'name' => 'Portfolio',
|
|
||||||
'singular_name' => 'Projet'
|
|
||||||
),
|
|
||||||
'public' => true,
|
|
||||||
'has_archive' => true,
|
|
||||||
'supports' => array('title', 'editor', 'thumbnail'),
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
add_action('init', 'wp_theme_sen2_custom_post_type');
|
|
||||||
|
|
||||||
// Ajout d'une section "Slogan" dans le Customizer
|
|
||||||
function wp_theme_sen2_customize_register($wp_customize) {
|
function wp_theme_sen2_customize_register($wp_customize) {
|
||||||
$wp_customize->add_section('wp_theme_sen2_slogan_section', array(
|
$wp_customize->add_section('wp_theme_sen2_slogan_section', array(
|
||||||
'title' => __('Slogan du site', 'wp-theme-sen2'),
|
'title' => __('Slogan du site', 'wp-theme-sen2'),
|
||||||
'priority' => 30,
|
'priority' => 30,
|
||||||
));
|
));
|
||||||
|
|
||||||
$wp_customize->add_setting('wp_theme_sen2_slogan', array(
|
$wp_customize->add_setting('wp_theme_sen2_slogan', array(
|
||||||
'default' => 'Photographier l\'humain, révéler l\'essentiel.',
|
'default' => 'Moins de bruit, plus d\'âme.',
|
||||||
'sanitize_callback' => 'sanitize_text_field',
|
'sanitize_callback' => 'sanitize_text_field',
|
||||||
));
|
));
|
||||||
|
|
||||||
$wp_customize->add_control('wp_theme_sen2_slogan_control', array(
|
$wp_customize->add_control('wp_theme_sen2_slogan_control', array(
|
||||||
'label' => __('Slogan', 'wp-theme-sen2'),
|
'label' => __('Slogan', 'wp-theme-sen2'),
|
||||||
'section' => 'wp_theme_sen2_slogan_section',
|
'section' => 'wp_theme_sen2_slogan_section',
|
||||||
'settings' => 'wp_theme_sen2_slogan',
|
'type' => 'text',
|
||||||
'type' => 'text',
|
|
||||||
));
|
|
||||||
|
|
||||||
$wp_customize->add_setting('wp_theme_sen2_show_slogan', array(
|
|
||||||
'default' => true,
|
|
||||||
'sanitize_callback' => 'wp_theme_sen2_sanitize_checkbox',
|
|
||||||
));
|
|
||||||
|
|
||||||
$wp_customize->add_control('wp_theme_sen2_show_slogan_control', array(
|
|
||||||
'label' => __('Afficher le slogan', 'wp-theme-sen2'),
|
|
||||||
'section' => 'wp_theme_sen2_slogan_section',
|
|
||||||
'settings' => 'wp_theme_sen2_show_slogan',
|
|
||||||
'type' => 'checkbox',
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
add_action('customize_register', 'wp_theme_sen2_customize_register');
|
add_action('customize_register', 'wp_theme_sen2_customize_register');
|
||||||
|
|
||||||
function wp_theme_sen2_sanitize_checkbox($checked) {
|
// Supprimer le footer TurnKey Linux
|
||||||
return (isset($checked) && $checked === true) ? true : false;
|
function remove_turnkey_footer() {
|
||||||
|
remove_action('wp_footer', 'turnkey_footer_credit');
|
||||||
}
|
}
|
||||||
|
add_action('init', 'remove_turnkey_footer');
|
||||||
// Mise à jour automatique via Gitea
|
?>
|
||||||
add_filter('site_transient_update_themes', 'wp_theme_sen2_check_for_updates');
|
|
||||||
function wp_theme_sen2_check_for_updates($transient) {
|
|
||||||
if (empty($transient->checked)) return $transient;
|
|
||||||
|
|
||||||
$theme_data = wp_get_theme('wp-theme-sen2');
|
|
||||||
$current_version = $theme_data->get('Version');
|
|
||||||
|
|
||||||
$remote_style_css = 'http://gitea.sen2.lab/admnh/wp-theme-sen2/raw/branch/main/style.css';
|
|
||||||
$remote_data = wp_remote_get($remote_style_css, array(
|
|
||||||
'sslverify' => false,
|
|
||||||
));
|
|
||||||
|
|
||||||
if (!is_wp_error($remote_data) && $remote_data['response']['code'] === 200) {
|
|
||||||
preg_match('/Version:\s*(.*)/i', $remote_data['body'], $matches);
|
|
||||||
$remote_version = $matches[1] ?? null;
|
|
||||||
|
|
||||||
if ($remote_version && version_compare($current_version, $remote_version, '<')) {
|
|
||||||
$transient->response['wp-theme-sen2'] = array(
|
|
||||||
'theme' => 'wp-theme-sen2',
|
|
||||||
'new_version' => $remote_version,
|
|
||||||
'url' => 'http://gitea.sen2.lab/admnh/wp-theme-sen2',
|
|
||||||
'package' => 'http://gitea.sen2.lab/admnh/wp-theme-sen2/archive/main.zip',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $transient;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|||||||
+41
-12
@@ -3,21 +3,50 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="<?php bloginfo('charset'); ?>">
|
<meta charset="<?php bloginfo('charset'); ?>">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<header class="container">
|
<div class="site-wrapper">
|
||||||
<div class="site-branding">
|
<!-- Menu horizontal en haut -->
|
||||||
<h1 class="site-title">
|
|
||||||
<a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
|
|
||||||
<?php if (get_theme_mod('wp_theme_sen2_show_slogan', true)) : ?>
|
|
||||||
<span class="site-slogan"><?php echo esc_html(get_theme_mod('wp_theme_sen2_slogan', 'Photographier l\'humain, révéler l\'essentiel.')); ?></span>
|
|
||||||
<?php endif; ?>
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
<nav class="main-navigation">
|
<nav class="main-navigation">
|
||||||
<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
|
<?php
|
||||||
|
wp_nav_menu(array(
|
||||||
|
'theme_location' => 'primary',
|
||||||
|
'container' => false,
|
||||||
|
'fallback_cb' => false,
|
||||||
|
'depth' => 1
|
||||||
|
));
|
||||||
|
?>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
|
||||||
|
<div class="site-container">
|
||||||
|
<!-- Menu latéral gauche -->
|
||||||
|
<aside class="sidebar">
|
||||||
|
<div class="sidebar-header">
|
||||||
|
<h2 class="site-author"><?php bloginfo('name'); ?></h2>
|
||||||
|
<?php if (get_theme_mod('wp_theme_sen2_show_slogan', true)) : ?>
|
||||||
|
<p class="site-slogan"><?php echo esc_html(get_theme_mod('wp_theme_sen2_slogan', 'Moins de bruit, plus d\'âme.')); ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="sidebar-navigation">
|
||||||
|
<?php
|
||||||
|
wp_nav_menu(array(
|
||||||
|
'theme_location' => 'sidebar',
|
||||||
|
'container' => false,
|
||||||
|
'fallback_cb' => false,
|
||||||
|
'depth' => 1
|
||||||
|
));
|
||||||
|
?>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="sidebar-footer">
|
||||||
|
<a href="#" class="instagram-icon"><i class="fab fa-instagram"></i></a>
|
||||||
|
<p class="copyright">© <?php echo date('Y'); ?> <?php bloginfo('name'); ?></p>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<!-- Contenu principal -->
|
||||||
|
<main class="main-content">
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
// Gestion du menu latéral en mobile si nécessaire
|
||||||
|
const sidebar = document.querySelector('.sidebar');
|
||||||
|
const mainContent = document.querySelector('.main-content');
|
||||||
|
|
||||||
|
// Ajoute une classe pour le mode mobile
|
||||||
|
function checkScreenSize() {
|
||||||
|
if (window.innerWidth <= 768) {
|
||||||
|
document.body.classList.add('mobile-view');
|
||||||
|
} else {
|
||||||
|
document.body.classList.remove('mobile-view');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Exécute au chargement et au redimensionnement
|
||||||
|
checkScreenSize();
|
||||||
|
window.addEventListener('resize', checkScreenSize);
|
||||||
|
});
|
||||||
@@ -1,197 +1,207 @@
|
|||||||
/*
|
/*
|
||||||
Theme Name: WP Theme SEN2
|
Theme Name: WP Theme SEN2
|
||||||
Theme URI: https://ton-site.com/wp-theme-sen2
|
Version: 1.6.0
|
||||||
Author: Nicolas Houzeau
|
Author: Nicolas Houzeau
|
||||||
Author URI: https://ton-site.com
|
Author URI: https://ton-site.com
|
||||||
Description: Un thème sobre et moderne pour portfolio photo, en blanc cassé. Compatible avec Envira Gallery et personnalisable via le Customizer.
|
Description: Un thème sobre et moderne pour portfolio photo, en blanc cassé. Compatible avec Envira Gallery.
|
||||||
Version: 1.0.0
|
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
Text Domain: wp-theme-sen2
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Réinitialisation et base */
|
:root {
|
||||||
|
--primary-color: #2C3E50;
|
||||||
|
--secondary-color: #3498DB;
|
||||||
|
--text-color: #333333;
|
||||||
|
--light-gray: #F9F9F9;
|
||||||
|
--medium-gray: #E0E0E0;
|
||||||
|
--dark-gray: #7F8C8D;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
background-color: #F9F9F9;
|
background-color: var(--light-gray);
|
||||||
color: #333333;
|
color: var(--text-color);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
/* Structure globale */
|
||||||
color: #555555;
|
.site-wrapper {
|
||||||
text-decoration: none;
|
min-height: 100vh;
|
||||||
transition: color 0.3s ease;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
.site-container {
|
||||||
color: #E1306C;
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
min-height: calc(100vh - 60px); /* 60px = hauteur du menu horizontal */
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.sidebar {
|
||||||
max-width: 1200px;
|
width: 250px;
|
||||||
margin: 0 auto;
|
background-color: white;
|
||||||
padding: 0 20px;
|
padding: 30px 20px;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 60px; /* Espace pour le menu horizontal */
|
||||||
|
bottom: 0;
|
||||||
|
overflow-y: auto;
|
||||||
|
border-right: 1px solid var(--medium-gray);
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header et slogan */
|
.main-content {
|
||||||
header {
|
margin-left: 250px; /* Même largeur que le sidebar */
|
||||||
background-color: #F9F9F9;
|
flex: 1;
|
||||||
padding: 30px 0;
|
padding: 30px;
|
||||||
border-bottom: 1px solid #EEEEEE;
|
width: calc(100% - 250px); /* Largeur calculée pour éviter le chevauchement */
|
||||||
|
min-height: calc(100vh - 60px);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-branding {
|
/* Menu horizontal en haut */
|
||||||
margin-bottom: 20px;
|
.main-navigation {
|
||||||
}
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
.site-title {
|
left: 0;
|
||||||
margin: 0;
|
right: 0;
|
||||||
font-size: 24px;
|
background-color: white;
|
||||||
font-weight: 600;
|
padding: 15px 0;
|
||||||
color: #333333;
|
border-bottom: 1px solid var(--medium-gray);
|
||||||
line-height: 1.2;
|
z-index: 20;
|
||||||
}
|
|
||||||
|
|
||||||
.site-title a {
|
|
||||||
text-decoration: none;
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-slogan {
|
|
||||||
display: block;
|
|
||||||
font-family: 'Montserrat', sans-serif;
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #555555;
|
|
||||||
letter-spacing: 0.5px;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation ul {
|
.main-navigation ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 20px;
|
justify-content: center;
|
||||||
|
gap: 30px;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation a {
|
.main-navigation a {
|
||||||
font-weight: 500;
|
color: var(--primary-color);
|
||||||
color: #333333;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
font-weight: 600;
|
||||||
|
font-size: 16px;
|
||||||
.main-navigation a:hover {
|
text-transform: uppercase;
|
||||||
color: #E1306C;
|
letter-spacing: 0.5px;
|
||||||
}
|
|
||||||
|
|
||||||
/* Footer */
|
|
||||||
footer {
|
|
||||||
background-color: #F9F9F9;
|
|
||||||
padding: 20px 0;
|
|
||||||
text-align: center;
|
|
||||||
border-top: 1px solid #EEEEEE;
|
|
||||||
margin-top: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-icons {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instagram-icon {
|
|
||||||
color: #333333;
|
|
||||||
font-size: 24px;
|
|
||||||
transition: color 0.3s ease;
|
transition: color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instagram-icon:hover {
|
.main-navigation a:hover {
|
||||||
color: #E1306C;
|
color: var(--secondary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Galeries Envira */
|
/* Menu latéral */
|
||||||
.envira-gallery-wrap {
|
.sidebar-header {
|
||||||
background-color: #F9F9F9;
|
margin-bottom: 30px;
|
||||||
padding: 20px;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin: 2em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.envira-gallery-item {
|
|
||||||
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.envira-gallery-item:hover {
|
|
||||||
transform: scale(1.03);
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Formulaire de contact */
|
|
||||||
.wpforms-container {
|
|
||||||
max-width: 600px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 20px;
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.wpforms-submit {
|
|
||||||
background-color: #333333;
|
|
||||||
color: #FFFFFF;
|
|
||||||
border: none;
|
|
||||||
padding: 12px 24px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wpforms-submit:hover {
|
|
||||||
background-color: #E1306C;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Page À propos */
|
|
||||||
.about-banner {
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 60px 20px;
|
border-bottom: 1px solid var(--medium-gray);
|
||||||
background-color: #F5F5F5;
|
padding-bottom: 20px;
|
||||||
margin-bottom: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-banner h1 {
|
.site-author {
|
||||||
font-size: 36px;
|
margin: 0;
|
||||||
margin-bottom: 20px;
|
font-size: 24px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-content {
|
.site-slogan {
|
||||||
display: flex;
|
margin: 10px 0 0;
|
||||||
align-items: center;
|
font-size: 14px;
|
||||||
gap: 40px;
|
font-weight: 300;
|
||||||
margin-bottom: 40px;
|
color: var(--dark-gray);
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-text {
|
.sidebar-navigation {
|
||||||
flex: 1;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-image {
|
.sidebar-navigation ul {
|
||||||
flex: 1;
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-image img {
|
.sidebar-navigation li {
|
||||||
width: 100%;
|
margin-bottom: 15px;
|
||||||
border-radius: 8px;
|
}
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
|
.sidebar-navigation a {
|
||||||
|
color: var(--text-color);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 16px;
|
||||||
|
display: block;
|
||||||
|
padding: 5px 0;
|
||||||
|
border-bottom: 1px solid var(--medium-gray);
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-navigation a:hover {
|
||||||
|
color: var(--secondary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer dans le sidebar */
|
||||||
|
.sidebar-footer {
|
||||||
|
margin-top: auto;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 20px;
|
||||||
|
border-top: 1px solid var(--medium-gray);
|
||||||
|
}
|
||||||
|
|
||||||
|
.instagram-icon {
|
||||||
|
color: var(--primary-color);
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyright {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--dark-gray);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Contenu principal */
|
||||||
|
.site-main {
|
||||||
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive */
|
/* Responsive */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.about-content {
|
.site-container {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.about-banner h1 {
|
|
||||||
font-size: 28px;
|
.sidebar {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
top: 60px;
|
||||||
|
border-right: none;
|
||||||
|
border-bottom: 1px solid var(--medium-gray);
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
margin-left: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-navigation ul {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Galerie */
|
||||||
|
.envira-gallery-wrap {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user