Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /* | |
| A Web Designer’s Typographic Boilerplate | |
| Ian Yates | |
| http://enva.to/18Tx7XB | |
| licensed under WTFPL | |
| http://www.wtfpl.net/ | |
| */ | |
| /* |
| @mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
| @if $inset { | |
| -webkit-box-shadow:inset $top $left $blur $color; | |
| -moz-box-shadow:inset $top $left $blur $color; | |
| box-shadow:inset $top $left $blur $color; | |
| } @else { | |
| -webkit-box-shadow: $top $left $blur $color; | |
| -moz-box-shadow: $top $left $blur $color; | |
| box-shadow: $top $left $blur $color; | |
| } |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| @function lower-bound($range){ | |
| @if length($range) <= 0 { | |
| @return 0; | |
| } | |
| @return nth($range,1); | |
| } | |
| @function upper-bound($range) { | |
| @if length($range) < 2 { | |
| @return 999999999999; |
| #bannerGoogle, #banner_280_240, #banner_300_250, #banner_300x250_sidebar, #banner_468x60, #banner_ad, #banner_ad_Sponsored, #banner_ad_bottom, #banner_ad_div_fw, #banner_ad_footer, #banner_ad_module, #banner_ad_placeholder, #banner_admicro, #banner_ads, #banner_adsense, #banner_adv, #banner_advertisement, #banner_adverts, #banner_content_ad, #banner_sedo, #banner_slot, #banner_spacer, #banner_wrapper_top, #bannerad-bottom, #bannerad-top, #bannerad2, #banneradrow, #bannerads, #banneradspace, #barAdWrapper, #baseAdvertising, #baseboard-ad, #baseboard-ad-wrapper, #basket-adContainer, #bbContentAds, #bb_ad_container, #bbccom_sponsor_section_text, #bbo_ad1, #bcaster-ad, #before-footer-ad, #below-listings-ad, #below-post-ad, #belowAd, #belowContactBoxAd, #belowNodeAds, #below_content_ad_container, #belowad, #belowheaderad, #bg-footer-ads, #bg-footer-ads2, #bg_YieldManager-160x600, #bg_YieldManager-300x250, #bg_YieldManager-728x90, #bg_banner_120x600, #bg_banner_468x60, #bg_banner_728x90, #bgad, #bh_adFrame_ag_300x2 |
| <link rel="import" href="../core-scaffold/core-scaffold.html"> | |
| <link rel="import" href="../core-header-panel/core-header-panel.html"> | |
| <link rel="import" href="../core-menu/core-menu.html"> | |
| <link rel="import" href="../core-item/core-item.html"> | |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-field/core-field.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <link rel="import" href="../core-input/core-input.html"> | |
| <link rel="import" href="../core-menu/core-submenu.html"> |
| <link rel="import" href="../topeka-elements/theme.html"> | |
| <link rel="import" href="../topeka-elements/topeka-resources.html"> | |
| <link rel="import" href="../topeka-elements/topeka-app.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
| <link rel="import" href="../topeka-elements/topeka-datasource.html"> | |
| <link rel="import" href="../topeka-elements/category-icons.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <link rel="import" href="../topeka-elements/avatars.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { |
| # Simple calculator | |
| function calc() { | |
| local result=""; | |
| result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')"; | |
| # └─ default (when `--mathlib` is used) is 20 | |
| # | |
| if [[ "$result" == *.* ]]; then | |
| # improve the output for decimal numbers | |
| printf "$result" | | |
| sed -e 's/^\./0./' `# add "0" for cases like ".5"` \ |