/*.photo__section {*/
.photo__colage {
/*height: 857px;*/
/*display: flex;*/
/*display: inline-block;*/
/*justify-content: space-between;*/
/*align-items: center;*/
display: grid;
grid-template-columns: repeat(4, 1fr);
}
.photo__photo {
/*width: 477px;*/
/*height: 357px;*/
/*position: relative;*/
/*flex-direction: column;*/
/*justify-content: space-between;*/
background-size: cover;
/*margin-left: 0;*/
/*vertical-align: right;
/*justify-content: space-between;
flex-direction: column;*/
}
Ведь когда накладываю тень то кнопка оказывается квадрадной а не по форме рисунка.
on: {
touchEnd: function(s,e) {
let range = 5;
let diff = s.touches.diff = s.isHorizontal() ? s.touches.currentX - s.touches.startX : s.touches.currentY
- s.touches.startY
if (diff < range || diff > -range) s.allowClick = true;
}
},
myPlacemark.events
.add('mouseenter', function (event) {
let _this = event.get('target').getOverlaySync().getLayoutSync().getElement(); // Родительский контейнер html.
let pinner = _this.children[0]; // Вложенный элемент.
$(pinner).addClass('interested');
})
'null'
а null
wp_deregister_script( 'jquery' );
function send_form(){
//весь код из mail.php тут
}
add_action('wp_ajax_send_form', 'send_form');
add_action('wp_ajax_nopriv_send_form', 'send_form');
/wp-admin/admin-ajax.php?action=send_form
$hour = date('H:i');
if ($hour < '08:00' || $hour > '23:00') die('Closed');
.card
.card__date
.card__image
.card__info
.card__icon
<div class="card">
<div class="card__date"><span class="card__day">25</span> april</div>
<picture class="card__picture">
<img class="card__image" src="https://unsplash.it/1000/300" alt="">
</picture>
<div class="card__info">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur sequi enim quia, voluptatibus laborum atque magnam sapiente sint expedita quas! Similique aspernatur quod optio quasi ducimus tempora commodi, maxime vel!</p>
<button class="card__btn">+</button>
</div>
</div>
*, *::before, *::after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.card {
display: flex;
flex-wrap: wrap;
}
.card__date {
order: 1;
background-color: yellow;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
}
.card__day {
font-size: 30px;
}
.card__info {
order: -1;
position: relative;
padding: 20px;
}
.card__btn {
position: absolute;
bottom: 10px;
right: 10px;
background: none;
border: 0;
font-size: 30px;
}
.card__image {
object-fit: cover;
display: block;
}
.card__picture {
overflow: hidden;
display: flex;
justify-content: center;
}
.card__picture,
.card__info {
flex-grow: 1;
flex-basis: 50%;
flex-shrink: 0;
background-color: orange;
}