Skip to content

Instantly share code, notes, and snippets.

View zexeder's full-sized avatar
:octocat:

Antoȵ zexeder

:octocat:
View GitHub Profile
// Convert PX to REM
$browser-context: 16; // Default
@function rem($pixels, $context: $browser-context) {
@return #{$pixels/$context}rem;
}
// Margin/Padding helpers
$step : 5;
$from : 0;
$through : ceil( 100 /$step);
@zexeder
zexeder / .csscomb.json
Created June 10, 2019 12:40 — forked from nrifki/.csscomb.json
My CSS Comb configuration
{
"exclude": [".git/**", "node_modules/**", "bower_components/**"],
"always-semicolon": true,
"block-indent": " ",
"color-case": "upper",
"color-shorthand": false,
"element-case": "lower",
"eof-newline": true,
"leading-zero": true,
"quotes": "double",
@zexeder
zexeder / getTVcustomData.php
Created February 25, 2019 09:27 — forked from pavel-one/getTVcustomData.php
Кастомные данные для тв
<?php
//@EVAL return $modx->runSnippet('getDepartament');
$pdo = $modx->getService('pdoFetch');
$pdo->setConfig(array(
'parents' => 137,
'limit' => 0,
'sortby' => 'id',
'select' => 'id,pagetitle',
'return' => 'data',
'where' => [
@zexeder
zexeder / .htaccess
Created August 13, 2018 10:23 — forked from Burick/.htaccess
.htaccess
# Устанавливаем кодировку
AddDefaultCharset utf-8
Options +FollowSymLinks
# Запрет выдачи листинга пустого каталога
Options -Indexes
# Активируем mod_rewrite
RewriteEngine On
$('.open-popup-link-2').attr("data-effect","mfp-move-horizontal").magnificPopup({
type:'inline',
removalDelay: 500, //delay removal by X to allow out-animation
callbacks: {
beforeOpen: function() {
this.st.mainClass = this.st.el.attr('data-effect');
}
},
midClick: true,
callbacks: {open: initSliders}
@zexeder
zexeder / README.md
Created January 21, 2018 14:41 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@zexeder
zexeder / twog-modx.html
Created January 19, 2018 18:15 — forked from sepiariver/twog-modx.html
Twitter/OG Meta Tags for MODX
<!-- Open Graph Tags -->
<meta property="og:site_name" content="[[++site_name]]" />
<meta property="og:type" content="article" />
<meta property="og:title" content="[[*longtitle:default=`[[*pagetitle]]`]]" />
<meta property="og:description" content="[[*description:default=`[[++site_description]]`]]" />
<meta property="og:url" content="[[~[[*id]]? &scheme=`full`]]" />
<meta property="og:image" content="[[*image:default=`[[++site_image]]`]]" />
<meta property="fb:app_id" content="[[++fb_app_id]]" />
<meta property="article:publisher" content="[[++fb_url]]" />
<!-- Twitter Tags -->
[
{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
@zexeder
zexeder / VSCODE_snippet_idiomatic_css
Created September 25, 2017 11:10
Snippet following the css idiomatic documentation for VSCODE IDE
/*
* Snippet seguindo a documentação idiomatic css,
* basta colocar nas seus arquivos de configurações de css e scss dos snippets da IDE e aproveitar!!!
* Segue a Doc para colocar os snippets no VisualCode https://code.visualstudio.com/Docs/customization/userdefinedsnippets
*/
/ *
* Snippet following the css idiomatic documentation,
* Just put in your css and scss settings files from the IDE snippets and enjoy !!!
* Follow Doc to place the snippets in VisualCode https://code.visualstudio.com/Docs/customization/userdefinedsnippets
@zexeder
zexeder / button.sass
Created June 9, 2017 12:30 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600