Skip to content

Instantly share code, notes, and snippets.

View normalize.css
html {
scroll-behavior: smooth;
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
scroll-behavior: smooth;
margin: 0;
}
@blackcater
blackcater / rem.js
Created Nov 30, 2016 — forked from xiaojue/rem.js
rem.js
View rem.js
/*
* rem.js
* v0.1.1
* fixed 2015-3-12
*/
(function (win){
var doc = win.document,
html = doc.documentElement,
option = html.getAttribute('data-use-rem');
@blackcater
blackcater / common.scss
Last active Dec 13, 2016 — forked from xiaojue/common.css
common.scss
View common.scss
@charset 'UTF-8';
// css reset
html,
body,
div,
span,
applet,
object,
iframe,
View emoji.js
function filterEmoji(str) {
return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g, "")
}
You can’t perform that action at this time.