variables.py 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. # -*- coding: utf-8 -*-
  2. """Variables for CSS processing for CSS-JS-Minify."""
  3. __all__ = ('EXTENDED_NAMED_COLORS', 'CSS_PROPS_TEXT')
  4. # 'Color Name String': (R, G, B)
  5. EXTENDED_NAMED_COLORS = {
  6. 'azure': (240, 255, 255),
  7. 'beige': (245, 245, 220),
  8. 'bisque': (255, 228, 196),
  9. 'blanchedalmond': (255, 235, 205),
  10. 'brown': (165, 42, 42),
  11. 'burlywood': (222, 184, 135),
  12. 'chartreuse': (127, 255, 0),
  13. 'chocolate': (210, 105, 30),
  14. 'coral': (255, 127, 80),
  15. 'cornsilk': (255, 248, 220),
  16. 'crimson': (220, 20, 60),
  17. 'cyan': (0, 255, 255),
  18. 'darkcyan': (0, 139, 139),
  19. 'darkgoldenrod': (184, 134, 11),
  20. 'darkgray': (169, 169, 169),
  21. 'darkgreen': (0, 100, 0),
  22. 'darkgrey': (169, 169, 169),
  23. 'darkkhaki': (189, 183, 107),
  24. 'darkmagenta': (139, 0, 139),
  25. 'darkolivegreen': (85, 107, 47),
  26. 'darkorange': (255, 140, 0),
  27. 'darkorchid': (153, 50, 204),
  28. 'darkred': (139, 0, 0),
  29. 'darksalmon': (233, 150, 122),
  30. 'darkseagreen': (143, 188, 143),
  31. 'darkslategray': (47, 79, 79),
  32. 'darkslategrey': (47, 79, 79),
  33. 'darkturquoise': (0, 206, 209),
  34. 'darkviolet': (148, 0, 211),
  35. 'deeppink': (255, 20, 147),
  36. 'dimgray': (105, 105, 105),
  37. 'dimgrey': (105, 105, 105),
  38. 'firebrick': (178, 34, 34),
  39. 'forestgreen': (34, 139, 34),
  40. 'gainsboro': (220, 220, 220),
  41. 'gold': (255, 215, 0),
  42. 'goldenrod': (218, 165, 32),
  43. 'gray': (128, 128, 128),
  44. 'green': (0, 128, 0),
  45. 'grey': (128, 128, 128),
  46. 'honeydew': (240, 255, 240),
  47. 'hotpink': (255, 105, 180),
  48. 'indianred': (205, 92, 92),
  49. 'indigo': (75, 0, 130),
  50. 'ivory': (255, 255, 240),
  51. 'khaki': (240, 230, 140),
  52. 'lavender': (230, 230, 250),
  53. 'lavenderblush': (255, 240, 245),
  54. 'lawngreen': (124, 252, 0),
  55. 'lemonchiffon': (255, 250, 205),
  56. 'lightcoral': (240, 128, 128),
  57. 'lightcyan': (224, 255, 255),
  58. 'lightgray': (211, 211, 211),
  59. 'lightgreen': (144, 238, 144),
  60. 'lightgrey': (211, 211, 211),
  61. 'lightpink': (255, 182, 193),
  62. 'lightsalmon': (255, 160, 122),
  63. 'lightseagreen': (32, 178, 170),
  64. 'lightslategray': (119, 136, 153),
  65. 'lightslategrey': (119, 136, 153),
  66. 'lime': (0, 255, 0),
  67. 'limegreen': (50, 205, 50),
  68. 'linen': (250, 240, 230),
  69. 'magenta': (255, 0, 255),
  70. 'maroon': (128, 0, 0),
  71. 'mediumorchid': (186, 85, 211),
  72. 'mediumpurple': (147, 112, 219),
  73. 'mediumseagreen': (60, 179, 113),
  74. 'mediumspringgreen': (0, 250, 154),
  75. 'mediumturquoise': (72, 209, 204),
  76. 'mediumvioletred': (199, 21, 133),
  77. 'mintcream': (245, 255, 250),
  78. 'mistyrose': (255, 228, 225),
  79. 'moccasin': (255, 228, 181),
  80. 'navy': (0, 0, 128),
  81. 'oldlace': (253, 245, 230),
  82. 'olive': (128, 128, 0),
  83. 'olivedrab': (107, 142, 35),
  84. 'orange': (255, 165, 0),
  85. 'orangered': (255, 69, 0),
  86. 'orchid': (218, 112, 214),
  87. 'palegoldenrod': (238, 232, 170),
  88. 'palegreen': (152, 251, 152),
  89. 'paleturquoise': (175, 238, 238),
  90. 'palevioletred': (219, 112, 147),
  91. 'papayawhip': (255, 239, 213),
  92. 'peachpuff': (255, 218, 185),
  93. 'peru': (205, 133, 63),
  94. 'pink': (255, 192, 203),
  95. 'plum': (221, 160, 221),
  96. 'purple': (128, 0, 128),
  97. 'rosybrown': (188, 143, 143),
  98. 'saddlebrown': (139, 69, 19),
  99. 'salmon': (250, 128, 114),
  100. 'sandybrown': (244, 164, 96),
  101. 'seagreen': (46, 139, 87),
  102. 'seashell': (255, 245, 238),
  103. 'sienna': (160, 82, 45),
  104. 'silver': (192, 192, 192),
  105. 'slategray': (112, 128, 144),
  106. 'slategrey': (112, 128, 144),
  107. 'snow': (255, 250, 250),
  108. 'springgreen': (0, 255, 127),
  109. 'teal': (0, 128, 128),
  110. 'thistle': (216, 191, 216),
  111. 'tomato': (255, 99, 71),
  112. 'turquoise': (64, 224, 208),
  113. 'violet': (238, 130, 238),
  114. 'wheat': (245, 222, 179)
  115. }
  116. # Do Not compact this string, new lines are used to Group up stuff.
  117. CSS_PROPS_TEXT = '''
  118. alignment-adjust alignment-baseline animation animation-delay
  119. animation-direction animation-duration animation-iteration-count
  120. animation-name animation-play-state animation-timing-function appearance
  121. azimuth
  122. backface-visibility background background-blend-mode background-attachment
  123. background-clip background-color background-image background-origin
  124. background-position background-position-block background-position-inline
  125. background-position-x background-position-y background-repeat background-size
  126. baseline-shift bikeshedding bookmark-label bookmark-level bookmark-state
  127. bookmark-target border border-bottom border-bottom-color
  128. border-bottom-left-radius border-bottom-parts border-bottom-right-radius
  129. border-bottom-style border-bottom-width border-clip border-clip-top
  130. border-clip-right border-clip-bottom border-clip-left border-collapse
  131. border-color border-corner-shape border-image border-image-outset
  132. border-image-repeat border-image-slice border-image-source border-image-width
  133. border-left border-left-color border-left-style border-left-parts
  134. border-left-width border-limit border-parts border-radius border-right
  135. border-right-color border-right-style border-right-width border-right-parts
  136. border-spacing border-style border-top border-top-color border-top-left-radius
  137. border-top-parts border-top-right-radius border-top-style border-top-width
  138. border-width bottom box-decoration-break box-shadow box-sizing
  139. caption-side clear clip color column-count column-fill column-gap column-rule
  140. column-rule-color column-rule-style column-rule-width column-span column-width
  141. columns content counter-increment counter-reset corners corner-shape
  142. cue cue-after cue-before cursor
  143. direction display drop-initial-after-adjust drop-initial-after-align
  144. drop-initial-before-adjust drop-initial-before-align drop-initial-size
  145. drop-initial-value
  146. elevation empty-cells
  147. flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap fit
  148. fit-position float font font-family font-size font-size-adjust font-stretch
  149. font-style font-variant font-weight
  150. grid-columns grid-rows
  151. justify-content
  152. hanging-punctuation height hyphenate-character hyphenate-resource hyphens
  153. icon image-orientation image-resolution inline-box-align
  154. left letter-spacing line-height line-stacking line-stacking-ruby
  155. line-stacking-shift line-stacking-strategy linear-gradient list-style
  156. list-style-image list-style-position list-style-type
  157. margin margin-bottom margin-left margin-right margin-top marquee-direction
  158. marquee-loop marquee-speed marquee-style max-height max-width min-height
  159. min-width
  160. nav-index
  161. opacity orphans outline outline-color outline-offset outline-style
  162. outline-width overflow overflow-style overflow-x overflow-y
  163. padding padding-bottom padding-left padding-right padding-top page
  164. page-break-after page-break-before page-break-inside pause pause-after
  165. pause-before perspective perspective-origin pitch pitch-range play-during
  166. position presentation-level
  167. quotes
  168. resize rest rest-after rest-before richness right rotation rotation-point
  169. ruby-align ruby-overhang ruby-position ruby-span
  170. size speak speak-header speak-numeral speak-punctuation speech-rate src
  171. stress string-set
  172. table-layout target target-name target-new target-position text-align
  173. text-align-last text-decoration text-emphasis text-indent text-justify
  174. text-outline text-shadow text-transform text-wrap top transform
  175. transform-origin transition transition-delay transition-duration
  176. transition-property transition-timing-function
  177. unicode-bidi unicode-range
  178. vertical-align visibility voice-balance voice-duration voice-family
  179. voice-pitch voice-range voice-rate voice-stress voice-volume volume
  180. white-space widows width word-break word-spacing word-wrap
  181. z-index
  182. '''