-
Sass (+Scss) http://sass-lang.com/
-
Less http://lesscss.org/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Predefined Media Queries Mixins | |
// | |
// @require sass-3.2 (you need eventually to do "sudo gem install sass --pre") | |
// | |
// @author Maxime Thirouin <[email protected]> | |
// | |
// @link https://gist.github.com/2028061 | |
// @link http://www.metaltoad.com/blog/simple-device-diagram-responsive-design-planning |
Le présent document liste des recommandations raisonnables pour développer avec CSS.
Il n'est pas destiné à être normatif et je ne souhaite pas imposer mes préférences de style de code aux gens. Toutefois, ces lignes directrices encouragent fortement le fait d'utiliser des modèles existants, communs et sensés.
Ceci est un document évolutif et les nouvelles idées sont toujours les bienvenues. Merci de contribuer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage : less2stylusDir('../src/css/'); | |
var fs = require('fs'); | |
// this less 2 stylus conversion script make a stylus easy to read syntax | |
// - let the braces | |
// - replace the @ for var as $ | |
// - let semicolons | |
function less2stylus(less) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test biatch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "shared"; | |
// Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera. | |
// | |
// $name : (string or list, required) The name and optional SVG-ID to use. | |
// - string "simpleName" => name: simpleName, ID: #simpleName | |
// - list "name #id" => name: name, ID: #id | |
// $location : (string) The location of the font files - try to find in fonts_dir if none provided. | |
// - Locations include the file name, without extensions: | |
// 'simple' => 'simple.eot', 'simple.ttf', 'simple.woff' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
$background: null; // if you don't do this, background is undefined out of the @if/else scope | |
@if ($direction) { | |
$background: linear-gradient($direction, $color, $color2); | |
} | |
@else { | |
$background: linear-gradient($color, $color2); | |
} | |
//... | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* grunt-fontcustom | |
* https://github.com/MoOx/grunt-fontcustom | |
* | |
* Copyright (c) 2013 Maxime Thirouin, contributors | |
* Licensed under the MIT license. | |
*/ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirejs.config({ | |
name: "main", | |
shim: { | |
"foundation/jquery.cookie": { deps: ["jquery"] }, | |
"foundation/jquery.event.move": { deps: ["jquery"] }, | |
"foundation/jquery.event.swipe": { deps: ["jquery"] }, | |
"foundation/jquery.foundation.accordion": { deps: ["jquery", "Modernizr"] }, | |
"foundation/jquery.foundation.alerts": { deps: ["jquery"] }, | |
"foundation/jquery.foundation.buttons": { deps: ["jquery"] }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// togglable ability (used for navbar) | |
$('.js-togglable').each(function() { | |
var togglableContainer = this; | |
$('.js-togglable__toggler', togglableContainer).on('click keyup', function() { | |
$('.js-togglable__item', togglableContainer).toggleClass('js-togglable__item--hide'); | |
}); | |
}); |