Skip to content

Instantly share code, notes, and snippets.

View antonkor's full-sized avatar

Anton Korzhuk antonkor

  • Vummo
  • Sarasota, Florida
View GitHub Profile
@antonkor
antonkor / README.md
Created October 27, 2022 19:51 — forked from lxe/README.md
Disco Diffusion Tips
@antonkor
antonkor / sass-compound-parent-selector.scss
Last active September 17, 2016 22:48
Using SASS to write a compound selector to the parent within a child
// ----
// Sass (v3.4.21)
// ----
.parent {
content: 'set parent style';
color: red;
.child {
content: 'set child style';
@antonkor
antonkor / SassMeister-input.scss
Created May 22, 2015 16:41
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
/* Nesting is real */
.parent {
color: red;
.nested-child {
color: green;
@antonkor
antonkor / get-sprite.sass
Created August 7, 2012 19:54 — forked from dfadler/get-sprite.sass
A SASS mixin for generating a sprite declaration block that will work with media queries. UPDATE: Having offset-x & -y are very nice ;)
// http://compass-style.org/reference/compass/helpers/sprites/
@mixin get-sprite($map, $sprite, $offset-x: 0, $offset-y: 0, $repeat: no-repeat, $height: true, $width: true)
//http://compass-style.org/reference/compass/helpers/sprites/#sprite-file
$sprite-image: sprite-file($map, $sprite)
// http://compass-style.org/reference/compass/helpers/sprites/#sprite-url
$sprite-map: sprite-url($map)
// http://compass-style.org/reference/compass/helpers/sprites/#sprite-position