mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-11 04:18:47 +08:00
theme: fix chapter margins on big screens #315
This commit is contained in:
parent
4fa8856524
commit
d4724f50fa
@ -357,21 +357,24 @@ th {
|
|||||||
width: calc( 1300px - 300px - 2 * 3.25rem );
|
width: calc( 1300px - 300px - 2 * 3.25rem );
|
||||||
max-width: calc( 1300px - 300px - 2 * 3.25rem );
|
max-width: calc( 1300px - 300px - 2 * 3.25rem );
|
||||||
}
|
}
|
||||||
|
#body .narrow .flex-block-wrapper {
|
||||||
|
min-width: calc( 1300px - 300px - 2 * 9.75rem );
|
||||||
|
width: calc( 1300px - 300px - 2 * 9.75rem );
|
||||||
|
max-width: calc( 1300px - 300px - 2 * 9.75rem );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#body-inner.narrow {
|
#body-inner.narrow {
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
padding: 2rem 9.75rem;
|
padding: 2rem 9.75rem;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 59.938em) {
|
@media screen and (max-width: 59.938em) {
|
||||||
#body-inner.narrow {
|
#body-inner.narrow {
|
||||||
padding: 15px 6.5rem 15px 6.5rem;
|
padding: 15px 6.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 47.938em) {
|
@media screen and (max-width: 47.938em) {
|
||||||
#body-inner.narrow {
|
#body-inner.narrow {
|
||||||
padding: 5px 3.25rem 5px 3.25rem;
|
padding: 5px 3.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user