-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.py
36 lines (32 loc) · 896 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class CSSClasses:
# Write your CSS classes here!
# Example classes
class BgDark:
"""
This class creates this CSS:
.bg-dark {
background-color: #333;
color: white;
}
Use the CSS properties and values
just like normal, except assign the values
with the "=" sign.
"""
background_color = "#333"
color = "white"
class DFlex:
"""
This class makes this CSS:
.d-flex {
display: flex;
}
"""
display = "flex"
# You can also inherit from other CSS classes
class DarkFlexContent(BgDark, DFlex):
"""
This class will contain the same properties as BgDark
and Dflex + align-items: center and justify-content: center.
"""
align_items = "center"
justify_content = "center"