Skip to content

Commit 6fb1874

Browse files
committed
Made centering of table headers in web tool more robust
1 parent c47ddfe commit 6fb1874

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

_includes/demo.html

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@ <h6 style="margin-bottom: 0px; margin-top: 18px">Input a tensor algebra expressi
3232
<th class="mdl-data-table__cell--non-numeric" style="min-width: 70px; vertical-align: middle; padding-left: 9px">
3333
<div align="center" style="position:relative"><big>Tensor</big></div></th>
3434
<th class="mdl-data-table__cell--non-numeric" style="width: 100%; padding-left: 0px; vertical-align: middle; text-align: left">
35-
<big id="formatHeading">
36-
Format
37-
</big>
38-
<big class="optional-header" style="padding-left: 96px">
39-
(Level Formats)
40-
</big>
41-
<big>
42-
<button class="help-btn js-modal-trigger mdl-button mdl-js-button mdl-button--icon" data-target="modal-level-formats"><i class="material-icons" style="font-size:20px">help_outline</i>
43-
</button>
35+
<div style="display: flex">
36+
<div style="width: 190px">
37+
<big style="text-align: center; display: inline-block; width: 100%">
38+
Format
39+
<button class="help-btn help-btn-alternate js-modal-trigger mdl-button mdl-js-button mdl-button--icon" data-target="modal-level-formats"><i class="material-icons" style="font-size: 20px">help_outline</i></button>
40+
</big>
41+
</div>
42+
<big class="optional-header" style="padding-left: 28px">
43+
(Level Formats)
44+
<button class="help-btn js-modal-trigger mdl-button mdl-js-button mdl-button--icon" data-target="modal-level-formats"><i class="material-icons" style="font-size: 20px">help_outline</i></button>
45+
</big>
4446
<div id="modal-level-formats" class="modal">
4547
<div class="modal-background"></div>
46-
4748
<div class="modal-content">
4849
<div class="box">
4950
<p>
@@ -79,10 +80,9 @@ <h6 style="margin-bottom: 0px; margin-top: 18px">Input a tensor algebra expressi
7980
</p>
8081
</div>
8182
</div>
82-
8383
<button class="modal-close is-large" aria-label="close"></button>
8484
</div>
85-
</big>
85+
</div>
8686
</th>
8787
</tr>
8888
</thead>
@@ -107,19 +107,23 @@ <h6 style="margin-bottom: 0px; margin-top: 18px">Input a tensor algebra expressi
107107
<tr>
108108
<th class="mdl-data-table__cell--non-numeric"></th>
109109
<th class="mdl-data-table__cell--non-numeric" style="padding-left: 0px; padding-right: 8px; vertical-align: middle; text-align: left">
110-
<big style="padding-left: 10px">
111-
Scheduling Command
112-
</big>
113-
<big>
114-
<button class="help-btn mdl-button mdl-js-button mdl-button--icon">
115-
<a target="_blank" rel="noopener noreferrer" href="http://tensor-compiler.org/docs/scheduling/index.html">
116-
<i class="material-icons" style="font-size: 20px; color: black">help_outline</i>
117-
</a>
118-
</button>
119-
</big>
120-
<big class="optional-header" style="padding-left: 34px">
121-
Arguments
122-
</big>
110+
<div style="display: flex">
111+
<div style="width: 200px">
112+
<big style="text-align: center; display: inline-block; width: 100%">
113+
Scheduling Command
114+
<button class="help-btn mdl-button mdl-js-button mdl-button--icon">
115+
<a target="_blank" rel="noopener noreferrer" href="http://tensor-compiler.org/docs/scheduling/index.html">
116+
<i class="material-icons" style="font-size: 20px; color: black">help_outline</i>
117+
</a>
118+
</button>
119+
</big>
120+
</div>
121+
<div>
122+
<big class="optional-header" style="padding-left: 28px">
123+
Arguments
124+
</big>
125+
</div>
126+
</div>
123127
</th>
124128
</tr>
125129
</thead>

assets/css/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ html {
1616
}
1717

1818
.navbar-item.is-active {
19-
font-weight: 800;
19+
font-weight: 600;
2020
}

stylesheets/style.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ p {
3232
}
3333

3434
.help-btn {
35-
width: 22px;
36-
height: 22px;
35+
width: 24px;
36+
height: 24px;
3737
min-width: initial;
3838
}
3939

@@ -112,8 +112,8 @@ h1, h2, h3, h4, h5, h6 {
112112
display: inline;
113113
}
114114

115-
#formatHeading {
116-
padding-left: 68px;
115+
.help-btn-alternate {
116+
display: none;
117117
}
118118

119119
@media (max-width: 580px) {
@@ -133,8 +133,8 @@ h1, h2, h3, h4, h5, h6 {
133133
display: none;
134134
}
135135

136-
#formatHeading {
137-
padding-left: 58px;
136+
.help-btn-alternate {
137+
display: inline;
138138
}
139139
}
140140

0 commit comments

Comments
 (0)