Skip to content

Instantly share code, notes, and snippets.

@satanworker
satanworker / placeholder.scss
Created March 24, 2017 01:59
placeholder mixin
@mixin optional-at-root($sel) {
@at-root #{if(not &, $sel, selector-append(&, $sel))} {
@content;
}
}
@mixin placeholder {
@include optional-at-root('::-webkit-input-placeholder') {
@content;
}
@satanworker
satanworker / event_mutation.html
Created March 21, 2017 15:41
event.prototype mutation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
</head>
<body>
<div class="for_test">
import { Component } from '@angular/core';
@Component({
selector: '',
template: '',
styles: []
})
export class Test {}