Skip to content

Instantly share code, notes, and snippets.

View ffoodd's full-sized avatar
🎯
Focusing

Gaël Poupard ffoodd

🎯
Focusing
View GitHub Profile
@ffoodd
ffoodd / dabblet.css
Last active August 29, 2015 14:10
Font-sizes
/**
* Font-sizes
*/
html,
body,
table {
font-family: "Open Sans", sans-serif;
font-size: 16px;
}
@ffoodd
ffoodd / dabblet.css
Created December 18, 2014 09:14
Spécificité accrue
/**
* Spécificité accrue
*/
#main h1 { color: rebeccapurple; }
#article h1 { color: green; }
<?php
$path = '/home/www/7studio/www/assets/stylesheets/';
$cmd = 'find '.$path.' -iname "*.css"';
$out = array();
exec($cmd, $out);
echo '<strong>Fichiers CSS explorés</strong>';
echo '<ul>';
foreach($out as $V){
@ffoodd
ffoodd / fly_out.js
Last active August 29, 2015 14:18
Fly out menu pattern
//
// La fonction qui fait tout
//
function flyOut() {
var menuFlyOut = document.getElementById("flyoutaria"),
lisFlyOut = menuFlyOut.querySelectorAll("> ul > li");
//
// Motif de conception « fly-out »
// @note Motif édité par le WAI
@ffoodd
ffoodd / dabblet.css
Last active August 29, 2015 14:19
Couleurs et variables
/**
* Couleurs et variables
*/
:root {
--ma-teinte: 10;
}
body {
font-family: monospace;
}
@ffoodd
ffoodd / dabblet.css
Last active August 29, 2015 14:20
Fixed and centered flex block
/**
* Fixed and centered flex block
*/
main {
background: lightgray;
display: flex;
flex: 1;
flex-flow: row nowrap;
justify-content: space-around;
@ffoodd
ffoodd / dabblet.css
Last active August 29, 2015 14:20
Flexbox layout
/**
* Flexbox layout
*/
*:not(html) {
background: rgba(30, 144, 255, .5);
color: white;
font-family: sans-serif;
font-weight: 700;
padding: 1em;
text-align:center;
@ffoodd
ffoodd / dabblet.css
Created May 12, 2015 12:13
Flexbox layout
/**
* Flexbox layout
*/
*:not(html) {
background: rgba(30, 144, 255, .5);
color: white;
font-family: sans-serif;
font-weight: 700;
padding: 1em;
text-align:center;
@ffoodd
ffoodd / dabblet.css
Last active August 29, 2015 14:27
animations
/**
* animations
*/
@keyframes descente-1 {
from {
transform: translate3d( -.5rem, -.5rem, 0 ) rotate( 5deg );
} to {
transform: none;
}
}