Skip to content

Instantly share code, notes, and snippets.

@thamas
thamas / css-class-drupal-wysiwyg-cke.md
Last active Aug 29, 2015
Make custom CSS classes work with Drupal WYSIWYG 7.x-2.2 and CKEditor 4.3.3
View css-class-drupal-wysiwyg-cke.md

I use it to set img floats. To make it work

  1. be sure to define at least one inline element class (when you defined your image float classes), for examle Emphasize=span.emph
  2. add a "cache-buster" to the end of the path of you css file: /sites/all/themes/mytheme/css/style.css?v1 (the "chache-buster" is the "?v1" at the end of the path. More info: http://chipcullen.com/how-to-apply-classes-ckeditor-4-in-drupal-7/)
@thamas
thamas / Get back your Drupal install-profile
Last active Aug 29, 2015
Sometimes Drupal forgots about your install-profile. To fix:
View Get back your Drupal install-profile
drush vset install_profile 'profile-name'
View light_years.md

This is not a straight translation of the lirycs but the English version of the song.

More info about the musical, The Attic: http://en.wikipedia.org/wiki/A_padlás

Light years

There are days when I feel
I could leave this whole tangled World behind
I look for an answer
But another question is all I find

View dream_is_hunting_me.md

This is a translation of "Az álom leterít" – a song from the former Hungarian blues band, called "Stexas"*

Dream is hunting me

Headlight drills through the night.
Then it disappears in the fog
It was't here maybe.

Oh I can only see your eyes shine,
and a parting word of your mouth,

@thamas
thamas / compass-bg-img-grad.scss
Last active Dec 17, 2015
Compass: background images and gradient
View compass-bg-img-grad.scss
@include background(
// image in the default images folder
image-url("logo.png") 0 0 no-repeat,
// base encoded transparent noise image, source: https://coderwall.com/p/m-uwvg
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+
@thamas
thamas / compass-box-shadow-example.scss
Last active Dec 17, 2015
Compass: box-shadow example
View compass-box-shadow-example.scss
@include single-box-shadow(rgba(0, 0, 0, .75), 0, -2px, 8px, -1px, inset);
@thamas
thamas / scss-mixin-img-link-inner-shadow.scss
Last active Dec 17, 2015
SCSS mixin to display inner shadow on hover an image link
View scss-mixin-img-link-inner-shadow.scss
@thamas
thamas / compass-set-box-sizing-border-box.scss
Created May 19, 2013
Compass: set box-sizing to border-box for all html5 block level element
View compass-set-box-sizing-border-box.scss
article,
aside,
blockquote,
body,
br,
button,
canvas,
caption,
col,
colgroup,
View compass-font-face.scss
//
// Default font dir is <css_dir>/fonts Set fonts_dir in config.rb
// if you want to change. See:
// http://compass-style.org/help/tutorials/configuration-reference/
//
// http://compass-style.org/reference/compass/css3/font_face/
// "Order of the includes matters, and it is: normal, bold, italic, bold+italic."
//
// See also: http://mikefowler.me/thoughts/compass-font-face-syntax/;
//
@thamas
thamas / drupal-profiler-builder-drush.md
Last active Dec 18, 2015
Create new Drupal install profile with Profiler Builder module and drush
View drupal-profiler-builder-drush.md
drush distro mynewprofile_name --untar