Skip to content

Commit

Permalink
Fixes:oppia#5980: Makes line-spacing within a paragraph consistent (o…
Browse files Browse the repository at this point in the history
…ppia#5981)

* Fixed line-spacing with a paragraph

* Added comment to explain 1.846
  • Loading branch information
bansalnitish authored Dec 16, 2018
1 parent c74a73c commit e8e14d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions core/templates/dev/head/css/oppia.css
Original file line number Diff line number Diff line change
Expand Up @@ -1486,8 +1486,14 @@ pre.oppia-pre-wrapped-text {
line-height, margin-top and margin-bottom attributes)
*/

/* Line-height is set to 1.846 to ensure that the line-spacing inside
a paragraph is consistent both in the editor mode while editing and
after saving. The value 1.846 came from
/third_party/generated/css/third_party.css.
*/

.oppia-rte-editor > p {
line-height: 1.5;
line-height: 1.846;
margin-bottom: 18px;
margin-top: 18px;
}
Expand All @@ -1500,7 +1506,7 @@ pre.oppia-pre-wrapped-text {
word-spacing: 0;
}
.oppia-rte-content > div > p {
line-height: 1.5;
line-height: 1.846;
margin-bottom: 18px;
margin-top: 18px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
the same line-height, margin-top and margin-bottom attributes)
*/
.rte-viewer > p {
line-height: 28px;
line-height: 1.846;
margin-bottom: 18px;
margin-top: 18px;
}
Expand Down

0 comments on commit e8e14d5

Please sign in to comment.