mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-13 22:12:44 +02:00
This commit is contained in:
parent
9d85328e76
commit
8049030489
4 changed files with 32 additions and 3 deletions
assets/scss
|
@ -3,8 +3,8 @@ $ht-code-border-radius: .4em;
|
|||
width: 50%;
|
||||
overflow-x: scroll;
|
||||
// border-radius: $ht-code-border-radius;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
margin-top: 1.4em;
|
||||
margin-bottom: 1.4em;
|
||||
margin-right: 2.5%;
|
||||
margin-left: 2.5%;
|
||||
-ms-overflow-style: none;
|
||||
|
|
21
assets/scss/vendor/tufte.scss
vendored
21
assets/scss/vendor/tufte.scss
vendored
|
@ -147,6 +147,10 @@ p {
|
|||
padding-right: 0;
|
||||
vertical-align: baseline;
|
||||
hyphens: auto;
|
||||
-webkit-hyphenate-limit-before: 3;
|
||||
-webkit-hyphenate-limit-after: 4;
|
||||
-ms-hyphenate-limit-chars: 10 3 4;
|
||||
hyphenate-limit-chars: 10 3 4;
|
||||
}
|
||||
|
||||
/* Chapter Epigraphs */
|
||||
|
@ -405,6 +409,20 @@ label.marginnote-ind {
|
|||
display: none;
|
||||
}
|
||||
|
||||
iframe.video {
|
||||
width: 55%;
|
||||
margin-top: 1.4em;
|
||||
margin-bottom: 1.4em;
|
||||
}
|
||||
|
||||
iframe.video--16x9 {
|
||||
aspect-ratio: 16/9;
|
||||
}
|
||||
|
||||
iframe.video--4x3 {
|
||||
aspect-ratio: 4/3;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
label.marginnote-ind {
|
||||
display: inline;
|
||||
|
@ -451,4 +469,7 @@ label.marginnote-ind {
|
|||
img {
|
||||
width: 100%;
|
||||
}
|
||||
iframe.video {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue