Skip to content

Instantly share code, notes, and snippets.

View ryuran's full-sized avatar

Yvain Liechti ryuran

View GitHub Profile
@ryuran
ryuran / input.scss
Created December 8, 2020 16:34
Generated by SassMeister.com.
.root {
.container {
.child {
color: red;
.test &::before {
content: 'Expected Selector: .test .root .container .child::before';
}
}
}
@ryuran
ryuran / img-macro.twig
Created October 28, 2016 09:29
Twig RWD img Macro
{##
# Display img
#
# @param string src [required]
# @param string default [required]
# @param string alt [optional]
# @param bool lazyload [optional]
#
# @param array formats [optional] Array string (image format)
# @param string|array sizes [optional]
@ryuran
ryuran / SassMeister-input.scss
Created September 16, 2015 15:09
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$grid-all-span-selector: ();
@for $i from 1 through 12 {
$grid-all-span-selector: append($grid-all-span-selector, '&-span_#{$i}', 'comma');
}
@ryuran
ryuran / index.html
Created October 21, 2014 15:37
A Pen by Yvain Liechti.
<ul class="timeline">
<li><a href="#"><time>08/01/2015</time></a></li>
<li><a href="#"><time>15/01/2015</time></a></li>
<li><a href="#"><time>20/01/2015</time></a></li>
</ul>