Commit 7799eb93 authored by Isaque Melo's avatar Isaque Melo

Fix app.css conflit

parents 0b176ce7 09983272
Pipeline #10890 passed with stages
in 52 seconds
......@@ -38,6 +38,20 @@
}
}
&.button-widget {
background-color: #e63d55;
color: white;
transition: all .2s ease-in-out;
margin-top: 15px;
&:hover {
background-color: #e63d55;
filter: brightness(0.9);
transform: scale(1.02);
transition: all .2s ease-in-out;
}
}
&:hover {
background-color: rgba(255, 255, 255, 0.2);
color: $c_concrete;
......
......@@ -7801,6 +7801,20 @@ ul.nav {
border: 2px solid white;
}
.button.button-widget {
background-color: #e63d55;
color: white;
transition: all .2s ease-in-out;
margin-top: 15px;
}
.button.button-widget:hover {
background-color: #e63d55;
filter: brightness(0.9);
transform: scale(1.02);
transition: all .2s ease-in-out;
}
.button:hover {
background-color: rgba(255, 255, 255, 0.2);
color: #F2F2F2;
......
<div class="text-<?= $instance['button_align'] ?>">
<a href="<?= $instance['button_href']; ?>" <?= isset($instance['download']) && $instance['download']? 'download' : ''?> class="button large full-width"><?= $instance['button_label']; ?></a>
<a href="<?= $instance['button_href']; ?>" <?= isset($instance['download']) && $instance['download']? 'download' : ''?> class="button large full-width button-widget"><?= $instance['button_label']; ?></a>
</div>
\ No newline at end of file
......@@ -22,6 +22,16 @@ class PostsListLarge extends \SiteOrigin_Widget {
'type' => 'posts',
'label' => __('Conteúdo', 'lula'),
],
'only_image' => [
'type' => 'checkbox',
'label' => __( 'Show only image?', 'lula' ),
'default' => false
],
'show_download_button' => [
'type' => 'checkbox',
'label' => __( 'Show download button?', 'lula' ),
'default' => false
]
];
parent::__construct('posts-list-large', __('Lista de Posts', 'lula'), [
......
......@@ -10,17 +10,26 @@
<a href="<?= get_post_permalink($post) ?>">
<div style="background-image: url(<?= images\url('full', 'full') ?>)" class="card--image" alt=""></div>
</a>
<div class="posts-list-large--info">
<span class="text-red"><?php the_category(', ') ?></span> //
<span>por <?php the_meta_author(); ?></span> //
<span><?php the_time('d.m.Y') ?></span>
</div>
<a href="<?= get_post_permalink($post) ?>">
<h2 class="posts-list-large--title"><?= $post->post_title ?></h2>
<?php if(has_excerpt()) : ?>
<div class="posts-list-large--excerpt"><?php the_excerpt() ?></div>
<?php endif; ?>
</a>
<?php if(isset($instance['only_image']) && !$instance['only_image']): ?>
<div class="posts-list-large--info">
<span class="text-red"><?php the_category(', ') ?></span> //
<span>por <?php the_meta_author(); ?></span> //
<span><?php the_time('d.m.Y') ?></span>
</div>
<a href="<?= get_post_permalink($post) ?>">
<h2 class="posts-list-large--title"><?= $post->post_title ?></h2>
<?php if(has_excerpt()) : ?>
<div class="posts-list-large--excerpt"><?php the_excerpt() ?></div>
<?php endif; ?>
</a>
<?php endif; ?>
<?php if(isset($instance['show_download_button']) && $instance['show_download_button']): ?>
<a href="<?= images\url('full', 'full') ?>" download class="button large full-width button-widget">
<?= __("Download", "lula") ?>
</a>
<?php endif; ?>
<?php part('post-share') ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment