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 {
|
||||
display: block;
|
||||
padding: 5px 0;
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
@media (-moz-touch-enabled: 1), (pointer: coarse) {
|
||||
.chapter li a {
|
||||
padding: 5px 0;
|
||||
}
|
||||
}
|
||||
.chapter li a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.chapter .spacer {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
margin: 10px 0px;
|
||||
margin: 5px 0px;
|
||||
}
|
||||
@media (-moz-touch-enabled: 1), (pointer: coarse) {
|
||||
.chapter .spacer {
|
||||
margin: 10px 0;
|
||||
}
|
||||
}
|
||||
.section {
|
||||
list-style: none outside none;
|
||||
|
|
|
@ -31,16 +31,18 @@
|
|||
|
||||
li a {
|
||||
display: block;
|
||||
padding: 5px 0
|
||||
padding: 0
|
||||
text-decoration: none
|
||||
|
||||
@media (-moz-touch-enabled: 1), (pointer: coarse) { padding: 5px 0; }
|
||||
&:hover { text-decoration: none }
|
||||
}
|
||||
|
||||
.spacer {
|
||||
width: 100%
|
||||
height: 3px
|
||||
margin: 10px 0px
|
||||
margin: 5px 0px
|
||||
@media (-moz-touch-enabled: 1), (pointer: coarse) { margin: 10px 0; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue