Skip to content

Instantly share code, notes, and snippets.

View Anderson-Juhasc's full-sized avatar
:octocat:
Looking for work

Anderson Juhasc Anderson-Juhasc

:octocat:
Looking for work
View GitHub Profile
@Anderson-Juhasc
Anderson-Juhasc / BlendedButtons.scss
Created August 23, 2012 17:51 — forked from kenwoodworth/BlendedButtons.scss
An example of a button style that adapts to a base color using the overlay blend-mode to adjust colors for effects.
$button-color: #ff6600;
%button-base {
@include adjust-font-size-to(14px, 1.5);
@include inline-block;
@include border-radius(6px);
font-weight: bold;
padding: 3px 30px;
position: relative;
text-decoration: none;
@Anderson-Juhasc
Anderson-Juhasc / DesigningInterfacesLinks.txt
Created August 23, 2012 17:19 — forked from kenwoodworth/DesigningInterfacesLinks.txt
A collection of links from my DrupalCon Munich session, Designing and Implementing Beautiful, Flexible Interfaces
//
// Selector-prefix
// =================================================
//
// @mixin selector-prefix([$prefix], [$propertie], [$values]);
// cria de maneira fácil @extend-Only Selectors, por exemplo: %fz-10px, %fz-20px, %fz-4em...
//
// uso: @include selector-prefix([$prefixo_dos_seletores], [$propriedade], [$valores]);
// exemplo: @include selector-prefix(mr, margin-right, 4px 10px 18px 1em);
@Anderson-Juhasc
Anderson-Juhasc / OOSass.md
Created August 17, 2012 16:20 — forked from scottkellum/OOSass.md
OOCSS vs OOSass

OOCSS vs OOSass

note that this requires Sass 3.2 alpha or higher

OOCSS is awesome because it helps us organize our style sheets in clean and simple ways but it can be far too rigid for the new responsive web. How can we use preprocessors to preserve both flexibility and cleanliness of code? Can these objects be abstracted to our preprocessors?

Lets first take a look at three column widths in OOCSS to see how they compare.

CSS

@Anderson-Juhasc
Anderson-Juhasc / _retina.scss
Created August 3, 2012 02:31
Compass 0.12 retina mixins
// https://gist.github.com/gists/2879137
// this is for Compass 0.12
/* put this file in your assets/stylesheets/ folder
*
* Example main.scss:
* @import "compass";
* @import "icons/*.png";
* @include all-icons-sprites;
*
@Anderson-Juhasc
Anderson-Juhasc / compass-retina-sprites.scss
Created August 3, 2012 01:41 — forked from thulstrup/compass-retina-sprites.scss
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
@Anderson-Juhasc
Anderson-Juhasc / compass-retina-sprites.scss
Created August 3, 2012 01:41 — forked from alanhogan/compass-retina-sprites.scss
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
@Anderson-Juhasc
Anderson-Juhasc / _app.scss
Created August 3, 2012 01:41 — forked from mkuprionis/_app.scss
Compass/SASS sprites for different density displays
@import "_mixins.scss";
@mixin app($dpi) {
header {
position: relative;
header .logo {
// Center in header
@include sprt-box-centered($dpi, logo);