Removes some unecessary .bg-white classes. Ajustments to collection list controls and calendar widget.

This commit is contained in:
mateuswetah 2020-07-02 12:36:52 -03:00
parent 78063e5f34
commit 29e015974f
6 changed files with 25 additions and 18 deletions

View File

@ -19,7 +19,7 @@
<div class="form-inline mt-4 tainacan-collection-list--simple-search justify-content-between"> <div class="form-inline mt-4 tainacan-collection-list--simple-search justify-content-between">
<div class="dropdown dropdown-sorting"> <div class="dropdown dropdown-sorting">
<button class="btn bg-white dropdown-toggle text-black" type="button" id="dropdownMenuSorting" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button class="btn dropdown-toggle text-black" type="button" id="dropdownMenuSorting" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php _e( 'Sorting', 'tainacan-interface' ); ?> <?php _e( 'Sorting', 'tainacan-interface' ); ?>
</button> </button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuSorting"> <div class="dropdown-menu" aria-labelledby="dropdownMenuSorting">
@ -28,22 +28,22 @@
</div> </div>
</div> </div>
<a class="btn btn-white bg-white <?php tainacan_active( get_query_var( 'order' ), 'ASC' ); ?>" href="<?php echo add_query_arg( 'order', 'ASC' ); ?>"> <a class="btn btn-white <?php tainacan_active( get_query_var( 'order' ), 'ASC' ); ?>" style="width: 2rem;" href="<?php echo add_query_arg( 'order', 'ASC' ); ?>">
<i class="tainacan-icon tainacan-icon-18px tainacan-icon-sortascending"></i> <i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-sortascending"></i>
</a> </a>
<a class="btn btn-white bg-white <?php tainacan_active( get_query_var( 'order' ), 'DESC' ); ?>" href="<?php echo add_query_arg( 'order', 'DESC' ); ?>"> <a class="btn btn-white <?php tainacan_active( get_query_var( 'order' ), 'DESC' ); ?>" style="width: 2rem;" href="<?php echo add_query_arg( 'order', 'DESC' ); ?>">
<i class="tainacan-icon tainacan-icon-18px tainacan-icon-sortdescending"></i> <i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-sortdescending"></i>
</a> </a>
<div class="dropdown margin-one-column-left dropdown-viewMode"> <div class="dropdown margin-one-column-left dropdown-viewMode">
<button class="btn bg-white dropdown-toggle text-black" type="button" id="dropdownMenuViewMode" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button class="btn dropdown-toggle text-black" type="button" id="dropdownMenuViewMode" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="tainacan-icon tainacan-icon-18px tainacan-icon-viewtable text-oslo-gray"></i> <i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-viewtable text-oslo-gray"></i>
<span class="d-none d-md-inline"><?php _e( 'View Mode', 'tainacan-interface' ); ?></span> <span class="d-none d-md-inline"><?php _e( 'View Mode', 'tainacan-interface' ); ?></span>
</button> </button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuViewMode"> <div class="dropdown-menu" aria-labelledby="dropdownMenuViewMode">
<a class="dropdown-item text-black <?php tainacan_active( get_query_var( 'tainacan_collections_viewmode' ), 'cards' ); ?>" href="<?php echo add_query_arg( 'tainacan_collections_viewmode', 'cards' ); ?>"><?php _e( 'Cards', 'tainacan-interface' ); ?></a> <a class="dropdown-item text-black <?php tainacan_active( get_query_var( 'tainacan_collections_viewmode' ), 'cards' ); ?>" href="<?php echo add_query_arg( 'tainacan_collections_viewmode', 'cards' ); ?>"><i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-viewcards text-oslo-gray"></i>&nbsp;<?php _e( 'Cards', 'tainacan-interface' ); ?></a>
<a class="dropdown-item text-black <?php tainacan_active( get_query_var( 'tainacan_collections_viewmode' ), 'grid' ); ?>" href="<?php echo add_query_arg( 'tainacan_collections_viewmode', 'grid' ); ?>"><?php _e( 'Thumbnails', 'tainacan-interface' ); ?></a> <a class="dropdown-item text-black <?php tainacan_active( get_query_var( 'tainacan_collections_viewmode' ), 'grid' ); ?>" href="<?php echo add_query_arg( 'tainacan_collections_viewmode', 'grid' ); ?>"><i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-viewminiature text-oslo-gray"></i>&nbsp;<?php _e( 'Thumbnails', 'tainacan-interface' ); ?></a>
<a class="dropdown-item text-black <?php tainacan_active( get_query_var( 'tainacan_collections_viewmode' ), 'table' ); ?>" href="<?php echo add_query_arg( 'tainacan_collections_viewmode', 'table' ); ?>"><?php _e( 'Table', 'tainacan-interface' ); ?></a> <a class="dropdown-item text-black <?php tainacan_active( get_query_var( 'tainacan_collections_viewmode' ), 'table' ); ?>" href="<?php echo add_query_arg( 'tainacan_collections_viewmode', 'table' ); ?>"><i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-viewtable text-oslo-gray"></i>&nbsp;<?php _e( 'Table', 'tainacan-interface' ); ?></a>
</div> </div>
</div> </div>

View File

@ -315,7 +315,7 @@ footer{
} }
.tainacan-side{ .tainacan-side{
.textwidget, .recentcomments, .calendar_wrap, ul li, div li, div, ul, li { .textwidget, .recentcomments, .calendar_wrap, ul li, div li, div, ul, li {
color: #898d8f; color: #cbcbcb;
} }
} }
} }

View File

@ -7,7 +7,7 @@
&.sidebar{ &.sidebar{
.widget{ .widget{
.widget-title{ .widget-title{
font-size: 0.875rem; font-size: 1rem;
font-weight: bold; font-weight: bold;
color: #1d1d1b; color: #1d1d1b;
} }
@ -37,6 +37,13 @@
&.widget_text{ &.widget_text{
font-size: 0.75rem; font-size: 0.75rem;
} }
table.wp-calendar-table {
font-size: 0.875rem;
td {
padding: 2px;
}
}
ul{ ul{
padding-left: 0; padding-left: 0;
li{ li{

View File

@ -71,7 +71,7 @@ if ( ! function_exists( 'tainacan_pagination' ) ) :
<div class="d-flex margin-pagination justify-content-between border-top pt-2"> <div class="d-flex margin-pagination justify-content-between border-top pt-2">
<div class="col-sm-3 d-none d-lg-block pl-0 view-items"> <div class="col-sm-3 d-none d-lg-block pl-0 view-items">
<?php //translators: Example - Viewing Items: 1 to 12 of 345 ?> <?php //translators: Example - Viewing Items: 1 to 12 of 345 ?>
<?php printf( __('Viewing Items: %1$d to %2$d of %3$d', 'tainacan-interface'), $count_max + 1, $count_max + $wp_query->post_count, $wp_query->found_posts ); ?> <?php printf( __('Viewing collections: %1$d to %2$d of %3$d', 'tainacan-interface'), $count_max + 1, $count_max + $wp_query->post_count, $wp_query->found_posts ); ?>
</div> </div>
<div class="col-sm-5 pr-md-0 justify-content-md-end"> <div class="col-sm-5 pr-md-0 justify-content-md-end">
<?php the_posts_pagination( <?php the_posts_pagination(
@ -79,11 +79,11 @@ if ( ! function_exists( 'tainacan_pagination' ) ) :
'mid_size' => 2, 'mid_size' => 2,
'prev_text' => sprintf( 'prev_text' => sprintf(
'%s', '%s',
'<i class="tainacan-icon tainacan-icon-arrowleft"></i>' '<i class="tainacan-icon tainacan-icon-arrowleft tainacan-icon-1-25em"></i>'
), ),
'next_text' => sprintf( 'next_text' => sprintf(
' %s', ' %s',
'<i class="tainacan-icon tainacan-icon-arrowright"></i>' '<i class="tainacan-icon tainacan-icon-arrowright tainacan-icon-1-25em"></i>'
), ),
'screen_reader_text' => ' ' 'screen_reader_text' => ' '
) )

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
<div class="col s-item-collection--metadata"> <div class="col s-item-collection--metadata">
<?php if (has_post_thumbnail() && get_theme_mod( 'tainacan_single_item_display_thumbnail', true )): ?> <?php if (has_post_thumbnail() && get_theme_mod( 'tainacan_single_item_display_thumbnail', true )): ?>
<div class="tainacan-item-thumbnail-container card border-0 mb-3"> <div class="tainacan-item-thumbnail-container card border-0 mb-3">
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1"> <div class="card-body border-0 pl-0 pt-0 pb-1">
<h3><?php _e( 'Thumbnail', 'tainacan-interface' ); ?></h3> <h3><?php _e( 'Thumbnail', 'tainacan-interface' ); ?></h3>
<?php the_post_thumbnail('tainacan-medium-full', array('class' => 'item-card--thumbnail mt-2')); ?> <?php the_post_thumbnail('tainacan-medium-full', array('class' => 'item-card--thumbnail mt-2')); ?>
</div> </div>
@ -19,7 +19,7 @@
<?php endif; ?> <?php endif; ?>
<?php if (!get_theme_mod('tainacan_single_item_collection_header', false) && get_theme_mod( 'tainacan_single_item_display_share_buttons', true )): ?> <?php if (!get_theme_mod('tainacan_single_item_collection_header', false) && get_theme_mod( 'tainacan_single_item_display_share_buttons', true )): ?>
<div class="card border-0 mb-3"> <div class="card border-0 mb-3">
<div class="tainacan-item-share-container card-body bg-white border-0 pl-0 pt-0 pb-1"> <div class="tainacan-item-share-container card-body border-0 pl-0 pt-0 pb-1">
<h3><?php _e( 'Share', 'tainacan-interface' ); ?></h3> <h3><?php _e( 'Share', 'tainacan-interface' ); ?></h3>
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<?php if ( true == get_theme_mod( 'tainacan_facebook_share', true ) ) : ?> <?php if ( true == get_theme_mod( 'tainacan_facebook_share', true ) ) : ?>