Skip to content

Instantly share code, notes, and snippets.

View trivision-developer's full-sized avatar

trivision-developer

View GitHub Profile
@sarahdayan
sarahdayan / modifiers.scss
Last active November 15, 2024 15:56
Sass Modifiers Mixin
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// Sass modifiers mixin by Sarah Dayan
// Generate All Your Utility Classes with Sass Maps: frontstuff.io/generate-all-your-utility-classes-with-sass-maps
// http://frontstuff.io
// https://github.com/sarahdayan
@TANVIRFAZLEY
TANVIRFAZLEY / mixitup.php
Created November 1, 2016 14:55
Dynamic mixitup for wordpress
<?php
//ata functions.php te dite hobe
Step# 01: Register Custom Post
******************************
# Register Custom Post
function wp_tutorials_post() {
register_post_type( 'cluster-portfolio',
array(
@JoeCianflone
JoeCianflone / fonts.scss
Created December 11, 2015 17:15
PX to Unitless line-height conversion and font fallbacks
// I hate converting units so here's how to do
// px to rem conversion with a fallback to px
// for older browsers...
/**
* Resize font from one type to another
* @param {[type]} $fontSize the font size that you want
* @param {[type]} $toUnit: rem the unit you want to convert to
* @param {[type]} $fromUnitSpecific: px default unit we're going to convert from (if you don't set it)
*
@npostulart
npostulart / convert-function.scss
Last active May 26, 2025 20:32
Unit Converting Sass Function
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$baseSize: 16px;
$convertBase: $baseSize;
html {
font-size: percentage($baseSize / 16px);
@mapsam
mapsam / gallery.css
Last active May 14, 2021 12:57
Wordpress ACF Lightbox