Skip to content

Instantly share code, notes, and snippets.

View Nevraeka's full-sized avatar

Erik Isaksen Nevraeka

View GitHub Profile
@Nevraeka
Nevraeka / gist:3baad1bacd2393f0e3b0
Last active August 29, 2015 14:13
A curated list of Web Component Podcasts, Screencasts, & Interviews with Web Component community members
When you load css bundle asyncronously this can happen:
>> FYI- bundling assets is a separate issue from CSS core features
1) it load:
.class-3 { color: green; }
<div class="class-3">
2) it load
.class-1 { color: red; }
.class-2 { color: blue; }
@Nevraeka
Nevraeka / flexbox.scss
Created September 11, 2017 15:15
Flexbox example
@mixin prefix($property, $value, $prefixes: ()) {
@each $prefix in $prefixes {
#{"--" + $prefix + "-" + $property}: #{$value};
}
#{$property}: $value;
}
@mixin flexbox {
display: -webkit-box;
display: -moz-box;
@Nevraeka
Nevraeka / test-json.json
Last active September 15, 2017 18:29
test
{
"foo": "Hello Template",
"repeatCount": 5
}
:root {
--translate-item: calc(50% - 20px);
}
.x-translate {
box-sizing: content-box;
padding: 8px;
width: 24px;
height: 24px;
background-color: rgba(0,0,0, .8);