Skip to content

Instantly share code, notes, and snippets.

cahnory

  • Marseille, France
Block or report user

Report or block cahnory

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cahnory
cahnory / SassMeister-input-HTML.html
Created Oct 2, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="box"></div>
@cahnory
cahnory / SassMeister-input-HTML.html
Created Oct 2, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="box"></div>
View assert-demo.scss
// Assert example
// https://bitbucket.org/cahnory/integrate-css/src/c9c8df11cddf/libs/assert/
$color: assert($color, (type: 'color', default: #333));
$font-size: assert($font-size, (type: 'number', default: 14));
$line-height: assert($line-height, (type: 'number', default: 1.35));
$font-family: assert($font-family, (default: (Arial, sans-serif)));
$age: assert($age, (type: 'number', gte: 18));
@cahnory
cahnory / SassMeister-input-HTML.html
Created Sep 14, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="arrow">
dsdasa
</div>
@cahnory
cahnory / SassMeister-input.scss
Created Sep 11, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
@mixin hold-once($name) {
// if placeholder not in declared ones
@if not index($PLACEHOLDER__DECLARED, $name) {
// set placeholder as declared
$PLACEHOLDER__DECLARED: append($PLACEHOLDER__DECLARED, $name)!global;
@cahnory
cahnory / SassMeister-input.scss
Created Aug 25, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
@function foo($arg1, $arg2) {
@return type-of($arg1), type-of($arg2);
}
foo {
foo: call('foo', (arg1, arg2)...);
@cahnory
cahnory / SassMeister-input.scss
Created Jul 21, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
// ASSERT ------------------------------------------------------
/// Call multiple asserts at once
/// @param {*} $value
/// @param {List} $asserts
@cahnory
cahnory / SassMeister-input.scss
Created Jun 9, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@mixin rgback($color, $alpha: 1, $rest...) {
@if 'color' != type-of($color) or 1 == alpha($color) {
$color: rgba($color, $alpha, $rest...);
}
@cahnory
cahnory / SassMeister-input.scss
Created Jun 9, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
// content for all query modifiers map (name: query)
@mixin vary-query($queries, $none: true) {
$prev: $VARY__OPENED;
// No query modifier
@cahnory
cahnory / StyledComponent.jsx
Last active Aug 29, 2015
What I want to style react components
View StyledComponent.jsx
// This code does not work!
// It's just a thought about a way of adding style to a react component
React.createClass({
render: function () {
return (
<div ref="module">
<div ref="title">{ props.user.title }</div>
<div ref="description">{ props.user.description }</div>
</div>
);
You can’t perform that action at this time.