forked from mirrors/hugo-tufte
Merge pull request #45 from Erik-J-D/master
fix for mobile highlighting width
This commit is contained in:
commit
47b96b39d4
1 changed files with 8 additions and 2 deletions
|
@ -3,7 +3,7 @@ $ht-code-border-radius: .4em;
|
||||||
width: 55%;
|
width: 55%;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
border-radius: $ht-code-border-radius;
|
border-radius: $ht-code-border-radius;
|
||||||
|
|
||||||
&>div.chroma>table.lntable{
|
&>div.chroma>table.lntable{
|
||||||
margin: $ht-code-border-radius 0 $ht-code-border-radius 0;
|
margin: $ht-code-border-radius 0 $ht-code-border-radius 0;
|
||||||
& td:first-of-type {
|
& td:first-of-type {
|
||||||
|
@ -28,7 +28,7 @@ $ht-code-border-radius: .4em;
|
||||||
// border-radius: $ht-code-border-radius / 2;
|
// border-radius: $ht-code-border-radius / 2;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
border-radius: $ht-code-border-radius;
|
border-radius: $ht-code-border-radius;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
@ -39,6 +39,12 @@ $ht-code-border-radius: .4em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 760px) {
|
||||||
|
.highlight {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.highlight .lntable {
|
.highlight .lntable {
|
||||||
overflow: initial;
|
overflow: initial;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue