Skip to content

Commit

Permalink
fixed firefox styling, added table borders
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Oct 25, 2021
1 parent a2117c3 commit dc050ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Autodesk_Setup_BIDC/setup-sheet.cps
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ function onOpen() {
c += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";

// Import material io components
c += "<link href=\"https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css\" rel=\"stylesheet\">";
c += "<script src=\"https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js\"></script>";
c += "<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">";
// c += "<link href=\"https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css\" rel=\"stylesheet\">";
// c += "<script src=\"https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js\"></script>";
// c += "<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">";

if (getProperty("embedStylesheet")) {
c += "<style type=\"text/css\">" + loadText("setup-sheet.css", "utf-8") + "</style>";
Expand Down Expand Up @@ -1264,8 +1264,8 @@ function onSectionEnd() {
if (isFirstSection()) {
var c = "";
c += makeRow(makeColumn(d(localize("User: ") + ": ") + v(getGlobalParameter("username"))));
c += makeRow(makeColumn(d(localize("Date: ") + ": ") + v(getGlobalParameter("generated-at"))));
c += makeRow(makeColumn(d(localize("User") + ": ") + v(getGlobalParameter("username"))));
c += makeRow(makeColumn(d(localize("Date") + ": ") + v(getGlobalParameter("generated-at"))));
if (programComment) {
c += makeRow(makeColumn(d(localize("Program Comment") + ": ") + v(programComment)));
Expand Down
7 changes: 5 additions & 2 deletions Autodesk_Setup_BIDC/setup-sheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ table {
table.jobhead {
width: fit-content;
border-radius: 8px;
display: flex;
padding: 2.5px;
}

table.job, table.sheet {
width: fit-content;
border-radius: 8px;
display: flex;
}

th {
background-color: #e0e0e0;
border-radius: 8px;
padding: 0.7rem;
border-bottom: 2px solid lightslategray;
}

tr.space td {
Expand All @@ -69,6 +69,7 @@ table.info {

table.info td {
padding-left: 0.1cm;
border: none;
}

.job td {
Expand Down Expand Up @@ -108,6 +109,8 @@ tr {
td {
font-size: 1.125rem;
vertical-align: top;
padding: 2.5px;
border-left: 1px solid black;
}

.toolimage {
Expand Down

0 comments on commit dc050ba

Please sign in to comment.