Skip to content

Instantly share code, notes, and snippets.

View georgeolaru's full-sized avatar

George Olaru georgeolaru

View GitHub Profile
@charset "UTF-8";
/*-----------------------------------------------*\
STYLE GUIDE
\*-----------------------------------------------*/
/*-----------------------------------------------*\
INUIT.CSS CONFIGURATION
AND IMPORT
\*-----------------------------------------------*/
/*------------------------------------*\
INUIT.CSS
@georgeolaru
georgeolaru / SassMeister-input.scss
Created January 15, 2014 16:29 — forked from lunelson/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
/*
A slightly more automated approach to BEM modifier classes:
using '&' parent selector interpolation, modifiers extend their bases,
so that HTML markup requires only the modifier class not the base *and* modifier
*/
@georgeolaru
georgeolaru / SassMeister-input.sass
Created January 15, 2014 16:30 — forked from jordanlewiz/SassMeister-input.sass
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// Based on BEM helper mixins by @lunelson (http://sassmeister.com/gist/7786284)
// Altered to use Sass and the EnvatoCSS syntax (http://webuild.envato.com/blog/how-to-scale-and-maintain-legacy-css-with-sass-and-smacss/)
=modifier($name)
/*
* Custom Thumbnails
*/
function wpgrade_custom_thumbnails (){
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails' );
add_image_size('slider-big', 1365, 780, true);
@georgeolaru
georgeolaru / slider.php
Last active August 29, 2015 14:06
Rosa - Slider Shortcode Autoplay
<?php
$return_string = '<div class="pixcode-slider pixslider js-pixslider" ' . $navigation_style . ' data-slidertransition="' . $custom_slider_transition . '" data-sliderautoplay="true" data-sliderdelay="1500">';
$return_string .= do_shortcode( $content );
$return_string .= '</div>';
echo $return_string;
@georgeolaru
georgeolaru / pile-logo1.svg
Created October 17, 2014 06:31
Pile SVG Logo Code
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#respond h3 {
/*Aici trebuie modificat in SCSS */
margin-bottom: 36px;
}
/* Textarea */
.highlander-dark #respond #comment-form-comment, .highlander-dark #comment-form-share-text-padder {
background: none;
box-shadow: none;
border: 1px solid #d7d7d7;
max-width: 100%;
@georgeolaru
georgeolaru / header-single.php
Created January 2, 2015 13:55
Bucket - Show Captions for Featured Images
<?php
if (has_post_thumbnail()):
// $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'blog-big' );
//
$featured_image_ID = get_post_thumbnail_id( $post->ID );
$image = wp_get_attachment_image_src( $featured_image_ID, 'blog-big' );
$image_medium = wp_get_attachment_image_src( $featured_image_ID, 'blog-medium' );
// Get the image meta informations
/**
* Colors
*/
/* Accent Color */
blockquote a:hover,
.format-quote .edit-link a:hover,
.content-quote blockquote:before,
.widget a:hover,
<?php
$settings['panels'] = array(
'exemplu-panou' => array(
'title' => 'Titlu Panou',
'sections' => array(
'exemplu-sectiune' => array(
'title' => 'Titlu Sectiune',
'options' => array(
'culoare_accent' => array(
'label' => 'Culoarea Accentuata',