Skip to content

Commit

Permalink
Add table style
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Nov 17, 2024
1 parent 190a480 commit 684694b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sass/_vars.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// General
$max-width: 800px;
$border-radius: 10px;

// Colors
$color-black: #000;
$color-white: #ececec;
$color-grey-800: #232326;
$color-grey-900: #1e1e22;
$color-grey-900: #1e1e22;
$subtitle-color: #999;
18 changes: 18 additions & 0 deletions sass/elements/_table.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table {
border-spacing: 0;
border: 2px solid $subtitle-color;
border-radius: $border-radius;
}

thead {
background-color: $color-white;
}

tr td {
padding: 0.5rem;
border-top: 2px solid $subtitle-color;
}

tr td:last-child {
border-left: 2px solid $subtitle-color;
}
4 changes: 4 additions & 0 deletions sass/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

@import 'vars';

// Elements
// - HTML element tweaks: html, body, a, ul, li…
@import "elements/table";

@import 'components/base';
@import 'components/header';
@import 'components/footer';
Expand Down

0 comments on commit 684694b

Please sign in to comment.