style.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: Main Stylesheet
  5. Here's where the magic happens. Here, you'll see we are calling in
  6. the separate media queries. The base mobile goes outside any query
  7. and is called at the beginning, after that we call the rest
  8. of the styles inside media queries.
  9. ******************************************************************/
  10. //
  11. // IMPORTING STYLES
  12. //
  13. // import normalize
  14. @import "_normalize.less";
  15. // import mixins
  16. @import "_mixins.less";
  17. /*
  18. BASE (MOBILE) SIZE
  19. This are the mobile styles. It's what people see on their phones. If
  20. you set a great foundation, you won't need to add too many styles in
  21. the other stylesheets. Remember, keep it light: Speed is Important.
  22. */
  23. // styles in base.less
  24. @import "_base.less";
  25. /*
  26. LARGER MOBILE DEVICES
  27. This is for devices like the Galaxy Note or something that's
  28. larger than an iPhone but smaller than a tablet. Let's call them
  29. tweeners.
  30. */
  31. @media only screen and (min-width: 481px) {
  32. // styles in 481up.less
  33. @import "_481up.less";
  34. } // end of media query
  35. /*
  36. TABLET & SMALLER LAPTOPS
  37. This is the average viewing window. So Desktops, Laptops, and
  38. in general anyone not viewing on a mobile device. Here's where
  39. you can add resource intensive styles.
  40. */
  41. @media only screen and (min-width: 768px) {
  42. // import grid
  43. @import "_grid.less";
  44. // styles in 768up.less
  45. @import "_768up.less";
  46. } // end of media query
  47. /*
  48. DESKTOP
  49. This is the average viewing window. So Desktops, Laptops, and
  50. in general anyone not viewing on a mobile device. Here's where
  51. you can add resource intensive styles.
  52. */
  53. @media only screen and (min-width: 1030px) {
  54. // styles in 1030up.less
  55. @import "_1030up.less";
  56. } // end of media query
  57. /*
  58. LARGE VIEWING SIZE
  59. This is for the larger monitors and possibly full screen viewers.
  60. */
  61. @media only screen and (min-width: 1240px) {
  62. // styles in 1240up.less
  63. @import "_1240up.less";
  64. } // end of media query
  65. /*
  66. RETINA (2x RESOLUTION DEVICES)
  67. This applies to the retina iPhone (4s) and iPad (2,3) along with
  68. other displays with a 2x resolution. You can also create a media
  69. query for retina AND a certain size if you want. Go Nuts.
  70. */
  71. @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
  72. only screen and (min--moz-device-pixel-ratio: 1.5),
  73. only screen and (min-device-pixel-ratio: 1.5) {
  74. // styles in 2x.less
  75. @import "_2x.less";
  76. } // end of media query
  77. /*
  78. iPHONE 5 MEDIA QUERY
  79. Want to get fancy for no good reason? Knock yourself out.
  80. */
  81. @media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) {
  82. // iPhone 5 or iPod Touch 5th generation styles (you can include your own file if you want)
  83. }
  84. /*
  85. PRINT STYLESHEET
  86. Feel free to customize this. Remember to add things that won't make
  87. sense to print at the bottom. Things like nav, ads, and forms should
  88. be set to display none.
  89. */
  90. @media print {
  91. @import "_print.less";
  92. } // end of media query