You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.3 KiB

9 years ago
  1. /*!
  2. Pure v0.6.0
  3. Copyright 2014 Yahoo! Inc. All rights reserved.
  4. Licensed under the BSD License.
  5. https://github.com/yahoo/pure/blob/master/LICENSE.md
  6. */
  7. /*csslint regex-selectors:false, known-properties:false, duplicate-properties:false*/
  8. .pure-g {
  9. letter-spacing: -0.31em; /* Webkit: collapse white-space between units */
  10. *letter-spacing: normal; /* reset IE < 8 */
  11. *word-spacing: -0.43em; /* IE < 8: collapse white-space between units */
  12. text-rendering: optimizespeed; /* Webkit: fixes text-rendering: optimizeLegibility */
  13. /*
  14. Sets the font stack to fonts known to work properly with the above letter
  15. and word spacings. See: https://github.com/yahoo/pure/issues/41/
  16. The following font stack makes Pure Grids work on all known environments.
  17. * FreeSans: Ships with many Linux distros, including Ubuntu
  18. * Arimo: Ships with Chrome OS. Arimo has to be defined before Helvetica and
  19. Arial to get picked up by the browser, even though neither is available
  20. in Chrome OS.
  21. * Droid Sans: Ships with all versions of Android.
  22. * Helvetica, Arial, sans-serif: Common font stack on OS X and Windows.
  23. */
  24. font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
  25. /*
  26. Use flexbox when possible to avoid `letter-spacing` side-effects.
  27. NOTE: Firefox (as of 25) does not currently support flex-wrap, so the
  28. `-moz-` prefix version is omitted.
  29. */
  30. display: -webkit-flex;
  31. -webkit-flex-flow: row wrap;
  32. /* IE10 uses display: flexbox */
  33. display: -ms-flexbox;
  34. -ms-flex-flow: row wrap;
  35. /* Prevents distributing space between rows */
  36. -ms-align-content: flex-start;
  37. -webkit-align-content: flex-start;
  38. align-content: flex-start;
  39. }
  40. /* Opera as of 12 on Windows needs word-spacing.
  41. The ".opera-only" selector is used to prevent actual prefocus styling
  42. and is not required in markup.
  43. */
  44. .opera-only :-o-prefocus,
  45. .pure-g {
  46. word-spacing: -0.43em;
  47. }
  48. .pure-u {
  49. display: inline-block;
  50. *display: inline; /* IE < 8: fake inline-block */
  51. zoom: 1;
  52. letter-spacing: normal;
  53. word-spacing: normal;
  54. vertical-align: top;
  55. text-rendering: auto;
  56. }
  57. /*
  58. Resets the font family back to the OS/browser's default sans-serif font,
  59. this the same font stack that Normalize.css sets for the `body`.
  60. */
  61. .pure-g [class *= "pure-u"] {
  62. font-family: sans-serif;
  63. }