Version 2.4.1 - Several css adjustments o WP 5.8
This commit is contained in:
parent
a86f77e373
commit
ea6aa13f2f
|
@ -1,8 +1,8 @@
|
|||
=== Tainacan Interface ===
|
||||
Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes
|
||||
Requires at least: WordPress 4.8
|
||||
Tested up to: WordPress 5.7.2
|
||||
Version: 2.4
|
||||
Tested up to: WordPress 5.8
|
||||
Version: 2.4.1
|
||||
Requires PHP: 5.6
|
||||
Stable tag: trunk
|
||||
License: GNU General Public License v3
|
||||
|
|
|
@ -9,28 +9,28 @@ function onTainacanSearchSubmit($event) {
|
|||
selectedForm = child;
|
||||
}
|
||||
}
|
||||
|
||||
if (selectedForm.archive && tainacan_search_info !== undefined) {
|
||||
switch (selectedForm.archive.value) {
|
||||
case 'tainacan-items':
|
||||
console.log(tainacan_search_info.theme_items_list_url)
|
||||
selectedForm.action = tainacan_search_info.theme_items_list_url + (selectedForm.s ? '?search=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'tainacan-collections':
|
||||
selectedForm.action = tainacan_search_info.theme_collection_list_url + (selectedForm.s ? '?s=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'posts':
|
||||
selectedForm.action = '/' + (selectedForm.s ? '?onlyposts=true&s=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'pages':
|
||||
selectedForm.action = '/' + (selectedForm.s ? '?onlypages=true&s=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'global':
|
||||
default:
|
||||
selectedForm.action = '/' + (selectedForm.s ? '?s=' + selectedForm.s.value : '');
|
||||
if (tainacan_search_info !== undefined) {
|
||||
if (selectedForm.archive) {
|
||||
switch (selectedForm.archive.value) {
|
||||
case 'tainacan-items':
|
||||
selectedForm.action = tainacan_search_info.theme_items_list_url + (selectedForm.s ? '?search=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'tainacan-collections':
|
||||
selectedForm.action = tainacan_search_info.theme_collection_list_url + (selectedForm.s ? '?s=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'posts':
|
||||
selectedForm.action = tainacan_search_info.site_url + '/' + (selectedForm.s ? '?onlyposts=true&s=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'pages':
|
||||
selectedForm.action = tainacan_search_info.site_url + '/' + (selectedForm.s ? '?onlypages=true&s=' + selectedForm.s.value : '');
|
||||
break;
|
||||
case 'global':
|
||||
default:
|
||||
selectedForm.action = tainacan_search_info.site_url + '/' + (selectedForm.s ? '?s=' + selectedForm.s.value : '');
|
||||
}
|
||||
} else {
|
||||
selectedForm.action = tainacan_search_info.site_url + '/' + (selectedForm.s ? '?s=' + selectedForm.s.value : '');
|
||||
}
|
||||
} else {
|
||||
selectedForm.action = '/' + (selectedForm.s ? '?s=' + selectedForm.s.value : '');
|
||||
}
|
||||
|
||||
if ($event)
|
||||
|
|
|
@ -180,6 +180,8 @@
|
|||
color: #338591;
|
||||
margin-left: 4.16666666667%;
|
||||
margin-right: 4.16666666667%;
|
||||
margin-left: 4.16666666667vw;
|
||||
margin-right: 4.16666666667vw;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
header.tainacan-content {
|
||||
|
@ -560,7 +562,7 @@
|
|||
border-radius: 24px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
bottom: -18px;
|
||||
bottom: 0px;
|
||||
right: calc(50% - 18px);
|
||||
cursor: pointer;
|
||||
font-size: 0;
|
||||
|
@ -887,6 +889,8 @@
|
|||
height: 100%;
|
||||
.card {
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
div {
|
||||
-webkit-column-break-inside: avoid;
|
||||
|
@ -925,8 +929,8 @@
|
|||
column-rule: none;
|
||||
}
|
||||
h3 {
|
||||
color: #000;
|
||||
font-size: 0.875rem;
|
||||
color: #1d1d1d;
|
||||
font-size: 0.875rem !important;
|
||||
font-weight: 700;
|
||||
padding-right: 1rem;
|
||||
margin-bottom: 0.25rem;
|
||||
|
@ -938,7 +942,7 @@
|
|||
h4,
|
||||
label {
|
||||
color: #454647;
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.85rem !important;
|
||||
font-weight: 500;
|
||||
padding-right: 0.875rem;
|
||||
width: 100%;
|
||||
|
@ -968,7 +972,7 @@
|
|||
.multivalue-separator {
|
||||
display: block;
|
||||
max-height: 1px;
|
||||
width: 35px;
|
||||
width: 70px;
|
||||
background: #cbcbcb;
|
||||
content: none;
|
||||
color: transparent;
|
||||
|
@ -977,7 +981,7 @@
|
|||
}
|
||||
.tainacan-compound-group {
|
||||
padding-left: 1.5rem;
|
||||
border-left: 1px solid #f2f2f2;
|
||||
border-left: 1px solid #dbdbdb;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -375,62 +375,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* Checkboxes and Radio Buttons*/
|
||||
.components-modal__content input[type="checkbox"]:checked::before,
|
||||
.components-popover input[type="checkbox"]:checked::before,
|
||||
.editor-block-list__block input[type="checkbox"]:checked::before,
|
||||
.components-modal__content input[type="radio"]:checked::before,
|
||||
.components-popover input[type="radio"]:checked::before,
|
||||
.editor-block-list__block input[type="radio"]:checked::before {
|
||||
color: black;
|
||||
}
|
||||
.components-modal__content input[type="radio"]:checked::before,
|
||||
.components-popover input[type="radio"]:checked::before,
|
||||
.editor-block-list__block input[type="radio"]:checked::before {
|
||||
background: black;
|
||||
margin: 0;
|
||||
border: none;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
margin: 4px 0 0 4px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
.components-modal__content input[type="checkbox"]:checked,
|
||||
.components-modal__content input[type="radio"]:checked,
|
||||
.components-popover input[type="checkbox"]:checked,
|
||||
.components-popover input[type="radio"]:checked,
|
||||
.editor-block-list__block input[type="checkbox"]:checked,
|
||||
.editor-block-list__block input[type="radio"]:checked {
|
||||
background: white;
|
||||
border: 1px solid #555758;
|
||||
}
|
||||
.components-modal__content input[type="checkbox"],
|
||||
.components-modal__content input[type="radio"],
|
||||
.components-popover input[type="checkbox"],
|
||||
.components-popover input[type="radio"],
|
||||
.editor-block-list__block input[type="checkbox"],
|
||||
.editor-block-list__block input[type="radio"] {
|
||||
border: 1px solid #555758;
|
||||
}
|
||||
.components-modal__content input[type="checkbox"]:checked:focus,
|
||||
.components-modal__content input[type="radio"]:checked:focus,
|
||||
.components-popover input[type="checkbox"]:checked:focus,
|
||||
.components-popover input[type="radio"]:checked:focus,
|
||||
.editor-block-list__block input[type="checkbox"]:checked:focus,
|
||||
.editor-block-list__block input[type="radio"]:checked:focus,
|
||||
.components-modal__content input[type="checkbox"]:focus,
|
||||
.components-modal__content input[type="radio"]:focus,
|
||||
.components-popover input[type="checkbox"]:focus,
|
||||
.components-popover input[type="radio"]:focus,
|
||||
.editor-block-list__block input[type="checkbox"]:focus,
|
||||
.editor-block-list__block input[type="radio"]:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Blockquote */
|
||||
.wp-block-quote {
|
||||
margin: 3rem 8.33333%;
|
||||
|
@ -540,7 +484,7 @@
|
|||
width: calc(100% + 64px);
|
||||
height: calc(100% - 104px);
|
||||
margin-left: -32px;
|
||||
margin-bottom: -4px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.modal-footer-area {
|
||||
|
|
|
@ -4,8 +4,8 @@ Author: Tainacan
|
|||
Author URI: https://tainacan.org
|
||||
Theme URI: https://tainacan.org/blog/category/tema/
|
||||
Description: This is the default theme for the Tainacan project. Use this in conjunction with Tainacan plugin to easily manage and publish you digital collections with a beautiful faceted search interface. Ideal for museums, galleries, libraries and anyone who have a digital repository.
|
||||
Version: 2.4
|
||||
Tested up to: 5.7.2
|
||||
Version: 2.4.1
|
||||
Tested up to: 5.8
|
||||
Requires PHP: 5.6
|
||||
License: GNU General Public License v3
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
|
@ -369,6 +369,7 @@ nav {
|
|||
|
||||
> li{
|
||||
&.menu-item {
|
||||
margin-bottom: 0;
|
||||
@media screen and (min-width: 769px){
|
||||
padding-left: 42px;
|
||||
}
|
||||
|
@ -490,9 +491,9 @@ nav {
|
|||
padding: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
& > .container-fluid {
|
||||
align-items: flex-end;
|
||||
}
|
||||
// & > .container-fluid {
|
||||
// align-items: flex-end;
|
||||
// }
|
||||
|
||||
&.tainacan-header-layout--left #topNavbar {
|
||||
flex-direction: column;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/** Theme version */
|
||||
const TAINACAN_INTERFACE_VERSION = '2.4';
|
||||
const TAINACAN_INTERFACE_VERSION = '2.4.1';
|
||||
|
||||
/**
|
||||
* Setup Theme
|
||||
|
|
|
@ -62,6 +62,7 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) {
|
|||
$settings = array(
|
||||
'theme_items_list_url' => esc_url_raw( get_site_url() ) . '/' . \Tainacan\Theme_Helper::get_instance()->get_items_list_slug(),
|
||||
'theme_collection_list_url' => get_post_type_archive_link( 'tainacan-collection' ),
|
||||
'site_url' => get_site_url()
|
||||
);
|
||||
wp_register_script( 'tainacan_searchBarRedirect', get_template_directory_uri() . '/assets/js/search-bar-redirect.js', '', TAINACAN_INTERFACE_VERSION, false );
|
||||
wp_enqueue_script( 'tainacan_searchBarRedirect' );
|
||||
|
|
Loading…
Reference in New Issue