feat(theme/stylus/sidebar): Reduce padding on non-touch devices (#615)
Closes #594.
This commit is contained in:
parent
990daceed5
commit
07551760c9
|
@ -94,16 +94,26 @@ table thead td {
|
||||||
}
|
}
|
||||||
.chapter li a {
|
.chapter li a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 5px 0;
|
padding: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@media (-moz-touch-enabled: 1), (pointer: coarse) {
|
||||||
|
.chapter li a {
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.chapter li a:hover {
|
.chapter li a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.chapter .spacer {
|
.chapter .spacer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
margin: 10px 0px;
|
margin: 5px 0px;
|
||||||
|
}
|
||||||
|
@media (-moz-touch-enabled: 1), (pointer: coarse) {
|
||||||
|
.chapter .spacer {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.section {
|
.section {
|
||||||
list-style: none outside none;
|
list-style: none outside none;
|
||||||
|
|
|
@ -31,16 +31,18 @@
|
||||||
|
|
||||||
li a {
|
li a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 5px 0
|
padding: 0
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
|
|
||||||
|
@media (-moz-touch-enabled: 1), (pointer: coarse) { padding: 5px 0; }
|
||||||
&:hover { text-decoration: none }
|
&:hover { text-decoration: none }
|
||||||
}
|
}
|
||||||
|
|
||||||
.spacer {
|
.spacer {
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 3px
|
height: 3px
|
||||||
margin: 10px 0px
|
margin: 5px 0px
|
||||||
|
@media (-moz-touch-enabled: 1), (pointer: coarse) { margin: 10px 0; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue