Version 0.1.21

This commit is contained in:
mateuswetah 2023-02-17 12:00:28 -03:00
parent 735b8479c4
commit e70bff9da1
16 changed files with 124 additions and 67 deletions

View File

@ -5,7 +5,7 @@ Tags: museums, libraries, archives, GLAM, collections, repository, tainacan, blo
Requires at least: 5.0 Requires at least: 5.0
Tested up to: 6.1 Tested up to: 6.1
Requires PHP: 5.6 Requires PHP: 5.6
Stable tag: 0.1.20 Stable tag: 0.1.21
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -58,6 +58,12 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
== Changelog == == Changelog ==
= 0.1.21 =
* Fixes breadcrumb hierarchy when inside taxonomy archives
* Disables Tainacan single Item archive as it is not necessary to get the content twice
* Adapts some Blocksy css variables
* Small css improvements to geo coordinate metadatum
= 0.1.20 = = 0.1.20 =
* Sorts related items by title * Sorts related items by title
* Small css improvements * Small css improvements

View File

@ -4,7 +4,7 @@ Plugin Name: Tainacan Support for Blocksy
Plugin URI: https://tainacan.org/ Plugin URI: https://tainacan.org/
Description: Tainacan plugin support for Blocksy theme Description: Tainacan plugin support for Blocksy theme
Author: tainacan Author: tainacan
Version: 0.1.20 Version: 0.1.21
Text Domain: tainacan-blocksy Text Domain: tainacan-blocksy
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -15,9 +15,12 @@ if (! defined('WP_DEBUG') ) {
} }
/** Theme/plugin version */ /** Theme/plugin version */
const TAINACAN_BLOCKSY_VERSION = '0.1.20'; const TAINACAN_BLOCKSY_VERSION = '0.1.21';
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false; const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;
/* Disables Tainacan Theme Helper the_content filter, which is used to build a custom item template. */
define('TAINACAN_DISABLE_ITEM_THE_CONTENT_FILTER', true);
/* Tools to define our next constants */ /* Tools to define our next constants */
require 'utils.php'; require 'utils.php';

View File

@ -391,8 +391,33 @@ if ( !function_exists('tainacan_blocksy_custom_breadcrumbs') ) {
$collections_post_types = \Tainacan\Repositories\Repository::get_collections_db_identifiers(); $collections_post_types = \Tainacan\Repositories\Repository::get_collections_db_identifiers();
$post_type = get_post_type(); $post_type = get_post_type();
// Check if we're inside a taxonomy archive
if ( in_array($post_type, $collections_post_types) && is_tax() ) {
$collection_archive_link_index = -1;
for ($i = 0; $i < count($array); $i++) {
if ( isset($array[$i]['url']) && $array[$i]['url'] == get_post_type_archive_link($post_type) ) {
$collection_archive_link_index = $i;
break;
}
}
if ( $collection_archive_link_index ) {
$term = get_queried_object();
if ( $term ) {
$taxonomy = get_taxonomy( $term->taxonomy );
if ( $taxonomy && $taxonomy->labels )
$array[$collection_archive_link_index] = [ "name" => $taxonomy->labels->singular_name ];
$array[] = [ "name" => __('Items', 'blocksy-tainacan') ];
}
}
}
// Check if we're inside a collection archive.
else if ( in_array($post_type, $collections_post_types) && is_archive() ) {
$array[] = [ "name" => __('Items', 'blocksy-tainacan') ];
}
// Check if we're inside the main loop in a single Post. // Check if we're inside the main loop in a single Post.
if (in_array($post_type, $collections_post_types) && is_singular() && in_the_loop() && is_main_query() ) { else if ( in_array($post_type, $collections_post_types) && is_singular() && in_the_loop() && is_main_query() ) {
$args = $_GET; $args = $_GET;
for ($i = 0; $i < count($array); $i++) { for ($i = 0; $i < count($array); $i++) {

View File

@ -29,8 +29,9 @@ $options = [
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ], 'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ], 'color4' => [ 'color' => 'var(--form-field-initial-background, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ], 'color5' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ],
'color6' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ],
'current_palette' => 'palette-1', 'current_palette' => 'palette-1',
@ -41,8 +42,9 @@ $options = [
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ], 'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ], 'color4' => [ 'color' => 'var(--form-field-initial-background, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ] 'color5' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ],
'color6' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ],
], ],
@ -53,7 +55,8 @@ $options = [
'color2' => [ 'color' => '#ece6db' ], 'color2' => [ 'color' => '#ece6db' ],
'color3' => [ 'color' => '#f4eee2' ], 'color3' => [ 'color' => '#f4eee2' ],
'color4' => [ 'color' => '#f4eee2' ], 'color4' => [ 'color' => '#f4eee2' ],
'color5' => [ 'color' => '#dfd9cd' ] 'color5' => [ 'color' => '#dfd9cd' ],
'color6' => [ 'color' => '#d0bf9f' ],
], ],
@ -64,7 +67,8 @@ $options = [
'color2' => [ 'color' => '#282828' ], 'color2' => [ 'color' => '#282828' ],
'color3' => [ 'color' => '#333333' ], 'color3' => [ 'color' => '#333333' ],
'color4' => [ 'color' => '#333333' ], 'color4' => [ 'color' => '#333333' ],
'color5' => [ 'color' => '#1e1e1e' ] 'color5' => [ 'color' => '#3eaf7c' ],
'color6' => [ 'color' => '#1a1a1a' ]
] ]
] ]

View File

@ -1,12 +1,12 @@
{ {
"name": "tainacan-blocksy", "name": "tainacan-blocksy",
"version": "0.1.20", "version": "0.1.21",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "tainacan-blocksy", "name": "tainacan-blocksy",
"version": "0.1.20", "version": "0.1.21",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"clean-css-cli": "^4.3.0", "clean-css-cli": "^4.3.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "tainacan-blocksy", "name": "tainacan-blocksy",
"version": "0.1.20", "version": "0.1.21",
"description": "A Blocksy plugin/child theme compatible with Tainacan", "description": "A Blocksy plugin/child theme compatible with Tainacan",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -11,8 +11,8 @@
--tainacan-block-primary: var(--paletteColor1, #3eaf7c); --tainacan-block-primary: var(--paletteColor1, #3eaf7c);
--tainacan-block-gray0: var(--backgroundColor, #f8f9fb); --tainacan-block-gray0: var(--backgroundColor, #f8f9fb);
--tainacan-block-gray1: var(--backgroundColor, #f8f9fb); --tainacan-block-gray1: var(--backgroundColor, #f8f9fb);
--tainacan-block-gray2: var(--formBorderInitialColor, #e0e5eb); --tainacan-block-gray2: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-block-gray3: var(--formBorderInitialColor, #e0e5eb); --tainacan-block-gray3: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-block-gray4: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-block-gray4: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-block-gray5: var(--headingColor, rgba(44, 62, 80, 1)); --tainacan-block-gray5: var(--headingColor, rgba(44, 62, 80, 1));
--background-color: var(--paletteColor7); --background-color: var(--paletteColor7);

View File

@ -3,14 +3,14 @@
--tainacan-font-family: var(--fontFamily, inherit); --tainacan-font-family: var(--fontFamily, inherit);
--tainacan-base-font-size: var(--fontSize, 1em); --tainacan-base-font-size: var(--fontSize, 1em);
// --tainacan-secondary: var(--paletteColor1, #3eaf7c); // --tainacan-secondary: var(--paletteColor1, #3eaf7c);
// --tainacan-primary: var(--formBorderInitialColor, #e0e5eb); // --tainacan-primary: var(--form-field-border-initial-color, #e0e5eb);
// --tainacan-background-color: var(--backgroundColor, #f8f9fb); // --tainacan-background-color: var(--backgroundColor, #f8f9fb);
//--tainacan-item-background-color: var(--cardBackground, white); //--tainacan-item-background-color: var(--cardBackground, white);
// --tainacan-item-hover-background-color: var(--tainacan-item-background-color, white); --tainacan-item-hover-background-color: var(--tainacan-item-background-color, white);
--tainacan-item-heading-hover-background-color: var(--tainacan-item-background-color, white); --tainacan-item-heading-hover-background-color: var(--tainacan-item-background-color, white);
// --tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9)); // --tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9));
// --tainacan-input-background-color: var(--formBackgroundInitialColor, white); // --tainacan-input-background-color: var(--form-field-initial-background, white);
--tainacan-input-border-color: var(--formBorderInitialColor, #e0e5eb); // --tainacan-input-border-color: var(--form-field-border-initial-color, #e0e5eb);
// --tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1)); // --tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1));
// --tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9)); // --tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9));
// --tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9)); // --tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9));
@ -254,11 +254,11 @@ body:not(.tainacan-admin-page) {
--tainacan-font-family: var(--fontFamily, inherit); --tainacan-font-family: var(--fontFamily, inherit);
--tainacan-base-font-size: var(--fontSize, 1em); --tainacan-base-font-size: var(--fontSize, 1em);
--tainacan-secondary: var(--paletteColor1, #3eaf7c); --tainacan-secondary: var(--paletteColor1, #3eaf7c);
--tainacan-primary: var(--formBorderInitialColor, #e0e5eb); --tainacan-primary: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-background-color: var(--backgroundColor, #f8f9fb); --tainacan-background-color: var(--backgroundColor, #f8f9fb);
--tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-input-background-color: var(--formBackgroundInitialColor, white); --tainacan-input-background-color: var(--form-field-initial-background, white);
--tainacan-input-border-color: var(--formBorderInitialColor, #e0e5eb); --tainacan-input-border-color: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1)); --tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1));

View File

@ -125,15 +125,18 @@
page-break-inside: avoid; page-break-inside: avoid;
break-inside: avoid; break-inside: avoid;
display: inline-block; display: inline-block;
width: 100%;
&:last-child { &:last-child {
-webkit-column-break-inside: auto; -webkit-column-break-inside: auto;
page-break-inside: auto; page-break-inside: auto;
break-inside: auto; break-inside: auto;
display: inline-block; display: inline-block;
width: 100%;
} }
} }
&>div,
.tainacan-metadatum {
width: 100%;
}
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
-moz-column-gap: 0; -moz-column-gap: 0;
-moz-column-rule: none; -moz-column-rule: none;
@ -204,13 +207,16 @@
.hierarchy-separator { .hierarchy-separator {
color: #cbcbcb; color: #cbcbcb;
} }
.metadata-type-geocoordinate>div {
width: 100%;
}
.metadata-type-compound, .metadata-type-compound,
.metadata-type-textarea { .metadata-type-textarea {
.multivalue-separator { .multivalue-separator {
display: block; display: block;
max-height: 1px; max-height: 1px;
width: 45%; width: 45%;
background: var(--formBorderInitialColor, #e0e5eb); background: var(--form-field-border-initial-color, #e0e5eb);
content: none; content: none;
color: transparent; color: transparent;
margin: 0.875rem auto; margin: 0.875rem auto;
@ -220,7 +226,7 @@
padding-top: 0.5em; padding-top: 0.5em;
margin-bottom: .75rem; margin-bottom: .75rem;
padding-left: 1.5rem; padding-left: 1.5rem;
border-left: 1px solid var(--formBorderInitialColor, #e0e5eb); border-left: 1px solid var(--form-field-border-initial-color, #e0e5eb);
.label { .label {
margin: 0; margin: 0;
@ -275,7 +281,7 @@
display: block; display: block;
max-height: 1px; max-height: 1px;
width: calc(100% - 40px); width: calc(100% - 40px);
background: var(--formBorderInitialColor, #e0e5eb); background: var(--form-field-border-initial-color, #e0e5eb);
content: none; content: none;
color: transparent; color: transparent;
margin: 0.5em 0 0.5em 40px; margin: 0.5em 0 0.5em 40px;
@ -369,7 +375,7 @@
// Tainacan Gallery above title // Tainacan Gallery above title
.tainacan-gallery-above-title { .tainacan-gallery-above-title {
background-color: var(--tainacan-media-background-color, var(--paletteColor6)); background-color: var(--tainacan-media-background-color, var(--paletteColor7));
margin-top: calc(-1 * var(--content-vertical-spacing)); margin-top: calc(-1 * var(--content-vertical-spacing));
margin-bottom: var(--content-vertical-spacing); margin-bottom: var(--content-vertical-spacing);
margin-left: var(--has-boxed, calc(-1 * var(--boxed-content-spacing))); margin-left: var(--has-boxed, calc(-1 * var(--boxed-content-spacing)));
@ -378,7 +384,7 @@
padding-bottom: calc(var(--content-vertical-spacing)/2); padding-bottom: calc(var(--content-vertical-spacing)/2);
.tainacan-media-component { .tainacan-media-component {
--tainacan-media-background: var(--tainacan-media-background-color, var(--paletteColor6)); --tainacan-media-background: var(--tainacan-media-background-color, var(--paletteColor7));
--swiper-navigation-color: var(--tainacan-media-accent-color, --paletteColor1); --swiper-navigation-color: var(--tainacan-media-accent-color, --paletteColor1);
--swiper-theme-color: var(--tainacan-media-accent-color, --paletteColor1); --swiper-theme-color: var(--tainacan-media-accent-color, --paletteColor1);
--tainacan-label-color: var(--tainacan-media-color, --tainacan-label-color); --tainacan-label-color: var(--tainacan-media-color, --tainacan-label-color);
@ -469,7 +475,7 @@
width: 100%; width: 100%;
display: none; display: none;
padding: 2rem 42px 1rem 42px; padding: 2rem 42px 1rem 42px;
border-top: 1px solid var(--formBorderInitialColor, #e0e5eb); border-top: 1px solid var(--form-field-border-initial-color, #e0e5eb);
} }
label { label {
width: 100%; width: 100%;
@ -516,7 +522,7 @@
width: 100%; width: 100%;
display: none; display: none;
padding: 2rem 42px 1rem 42px; padding: 2rem 42px 1rem 42px;
border-bottom: 1px solid var(--formBorderInitialColor, #e0e5eb); border-bottom: 1px solid var(--form-field-border-initial-color, #e0e5eb);
margin-bottom: 0; margin-bottom: 0;
} }
label { label {
@ -526,7 +532,7 @@
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
opacity: 0.85; opacity: 0.85;
border-bottom: 1px solid var(--formBorderInitialColor, #e0e5eb); border-bottom: 1px solid var(--form-field-border-initial-color, #e0e5eb);
transition: opacity 0.2s ease; transition: opacity 0.2s ease;
.tainacan-single-item-section { .tainacan-single-item-section {
@ -543,7 +549,7 @@
} }
&:hover { &:hover {
opacity: 1.0; opacity: 1.0;
border-bottom: 1px solid var(--formBorderInitialColor, #e0e5eb); border-bottom: 1px solid var(--form-field-border-initial-color, #e0e5eb);
} }
} }
input { input {

View File

@ -10,8 +10,8 @@
--tainacan-block-primary: var(--paletteColor1, #3eaf7c); --tainacan-block-primary: var(--paletteColor1, #3eaf7c);
--tainacan-block-gray0: var(--backgroundColor, #f8f9fb); --tainacan-block-gray0: var(--backgroundColor, #f8f9fb);
--tainacan-block-gray1: var(--backgroundColor, #f8f9fb); --tainacan-block-gray1: var(--backgroundColor, #f8f9fb);
--tainacan-block-gray2: var(--formBorderInitialColor, #e0e5eb); --tainacan-block-gray2: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-block-gray3: var(--formBorderInitialColor, #e0e5eb); --tainacan-block-gray3: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-block-gray4: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-block-gray4: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-block-gray5: var(--headingColor, rgba(44, 62, 80, 1)); --tainacan-block-gray5: var(--headingColor, rgba(44, 62, 80, 1));
--background-color: var(--paletteColor7); --background-color: var(--paletteColor7);
@ -23,8 +23,8 @@
.theme-items-list { .theme-items-list {
--tainacan-font-family: var(--fontFamily, inherit); --tainacan-font-family: var(--fontFamily, inherit);
--tainacan-base-font-size: var(--fontSize, 1em); --tainacan-base-font-size: var(--fontSize, 1em);
--tainacan-item-hover-background-color: var(--tainacan-item-background-color, white);
--tainacan-item-heading-hover-background-color: var(--tainacan-item-background-color, white); --tainacan-item-heading-hover-background-color: var(--tainacan-item-background-color, white);
--tainacan-input-border-color: var(--formBorderInitialColor, #e0e5eb);
--tainacan-skeleton-color: var(--tainacan-item-background-color, white); --tainacan-skeleton-color: var(--tainacan-item-background-color, white);
/* Search control */ /* Search control */
/* Advanced Search */ /* Advanced Search */
@ -279,11 +279,11 @@ body:not(.tainacan-admin-page) .tainacan-modal-content {
--tainacan-font-family: var(--fontFamily, inherit); --tainacan-font-family: var(--fontFamily, inherit);
--tainacan-base-font-size: var(--fontSize, 1em); --tainacan-base-font-size: var(--fontSize, 1em);
--tainacan-secondary: var(--paletteColor1, #3eaf7c); --tainacan-secondary: var(--paletteColor1, #3eaf7c);
--tainacan-primary: var(--formBorderInitialColor, #e0e5eb); --tainacan-primary: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-background-color: var(--backgroundColor, #f8f9fb); --tainacan-background-color: var(--backgroundColor, #f8f9fb);
--tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-input-background-color: var(--formBackgroundInitialColor, white); --tainacan-input-background-color: var(--form-field-initial-background, white);
--tainacan-input-border-color: var(--formBorderInitialColor, #e0e5eb); --tainacan-input-border-color: var(--form-field-border-initial-color, #e0e5eb);
--tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9)); --tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9));
--tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1)); --tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1));
@ -501,7 +501,6 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
page-break-inside: avoid; page-break-inside: avoid;
break-inside: avoid; break-inside: avoid;
display: inline-block; display: inline-block;
width: 100%;
} }
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata div:last-child { .tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata div:last-child {
@ -509,6 +508,10 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
page-break-inside: auto; page-break-inside: auto;
break-inside: auto; break-inside: auto;
display: inline-block; display: inline-block;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata > div,
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-metadatum {
width: 100%; width: 100%;
} }
@ -597,12 +600,16 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
color: #cbcbcb; color: #cbcbcb;
} }
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .metadata-type-geocoordinate > div {
width: 100%;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .metadata-type-compound .multivalue-separator, .tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .metadata-type-compound .multivalue-separator,
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .metadata-type-textarea .multivalue-separator { .tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .metadata-type-textarea .multivalue-separator {
display: block; display: block;
max-height: 1px; max-height: 1px;
width: 45%; width: 45%;
background: var(--formBorderInitialColor, #e0e5eb); background: var(--form-field-border-initial-color, #e0e5eb);
content: none; content: none;
color: transparent; color: transparent;
margin: 0.875rem auto; margin: 0.875rem auto;
@ -612,7 +619,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
padding-top: 0.5em; padding-top: 0.5em;
margin-bottom: .75rem; margin-bottom: .75rem;
padding-left: 1.5rem; padding-left: 1.5rem;
border-left: 1px solid var(--formBorderInitialColor, #e0e5eb); border-left: 1px solid var(--form-field-border-initial-color, #e0e5eb);
} }
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-compound-group .label { .tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-compound-group .label {
@ -672,7 +679,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
display: block; display: block;
max-height: 1px; max-height: 1px;
width: calc(100% - 40px); width: calc(100% - 40px);
background: var(--formBorderInitialColor, #e0e5eb); background: var(--form-field-border-initial-color, #e0e5eb);
content: none; content: none;
color: transparent; color: transparent;
margin: 0.5em 0 0.5em 40px; margin: 0.5em 0 0.5em 40px;
@ -760,7 +767,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
} }
.tainacan-item-single-page .tainacan-gallery-above-title { .tainacan-item-single-page .tainacan-gallery-above-title {
background-color: var(--tainacan-media-background-color, var(--paletteColor6)); background-color: var(--tainacan-media-background-color, var(--paletteColor7));
margin-top: calc(-1 * var(--content-vertical-spacing)); margin-top: calc(-1 * var(--content-vertical-spacing));
margin-bottom: var(--content-vertical-spacing); margin-bottom: var(--content-vertical-spacing);
margin-left: var(--has-boxed, calc(-1 * var(--boxed-content-spacing))); margin-left: var(--has-boxed, calc(-1 * var(--boxed-content-spacing)));
@ -770,7 +777,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
} }
.tainacan-item-single-page .tainacan-gallery-above-title .tainacan-media-component { .tainacan-item-single-page .tainacan-gallery-above-title .tainacan-media-component {
--tainacan-media-background: var(--tainacan-media-background-color, var(--paletteColor6)); --tainacan-media-background: var(--tainacan-media-background-color, var(--paletteColor7));
--swiper-navigation-color: var(--tainacan-media-accent-color, --paletteColor1); --swiper-navigation-color: var(--tainacan-media-accent-color, --paletteColor1);
--swiper-theme-color: var(--tainacan-media-accent-color, --paletteColor1); --swiper-theme-color: var(--tainacan-media-accent-color, --paletteColor1);
--tainacan-label-color: var(--tainacan-media-color, --tainacan-label-color); --tainacan-label-color: var(--tainacan-media-color, --tainacan-label-color);
@ -858,7 +865,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
width: 100%; width: 100%;
display: none; display: none;
padding: 2rem 42px 1rem 42px; padding: 2rem 42px 1rem 42px;
border-top: 1px solid var(--formBorderInitialColor, #e0e5eb); border-top: 1px solid var(--form-field-border-initial-color, #e0e5eb);
} }
.tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--tabs label { .tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--tabs label {
@ -912,7 +919,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
width: 100%; width: 100%;
display: none; display: none;
padding: 2rem 42px 1rem 42px; padding: 2rem 42px 1rem 42px;
border-bottom: 1px solid var(--formBorderInitialColor, #e0e5eb); border-bottom: 1px solid var(--form-field-border-initial-color, #e0e5eb);
margin-bottom: 0; margin-bottom: 0;
} }
@ -924,7 +931,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
opacity: 0.85; opacity: 0.85;
border-bottom: 1px solid var(--formBorderInitialColor, #e0e5eb); border-bottom: 1px solid var(--form-field-border-initial-color, #e0e5eb);
transition: opacity 0.2s ease; transition: opacity 0.2s ease;
} }
@ -948,7 +955,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
.tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--collapses label:hover, .tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--collapses label:hover,
.tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--accordion label:hover { .tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--accordion label:hover {
opacity: 1.0; opacity: 1.0;
border-bottom: 1px solid var(--formBorderInitialColor, #e0e5eb); border-bottom: 1px solid var(--form-field-border-initial-color, #e0e5eb);
} }
.tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--collapses input, .tainacan-item-single-page .tainacan-item-section--metadata-sections .metadata-section-layout--collapses input,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,14 +14,16 @@ $background_color_palette = get_theme_mod($prefix . '_items_list_background_pale
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ], 'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ], 'color4' => [ 'color' => 'var(--form-field-initial-background, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ] 'color5' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ],
'color6' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ]
]); ]);
$page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';'; $page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';'; $page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';';
$page_container_style .= '--tainacan-item-background-hover-color:' . $background_color_palette['color3']['color'] . ';'; $page_container_style .= '--tainacan-item-hover-background-color:' . $background_color_palette['color3']['color'] . ';';
$page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';'; $page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';';
$page_container_style .= '--tainacan-primary-color:' . $background_color_palette['color5']['color'] . ';'; $page_container_style .= '--tainacan-primary:' . $background_color_palette['color5']['color'] . ';';
$page_container_style .= '--tainacan-input-border-color:' . $background_color_palette['color6']['color'] . ';';
$text_color_palette = get_theme_mod($prefix . '_items_list_text_palette', $text_color_palette = get_theme_mod($prefix . '_items_list_text_palette',
[ [

View File

@ -15,14 +15,16 @@ $background_color_palette = get_theme_mod($repository_items_prefix . '_items_lis
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ], 'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ], 'color4' => [ 'color' => 'var(--form-field-initial-background, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ] 'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color6' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ]
]); ]);
$page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';'; $page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';'; $page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';';
$page_container_style .= '--tainacan-item-background-hover-color:' . $background_color_palette['color3']['color'] . ';'; $page_container_style .= '--tainacan-item-hover-background-color:' . $background_color_palette['color3']['color'] . ';';
$page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';'; $page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';';
$page_container_style .= '--tainacan-primary-color:' . $background_color_palette['color5']['color'] . ';'; $page_container_style .= '--tainacan-primary:' . $background_color_palette['color5']['color'] . ';';
$page_container_style .= '--tainacan-input-border-color:' . $background_color_palette['color6']['color'] . ';';
$text_color_palette = get_theme_mod($repository_items_prefix . '_items_list_text_palette', $text_color_palette = get_theme_mod($repository_items_prefix . '_items_list_text_palette',
[ [

View File

@ -15,14 +15,16 @@ $background_color_palette = get_theme_mod($terms_items_prefix . '_items_list_bac
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ], 'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ], 'color4' => [ 'color' => 'var(--form-field-initial-background, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ] 'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color6' => [ 'color' => 'var(--form-field-border-initial-color, #e0e5eb)' ]
]); ]);
$page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';'; $page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';'; $page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';';
$page_container_style .= '--tainacan-item-background-hover-color:' . $background_color_palette['color3']['color'] . ';'; $page_container_style .= '--tainacan-item-hover-background-color:' . $background_color_palette['color3']['color'] . ';';
$page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';'; $page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';';
$page_container_style .= '--tainacan-primary-color:' . $background_color_palette['color5']['color'] . ';'; $page_container_style .= '--tainacan-primary:' . $background_color_palette['color5']['color'] . ';';
$page_container_style .= '--tainacan-input-border-color:' . $background_color_palette['color6']['color'] . ';';
$text_color_palette = get_theme_mod($terms_items_prefix . '_items_list_text_palette', $text_color_palette = get_theme_mod($terms_items_prefix . '_items_list_text_palette',
[ [