diff options
| author | Jonas Kohl | 2024-07-29 12:23:13 +0200 | 
|---|---|---|
| committer | Jonas Kohl | 2024-07-29 12:23:13 +0200 | 
| commit | 721e48a88479e112fec8bc1c432bc8407a0f805b (patch) | |
| tree | f18e54d01fb9d5c825a68941c479f17ea5d05803 /src | |
| parent | 6853a216b90658ae2147cbd0d13b53c95f0bc904 (diff) | |
Move stuff to CSS classes
Diffstat (limited to 'src')
| -rw-r--r-- | src/static/style.css | 6 | ||||
| -rw-r--r-- | src/template.php | 5 | 
2 files changed, 8 insertions, 3 deletions
diff --git a/src/static/style.css b/src/static/style.css index 4784cb1..f0b6130 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -43,6 +43,12 @@ a {      border-left: 1px solid #fff;      border-right: 1px solid #000;  } +.navCell-first { +    border-left: none; +} +.navCell-fill { +    border-right: none; +}  .navCell a {      display: block;      padding: 4px 32px; diff --git a/src/template.php b/src/template.php index 6061e1d..127356c 100644 --- a/src/template.php +++ b/src/template.php @@ -35,7 +35,7 @@ $nav = fn(string $ln) =>          <table id="navLayout" cellspacing="0">          <tbody>          <tr> -            <td class="navCell<?= $nav("home") ?>" style="border-left:0"> +            <td class="navCell<?= $nav("home") ?> navCell-first">                  <a href="/"><img                      class="navIcon"                      alt="" @@ -71,8 +71,7 @@ $nav = fn(string $ln) =>                      src="/static/icons/website.gif"                  /> My actual website</a>              </td> -            <td class="navCell" -                style="border-right:0"></td> +            <td class="navCell navCell-fill"></td>          </tr>          </tbody>          </table>  |