Skip to content

Instantly share code, notes, and snippets.

View dinoperovic's full-sized avatar

Dino Perovic dinoperovic

View GitHub Profile
@dinoperovic
dinoperovic / _grid.scss
Last active September 4, 2020 06:48
Grid media sizes management in SASS
@charset 'UTF-8';
/// Grid media sizes management in SASS
///
/// @example scss
/// $grids: (
/// 'desktop': 1200px,
/// 'large-desktop': 1800px,
/// );
///
@dinoperovic
dinoperovic / _trans.scss
Last active May 21, 2019 10:54
Transition management in SASS
@charset "UTF-8";
/// Transition management in SASS
///
/// @example scss
/// $trans: (
/// duration: (
/// "default": 300ms,
/// "fast": 100ms,
/// "slow": 800ms,
@dinoperovic
dinoperovic / vue-djangocms-patch.js
Last active November 8, 2021 17:10
Patch for Vue.js to enable djangoCMS's "double click to edit" feature.
// Patch for Vue.js to enable djangoCMS's "double click to edit" feature.
//
// To set it up you should call `new VueDjangoCMSPatch(this)` in a `created`
// hook on a Vue instance.
// And add 'cms-template' and 'cms-plugin' to `Vue.config.ignoredElements`.
var VueDjangoCMSPatch = function (instance) {
this.instance = instance;