mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-14 20:36:58 +01:00
adjust table & footer css; edit readme
This commit is contained in:
parent
443634c2f6
commit
a345157488
4 changed files with 40 additions and 14 deletions
|
@ -1,7 +1,14 @@
|
|||
# Tufte Hugo Theme
|
||||
|
||||
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](code_of_conduct.md)
|
||||
[![build github pages](https://github.com/slashformotion/hugo-tufte/actions/workflows/build-site-ghpages.yml/badge.svg)](https://github.com/slashformotion/hugo-tufte/actions/workflows/build-site-ghpages.yml)
|
||||
|
||||
## Fork notes by loikein:
|
||||
|
||||
I just do whatever I want to make the theme better suit my needs. Not intended as a continuation of the original projects.
|
||||
|
||||
## Original readme:
|
||||
|
||||
***This theme isn't actively maintained, if you want a new feature please file a pull request.***
|
||||
|
||||
|
||||
|
|
|
@ -30,10 +30,21 @@ h3:hover > a.heading-anchor {
|
|||
}
|
||||
|
||||
hr {
|
||||
text-align: left;
|
||||
margin-left: 0;
|
||||
margin-top: 1.4rem;
|
||||
margin-bottom: 1.4rem;
|
||||
width: 75%;
|
||||
max-width: 45rem;
|
||||
border-color: rgba(250,250,250,0.25);
|
||||
border-style: solid none none none;
|
||||
border-color: #111;
|
||||
}
|
||||
|
||||
kbd {
|
||||
border: 1px #111 solid;
|
||||
border-radius: 5px;
|
||||
padding-right: 2px;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
@ -59,23 +70,21 @@ hr {
|
|||
}
|
||||
|
||||
table:not(.lntable) {
|
||||
margin-top: 1em;
|
||||
margin-top: 1.4em;
|
||||
font-size: 1.4rem;
|
||||
width: auto; /* making booktabs style tables the unstyled default in case someone uses Markdown styling */
|
||||
/* margin: 0 auto; */
|
||||
/* border-spacing: 0px; */
|
||||
border-top: 2px solid #111;
|
||||
border-bottom: 2px solid #111;
|
||||
}
|
||||
|
||||
table:not(.lntable) th,
|
||||
table:not(.lntable) td {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.71428571;
|
||||
table:not(.lntable) tr th {
|
||||
border-bottom: 1px solid #111;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
table:not(.lntable) td {
|
||||
padding-right: 0.75em;
|
||||
table:not(.lntable) tr th,
|
||||
table:not(.lntable) tr td {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
table.lntable {
|
||||
|
@ -86,6 +95,18 @@ table.lntable {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* Styling for footnotes. */
|
||||
/* ------------------------------------------------------------------------ */
|
||||
.footnotes ol {
|
||||
width: 55%;
|
||||
}
|
||||
.footnotes ol li p {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* Styling for maths. */
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
|
|
@ -18,10 +18,7 @@ footer.page-footer a {
|
|||
background: transparent;
|
||||
}
|
||||
footer.page-footer hr {
|
||||
text-align: left;
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
border-color: rgba(250, 250, 250, 0.25);
|
||||
}
|
||||
|
||||
footer.page-footer ul.page-footer-menu {
|
||||
|
|
3
assets/scss/vendor/tufte.scss
vendored
3
assets/scss/vendor/tufte.scss
vendored
|
@ -328,7 +328,8 @@ div.table-wrapper {
|
|||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
.code,
|
||||
kbd {
|
||||
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.6;
|
||||
|
|
Loading…
Reference in a new issue