Moving to spec modules
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
Andy Andrews
|
||||
Bob Brown
|
||||
Charlie Chaplin
|
||||
@@ -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>
|
||||
@@ -0,0 +1,15 @@
|
||||
from pylabel import avery
|
||||
|
||||
profile = avery.L6009
|
||||
|
||||
data = range(10)
|
||||
|
||||
template = """
|
||||
Hello World
|
||||
"""
|
||||
|
||||
style = """
|
||||
.content {
|
||||
font-family: Arial;
|
||||
}
|
||||
"""
|
||||
Reference in New Issue
Block a user