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