Revised banner on mobile

This commit is contained in:
Fabiano 2018-07-11 12:31:18 -03:00
parent 5186f09e37
commit 2595445692
3 changed files with 22 additions and 7 deletions

View File

@ -293,12 +293,16 @@ form{
.title-header{
display: inline-block;
padding: 1.5rem;
padding-left: 4.166667%;
padding-right: 4.166667%;
max-width: 90vw;
word-break: break-word;
@media only screen and (min-width: 992px){
height: 100px;
min-height: 100px;
min-width: 450px;
padding: 0rem;
padding-left: 4.166667%;
padding-right: 1rem;
padding-right: 4.166667%;
&.singular-title{
padding: 1.5rem;
padding-left: 4.166667%;
@ -308,11 +312,12 @@ form{
padding: 0.7rem;
padding-top: 2.2rem;
padding-left: 4.166667%;
height: 100px;
padding-right: 4.166667%;
min-height: 100px;
}
@media only screen and (max-width: 576px){
height: 60px;
padding: 0.3rem 1.3rem 0.3rem 4.16666666667%;
min-height: 60px;
padding: 1rem 1.3rem 0.3rem 4.16666666667%;
}
h1{
color: #000;
@ -337,6 +342,7 @@ form{
.tainacan-title-page{
.title-page{
font-size: 20px;
word-break: break-word;
}
.title-back{
font: {

View File

@ -82,4 +82,13 @@ function filter_cancel_comment_reply_link( $formatted_link, $link, $text ) {
$formatted_link = '<a rel="nofollow" class="btn btn-info bg-white border-oslo-gray align-self-center mt-3 ml-1" id="cancel-comment-reply-link" href="'.$link.'" style="display:none;">'.$text.'</a>';
return $formatted_link;
}
add_filter( 'cancel_comment_reply_link', 'filter_cancel_comment_reply_link', 10, 3 );
add_filter( 'cancel_comment_reply_link', 'filter_cancel_comment_reply_link', 10, 3 );
/* function max_title_length($title){
$max = 20;
if(strlen($title) > $max)
return substr($title, 0, $max). " &hellip;";
else
return $title;
}
add_filter('the_title', 'max_title_length'); */

View File

@ -8,7 +8,7 @@
<div class="bg-white-title title-header <?php if(is_singular() || is_archive()) { echo 'singular-title'; }?>">
<h1 class="mb-0">
<?php if(is_home()) { ?> Blog <?php bloginfo('title'); }?>
<?php if(is_singular()) { the_title(); }?>
<?php if(is_singular()) { echo mb_strimwidth(get_the_title(),0,25,'...');/* the_title(); */ }?>
<?php if(is_archive()) { ?> <?php echo get_the_archive_title(); }?>
</h1>
<?php if(is_home()) {?> <span><?php bloginfo('description'); }?></span>