/* Theme Name: AEM Slate Theme URI: https://www.avignon-et-moi.fr/themes/aem-slate/ Description: A super simple WordPress theme designed for a clean and minimalistic look. Version: 2.2 Author: AEM Author URI: https://www.avignon-et-moi.fr/ License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: aem-slate Tags: blog Copyright: © 2023 Aem, tous droits réservés. Tested up to: 5.8 Requires PHP: 7.0 */ /* Reset and General Styles */ html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li { margin: 0; padding: 0; border: 0; font-size: 100%; font-weight: normal; vertical-align: baseline; } /* Global Styles */ body { font-family: Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #333; background-color: #fff; } a { text-decoration: none; color: #ed145b; } /* Header Styles */ header { background-color: #f7f7f7; padding: 0px; padding-top: 20px; text-align: center; } /* Primary Menu ---------------------------- */ #primary-menu{ width:100%; background-color:#ed145b; color:white; padding-bottom:10px; } .menu-wrapper { display: none; } ul.menu { display: flex; font-size: 16px; font-weight: 500; letter-spacing: -0.0277em; flex-wrap: wrap; justify-content:center; margin: -0.8rem 0 0 -1.6rem; list-style-type: none; } .menu li { font-size: inherit; line-height: 1.25; position: relative; list-style-type: none; } .menu > li { margin: 0.8rem 0 0 1.6rem; } .menu a { color: inherit; display: block; line-height: 1.2; text-decoration: none; word-break: normal; word-wrap: normal; } .menu a:hover, .menu a:focus, .menu .current_page_ancestor { text-decoration: underline; } .menu li.current-menu-item > a, .menu li.current-menu-item > .link-icon-wrapper > a { text-decoration: underline; } .menu li.current-menu-item > a:hover, .menu li.current-menu-item > .link-icon-wrapper > a:hover, .menu li.current-menu-item > a:focus, .menu li.current-menu-item > .link-icon-wrapper > a:focus { text-decoration: none; } /* SUB MENU */ .menu ul { background: #ed145b; border-radius: 0.4rem; color: #fff; font-size: 16px; opacity: 0; position: absolute; right: 9999rem; top: calc(100% + 2rem); transition: opacity 0.15s linear, transform 0.15s linear, right 0s 0.15s; transform: translateY(0.6rem); width: 200px; z-index: 1; } .menu li.menu-item-has-children:hover > ul, .menu li.menu-item-has-children:focus > ul, .menu li.menu-item-has-children.focus > ul { right: 0; opacity: 1; transform: translateY(0); transition: opacity 0.15s linear, transform 0.15s linear; } .menu ul::before, .menu ul::after { content: ""; display: block; position: absolute; bottom: 100%; } .menu ul::before { height: 2rem; left: 0; right: 0; } .menu ul::after { border: 0.8rem solid transparent; border-bottom-color: #ed145b; right: 20px; } .menu ul a { background: transparent; border: none; color: inherit; display: block; padding-top: 10px; padding-bottom: 10px; transition: background-color 0.15s linear; width: 100%; } .menu ul li.menu-item-has-children > a { padding-right: 4.5rem; } .menu ul li.menu-item-has-children .icon { position: absolute; right: 1.5rem; top: calc(50% - 0.5rem); } /* DEEP DOWN */ .menu ul ul { top: -1rem; } .menu ul li.menu-item-has-children:hover > ul, .menu ul li.menu-item-has-children:focus > ul, .menu ul li.menu-item-has-children.focus > ul { right: calc(100% + 2rem); } .menu ul ul::before { bottom: 0; height: auto; left: auto; right: -2rem; top: 0; width: 2rem; } .menu ul ul::after { border-bottom-color: transparent; /*rtl:ignore*/ border-left-color: #ed145b; bottom: auto; right: -1.4rem; top: 2rem; } .rtl .menu ul ul::after { transform: rotate(180deg); } @media (any-pointer: coarse) { .menu > li.menu-item-has-children > a { padding-right: 0; margin-right: 2rem; } .menu ul li.menu-item-has-children > a { margin-right: 4.5rem; padding-right: 0; width: unset; } } body.touch-enabled .menu > li.menu-item-has-children > a { padding-right: 0; margin-right: 2rem; } body.touch-enabled .menu ul li.menu-item-has-children > a { margin-right: 4.5rem; padding-right: 0; width: unset; } #primary { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; box-sizing: border-box; padding: 20px; background-color: #f7f7f7; } #post-bloc { float: left; width: 400px; margin: 10px; background-color: #fff; border: 1px solid #ddd; box-sizing: border-box; } #post-bloc { float: left; margin: 20px; padding: 20px; border: 1px solid #ddd; background-color: #fff; box-sizing: border-box; box-shadow: -3px 0px 9px 0px rgba(0, 0, 0, 0.4); -webkit-box-shadow: -3px 0px 9px 0px rgba(0, 0, 0, 0.4); -moz-box-shadow: -3px 0px 9px 0px rgba(0, 0, 0, 0.4); } #post-bloc img { display: block; width: 100%; height: auto; max-height: 240px; min-height: 240px; padding-bottom: 20px; } #more-single { width: 100%; color: white; text-align: center; padding-top: 20px; padding-bottom: 20px; background-color: #ed145b; } #post-bloc .entry-title { height: 45px; } #post-bloc .entry-content { height: 210px; } #post-final .post-thumbnail img { margin: auto; } .pagination { width: 100%; text-align: center; font-size: 16px; } .page-numbers { display: inline-block; width: 50px; text-align: center; background-color: #ed145b; color: white; } .page-numbers:hover { display: inline-block; width: 50px; text-align: center; background-color: white; color: #ed145b; } .pagination .current { display: inline-block; width: 50px; text-align: center; background-color: white; color: black; } /* Footer Styles */ footer { background-color: #333; color: #fff; text-align: center; padding: 10px; } .entry-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }