Skip to content

Commit 9321eb5

Browse files
committed
Getting fancy with the color table
* Added color samples to the color scheme table * Tried my hand at some CSS * Try to make the background color not fill the whole cell * Use a span or div with padding?
1 parent b4241ac commit 9321eb5

2 files changed

Lines changed: 31 additions & 7 deletions

File tree

docs/content/styles/main.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@ table td p.legend {
7070
text-align: center;
7171
}
7272

73+
.color-table {
74+
margin: 0 auto;
75+
border: 2px solid #666;
76+
border-collapse: collapse;
77+
}
78+
79+
.color-table td {
80+
padding: 5 px;
81+
text-align: center;
82+
border-spacing: 10 px;
83+
border: 1px solid;
84+
}
85+
86+
.color-table td div {
87+
padding: 10 px;
88+
width: 100%;
89+
height: 100%;
90+
}
91+
7392
.table-container {
7493
overflow-y: auto;
7594
}

docs/layers-main.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,18 @@ <h3>Finger Shui!</h3>
140140
It's convenient that the Wood element can be represented either as blue or green.
141141
On the left hand, colors are a little warmer as that hand is considered more Yin.
142142
</p><br>
143-
<table class="center" style="width: 50%; margin: auto;">
144-
<tr><th>Finger</th> <th>Element</th><th>Color</th> </tr>
145-
<tr><td>Thumb</td> <td>Earth</td> <td>Gold</td> </tr>
146-
<tr><td>Index</td> <td>Wood</td> <td>Green/Blue</td> </tr>
147-
<tr><td>Middle</td> <td>Fire</td> <td>Red</td> </tr>
148-
<tr><td>Ring</td> <td>Metal</td> <td>White</td> </tr>
149-
<tr><td>Pinky</td> <td>Water</td> <td>Gray</td> </tr>
143+
<table class="color-table" style="width: 50%">
144+
<tr><th>Finger</th> <th>Element</th><th>Color</th> <th colspan="2">Samples</th> </tr>
145+
<tr><td>Thumb</td> <td>Earth</td> <td>Gold</td> <td colspan="2"><div style="background-color:#eeb">
146+
</div></td></tr>
147+
<tr><td>Index</td> <td>Wood</td> <td>Green/Blue</td> <td><div style="background-color:#9f8"></div></td><!-- 9f8/89f -->
148+
<td><div style="background-color:#89f"></div></td></tr>
149+
<tr><td>Middle</td> <td>Fire</td> <td>Red</td> <td><div style="background-color:#f98"></div></td><!-- f98/f89 -->
150+
<td><div style="background-color:#f89"></div></td></tr>
151+
<tr><td>Ring</td> <td>Metal</td> <td>White</td> <td><div style="background-color:#eed"></div></td><!-- eed/dee -->
152+
<td><div style="background-color:#dee"></div></td></tr>
153+
<tr><td>Pinky</td> <td>Water</td> <td>Gray</td> <td><div style="background-color:#baa"></div></td><!-- baa/aab -->
154+
<td><div style="background-color:#aab"></div></td></tr>
150155
</table><br>
151156
<!-- ul class="disc">
152157
<li><b>Thumb: Earth</b> (gold) </li>

0 commit comments

Comments
 (0)