Tables styling
This commit is contained in:
parent
c7f40e66d5
commit
bf5da0cdb8
@ -51,5 +51,4 @@ If you use the theme or found it useful you can support me by leaving a star ⭐
|
|||||||
## 5 Future Works
|
## 5 Future Works
|
||||||
|
|
||||||
- [ ] Bring SEO and [performance metrics](https://pagespeed.web.dev/) to 100% both on mobile and desktop;
|
- [ ] Bring SEO and [performance metrics](https://pagespeed.web.dev/) to 100% both on mobile and desktop;
|
||||||
- [ ] Add color palettes;
|
- [ ] Add color palettes.
|
||||||
- [ ] Add tables styling.
|
|
@ -4,7 +4,6 @@ html {
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Literata";
|
font-family: "Literata";
|
||||||
color: var(--content-primary);
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: var(--main-width);
|
max-width: var(--main-width);
|
||||||
padding-left: var(--main-padding);
|
padding-left: var(--main-padding);
|
||||||
@ -421,4 +420,41 @@ figcaption {
|
|||||||
font-size: small;
|
font-size: small;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
margin-top: -3rem;
|
margin-top: -3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code in paragraphs */
|
||||||
|
|
||||||
|
p code {
|
||||||
|
background-color: var(--code-background);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin-top: var(--table-margin-top);
|
||||||
|
margin-bottom: var(--table-margin-bottom);
|
||||||
|
font-size: var(--p-font-size);
|
||||||
|
line-height: var(--p-line-height);
|
||||||
|
color: var(--content-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
padding: var(--table-cell-padding);
|
||||||
|
border: 1px solid var(--code-border);
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: var(--code-background);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
table code {
|
||||||
|
background-color: var(--code-background);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 2px;
|
||||||
}
|
}
|
@ -51,6 +51,11 @@
|
|||||||
/* Content */
|
/* Content */
|
||||||
--content-height: calc(100vh - var(--footer-height));
|
--content-height: calc(100vh - var(--footer-height));
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
|
--table-cell-padding: .5rem;
|
||||||
|
--table-margin-top: 1.5rem;
|
||||||
|
--table-margin-bottom: 1.5rem;
|
||||||
|
|
||||||
/* Theme */
|
/* Theme */
|
||||||
--content-primary: rgb(36, 36, 36);
|
--content-primary: rgb(36, 36, 36);
|
||||||
--content-secondary: rgb(117, 117, 117);
|
--content-secondary: rgb(117, 117, 117);
|
||||||
|
Loading…
Reference in New Issue
Block a user