Skip to content

Instantly share code, notes, and snippets.

View Bobz-zg's full-sized avatar
👨‍💻
working remotely

Vlado Bosnjak Bobz-zg

👨‍💻
working remotely
View GitHub Profile
/**
* Normal States
*/
@mixin ns {
&:link,
&:visited {
@content;
}
}
/**
* Bootstrap responsive breakpoints mixins
*
*/
$screen-xs: 480px;
$screen-sm: 768px;
$screen-md: 992px;
$screen-lg: 1200px;
@mixin xxs {
@Bobz-zg
Bobz-zg / Roots 7.0.0-bower
Last active August 29, 2015 14:04
bower.json file for Roots 7.0.0. using SASS + Compass
{
"name": "roots",
"version": "7.0.0",
"homepage": "http://roots.io",
"authors": [
"Ben Word <[email protected]>"
],
"license": "MIT",
"private": true,
"ignore": [
@Bobz-zg
Bobz-zg / Roots 7.0.0.-gruntfile
Last active August 29, 2015 14:04
Gruntfile.js file for Roots 7.0.0. using SASS + Compass
'use strict';
module.exports = function(grunt) {
// Load all tasks
require('load-grunt-tasks')(grunt);
// Show elapsed time
require('time-grunt')(grunt);
var jsFileList = [
'assets/vendor/bootstrap-sass/js/transition.js',
'assets/vendor/bootstrap-sass/js/alert.js',
@Bobz-zg
Bobz-zg / Roots 7.0.0.-package
Created July 22, 2014 13:49
package.json file for Roots 7.0.0. using SASS + Compass
{
"name": "roots",
"version": "7.0.0",
"author": "Ben Word <[email protected]>",
"homepage": "http://roots.io",
"repository": {
"type": "git",
"url": "git://github.com/roots/roots.git"
},
"bugs": {
@Bobz-zg
Bobz-zg / Roots 7.0.0.-config
Created July 22, 2014 13:51
Config.rb file for Roots 7.0.0. using SASS + Compass
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "assets/css"
sass_dir = "assets/sass"
images_dir = "assets/img"
javascripts_dir = "assets/js"
fonts_dir = "assets/fonts"
output_style = :expanded
@Bobz-zg
Bobz-zg / Roots 7.0.0.-main.scss
Created July 22, 2014 14:00
Main.scss file for Roots 7.0.0. using SASS + Compass
@import "compass";
// Core variables and mixins
@import "../vendor/bootstrap-sass/lib/variables";
@import "../vendor/bootstrap-sass/lib/mixins";
// Reset
@import "../vendor/bootstrap-sass/lib/normalize";
@import "../vendor/bootstrap-sass/lib/print";
@Bobz-zg
Bobz-zg / Populate ACF Select field choices with Gravity Forms
Last active November 7, 2015 07:40
Populate ACF Select field choices with Gravity Forms
function vb_acf_load_gforms( $field ) {
global $wpdb;
$sql = "SELECT * FROM {$wpdb->prefix}rg_form";
$forms = $wpdb->get_results( $sql );
$field['choices'] = array();
if( $forms ) :
@Bobz-zg
Bobz-zg / SassMeister-input.scss
Created February 25, 2016 04:13
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$icons-svg: (
sprite: (width: 132px, height: 88px, svgPath: '../images/sprite.svg'),
facebook: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: 0px),
linkedin: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: 0px),
pinterest: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: -43.9px),
twitter: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: -43.9px),
@Bobz-zg
Bobz-zg / SassMeister-input.scss
Created February 25, 2016 04:16
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$icons-svg: (
sprite: (width: 132px, height: 88px, svgPath: '../images/sprite.svg'),
facebook: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: 0px),
linkedin: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: 0px),
pinterest: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: -43.9px),
twitter: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: -43.9px),