From: Stephen Cameron Date: Thu, 10 Oct 2019 15:42:51 +0000 (+0200) Subject: WIP #3053 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4dde24979490f812e8898d72f801a505c09c828e;p=ccv-wordpress.git WIP #3053 @2 --- diff --git a/wp-config.php b/wp-config.php index 02ff4b1..6b6341c 100644 --- a/wp-config.php +++ b/wp-config.php @@ -7,16 +7,16 @@ if (file_exists(dirname(__FILE__) . '/local-config.php')) { // Global DB config if (!defined('DB_NAME')) { - define('DB_NAME', 'ccv'); + define('DB_NAME', 'yxnggyswww'); } if (!defined('DB_USER')) { - define('DB_USER', 'ccv'); + define('DB_USER', 'yxnggyswww'); } if (!defined('DB_PASSWORD')) { - define('DB_PASSWORD', ''); + define('DB_PASSWORD', 'DuozFVzGpW26gBF5MNev'); } if (!defined('DB_HOST')) { - define('DB_HOST', ''); + define('DB_HOST', 'yxnggyswww.mysql.db'); } /** Database Charset to use in creating database tables. */ diff --git a/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php b/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php index 0d07a2a..a357e37 100644 --- a/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php +++ b/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php @@ -137,7 +137,7 @@ class HeaderSlideshow extends Widget_Base {
-
+

diff --git a/wp-content/mu-plugins/cube/src/Elementor/Widgets/NewsBanner.php b/wp-content/mu-plugins/cube/src/Elementor/Widgets/NewsBanner.php index 25a232a..3b1ba3a 100644 --- a/wp-content/mu-plugins/cube/src/Elementor/Widgets/NewsBanner.php +++ b/wp-content/mu-plugins/cube/src/Elementor/Widgets/NewsBanner.php @@ -88,9 +88,9 @@ class NewsBanner extends Widget_Base { if ($post && isset($post[0]['post_title'])) { - echo '
'; - echo ''. $post[0]['post_title'] .''; - echo ''. __("Voir toute l'actualité", 'cube') .''; + echo ''; } diff --git a/wp-content/themes/CCV/resources/assets/styles/common/animations.styl b/wp-content/themes/CCV/resources/assets/styles/common/animations.styl index eb06186..124e40e 100644 --- a/wp-content/themes/CCV/resources/assets/styles/common/animations.styl +++ b/wp-content/themes/CCV/resources/assets/styles/common/animations.styl @@ -4,3 +4,20 @@ opacity: 0 to opacity: 1 + +// Override Elementor animations +@keyframes fadeInUp + from + opacity: 0 + transform: translate3d(0, 150px, 0) + to + opacity: 1 + transform: none + +@keyframes fadeInRight + from + opacity: 0 + transform: translate3d(150px, 0, 0) + to + opacity: 1 + transform: none diff --git a/wp-content/themes/CCV/resources/assets/styles/components/header.styl b/wp-content/themes/CCV/resources/assets/styles/components/header.styl index 7716d06..17dfa10 100644 --- a/wp-content/themes/CCV/resources/assets/styles/components/header.styl +++ b/wp-content/themes/CCV/resources/assets/styles/components/header.styl @@ -1,8 +1,9 @@ header.site .header-slideshow-present & - position: absolute - top: 0 - left: 0 - width: 100% - background-color: transparent - z-index: 20 + +above($breakpoint-menu) + position: absolute + top: 0 + left: 0 + width: 100% + background-color: transparent + z-index: 20 diff --git a/wp-content/themes/CCV/resources/assets/styles/components/navigation.styl b/wp-content/themes/CCV/resources/assets/styles/components/navigation.styl index e96c633..bb7c0ee 100644 --- a/wp-content/themes/CCV/resources/assets/styles/components/navigation.styl +++ b/wp-content/themes/CCV/resources/assets/styles/components/navigation.styl @@ -61,3 +61,7 @@ background-color: rgba(#fff, 0.2) +// Language switcher and action buttons +.nav-secondary + +below($breakpoint-menu) + display: none !important diff --git a/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl b/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl index 75139e0..19abb41 100644 --- a/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl +++ b/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl @@ -20,6 +20,11 @@ $title_bg = rgba(#fff, 0.88) constrain(left, 5vw) constrain(bottom, 10vw) + +below(600px) + position: static + left: 0 + bottom: 0 + // Note: for the title to have a semi-transparent background, // we're limited by the font properties because the inline // backgrounds can't overlap so we need to get the line-height @@ -27,23 +32,24 @@ $title_bg = rgba(#fff, 0.88) // solid white... More details: // https://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align &-title - position: relative - line-height: 1.27 - padding-right: 1rem // To match inline text below + .header-slideshow & // Extra specificity needed to override generic headings + position: relative + line-height: 1.27 + padding-right: 1rem // To match inline text below - &:before - top: 0.6em - left: -0.5em - width: 0.7em - - // For multi-line padded text effect - // Ref: https://css-tricks.com/multi-line-padded-text/ - &-text - @apply text-3xl - box-decoration-break: clone - display: inline - padding: 0 1rem - background-color: $title_bg + &:before + top: 0.6em + left: -0.5em + width: 0.7em + + // For multi-line padded text effect + // Ref: https://css-tricks.com/multi-line-padded-text/ + &-text + @apply text-3xl + box-decoration-break: clone + display: inline + padding: 0 1rem + background-color: $title_bg // Need to position this absolutely so it sits properly