Advertisement
KAYOver

Hierarchical Attribute Styling Conventions 0.1

Nov 28th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. Hierarchical Attribute Styling Conventions
  2.  
  3. Elements Selectors
  4.  
  5. Plain
  6.  
  7. [_class]
  8. [_class="mod"]
  9. [_class~="mod"]
  10. [_class][mod_]
  11. [_class][mod_="value"]
  12.  
  13. [_class] > *
  14. [_class] [__class]
  15. [_class] [__class] > *
  16. [_class] [__class] [__class]
  17.  
  18. [_very-long-class]
  19. [_very-long-class] [__very-long-class]
  20.  
  21. List
  22.  
  23. ul[_class] li
  24.  
  25. Button
  26.  
  27. button[mod_]
  28. button[mod_="value"]
  29.  
  30. Properties Order
  31.  
  32. content
  33.  
  34. display
  35. flex
  36. flex-direction
  37. grid-template-columns
  38. grid-auto-flow
  39. grid-auto-columns
  40. grid-auto-rows
  41. grid-gap
  42. align-self
  43. align-items
  44. justify-content
  45.  
  46. position
  47. top
  48. left
  49. right
  50. bottom
  51. z-index
  52.  
  53. width
  54. height
  55. min-width
  56. min-height
  57. max-width
  58. max-height
  59. resize
  60. object-fit
  61. overflow
  62.  
  63. margin
  64. padding
  65.  
  66. background
  67. outline
  68. border
  69. box-shadow
  70. filter
  71.  
  72. color
  73. text-shadow
  74. text-decoration
  75. text-overflow
  76. text-align
  77. vertical-align
  78. font: 12px family;
  79. font-size: 12px;
  80. font-weight: 500;
  81. line-height
  82. white-space
  83. writing-mode
  84.  
  85. list-style
  86. counter-reset
  87. counter-increment
  88.  
  89. opacity
  90. visibility
  91. animation: title 1s ease;
  92. transition: 1s ease property;
  93. transform
  94. cursor
  95. pointer-events
  96.  
  97. Example
  98.  
  99. <div _header>
  100. <div __logo></div>
  101. <div __navigation>
  102. <a>Home</a>
  103. <a>About</a>
  104. </div>
  105. </div>
  106. <div _content>
  107. <div _title>HASC</div>
  108. <div _title="small">Example</div>
  109. <div _group="h stack">
  110. <button primary_>Primary</button>
  111. <button>Secondary</button>
  112. </div>
  113. </div>
  114. <div _footer>
  115. <div __copyright></div>
  116. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement