Skip to content

Instantly share code, notes, and snippets.

@gueno
gueno / ellipsis.css
Created October 19, 2015 13:24
Pure css - one line ellipsis with toggle link - no javascript - http://jsfiddle.net/guenoz/k3eaxou6/
.container {
position: relative;
}
.container .ellipsis {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 5ch);
@gueno
gueno / dabblet.css
Created March 26, 2012 14:35
Untitled
body, html{ margin: 0;}
#contenant { overflow: hidden }
.div { float: left; margin-bottom: -100%; padding-bottom: 100%; }
.rouge { background: red; width: 34%; }
.bleue { background: blue; width: 32%; }
.jaune { background: yellow; width: 34%; }
#footer{ height: 100px; background: silver; text-align: center; padding: 5px;}
@gueno
gueno / dabblet.css
Created March 14, 2012 13:03
Untitled
body, html {
height: 100%;
margin: 0;
}
.verticale {
float: left;
width: 25%;
height: 100%;
}
.rouge { background: red; }
@gueno
gueno / Drupal Multisite Drush Script
Created February 4, 2012 14:08
If you're running multiple sites on one drupal installation, here is a script to run different Drush commands on all of them
#!/bin/bash
# Get all Drupal sites
sites=`find . -maxdepth 1 -type d -print | grep -v '/all$' | grep -v '/default$' | grep -v '\.$'`
echo "Choose the commande to execute : "
echo "1. update"
echo "2. put sites offline"
echo "3. put sites online"
echo "4. clear all cache"