mirror of https://github.com/VLSIDA/OpenRAM.git
moved css into a seperate file to organize and disambiguate docstrings from multiline strings
This commit is contained in:
parent
98a00f985b
commit
fcfee649d5
|
|
@ -0,0 +1,26 @@
|
||||||
|
<style>
|
||||||
|
#data {
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 99%;
|
||||||
|
max-width: 799px
|
||||||
|
}
|
||||||
|
|
||||||
|
#data td, #data th {
|
||||||
|
border: 0px solid #ddd;
|
||||||
|
padding: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#data tr:nth-child(even){background-color: #f1f2f2;}
|
||||||
|
|
||||||
|
#data tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#data th {
|
||||||
|
padding-top: 11px;
|
||||||
|
padding-bottom: 11px;
|
||||||
|
text-align: left;
|
||||||
|
background-color: #3CAF50;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
@ -20,34 +20,10 @@ class datasheet():
|
||||||
|
|
||||||
|
|
||||||
def generate_html(self):
|
def generate_html(self):
|
||||||
self.html = """<style>
|
with open(os.path.abspath(os.environ.get("OPENRAM_HOME")) + '/datasheet/assets/datasheet.css', 'r') as datasheet_css:
|
||||||
#data {
|
self.html += datasheet_css.read()
|
||||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
||||||
border-collapse: collapse;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 800px
|
|
||||||
}
|
|
||||||
|
|
||||||
#data td, #data th {
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#data tr:nth-child(even){background-color: #f2f2f2;}
|
|
||||||
|
|
||||||
#data tr:hover {background-color: #ddd;}
|
|
||||||
|
|
||||||
#data th {
|
|
||||||
padding-top: 12px;
|
|
||||||
padding-bottom: 12px;
|
|
||||||
text-align: left;
|
|
||||||
background-color: #4CAF50;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
</style>"""
|
|
||||||
self.html +='<p style=font-size: 20px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;>'+ self.name + '.html' + '</p>'
|
self.html +='<p style=font-size: 20px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;>'+ self.name + '.html' + '</p>'
|
||||||
# self.html +='<p style=font-size: 20px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;>{0}</p>'
|
|
||||||
# self.html +='<p style=font-size: 20px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;>{0}</p>'
|
|
||||||
|
|
||||||
self.html +='<p style=font-size: 20px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;>Ports and Configuration (DEBUG)</p>'
|
self.html +='<p style=font-size: 20px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;>Ports and Configuration (DEBUG)</p>'
|
||||||
self.html += in_out(self.io,table_id='data').__html__().replace('<','<').replace('"','"').replace('>',">")
|
self.html += in_out(self.io,table_id='data').__html__().replace('<','<').replace('"','"').replace('>',">")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue