Skip to content

Instantly share code, notes, and snippets.

View jintangWang's full-sized avatar

tang jintangWang

View GitHub Profile
@jintangWang
jintangWang / base.less
Last active November 17, 2016 07:29
公用的less minix 和less开发规范
@import (reference) "variables.less";
//公共的minix开始-------------------------------------------------------------------------------------------
.clearfix{
&:before,&:after{
display: table;
content: '';
}
&:after{
clear: both;
}
@shawndxl
shawndxl / less loop.md
Last active November 19, 2018 13:36
用 LESS 写一个帧动画类型的函数 / LESS keyframes loop method

用 LESS 写一个 可复用的 帧动画类型的 函数 / A css keyframes loop with LESS

For example , you have a css animation like this

/* CSS */
@keyframes demo {
	0% { background-image: url(../img/demo/1.png); }
	20% { background-image: url(../img/demo/2.png); }
	40% { background-image: url(../img/demo/3.png); }
	60% { background-image: url(../img/demo/4.png); }
@esamattis
esamattis / WebViewAutoHeight.js
Last active February 11, 2022 16:01
React native: Is it possible to have the height of a html content in a webview? http://stackoverflow.com/q/32952270
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016 Esa-Matti Suuronen <esa-matti@suuronen.org>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@nanpx
nanpx / main.less
Last active November 10, 2016 07:03
LESS
@charset "UTF-8";
@import "variables.less";
@import "mixins.less";
@import "reset.less";
@import "utility.less";
@ocean90
ocean90 / box-shadow.html
Last active April 11, 2024 13:54
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;