2024-11-14 21:07:01 +01:00
|
|
|
<?php
|
|
|
|
// Making sure the file is included and not accessed directly.
|
|
|
|
if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
|
|
|
header('HTTP/1.1 403 Forbidden'); die();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2024-11-23 15:12:20 +01:00
|
|
|
<a id="tables-site"></a>
|
2024-11-14 21:07:01 +01:00
|
|
|
<div class="p-xs b r-s bkgd-grid mt-m">
|
|
|
|
<h2 class="t-w-500 t-size-14">Tables
|
|
|
|
<i class="fa-solid fa-table f-right"></i>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<section class="p-s">
|
2024-11-20 23:27:58 +01:00
|
|
|
|
2024-11-23 17:59:48 +01:00
|
|
|
<div class="bkgd-orange t-bold t-center w-full r-l border p-xs mt-xxs mb-m">
|
|
|
|
⚠️ These styles require a special workaround to work properly ⚠️
|
2024-11-20 23:27:58 +01:00
|
|
|
</div>
|
|
|
|
|
2024-11-23 15:12:20 +01:00
|
|
|
<h3 class="t-w-500 t-size-12 my-s mt-xxs">Stylish table</h3>
|
2024-11-20 22:53:18 +01:00
|
|
|
<div class="px-s">
|
|
|
|
<p class="mb-xxs">
|
2024-11-23 17:59:48 +01:00
|
|
|
Tables can quickly be styled by simply using the <span class="code">.table-stylish</span> class.
|
2024-11-20 22:53:18 +01:00
|
|
|
</p>
|
2024-11-23 17:59:48 +01:00
|
|
|
<p class="mb-xs">
|
|
|
|
However, due to browsers inability to stay consistent, they cannot be rounded as easily as other elements.<br>
|
|
|
|
Therefore, the <span class="code">.o-hidden</span> is automatically applied to the table itself.<br>
|
|
|
|
A cleaner fix could have been implemented, but it would have decently inflated the stylesheet's size.
|
|
|
|
</p>
|
|
|
|
<table class="table-stylish table-p-s border r-l">
|
|
|
|
<thead>
|
2024-11-20 22:53:18 +01:00
|
|
|
<th>Head 1</th>
|
|
|
|
<th>Head 2</th>
|
2024-11-23 17:59:48 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-11-20 22:53:18 +01:00
|
|
|
<tr>
|
|
|
|
<td>Cell 1.1</td>
|
|
|
|
<td>Cell 1.2</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Cell 2.1</td>
|
|
|
|
<td>Cell 2.2</td>
|
|
|
|
</tr>
|
2024-11-23 17:59:48 +01:00
|
|
|
</tbody>
|
2024-11-20 22:53:18 +01:00
|
|
|
</table>
|
|
|
|
<code class="d-block p-xxs border r-s mt-s">
|
2024-11-26 21:06:28 +01:00
|
|
|
table<b>.table-stylish.table-p-s.border.r-l</b><br>
|
2024-11-23 17:59:48 +01:00
|
|
|
thead>th>td*2<br>
|
|
|
|
tbody>tr*2>td*2
|
2024-11-20 22:53:18 +01:00
|
|
|
</code>
|
|
|
|
</div>
|
2024-11-23 17:59:48 +01:00
|
|
|
|
2024-11-14 21:07:01 +01:00
|
|
|
</section>
|