Skip to content

Commit

Permalink
feat: update fields type
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJC5 committed Sep 5, 2024
1 parent b5cf90e commit ca7575d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 37 deletions.
68 changes: 34 additions & 34 deletions admin/assets/css/cookie-banner.css
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
:root {
--tcwp-color-background: #fff;
--tcwp-color-text: #000;
--tcwp-color-primary: #000;
--tcwp-white-color: #fff;
--tcwp-consent-radius: 4px;
--tcwp-ease: ease-in-out;
--tcwp-space-1: 0.25rem;
--tcwp-space-2: 0.5rem;
--tcwp-space-3: 0.75rem;
--tcwp-space-4: 1rem;
--tcwp-font-size-sm: 0.875rem;
--tcwp-phone: 375px;
--wpbuilder-color-background: #fff;
--wpbuilder-color-text: #000;
--wpbuilder-color-primary: #000;
--wpbuilder-white-color: #fff;
--wpbuilder-consent-radius: 4px;
--wpbuilder-ease: ease-in-out;
--wpbuilder-space-1: 0.25rem;
--wpbuilder-space-2: 0.5rem;
--wpbuilder-space-3: 0.75rem;
--wpbuilder-space-4: 1rem;
--wpbuilder-font-size-sm: 0.875rem;
--wpbuilder-phone: 375px;
}

#tracking-consent-wp-front {
position: fixed;
bottom: 0;
margin: var(--tcwp-space-4);
padding: var(--tcwp-space-4);
margin: var(--wpbuilder-space-4);
padding: var(--wpbuilder-space-4);
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
border-radius: var(--tcwp-consent-radius, 0);
max-width: var(--tcwp-phone);
background-color: var(--tcwp-color-background, #fff);
border-radius: var(--wpbuilder-consent-radius, 0);
max-width: var(--wpbuilder-phone);
background-color: var(--wpbuilder-color-background, #fff);
opacity: 0;
transform: translateY(110%);
transition: opacity 0.5s var(--tcwp-ease), transform 0.5s var(--tcwp-ease);
transition: opacity 0.5s var(--wpbuilder-ease), transform 0.5s var(--wpbuilder-ease);
z-index: 9999;
}

Expand Down Expand Up @@ -74,32 +74,32 @@
}

#tracking-consent-wp-front .consent-form__actions .button {
margin-right: var(--tcwp-space-2);
border: 1px solid var(--color-main, #000);
color: var(--tcwp-white-color);
background-color: var(--color-main, #000);
border-radius: var(--tcwp-consent-radius, 0);
padding: var(--tcwp-space-2) var(--tcwp-space-3);
font-size: var(--tcwp-font-size-sm);
margin-right: var(--wpbuilder-space-2);
border: 1px solid var(--wpbuilder-color-main, #000);
color: var(--wpbuilder-white-color);
background-color: var(--wpbuilder-color-main, #000);
border-radius: var(--wpbuilder-consent-radius, 0);
padding: var(--wpbuilder-space-2) var(--wpbuilder-space-3);
font-size: var(--wpbuilder-font-size-sm);
cursor: pointer;
transition: color 0.2s var(--tcwp-ease), background-color 0.2s var(--tcwp-ease);
transition: color 0.2s var(--wpbuilder-ease), background-color 0.2s var(--wpbuilder-ease);
white-space: nowrap;
}

#tracking-consent-wp-front .consent-form__actions .button:hover {
background-color: var(--tcwp-white-color);
color: var(--color-main, #000);
background-color: var(--wpbuilder-white-color);
color: var(--wpbuilder-color-main, #000);
}

#tracking-consent-wp-front .consent-form__actions .button--secondary {
border: 1px solid var(--color-main, #000);
color: var(--color-main, #000);
background-color: var(--tcwp-white-color);
border: 1px solid var(--wpbuilder-color-main, #000);
color: var(--wpbuilder-color-main, #000);
background-color: var(--wpbuilder-white-color);
}

#tracking-consent-wp-front .consent-form__actions .button--secondary:hover {
background-color: var(--color-main, #000);
color: var(--tcwp-white-color);
background-color: var(--wpbuilder-color-main, #000);
color: var(--wpbuilder-white-color);
}

#tracking-consent-wp-front .consent-form__actions .button--icon {
Expand All @@ -109,5 +109,5 @@
}

#tracking-consent-wp-front .consent-form__actions .button--icon svg {
margin-left: var(--tcwp-space-1);
margin-left: var(--wpbuilder-space-1);
}
2 changes: 1 addition & 1 deletion admin/assets/css/cookie-banner.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion models/OptionSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function fields()
Field::make('checkbox', 'crb_maintenance_mode', __('Enable Maintenance Mode', 'wpbuilder')),
Field::make('text', 'crb_maintenance_title', __('Title', 'wpbuilder'))
->set_default_value(__('Maintenance Mode', 'wpbuilder')),
Field::make('textarea', 'crb_maintenance_description', __('Description', 'wpbuilder'))
Field::make('rich_text', 'crb_maintenance_description', __('Description', 'wpbuilder'))
->set_default_value(__('We are currently performing maintenance on our website. We will be back soon!', 'wpbuilder'))
->set_rows(6),
));
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Le theme compatible avec le plugin est [wpbuilder-boilerplate](https://github.co

== Changelog ==

= 1.5.2 =
- Update carbon fields for maintenance mode

= 1.5.1 =
- Update script & css to avoid blocking render

Expand Down
2 changes: 1 addition & 1 deletion wpbuilder-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: WPbuilder
* Description: WPbuilder Theme Plugin
* Plugin URI: https://github.com/misits/wpbuilder-plugin
* Version: 1.5.1
* Version: 1.5.2
* Requires at least: 5.2
* Requires PHP: 8.0
* Author: Martin IS IT Services
Expand Down

0 comments on commit ca7575d

Please sign in to comment.