Moving to spec modules

This commit is contained in:
Tris Forster
2023-02-07 12:54:05 +11:00
parent ebc088198f
commit 5b09007939
11 changed files with 161 additions and 36 deletions
View File
+33
View File
@@ -0,0 +1,33 @@
DIV.label {
background-color: red;
color: white;
}
DIV.hello-tag {
height: 100%;
display: flex;
text-align: center;
align-items: stretch;
flex-direction: column;
justify-content: space-between;
font-family: Arial;
font-size: 10pt;
}
.greeting {
font-size: 20pt;
font-weight: bold;
}
.name {
font-family: 'Times New Roman', Times, serif;
font-weight: bold;
font-size: 20pt;
border-radius: 10px;
background-color: white;
flex-grow: 1;
margin-bottom: 2mm;
color: #333;
}
+5
View File
@@ -0,0 +1,5 @@
<div class="hello-tag";">
<div class="greeting">Hello</div>
<div>my name is</div>
<div class="name">{data[text]}</div>
</div>
+3
View File
@@ -0,0 +1,3 @@
Andy Andrews
Bob Brown
Charlie Chaplin
+5
View File
@@ -0,0 +1,5 @@
<div style="height: 100%; display: flex; align-items: center; flex-direction: column; justify-content: space-around; font-family: Arial; font-size: 10pt;">
<div>Property of</div>
<div style="font-size: 20pt"><strong>Andy Andrews</strong></div>
<div>Please return to office if found</div>
</div>
+15
View File
@@ -0,0 +1,15 @@
from pylabel import avery
profile = avery.L6009
data = range(10)
template = """
Hello World
"""
style = """
.content {
font-family: Arial;
}
"""