scss: improve the `verse` text layout
- Increase space between paragraph on large screens, except for the last paragraph. - Add a bigger left margin on large screens. Co-Authored-by: iGor milhit <igor@milhit.ch>pull/37/head
parent
0c21f00b67
commit
989343ea59
|
@ -6,9 +6,15 @@
|
|||
|
||||
.verse {
|
||||
line-height: $line-height-verse;
|
||||
@include breakpoint(laptop) {
|
||||
margin-left: 3rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1rem;
|
||||
p:not(:last-child) {
|
||||
margin-bottom: $verse-p-bottom-space;
|
||||
@include breakpoint(laptop) {
|
||||
margin-bottom: $verse-p-bottom-space-larger;
|
||||
}
|
||||
}
|
||||
|
||||
br {
|
||||
|
|
|
@ -18,6 +18,8 @@ $font-size-base: 1.25rem !default; // 25 px
|
|||
$font-size-small: .9rem; // 18 px
|
||||
$line-height-base: 1.4;
|
||||
$line-height-verse: 1.3;
|
||||
$verse-p-bottom-space: 2rem;
|
||||
$verse-p-bottom-space-larger: 3rem;
|
||||
|
||||
|
||||
/////////////////////
|
||||
|
|
Loading…
Reference in New Issue