Guest User

Untitled

a guest
Oct 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. {
  2. "Set size: 2D (equilateral | [width, height])":{
  3. "prefix":[
  4. "Platframe | size (both [w, h])",
  5. "size"
  6. ],
  7. "body":[
  8. "size($0px)"
  9. ],
  10. "description":"Set the width and height of an element"
  11. },
  12. "Unit conversion: px ⟶ rem":{
  13. "prefix":[
  14. "Platframe | px ⟶ rem",
  15. "rem"
  16. ],
  17. "body":[
  18. "rem($0px)"
  19. ],
  20. "description":"For fixed-width pixels to root relative em conversion"
  21. },
  22. "@media: min-width":{
  23. "prefix":[
  24. "Platframe | @media: min-width",
  25. "min"
  26. ],
  27. "body":[
  28. "+min($1)",
  29. "$0"
  30. ],
  31. "description":"Define a min-width @media selector"
  32. },
  33. "@media: max-width":{
  34. "prefix":[
  35. "Platframe | @media: max-width",
  36. "max"
  37. ],
  38. "body":[
  39. "+max($1)",
  40. "$0"
  41. ],
  42. "description":"Define a max-width @media selector"
  43. },
  44. "@media: range":{
  45. "prefix":[
  46. "Platframe | @media: between",
  47. "between"
  48. ],
  49. "body":[
  50. "+between($1)",
  51. "$0"
  52. ],
  53. "description":"Define a composite width-based @media selector with a minimum and maxium range"
  54. },
  55. "@media: min-resolution":{
  56. "prefix":[
  57. "Platframe | @media: min-resolution",
  58. "min-res"
  59. ],
  60. "body":[
  61. "+min-res($1dppx)",
  62. "$0"
  63. ],
  64. "description":"Define a min-resolution @media selector"
  65. },
  66. "@media: max-resolution":{
  67. "prefix":[
  68. "Platframe | @media: max-resolution",
  69. "max-res"
  70. ],
  71. "body":[
  72. "+max-res($1dppx)",
  73. "$0"
  74. ],
  75. "description":"Define a max-resolution @media selector"
  76. }
  77. }
Add Comment
Please, Sign In to add comment