diff options
author | Sam Potts <me@sampotts.me> | 2015-02-17 15:43:09 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-02-17 15:43:09 +1100 |
commit | d00b9dc44b7210b418bbc7c8f970c569eb7a5952 (patch) | |
tree | 61a995443fe2b3517ce5c1c728e752a736e90e5a /assets/less/docs/mixins.less | |
parent | 0055080d10d2873c65630c94705d7b9771e45ddf (diff) | |
download | plyr-d00b9dc44b7210b418bbc7c8f970c569eb7a5952.tar.lz plyr-d00b9dc44b7210b418bbc7c8f970c569eb7a5952.tar.xz plyr-d00b9dc44b7210b418bbc7c8f970c569eb7a5952.zip |
Tweaks to docs
Diffstat (limited to 'assets/less/docs/mixins.less')
-rw-r--r-- | assets/less/docs/mixins.less | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/assets/less/docs/mixins.less b/assets/less/docs/mixins.less new file mode 100644 index 00000000..02f44d55 --- /dev/null +++ b/assets/less/docs/mixins.less @@ -0,0 +1,41 @@ +// ========================================================================== +// Mixins +// ========================================================================== + +// Contain floats: nicolasgallagher.com/micro-clearfix-hack/ +// --------------------------------------- +.clearfix() { + zoom: 1; + &:before, + &:after { content: ""; display: table; } + &:after { clear: both; } +} + +// Webkit-style focus +// --------------------------------------- +.tab-focus() { + // Default + outline: thin dotted @gray-dark; + // Webkit + //outline: 5px auto -webkit-focus-ring-color; + outline-offset: 1px; +} + +// Use rems for font sizing +// --------------------------------------- +.font-size(@font-size: 16){ + @rem: (@font-size / 10); + font-size: @font-size * 1px; + font-size: ~"@{rem}rem"; +} + +// Font smoothing +// --------------------------------------- +.font-smoothing(@mode: on) when (@mode = on) { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; +} +.font-smoothing(@mode: on) when (@mode = off) { + -moz-osx-font-smoothing: auto; + -webkit-font-smoothing: subpixel-antialiased; +}
\ No newline at end of file |