Initialising theme
This commit is contained in:
commit
f5061f6eab
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
/node_modules
|
||||||
|
/.idea
|
||||||
|
/.vscode
|
||||||
|
.DS_Store
|
||||||
|
*/.DS_Store
|
||||||
|
Makefile
|
||||||
|
init_script.sh
|
||||||
|
/css
|
||||||
|
/js
|
||||||
|
.env
|
||||||
|
.env-sample
|
||||||
|
.env-dev
|
||||||
|
.env-prod
|
||||||
|
Makefile
|
||||||
6
.prettierrc
Normal file
6
.prettierrc
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"tabWidth": 2,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"printWidth": 60
|
||||||
|
}
|
||||||
45
front-page.php
Normal file
45
front-page.php
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
<?php get_header(); ?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="homegrade-page-container homegrade-page-container--metiers-patrimoine">
|
||||||
|
|
||||||
|
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||||
|
|
||||||
|
<nav class=" breadcrumbs_navigation" aria-label="<?php echo __("Vous êtes ici", "homegrade-theme__texte-fonctionnel") ?>">
|
||||||
|
<?php
|
||||||
|
$currentPage = get_post();
|
||||||
|
$parentPage = $currentPage->post_parent !== 0 ? get_post($currentPage->post_parent) : null;
|
||||||
|
$grandParentPage = $parentPage && $parentPage->post_parent ? get_post($parentPage->post_parent) : null;
|
||||||
|
|
||||||
|
?>
|
||||||
|
<ol>
|
||||||
|
<li>
|
||||||
|
<a href="<?php echo home_url() ?>" title="<?php echo __("Accueil", "homegrade-theme__texte-fonctionnel") ?>">
|
||||||
|
<img src="<?php echo get_template_directory_uri() . "/resources/img/pictogrammes/icon_house_dark.svg" ?>" alt="">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php if ($grandParentPage) : ?>
|
||||||
|
<li><a href="<?php echo get_post_permalink($grandParentPage) ?>"><?php echo $grandParentPage->post_title ?></a></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($parentPage) : ?>
|
||||||
|
<li><a href="<?php echo get_post_permalink($parentPage) ?>"><?php echo $parentPage->post_title ?></a></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($currentPage) : ?>
|
||||||
|
<li><a href="<?php echo get_post_permalink($currentPage) ?>" aria-current="location" aria-disabled="true"><?php echo $currentPage->post_title ?></a></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
the_content();
|
||||||
|
?>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_footer();
|
||||||
6
functions.php
Normal file
6
functions.php
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
require_once(__DIR__ . '/includes/init.php');
|
||||||
|
require_once(__DIR__ . '/includes/post_types.php');
|
||||||
28
includes/init.php
Normal file
28
includes/init.php
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?php
|
||||||
|
/* -----------------------------------------------------------
|
||||||
|
Enqueue Theme assets 🡒 Front
|
||||||
|
-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
function metiers_patrimoine_enqueue_scripts()
|
||||||
|
{
|
||||||
|
$theme = wp_get_theme();
|
||||||
|
wp_enqueue_style('metiers-theme-main-css', get_stylesheet_directory_uri() . '/css/app.css', array('homegrade-main-css'), $theme->get('Version'));
|
||||||
|
}
|
||||||
|
add_action('wp_enqueue_scripts', 'metiers_patrimoine_enqueue_scripts');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function wpacg_mtier_patrimoine_admin_color_scheme()
|
||||||
|
{
|
||||||
|
//Get the theme directory
|
||||||
|
$theme_dir = get_stylesheet_directory_uri();
|
||||||
|
|
||||||
|
//Métier Patrimoine
|
||||||
|
wp_admin_css_color(
|
||||||
|
'metier_patrimoine',
|
||||||
|
__('Métier Patrimoine'),
|
||||||
|
$theme_dir . '/metier_patrimoine.css',
|
||||||
|
array('#282a34', '#fff', '#e14d43', '#8b2ff7')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
add_action('admin_init', 'wpacg_mtier_patrimoine_admin_color_scheme');
|
||||||
34
includes/post_types.php
Normal file
34
includes/post_types.php
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #### POST TYPES
|
||||||
|
function metiers_patrimoine_create_posttype()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
// **** VOCABULAIRE
|
||||||
|
register_post_type(
|
||||||
|
'artisans',
|
||||||
|
array(
|
||||||
|
'labels' => array(
|
||||||
|
'name' => __('Artisans', 'metiers-patrimoine-theme'),
|
||||||
|
'singular_name' => __('Artisan', 'metiers-patrimoine-theme')
|
||||||
|
),
|
||||||
|
'public' => true,
|
||||||
|
'has_archive' => true,
|
||||||
|
'show_in_rest' => true,
|
||||||
|
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" fill="currentColor"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3V245.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 90.5V416c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V389.2C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112h32c24 0 46.2 7.5 64.4 20.3zM448 416V394.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176h32c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2V416c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7v84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3V261.7c-10 11.3-16 26.1-16 42.3zm144-42.3v84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2V448c0 17.7-14.3 32-32 32H288c-17.7 0-32-14.3-32-32V405.2c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112h32c61.9 0 112 50.1 112 112z"/></svg>'),
|
||||||
|
// 'menu_icon' => 'dashicons-hammer',
|
||||||
|
|
||||||
|
|
||||||
|
'menu_position' => 5.1,
|
||||||
|
'supports' => array('title', 'custom-fields'),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
add_action('init', 'metiers_patrimoine_create_posttype');
|
||||||
575
metier_patrimoine.css
Normal file
575
metier_patrimoine.css
Normal file
|
|
@ -0,0 +1,575 @@
|
||||||
|
body {
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links */
|
||||||
|
a {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover, a:active, a:focus {
|
||||||
|
color: #a660f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-body .misc-pub-post-status:before,
|
||||||
|
#post-body #visibility:before,
|
||||||
|
.curtime #timestamp:before,
|
||||||
|
#post-body .misc-pub-revisions:before,
|
||||||
|
span.wp-media-buttons-icon:before {
|
||||||
|
color: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms */
|
||||||
|
input[type=checkbox]:checked::before {
|
||||||
|
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23363b3f%27%2F%3E%3C%2Fsvg%3E");
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=radio]:checked::before {
|
||||||
|
background: #363b3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui input[type="reset"]:hover,
|
||||||
|
.wp-core-ui input[type="reset"]:active {
|
||||||
|
color: #a660f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"]:focus,
|
||||||
|
input[type="password"]:focus,
|
||||||
|
input[type="color"]:focus,
|
||||||
|
input[type="date"]:focus,
|
||||||
|
input[type="datetime"]:focus,
|
||||||
|
input[type="datetime-local"]:focus,
|
||||||
|
input[type="email"]:focus,
|
||||||
|
input[type="month"]:focus,
|
||||||
|
input[type="number"]:focus,
|
||||||
|
input[type="search"]:focus,
|
||||||
|
input[type="tel"]:focus,
|
||||||
|
input[type="text"]:focus,
|
||||||
|
input[type="time"]:focus,
|
||||||
|
input[type="url"]:focus,
|
||||||
|
input[type="week"]:focus,
|
||||||
|
input[type="checkbox"]:focus,
|
||||||
|
input[type="radio"]:focus,
|
||||||
|
select:focus,
|
||||||
|
textarea:focus {
|
||||||
|
border-color: #8b2ff7;
|
||||||
|
box-shadow: 0 0 0 1px #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Core UI */
|
||||||
|
.wp-core-ui .button,
|
||||||
|
.wp-core-ui .button-secondary {
|
||||||
|
color: #363b3f;
|
||||||
|
border-color: #363b3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button.hover,
|
||||||
|
.wp-core-ui .button:hover,
|
||||||
|
.wp-core-ui .button-secondary:hover,
|
||||||
|
.wp-core-ui .button.focus,
|
||||||
|
.wp-core-ui .button:focus,
|
||||||
|
.wp-core-ui .button-secondary:focus {
|
||||||
|
border-color: #2a2e31;
|
||||||
|
color: #2a2e31;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button.focus,
|
||||||
|
.wp-core-ui .button:focus,
|
||||||
|
.wp-core-ui .button-secondary:focus {
|
||||||
|
border-color: #363b3f;
|
||||||
|
color: #2a2e31;
|
||||||
|
box-shadow: 0 0 0 1px #363b3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button:active {
|
||||||
|
background: #2a2e31;
|
||||||
|
border-color: #2a2e31;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button.active,
|
||||||
|
.wp-core-ui .button.active:focus,
|
||||||
|
.wp-core-ui .button.active:hover {
|
||||||
|
border-color: #2a2e31;
|
||||||
|
color: #2a2e31;
|
||||||
|
box-shadow: inset 0 2px 5px -3px #2a2e31;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-primary {
|
||||||
|
background: #363b3f;
|
||||||
|
border-color: #363b3f;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
|
||||||
|
background: #3d4347;
|
||||||
|
border-color: #2f3337;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-primary:focus {
|
||||||
|
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #363b3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-primary:active {
|
||||||
|
background: #2a2e31;
|
||||||
|
border-color: #2a2e31;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
|
||||||
|
background: #363b3f;
|
||||||
|
color: #fff;
|
||||||
|
border-color: #131416;
|
||||||
|
box-shadow: inset 0 2px 5px -3px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-primary[disabled], .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.button-primary-disabled, .wp-core-ui .button-primary.disabled {
|
||||||
|
color: #c7cdd1 !important;
|
||||||
|
background: #232629 !important;
|
||||||
|
border-color: #232629 !important;
|
||||||
|
text-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .button-group > .button.active {
|
||||||
|
border-color: #363b3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-primary {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-text-primary {
|
||||||
|
color: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-highlight {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-text-highlight {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-notification {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #e14d43;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-text-notification {
|
||||||
|
color: #e14d43;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-core-ui .wp-ui-text-icon {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* List tables */
|
||||||
|
.wrap .add-new-h2:hover,
|
||||||
|
.wrap .page-title-action:hover {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-switch a.current:before {
|
||||||
|
color: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-switch a:hover:before {
|
||||||
|
color: #e14d43;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Menu */
|
||||||
|
#adminmenuback,
|
||||||
|
#adminmenuwrap,
|
||||||
|
#adminmenu {
|
||||||
|
background: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu div.wp-menu-image:before {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu a:hover,
|
||||||
|
#adminmenu li.menu-top:hover,
|
||||||
|
#adminmenu li.opensub > a.menu-top,
|
||||||
|
#adminmenu li > a.menu-top:focus {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.menu-top:hover div.wp-menu-image:before,
|
||||||
|
#adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Active tabs use a bottom border color that matches the page background color. */
|
||||||
|
.about-wrap .nav-tab-active,
|
||||||
|
.nav-tab-active,
|
||||||
|
.nav-tab-active:hover {
|
||||||
|
background-color: #fff;
|
||||||
|
border-bottom-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Menu: submenu */
|
||||||
|
#adminmenu .wp-submenu,
|
||||||
|
#adminmenu .wp-has-current-submenu .wp-submenu,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu,
|
||||||
|
.folded #adminmenu .wp-has-current-submenu .wp-submenu,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
|
||||||
|
background: #181a20;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
|
||||||
|
border-right-color: #181a20;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu .wp-submenu-head {
|
||||||
|
color: #bfbfc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu a,
|
||||||
|
#adminmenu .wp-has-current-submenu .wp-submenu a,
|
||||||
|
.folded #adminmenu .wp-has-current-submenu .wp-submenu a,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
|
||||||
|
color: #bfbfc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
|
||||||
|
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
|
||||||
|
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
|
||||||
|
.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,
|
||||||
|
.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Menu: current */
|
||||||
|
#adminmenu .wp-submenu li.current a,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
|
||||||
|
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,
|
||||||
|
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#adminmenu a.wp-has-current-submenu:after,
|
||||||
|
ul#adminmenu > li.current > a.current:after {
|
||||||
|
border-right-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.current a.menu-top,
|
||||||
|
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
|
||||||
|
#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
|
||||||
|
.folded #adminmenu li.current.menu-top {
|
||||||
|
color: #fff;
|
||||||
|
background: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
|
||||||
|
#adminmenu a.current:hover div.wp-menu-image:before,
|
||||||
|
#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
|
||||||
|
#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
|
||||||
|
#adminmenu li:hover div.wp-menu-image:before,
|
||||||
|
#adminmenu li a:focus div.wp-menu-image:before,
|
||||||
|
#adminmenu li.opensub div.wp-menu-image:before,
|
||||||
|
.ie8 #adminmenu li.opensub div.wp-menu-image:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Menu: bubble */
|
||||||
|
#adminmenu .awaiting-mod,
|
||||||
|
#adminmenu .update-plugins {
|
||||||
|
color: #fff;
|
||||||
|
background: #e14d43;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.current a .awaiting-mod,
|
||||||
|
#adminmenu li a.wp-has-current-submenu .update-plugins,
|
||||||
|
#adminmenu li:hover a .awaiting-mod,
|
||||||
|
#adminmenu li.menu-top:hover > a .update-plugins {
|
||||||
|
color: #fff;
|
||||||
|
background: #181a20;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Menu: collapse button */
|
||||||
|
#collapse-button {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#collapse-button:hover,
|
||||||
|
#collapse-button:focus {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Bar */
|
||||||
|
#wpadminbar {
|
||||||
|
color: #fff;
|
||||||
|
background: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .ab-item,
|
||||||
|
#wpadminbar a.ab-item,
|
||||||
|
#wpadminbar > #wp-toolbar span.ab-label,
|
||||||
|
#wpadminbar > #wp-toolbar span.noticon {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .ab-icon,
|
||||||
|
#wpadminbar .ab-icon:before,
|
||||||
|
#wpadminbar .ab-item:before,
|
||||||
|
#wpadminbar .ab-item:after {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
|
||||||
|
#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
|
||||||
|
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
|
||||||
|
#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
|
||||||
|
#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
|
||||||
|
color: #8b2ff7;
|
||||||
|
background: #181a20;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
|
||||||
|
#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
|
||||||
|
#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar:not(.mobile) li:hover .ab-icon:before,
|
||||||
|
#wpadminbar:not(.mobile) li:hover .ab-item:before,
|
||||||
|
#wpadminbar:not(.mobile) li:hover .ab-item:after,
|
||||||
|
#wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Bar: submenu */
|
||||||
|
#wpadminbar .menupop .ab-sub-wrapper {
|
||||||
|
background: #181a20;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
|
||||||
|
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
|
||||||
|
background: #3c3d44;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .ab-submenu .ab-item,
|
||||||
|
#wpadminbar .quicklinks .menupop ul li a,
|
||||||
|
#wpadminbar .quicklinks .menupop.hover ul li a,
|
||||||
|
#wpadminbar.nojs .quicklinks .menupop:hover ul li a {
|
||||||
|
color: #bfbfc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .quicklinks li .blavatar,
|
||||||
|
#wpadminbar .menupop .menupop > .ab-item:before {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .quicklinks .menupop ul li a:hover,
|
||||||
|
#wpadminbar .quicklinks .menupop ul li a:focus,
|
||||||
|
#wpadminbar .quicklinks .menupop ul li a:hover strong,
|
||||||
|
#wpadminbar .quicklinks .menupop ul li a:focus strong,
|
||||||
|
#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
|
||||||
|
#wpadminbar .quicklinks .menupop.hover ul li a:hover,
|
||||||
|
#wpadminbar .quicklinks .menupop.hover ul li a:focus,
|
||||||
|
#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
|
||||||
|
#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
|
||||||
|
#wpadminbar li:hover .ab-icon:before,
|
||||||
|
#wpadminbar li:hover .ab-item:before,
|
||||||
|
#wpadminbar li a:focus .ab-icon:before,
|
||||||
|
#wpadminbar li .ab-item:focus:before,
|
||||||
|
#wpadminbar li .ab-item:focus .ab-icon:before,
|
||||||
|
#wpadminbar li.hover .ab-icon:before,
|
||||||
|
#wpadminbar li.hover .ab-item:before,
|
||||||
|
#wpadminbar li:hover #adminbarsearch:before,
|
||||||
|
#wpadminbar li #adminbarsearch.adminbar-focused:before {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .quicklinks li a:hover .blavatar,
|
||||||
|
#wpadminbar .quicklinks li a:focus .blavatar,
|
||||||
|
#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar,
|
||||||
|
#wpadminbar .menupop .menupop > .ab-item:hover:before,
|
||||||
|
#wpadminbar.mobile .quicklinks .ab-icon:before,
|
||||||
|
#wpadminbar.mobile .quicklinks .ab-item:before {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
|
||||||
|
#wpadminbar.mobile .quicklinks .hover .ab-item:before {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Bar: search */
|
||||||
|
#wpadminbar #adminbarsearch:before {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
|
||||||
|
color: #fff;
|
||||||
|
background: #383a48;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Bar: recovery mode */
|
||||||
|
#wpadminbar #wp-admin-bar-recovery-mode {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #e14d43;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar #wp-admin-bar-recovery-mode .ab-item,
|
||||||
|
#wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item,
|
||||||
|
#wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
|
||||||
|
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
|
||||||
|
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #cb453c;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin Bar: my account */
|
||||||
|
#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
|
||||||
|
border-color: #383a48;
|
||||||
|
background-color: #383a48;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar #wp-admin-bar-user-info .display-name {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar #wp-admin-bar-user-info a:hover .display-name {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar #wp-admin-bar-user-info .username {
|
||||||
|
color: #bfbfc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pointers */
|
||||||
|
.wp-pointer .wp-pointer-content h3 {
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
border-color: #7d16f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-pointer .wp-pointer-content h3:before {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-pointer.wp-pointer-top .wp-pointer-arrow,
|
||||||
|
.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
|
||||||
|
.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
|
||||||
|
.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
|
||||||
|
border-bottom-color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Media */
|
||||||
|
.media-item .bar,
|
||||||
|
.media-progress-bar div {
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.details.attachment {
|
||||||
|
box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment.details .check {
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
box-shadow: 0 0 0 1px #fff, 0 0 0 2px #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-selection .attachment.selection.details .thumbnail {
|
||||||
|
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Themes */
|
||||||
|
.theme-browser .theme.active .theme-name,
|
||||||
|
.theme-browser .theme.add-new-theme a:hover:after,
|
||||||
|
.theme-browser .theme.add-new-theme a:focus:after {
|
||||||
|
background: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-browser .theme.add-new-theme a:hover span:after,
|
||||||
|
.theme-browser .theme.add-new-theme a:focus span:after {
|
||||||
|
color: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-section.current,
|
||||||
|
.theme-filter.current {
|
||||||
|
border-bottom-color: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.more-filters-opened .more-filters {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #282a34;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.more-filters-opened .more-filters:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.more-filters-opened .more-filters:hover,
|
||||||
|
body.more-filters-opened .more-filters:focus {
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.more-filters-opened .more-filters:hover:before,
|
||||||
|
body.more-filters-opened .more-filters:focus:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Widgets */
|
||||||
|
.widgets-chooser li.widgets-chooser-selected {
|
||||||
|
background-color: #8b2ff7;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets-chooser li.widgets-chooser-selected:before,
|
||||||
|
.widgets-chooser li.widgets-chooser-selected:focus:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive Component */
|
||||||
|
div#wp-responsive-toggle a:before {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-responsive-open div#wp-responsive-toggle a {
|
||||||
|
border-color: transparent;
|
||||||
|
background: #8b2ff7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
|
||||||
|
background: #181a20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
|
||||||
|
color: #f1f2f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TinyMCE */
|
||||||
|
.mce-container.mce-menu .mce-menu-item:hover,
|
||||||
|
.mce-container.mce-menu .mce-menu-item.mce-selected,
|
||||||
|
.mce-container.mce-menu .mce-menu-item:focus,
|
||||||
|
.mce-container.mce-menu .mce-menu-item-normal.mce-active,
|
||||||
|
.mce-container.mce-menu .mce-menu-item-preview.mce-active {
|
||||||
|
background: #8b2ff7;
|
||||||
|
}
|
||||||
6345
package-lock.json
generated
Normal file
6345
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
49
package.json
Normal file
49
package.json
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
"name": "tailpress",
|
||||||
|
"version": "3.0.0",
|
||||||
|
"description": "Boilerplate WordPress theme with Tailwind CSS.",
|
||||||
|
"author": "Jeffrey van Rossum",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/jeffreyvr/tailpress"
|
||||||
|
},
|
||||||
|
"theme_uri": "https://github.com/jeffreyvr/tailpress",
|
||||||
|
"author_uri": "https://vanrossum.dev",
|
||||||
|
"text_domain": "tailpress",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"production:css-app": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/app.css -o ./css/app.css --postcss --minify",
|
||||||
|
"production:css-editor": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/editor-style.css -o ./css/editor-style.css --postcss --minify",
|
||||||
|
"production:css-admin": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/admin-style.css -o ./css/admin-style.css --postcss --minify",
|
||||||
|
"production:css-login": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/login-style.css -o ./css/login-style.css --postcss --minify",
|
||||||
|
"production:js": "cross-env NODE_ENV=development ./node_modules/.bin/esbuild ./resources/js/app.js --bundle --outfile=./js/app.js --minify",
|
||||||
|
"dev:css-app": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/app.css -o ./css/app.css --postcss",
|
||||||
|
"dev:css-editor": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/editor-style.css -o ./css/editor-style.css --postcss",
|
||||||
|
"dev:css-admin": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/admin-style.css -o ./css/admin-style.css --postcss",
|
||||||
|
"dev:css-login": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/login-style.css -o ./css/login-style.css --postcss",
|
||||||
|
"dev:js": "cross-env NODE_ENV=development ./node_modules/.bin/esbuild ./resources/js/app.js --bundle --outfile=./js/app.js",
|
||||||
|
"watch:css-app": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/app.css -o ./css/app.css --postcss --watch",
|
||||||
|
"watch:css-editor": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/editor-style.css -o ./css/editor-style.css --postcss --watch",
|
||||||
|
"watch:css-admin": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/admin-style.css -o ./css/admin-style.css --postcss --watch",
|
||||||
|
"watch:css-login": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/login-style.css -o ./css/login-style.css --postcss --watch",
|
||||||
|
"watch:js": "cross-env NODE_ENV=development ./node_modules/.bin/esbuild ./resources/js/app.js --bundle --outfile=./js/app.js --watch",
|
||||||
|
"production": "cross-env NODE_ENV=production concurrently \"npm run production:css-app\" \"npm run production:css-editor\" \"npm run production:css-admin\" \"npm run production:css-login\" \"npm run production:js\"",
|
||||||
|
"dev": "cross-env NODE_ENV=development concurrently \"npm run dev:css-app\" \"npm run dev:css-admin\" \"npm run dev:css-editor\" \"npm run dev:css-login\" \"npm run dev:js\"",
|
||||||
|
"watch": "cross-env NODE_ENV=development concurrently \"npm run watch:css-app\" \"npm run watch:css-editor\" \"npm run watch:css-admin\" \"npm run watch:css-login\" \"npm run watch:js\"",
|
||||||
|
"browser-sync": "cross-env NODE_ENV=development browser-sync start --proxy \"tailpress.test\" --host=\"tailpress.test\" --no-inject-changes --files=\"./\"",
|
||||||
|
"watch-sync": "cross-env NODE_ENV=development concurrently \"npm run browser-sync\" \"npm run watch\""
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@jeffreyvr/tailwindcss-tailpress": "^2.0.0",
|
||||||
|
"autoprefixer": "^10.4.0",
|
||||||
|
"browser-sync": "^2.26.14",
|
||||||
|
"concurrently": "^6.2.1",
|
||||||
|
"cross-env": "^6.0.3",
|
||||||
|
"esbuild": "^0.12.24",
|
||||||
|
"postcss": "^8.4.4",
|
||||||
|
"postcss-import": "^14.0.0",
|
||||||
|
"postcss-nested-ancestors": "^2.0.0",
|
||||||
|
"resolve-url-loader": "^3.1.2",
|
||||||
|
"tailwindcss": "^3.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
postcss.config.js
Normal file
8
postcss.config.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
require('postcss-nested-ancestors'),
|
||||||
|
require('postcss-import'),
|
||||||
|
require('tailwindcss/nesting'),
|
||||||
|
require('tailwindcss')
|
||||||
|
]
|
||||||
|
}
|
||||||
15
resources/css/admin-style.css
Normal file
15
resources/css/admin-style.css
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
.homegrade-blocks-components-image__panel-body {
|
||||||
|
.media-replace-container {
|
||||||
|
.components-dropdown .components-toolbar__control {
|
||||||
|
@apply !bg-patrimoine-sante-securite;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.homegrade-blocks-components-image__panel-body
|
||||||
|
.media-replace-container
|
||||||
|
.components-dropdown
|
||||||
|
.components-toolbar__control {
|
||||||
|
@apply !bg-patrimoine-sante-securite;
|
||||||
|
}
|
||||||
6
resources/css/app.css
Normal file
6
resources/css/app.css
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
@import 'tailwindcss/base';
|
||||||
|
@import 'tailwindcss/components';
|
||||||
|
@import 'tailwindcss/utilities';
|
||||||
|
|
||||||
|
@import 'color-scheme.css';
|
||||||
|
|
||||||
34
resources/css/color-scheme.css
Normal file
34
resources/css/color-scheme.css
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
.homegrade-page-container--metiers-patrimoine {
|
||||||
|
.section_titling__title {
|
||||||
|
@apply !text-patrimoine-sante-securite;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* .homegrade-blocks-shortcuts .wp-block-button {
|
||||||
|
background-color: unset;
|
||||||
|
@apply !bg-patrimoine-sante-securite !text-patrimoine-sante-securite;
|
||||||
|
} */
|
||||||
|
|
||||||
|
.homegrade-blocks-shortcuts {
|
||||||
|
.wp-block-button {
|
||||||
|
&:before {
|
||||||
|
filter: brightness(0) saturate(100%) invert(23%)
|
||||||
|
sepia(50%) saturate(7038%) hue-rotate(263deg)
|
||||||
|
brightness(99%) contrast(96%);
|
||||||
|
}
|
||||||
|
@apply !bg-patrimoine-sante-securite-light;
|
||||||
|
.wp-block-button__link {
|
||||||
|
@apply !text-patrimoine-sante-securite;
|
||||||
|
}
|
||||||
|
&:hover,
|
||||||
|
&:focus-visible {
|
||||||
|
@apply !bg-patrimoine-sante-securite;
|
||||||
|
&:before {
|
||||||
|
filter: brightness(0) invert(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.homegrade-blocks-tips-to-know__tip-title{
|
||||||
|
@apply !text-patrimoine-sante-securite;
|
||||||
|
}
|
||||||
0
resources/js/app.js
Normal file
0
resources/js/app.js
Normal file
8
safelist.txt
Normal file
8
safelist.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
alignfull
|
||||||
|
alignwide
|
||||||
|
alignnone
|
||||||
|
aligncenter
|
||||||
|
alignright
|
||||||
|
wp-block-button
|
||||||
|
wp-caption
|
||||||
|
wp-caption-text
|
||||||
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
15
style.css
Normal file
15
style.css
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
Theme Name: Metiers du patrimoine
|
||||||
|
Theme URI: https://deligraph.com/
|
||||||
|
Description: Thème enfant basé sur Homegrade_Theme du site n°1
|
||||||
|
Author: Deligraph
|
||||||
|
Author URI: https://deligraph.com/
|
||||||
|
Template: Homegrade_Theme
|
||||||
|
Version: 1.0.0
|
||||||
|
Text Domain: homegrade-theme-enfant__texte-fonctionnel
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Importation du style du thème parent */
|
||||||
|
@import url("../Homegrade_Theme/css/app.csss");
|
||||||
|
|
||||||
|
/* Ici, tu peux ajouter des styles spécifiques au thème enfant */
|
||||||
100
tailwind.config.js
Normal file
100
tailwind.config.js
Normal file
|
|
@ -0,0 +1,100 @@
|
||||||
|
const parentTheme = require('../Homegrade_Theme/theme.json'); // Chemin relatif vers le theme.json du parent
|
||||||
|
const tailpress = require('@jeffreyvr/tailwindcss-tailpress');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
content: [
|
||||||
|
'./*.php',
|
||||||
|
'./**/*.php',
|
||||||
|
'./resources/css/*.css',
|
||||||
|
'./resources/js/*.js',
|
||||||
|
'./safelist.txt',
|
||||||
|
],
|
||||||
|
safelist: [
|
||||||
|
'bg-primary',
|
||||||
|
'text-primary',
|
||||||
|
'bg-secondary',
|
||||||
|
'text-secondary',
|
||||||
|
'bg-acoustique-coproprietes',
|
||||||
|
'text-acoustique-coproprietes',
|
||||||
|
'bg-acoustique-coproprietes-light',
|
||||||
|
'text-acoustique-coproprietes-light',
|
||||||
|
'bg-energies-urbanisme',
|
||||||
|
'text-energies-urbanisme',
|
||||||
|
'bg-energies-urbanisme-light',
|
||||||
|
'text-energies-urbanisme-light',
|
||||||
|
'bg-isolation-quotidien',
|
||||||
|
'text-isolation-quotidien',
|
||||||
|
'bg-isolation-quotidien-light',
|
||||||
|
'text-isolation-quotidien-light',
|
||||||
|
'bg-patrimoine-sante-securite',
|
||||||
|
'text-patrimoine-sante-securite',
|
||||||
|
'bg-patrimoine-sante-securite-light',
|
||||||
|
'text-patrimoine-sante-securite-light',
|
||||||
|
'bg-location-durabilite',
|
||||||
|
'text-location-durabilite',
|
||||||
|
'bg-location-durabilite-light',
|
||||||
|
'text-location-durabilite-light',
|
||||||
|
'hover:bg-primary',
|
||||||
|
'hover:text-primary',
|
||||||
|
'hover:bg-secondary',
|
||||||
|
'hover:text-secondary',
|
||||||
|
'hover:bg-acoustique-coproprietes',
|
||||||
|
'hover:text-acoustique-coproprietes',
|
||||||
|
'hover:bg-acoustique-coproprietes-light',
|
||||||
|
'hover:text-acoustique-coproprietes-light',
|
||||||
|
'hover:bg-energies-urbanisme',
|
||||||
|
'hover:text-energies-urbanisme',
|
||||||
|
'hover:bg-energies-urbanisme-light',
|
||||||
|
'hover:text-energies-urbanisme-light',
|
||||||
|
'hover:bg-isolation-quotidien',
|
||||||
|
'hover:text-isolation-quotidien',
|
||||||
|
'hover:bg-isolation-quotidien-light',
|
||||||
|
'hover:text-isolation-quotidien-light',
|
||||||
|
'hover:bg-patrimoine-sante-securite',
|
||||||
|
'hover:text-patrimoine-sante-securite',
|
||||||
|
'hover:bg-patrimoine-sante-securite-light',
|
||||||
|
'hover:text-patrimoine-sante-securite-light',
|
||||||
|
'hover:bg-location',
|
||||||
|
'hover:text-location',
|
||||||
|
'hover:bg-location-light',
|
||||||
|
'hover:text-location-light',
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
container: {
|
||||||
|
padding: {
|
||||||
|
DEFAULT: '1rem',
|
||||||
|
sm: '2rem',
|
||||||
|
lg: '0rem',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
extend: {
|
||||||
|
colors: tailpress.colorMapper(
|
||||||
|
tailpress.theme(
|
||||||
|
'settings.color.palette',
|
||||||
|
parentTheme
|
||||||
|
)
|
||||||
|
),
|
||||||
|
fontSize: tailpress.fontSizeMapper(
|
||||||
|
tailpress.theme(
|
||||||
|
'settings.typography.fontSizes',
|
||||||
|
parentTheme
|
||||||
|
)
|
||||||
|
),
|
||||||
|
},
|
||||||
|
screens: {
|
||||||
|
xs: '480px',
|
||||||
|
sm: '600px',
|
||||||
|
md: '782px',
|
||||||
|
lg: tailpress.theme(
|
||||||
|
'settings.layout.contentSize',
|
||||||
|
parentTheme
|
||||||
|
),
|
||||||
|
xl: tailpress.theme(
|
||||||
|
'settings.layout.wideSize',
|
||||||
|
parentTheme
|
||||||
|
),
|
||||||
|
'2xl': '1440px',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [tailpress.tailwind],
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user