Skip to content

Instantly share code, notes, and snippets.

ideafm ideafm

Block or report user

Report or block ideafm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ideafm / stylusFfzMixin.styl
Last active Sep 29, 2018
Stylus Fluid Typography Font-size
View stylusFfzMixin.styl
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;
View twTooltip.css
.tw-wrap {
display: inline-block;
position: relative;
.tw-tooltip {
width: 100px;
height: auto;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
View twTooltip.js
(function ($) {
var defaultOptions = {
'direction': 'top',
'width': 100,
'html': '',
'offset': 10
$.fn.twTooltip = function (options) {
You can’t perform that action at this time.