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
| .main-navigation li::after | |
| content: '' | |
| width: 2px | |
| height: 2px | |
| background-color: #ddd | |
| position: absolute | |
| top: 25px | |
| left: 0 |
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
| @import "bourbon" | |
| /* Medium devices (desktops) */ | |
| @media (min-width: 993px) and (max-width: 1199px) | |
| .fw-hidden-md | |
| display: none | |
| /* Small devices (tablets) */ | |
| @media (min-width: 767px) and (max-width: 992px) | |
| .fw-hidden-sm | |
| display: none |
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
| .zoom_toggle_mnu { | |
| text-align: center; | |
| } | |
| button.toggle_mnu { | |
| -webkit-box-shadow: none; | |
| box-shadow: none; | |
| } | |
| .toggle_mnu | |
| { | |
| background-color: transparent; |
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
| // Ссылка на страницу скрипта https://github.com/agragregra/gulp-lesson/blob/master/gulpfile.js | |
| // Автор Алексей agragregra https://github.com/agragregra | |
| var gulp = require('gulp'), // Подключаем Gulp | |
| sass = require('gulp-sass'), //Подключаем Sass пакет, | |
| browserSync = require('browser-sync'), // Подключаем Browser Sync | |
| concat = require('gulp-concat'), // Подключаем gulp-concat (для конкатенации файлов) | |
| uglify = require('gulp-uglifyjs'), // Подключаем gulp-uglifyjs (для сжатия JS) | |
| cssnano = require('gulp-cssnano'), // Подключаем пакет для минификации CSS | |
| rename = require('gulp-rename'), // Подключаем библиотеку для переименования файлов | |
| del = require('del'), // Подключаем библиотеку для удаления файлов и папок |
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
| $(window).scroll(function() { | |
| var st = $(this).scrollTop() /10; | |
| $(".object").css({ | |
| "transform" : "translate3d(0px, " + st + "%, 0px)", | |
| "-webkit-transform" : "translate3d(0px, " + st + "%, 0px)" | |
| }); | |
| }); |
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
| //Подключаем jquery.js, magnific-popup.css и jquery.mixitup.min.js | |
| <a href="#popup_content_1" class="open-popup" target="_blank"> | |
| <span class="list-title">Сайт-визитка</span> | |
| </a> | |
| //Контент всплывающего окна | |
| <div id="popup_content_1" class="white-popup mfp-hide"> | |
| Popup content | |
| </div> |
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
| /*! | |
| * Simple jQuery Equal Heights | |
| * | |
| * Copyright (c) 2013 Matt Banks | |
| * Dual licensed under the MIT and GPL licenses. | |
| * Uses the same license as jQuery, see: | |
| * http://docs.jquery.com/License | |
| * | |
| * @version 1.5.1 | |
| */ |
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
| $mimes = get_allowed_mime_types(); | |
| echo "<pre>"; print_r($mimes); die(); |
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
| //Добавляет поддержку svg | |
| add_filter('upload_mimes', 'custom_upload_mimes'); | |
| function custom_upload_mimes ( $mimes ) { | |
| // Добавляет расширение 'svg' и его mime type 'mime/svg-xml' | |
| $mimes['svg'] = 'image/svg-xml'; | |
| return $mimes; | |
| } |
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
| if ( is_user_logged_in() ) { | |
| $current_user = wp_get_current_user(); | |
| if ( 1 == $current_user->ID ) { | |
| // do staff. | |
| } else { | |
| // do staff. | |
| } | |
| } |
NewerOlder