Skip to content

Instantly share code, notes, and snippets.

View RiodeJaneiroo's full-sized avatar
🎯
Focusing

Vadim Zmiievskyi RiodeJaneiroo

🎯
Focusing
  • Ukraine
View GitHub Profile
@RiodeJaneiroo
RiodeJaneiroo / main.scss - placeholder style
Last active August 17, 2016 04:00
css rules for input placeholder
input::-webkit-input-placeholder {
font-weight: 400;
font-size: 16px;
}
input::-moz-placeholder {
font-weight: 400;
font-size: 16px;
}
input:-moz-placeholder {
font-weight: 400;
@RiodeJaneiroo
RiodeJaneiroo / index.html
Created September 7, 2016 07:51
tabs html+css
<div class="tabs-widget">
<div class="header">
<a href="#tab-1-1">Первая вкладка</a>
<a href="#tab-1-2">Вторая вкладка</a>
<a href="#tab-1-3">Третья вкладка</a>
</div>
<div class="content">
<div id="tab-1-1" class="scroller"></div>
<div class="item">
<p>Это первая вкладка этого классного виджета табов.</p>
@RiodeJaneiroo
RiodeJaneiroo / index.html
Created March 31, 2018 13:14
style input file
<div class="form-group">
<label class="control-label" for="af_message">Загрузите скриншот</label><br><br>
<label for="input-file" class="input-upload">
<input name="project" type="file" id="input-file" accept=".jpg, .jpeg, .png, .psd, .pdf, .doc, .docx">
<img src="/tmp/img/arrow-up.svg" alt="upload file" />
<br>
<span>выбрать файл для отправки</span>
</label>
</div>
@RiodeJaneiroo
RiodeJaneiroo / main.js
Created October 2, 2018 14:35
[Smooth Scroll to anchor] #js #scroll
$('a[href^="#"]').on('click', function(event) {
event.preventDefault();
var sc = $(this).attr("href"),
dn = $(sc).offset().top;
$('html, body').animate({scrollTop: dn}, 1000);
});
@RiodeJaneiroo
RiodeJaneiroo / .htaccess
Created October 3, 2018 16:46
[MODX revo htacces 301 redirect] Modx Revo 301 redirect from /index.php #modx #htaccess
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html|htm)\ HTTP/
RewriteRule ^(.*)index\.(php|html|htm)$ $1 [R=301,L]
@RiodeJaneiroo
RiodeJaneiroo / style.css
Created October 4, 2018 17:59
[Font Smoothing] #css #font #font_smoothing
/* Smoothing */
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
@RiodeJaneiroo
RiodeJaneiroo / style.css
Created October 7, 2018 14:52
[IOS Safari zoom block] Mobile Safari (а также Chrome для Android, Mobile Firefox и IE Mobile) автоматически увеличивают размер шрифта внутри широких блоков. Это можно пофиксить одной строчкой CSS: #safari #css
-webkit-text-size-adjust: 100%;
@RiodeJaneiroo
RiodeJaneiroo / functions.php
Created October 9, 2018 10:45
[Wordpress - wp nav menu] Remove class and ID from li #wordpress #wp_nav_menu
add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1);
add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1);
add_filter('page_css_class', 'my_css_attributes_filter', 100, 1);
function my_css_attributes_filter($var) {
return is_array($var) ? array() : '';
}
@RiodeJaneiroo
RiodeJaneiroo / functions.php
Last active October 9, 2018 15:01
[Wordpress F.A.Q|Portfolio| CPT] Wordpress – register post type - faq|Portfolio| #wordpress #cpt #no_url #register_post_type #faq #portfolio
add_action('init', 'art_register_port');
function art_register_port(){
register_post_type('portfolio', array(
'labels' => array(
'name' => 'Portfolio', // Основное название типа записи
'singular_name' => 'Portfolio', // отдельное название записи типа Book
'add_new' => 'Add',
'add_new_item' => 'Add new',
'edit_item' => 'Edit',
@RiodeJaneiroo
RiodeJaneiroo / functions.php
Created October 10, 2018 12:02
[Disable canonical URLs - YOASY] To disable the canonical entirely, you could do the following: #wordpress #yoast #canonical
add_filter( 'wpseo_canonical', '__return_false' );