Skip to content

Commit 6313861

Browse files
ctruedenmattxwang
authored andcommitted
editing/index: align table cell widths
1 parent 8d5a68f commit 6313861

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

_pages/editing/index.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,21 @@ which enable insertion of images, figures, notices, and more.
117117
(Think of this as: "I would like to *include* an image".)
118118
Here are a couple of examples:
119119

120-
<table><tbody>
121-
<tr>
122-
<th>Markup</th>
123-
<th>Result</th>
124-
</tr>
125-
<tr>
126-
<td><code>{% raw %}{% include icon name="imagej" %}{% endraw %}</code></td>
127-
<td>{% include icon name="imagej" %}</td>
128-
</tr>
129-
<tr>
130-
<td><code>{% raw %}{% include person id="rasband" %}{% endraw %}</code></td>
131-
<td>{% include person id="rasband" %}</td>
132-
</tr>
133-
</tbody></table>
120+
<style>
121+
.skinny {
122+
margin-left: 0;
123+
max-width: 30em;
124+
}
125+
.skinny td:first-child {
126+
width: 8em;
127+
}
128+
</style>
129+
130+
| Markup | Result |
131+
|--------|--------|
132+
| `{% raw %}{% include icon name="imagej" %}{% endraw %}` | {% include icon name="imagej" %} |
133+
| `{% raw %}{% include person id="rasband" %}{% endraw %}` | {% include person id="rasband" %} |
134+
{:style="margin-left: 0; max-width: 30em"}
134135

135136
### Available includes
136137

@@ -142,6 +143,7 @@ The following tables list all of this site's general-purpose includes:
142143
|----------------------------------------------|-------------------------|
143144
| [citation](citations#citing-publications) | Insert a citation |
144145
| [testimonial](citations#testimonials) | Insert a personal quote |
146+
{:.skinny}
145147

146148
#### Linking
147149

@@ -156,6 +158,7 @@ The following tables list all of this site's general-purpose includes:
156158
| [person-list](people#lists) | Link to a list of user pages |
157159
| [scholar](linking#scholar) | Link to an article on Google Scholar |
158160
| [wikipedia](linking#wikipedia) | Link to a Wikipedia page |
161+
{:.skinny}
159162

160163
#### Symbols
161164

@@ -165,6 +168,7 @@ The following tables list all of this site's general-purpose includes:
165168
| [button](buttons) | Insert a button |
166169
| [key](keys) | Insert a keyboard shortcut |
167170
| [icon](icons) | Insert an icon |
171+
{:.skinny}
168172

169173
#### Media
170174

@@ -173,19 +177,22 @@ The following tables list all of this site's general-purpose includes:
173177
| [img](images#images) | Insert an image |
174178
| [gallery](images#image-galleries) | Insert an image gallery |
175179
| [video](videos) | Embed a video |
180+
{:.skinny}
176181

177182
#### Notices
178183

179184
| Include | Purpose |
180185
|-----------------------------|---------------------------------------|
181186
| [notice](notices) | Insert an informational notice banner |
182187
| [aside](notices#asides) | Float a right sidebar with commentary |
188+
{:.skinny}
183189

184190
#### Source code
185191

186192
| Include | Purpose |
187193
|--------------|----------------------------------|
188194
| [code](code) | Embed a code snippet from GitHub |
195+
{:.skinny}
189196

190197
#### Miscellaneous
191198

@@ -195,6 +202,7 @@ The following tables list all of this site's general-purpose includes:
195202
| [timeline](timelines) | Insert a horizontal timeline |
196203
| [tooltip](tooltips) | Add a tooltip appearing on mouseover |
197204
| [echo](debugging) | For debugging |
205+
{:.skinny}
198206

199207
#### MARKED FOR REMOVAL
200208

@@ -204,3 +212,4 @@ The following tables list all of this site's general-purpose includes:
204212
| [info-box](notices#info-box) | Delete after migrating to statbox |
205213
| clear | Delete after purging all floats |
206214
| project | Delete after improving statbox |
215+
{:.skinny}

0 commit comments

Comments
 (0)