This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// enable divi functions | |
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
function my_enqueue_assets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} | |
//add 1440px image size | |
add_image_size('image_1440', 1440, 9999, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let select = () => { | |
let selectCurrent = document.querySelectorAll('.select__current'), | |
selectItem = document.querySelectorAll('.select__list_item'); | |
for (let item of selectCurrent) { | |
item.addEventListener('click', function () { | |
this.parentElement.classList.toggle('is-open'); | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.file-upload | |
span.file-upload__text Прикрепите файл | |
.file-upload__btn | |
label.file-upload__btn_label | |
input(type="file") | |
span.file-upload__btn_text Загрузить | |
.file-upload { | |
align-items: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
let tabNav = document.querySelectorAll('.tab-list>li'), | |
tabContent = document.querySelectorAll('.tab-content__item'), | |
tabName; | |
tabNav.forEach(function (item) { | |
item.addEventListener('click', selectTabNav) | |
}); | |
function selectTabNav() { | |
tabNav.forEach(function (item) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.arrow-up | |
absolute($top:-20px,$left:50%) | |
size(20px) | |
z-index 1 | |
overflow hidden | |
transform translateX(-50%) | |
&:before | |
absolute($bottom:-10px,$left:50%) | |
size(16px) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.scroll-link') | |
.not('[href="#"]') | |
.not('[href="#0"]') | |
.click(function (event) { | |
if ( | |
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') | |
&& | |
location.hostname == this.hostname | |
) { | |
var target = $(this.hash); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
absolute-center() | |
position absolute | |
top 50% | |
left 50% | |
transform translate(-50%,-50%) | |
absolute-all(num) | |
position absolute | |
top num | |
bottom num |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sandwich | |
.sandwich__line.sandwich__line--top | |
.sandwich__line.sandwich__line--middle | |
.sandwich__line.sandwich__line--bottom | |
.sandwich { | |
cursor: pointer; | |
display: none; | |
height: 20px; | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
label.radio | |
span.radio__text name | |
input(type="radio") | |
span.checkbox__custom | |
.radio { | |
display: block; | |
position: relative; | |
width: 100%; |