Skip to content

Instantly share code, notes, and snippets.

View ideafm's full-sized avatar

ideafm ideafm

View GitHub Profile
@ideafm
ideafm / stylusFfzMixin.styl
Last active September 29, 2018 10:37
Stylus Fluid Typography Font-size
ffz($minFz, $maxFz, $minVw = 575px, $maxVw = 1920px)
tmp = unit($maxFz, '') - unit($minFz, '')
tmp1 = unit($maxVw, '') - unit($minVw, '')
font-size: $minFz;
@media screen and (min-width: $minVw)
font-size: 'calc(%s + %s * ((100vw - %s) / %s))' % ($minFz tmp $minVw tmp1)
@media screen and (min-width: $maxVw)
font-size: $maxFz;
/*
.tw-wrap {
display: inline-block;
position: relative;
}
.tw-tooltip {
width: 100px;
height: auto;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
(function ($) {
var defaultOptions = {
'direction': 'top',
'width': 100,
'html': '',
'offset': 10
}
$.fn.twTooltip = function (options) {