diff options
author | Sam Potts <me@sampotts.me> | 2015-04-15 21:51:59 +1000 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-04-15 21:51:59 +1000 |
commit | d04b278802f971ddd96fa8f67516265ae4d23546 (patch) | |
tree | 9691b7d0d8921296a5326deb2d9534565395b206 /docs/src/less | |
parent | 7345f656c1122195af0f354f8ecf8c3e350b1fab (diff) | |
parent | 530abac3a70285f3a00c99089b3faabee73eb8be (diff) | |
download | plyr-d04b278802f971ddd96fa8f67516265ae4d23546.tar.lz plyr-d04b278802f971ddd96fa8f67516265ae4d23546.tar.xz plyr-d04b278802f971ddd96fa8f67516265ae4d23546.zip |
Merge branch 'master' into develop
# Conflicts:
# src/js/plyr.js
Diffstat (limited to 'docs/src/less')
-rw-r--r-- | docs/src/less/docs.less | 170 | ||||
-rw-r--r-- | docs/src/less/lib/fontface.less | 24 | ||||
-rw-r--r-- | docs/src/less/lib/mixins.less | 32 |
3 files changed, 113 insertions, 113 deletions
diff --git a/docs/src/less/docs.less b/docs/src/less/docs.less index 7cb191d7..f68e0148 100644 --- a/docs/src/less/docs.less +++ b/docs/src/less/docs.less @@ -12,153 +12,153 @@ // Variables // --------------------------------------- // Colors -@blue: #3498DB; -@gray-dark: #343f4a; -@gray: #565d64; -@gray-light: #cbd0d3; +@blue: #3498DB; +@gray-dark: #343f4a; +@gray: #565d64; +@gray-light: #cbd0d3; // Elements -@link-color: @blue; -@padding-base: 20px; +@link-color: @blue; +@padding-base: 20px; // Breakpoints -@screen-md: 768px; +@screen-md: 768px; // BORDER-BOX ALL THE THINGS! // http://paulirish.com/2012/box-sizing-border-box-ftw/ *, *::after, *::before { - box-sizing: border-box; + box-sizing: border-box; } // Base body { - font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif; - background: #fff; - line-height: 1.5; - text-align: center; - color: #6D797F; + font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif; + background: #fff; + line-height: 1.5; + text-align: center; + color: #6D797F; } // Error page html.error, .error body { - height: 100%; + height: 100%; } .error body { - width: 100%; - display: table; - table-layout: fixed; + width: 100%; + display: table; + table-layout: fixed; } .error main { - display: table-cell; - width: 100%; - vertical-align: middle; + display: table-cell; + width: 100%; + vertical-align: middle; } // Type h1, h2 { - letter-spacing: -.025em; - color: #2E3C44; - margin: 0 0 (@padding-base / 2); - line-height: 1.2; - .font-smoothing(); + letter-spacing: -.025em; + color: #2E3C44; + margin: 0 0 (@padding-base / 2); + line-height: 1.2; + .font-smoothing(); } h1 { - .font-size(64); - color: #3498DB; + .font-size(64); + color: #3498DB; } p, small { - margin: 0 0 @padding-base; + margin: 0 0 @padding-base; } small { - display: block; - padding: 0 (@padding-base / 2); - .font-size(14); + display: block; + padding: 0 (@padding-base / 2); + .font-size(14); } // Header header { - padding: @padding-base; - margin-bottom: @padding-base; + padding: @padding-base; + margin-bottom: @padding-base; - p { - .font-size(18); - } - @media (min-width: 560px) { - padding-top: (@padding-base * 3); - padding-bottom: (@padding-base * 3); - } + p { + .font-size(18); + } + @media (min-width: 560px) { + padding-top: (@padding-base * 3); + padding-bottom: (@padding-base * 3); + } } // Sections section { - padding-bottom: @padding-base; + padding-bottom: @padding-base; - @media (min-width: 560px) { - padding-bottom: (@padding-base * 2); - } + @media (min-width: 560px) { + padding-bottom: (@padding-base * 2); + } } // Links & Buttons a { - text-decoration: none; - color: @link-color; - border-bottom: 1px solid currentColor; - transition: all .3s ease; - - &:hover, - &:focus { - color: #000; - } - &:focus { - .tab-focus(); - } - &.logo { - border: 0; - } + text-decoration: none; + color: @link-color; + border-bottom: 1px solid currentColor; + transition: all .3s ease; + + &:hover, + &:focus { + color: #000; + } + &:focus { + .tab-focus(); + } + &.logo { + border: 0; + } } .btn { - display: inline-block; - padding: (@padding-base / 2) (@padding-base * 1.5); - background: @link-color; - border: 0; - color: #fff; - .font-smoothing(on); - font-weight: 600; - border-radius: 3px; - user-select: none; - - &:hover, - &:focus { - color: #fff; - background: darken(@link-color, 5%); - } + display: inline-block; + padding: (@padding-base / 2) (@padding-base * 1.5); + background: @link-color; + border: 0; + color: #fff; + .font-smoothing(on); + font-weight: 600; + border-radius: 3px; + user-select: none; + + &:hover, + &:focus { + color: #fff; + background: darken(@link-color, 5%); + } } // Players .example-audio .player { - max-width: 480px; + max-width: 520px; } .example-video .player { - max-width: 1200px; + max-width: 1200px; } .example-audio .player, .example-video .player { - margin: 0 auto @padding-base; + margin: 0 auto @padding-base; - &-fullscreen, - &.fullscreen-active { - max-width: none; - } + &-fullscreen, + &.fullscreen-active { + max-width: none; + } } // Footer footer { - margin-bottom: @padding-base; + margin-bottom: @padding-base; - p { - margin-bottom: (@padding-base / 2); - } + p { + margin-bottom: (@padding-base / 2); + } }
\ No newline at end of file diff --git a/docs/src/less/lib/fontface.less b/docs/src/less/lib/fontface.less index 704503d1..479f7fa4 100644 --- a/docs/src/less/lib/fontface.less +++ b/docs/src/less/lib/fontface.less @@ -1,16 +1,16 @@ @font-face { - font-family: "Avenir"; - src: url("//cdn.plyr.io/fonts/avenir-medium.woff2") format("woff2"), - url("//cdn.plyr.io/fonts/avenir-medium.woff") format("woff"), - url("//cdn.plyr.io/fonts/avenir-medium.ttf") format("truetype"); - font-style: normal; - font-weight: 400; + font-family: "Avenir"; + src: url("//cdn.plyr.io/fonts/avenir-medium.woff2") format("woff2"), + url("//cdn.plyr.io/fonts/avenir-medium.woff") format("woff"), + url("//cdn.plyr.io/fonts/avenir-medium.ttf") format("truetype"); + font-style: normal; + font-weight: 400; } @font-face { - font-family: "Avenir"; - src: url("//cdn.plyr.io/fonts/avenir-bold.woff2") format("woff2"), - url("//cdn.plyr.io/fonts/avenir-bold.woff") format("woff"), - url("//cdn.plyr.io/fonts/avenir-bold.ttf") format("truetype"); - font-style: normal; - font-weight: 600; + font-family: "Avenir"; + src: url("//cdn.plyr.io/fonts/avenir-bold.woff2") format("woff2"), + url("//cdn.plyr.io/fonts/avenir-bold.woff") format("woff"), + url("//cdn.plyr.io/fonts/avenir-bold.ttf") format("truetype"); + font-style: normal; + font-weight: 600; }
\ No newline at end of file diff --git a/docs/src/less/lib/mixins.less b/docs/src/less/lib/mixins.less index b3a1f63b..a4451b1c 100644 --- a/docs/src/less/lib/mixins.less +++ b/docs/src/less/lib/mixins.less @@ -5,38 +5,38 @@ // Contain floats: nicolasgallagher.com/micro-clearfix-hack/ // --------------------------------------- .clearfix() { - zoom: 1; - &:before, - &:after { content: ""; display: table; } - &:after { clear: both; } + 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; + // Default + outline: thin dotted @gray-dark; + // Webkit + //outline: 5px auto -webkit-focus-ring-color; + outline-offset: 1px; } // Use rems for font sizing // Leave <body> at 100%/16px // --------------------------------------- .font-size(@font-size: 16){ - @rem: round((@font-size / 16), 1); - font-size: (@font-size * 1px); - font-size: ~"@{rem}rem"; + @rem: round((@font-size / 16), 1); + 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; + -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; + -moz-osx-font-smoothing: auto; + -webkit-font-smoothing: subpixel-antialiased; }
\ No newline at end of file |