Guest User

Untitled

a guest
Dec 11th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. # Mobile
  2. only screen and (min-width: 480px)
  3.  
  4. # Tablet
  5. only screen and (min-width: 768px)
  6.  
  7. # Desktop
  8. only screen and (min-width: 992px)
  9.  
  10. # Huge
  11. only screen and (min-width: 1280px)
  12.  
  13. # Phone
  14. only screen and (max-width:320px)
  15.  
  16. # Tablet
  17. only screen and (min-width:321px) and (max-width:768px)
  18.  
  19. # Desktop
  20. only screen and (min-width:769px)
  21.  
  22. @media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
  23. @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
  24. @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
  25. @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
  26. @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
  27. @media (min-width:1281px) { /* hi-res laptops and desktops */ }
  28.  
  29. @media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */ }
  30. @media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
  31. @media (min-width:641px) { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
  32. @media (min-width:961px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
  33. @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
  34. @media (min-width:1281px) { /* hi-res laptops and desktops */ }
  35.  
  36. @media only screen and (min-device-width: 480px){}
  37.  
  38. @media only screen and (min-device-width: 768px){}
  39.  
  40. @media only screen and (min-width: 769px) and (max-width: 1281px) { /* 10 inch tablet enter here */
  41. body::before {
  42. content: "tablet to some desktop media query (769 > 1281) fired";
  43. font-weight: bold;
  44. display: block;
  45. text-align: center;
  46. background: rgba(255, 255, 0, 0.9); /* Semi-transparent yellow */
  47. position: absolute;
  48. top: 0;
  49. left: 0;
  50. right: 0;
  51. z-index: 99;
  52. }
  53. }
  54.  
  55. /* Smartphones (portrait and landscape) ----------- */
  56. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  57. /* Styles */
  58. }
  59.  
  60. /* Smartphones (landscape) ----------- */
  61. @media only screen and (min-width : 321px) {
  62. /* Styles */
  63. }
  64.  
  65. /* Smartphones (portrait) ----------- */
  66. @media only screen and (max-width : 320px) {
  67. /* Styles */
  68. }
  69.  
  70. /* iPads (portrait and landscape) ----------- */
  71. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  72. /* Styles */
  73. }
  74.  
  75. /* iPads (landscape) ----------- */
  76. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
  77. /* Styles */
  78. }
  79.  
  80. /* iPads (portrait) ----------- */
  81. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
  82. /* Styles */
  83. }
  84. /**********
  85. iPad 3
  86. **********/
  87. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
  88. /* Styles */
  89. }
  90.  
  91. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
  92. /* Styles */
  93. }
  94. /* Desktops and laptops ----------- */
  95. @media only screen and (min-width : 1224px) {
  96. /* Styles */
  97. }
  98.  
  99. /* Large screens ----------- */
  100. @media only screen and (min-width : 1824px) {
  101. /* Styles */
  102. }
  103.  
  104. /* iPhone 4 ----------- */
  105. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
  106. /* Styles */
  107. }
  108.  
  109. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
  110. /* Styles */
  111. }
  112.  
  113. /* iPhone 5 ----------- */
  114. @media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
  115. /* Styles */
  116. }
  117.  
  118. @media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
  119. /* Styles */
  120. }
  121.  
  122. /* iPhone 6 ----------- */
  123. @media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
  124. /* Styles */
  125. }
  126.  
  127. @media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
  128. /* Styles */
  129. }
  130.  
  131. /* iPhone 6+ ----------- */
  132. @media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
  133. /* Styles */
  134. }
  135.  
  136. @media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
  137. /* Styles */
  138. }
  139.  
  140. /* Samsung Galaxy S3 ----------- */
  141. @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
  142. /* Styles */
  143. }
  144.  
  145. @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
  146. /* Styles */
  147. }
  148.  
  149. /* Samsung Galaxy S4 ----------- */
  150. @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
  151. /* Styles */
  152. }
  153.  
  154. @media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
  155. /* Styles */
  156. }
  157.  
  158. /* Samsung Galaxy S5 ----------- */
  159. @media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
  160. /* Styles */
  161. }
  162.  
  163. @media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
  164. /* Styles */
  165. }
  166.  
  167. /* Custom, iPhone Retina */
  168. @media only screen and (min-width : 320px) {
  169.  
  170. }
  171.  
  172. /* Extra Small Devices, Phones */
  173. @media only screen and (min-width : 480px) {
  174.  
  175. }
  176.  
  177. /* Small Devices, Tablets */
  178. @media only screen and (min-width : 768px) {
  179.  
  180. }
  181.  
  182. /* Medium Devices, Desktops */
  183. @media only screen and (min-width : 992px) {
  184.  
  185. }
  186.  
  187. /* Large Devices, Wide Screens */
  188. @media only screen and (min-width : 1200px) {
  189.  
  190. }
  191.  
  192. @media (max-width:768px) {
  193. .navbar-toggle {
  194. margin: 60px 0;
  195. }
  196. }
  197.  
  198. Extra small devices ~ Phones (< 768px)
  199. Small devices ~ Tablets (>= 768px)
  200. Medium devices ~ Desktops (>= 992px)
  201. Large devices ~ Desktops (>= 1200px)
Add Comment
Please, Sign In to add comment