aboutsummaryrefslogtreecommitdiff
path: root/src/components/tables
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-10-01 22:13:51 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-10-01 22:13:51 +0530
commite5c1454c091cb4101664d1bfa0e766ab37e9879a (patch)
tree7f7c8424b4f14f42758e951476ef252660ddfef4 /src/components/tables
parent8c01e16a8336a91659db7bf73ffe94077f90e25b (diff)
created a navbar
Diffstat (limited to 'src/components/tables')
-rw-r--r--src/components/tables/scss/_colors.scss2
-rw-r--r--src/components/tables/scss/table.scss6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/components/tables/scss/_colors.scss b/src/components/tables/scss/_colors.scss
index 2a3725c..7077b62 100644
--- a/src/components/tables/scss/_colors.scss
+++ b/src/components/tables/scss/_colors.scss
@@ -28,6 +28,8 @@ $fgColorDisabled: $disabledColor;
$inputBackgroundColor: $backgroundColor;
+$thColor: $altBackgroundColor;
+
$warningColor: $warningColor;
@mixin button {
diff --git a/src/components/tables/scss/table.scss b/src/components/tables/scss/table.scss
index d9be7c8..13e247a 100644
--- a/src/components/tables/scss/table.scss
+++ b/src/components/tables/scss/table.scss
@@ -15,20 +15,22 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+@import "colors";
+
table {
width: 90%;
margin: auto;
th {
box-sizing: border-box;
- background-color: #383a59;
+ background-color: $thColor;
font-weight: normal;
text-align: left;
padding-left: 0.3rem;
}
tr:hover {
- background-color: rgba(#383a59, 0.4);
+ background-color: rgba($thColor, 0.4);
}
td {