Merge pull request #89 from medialab-prado/66-sync-scroll-in-markdown-editor
Sync scroll in markdown editor
This commit is contained in:
@@ -20,6 +20,9 @@ App.MarkdownEditor =
|
||||
$('.legislation-draft-versions-edit .warning').show()
|
||||
return
|
||||
|
||||
$(this).find('textarea').on 'scroll', ->
|
||||
$('#markdown-preview').scrollTop($(this).scrollTop())
|
||||
|
||||
$(this).find('.fullscreen-toggle').on 'click', ->
|
||||
$('.markdown-editor').toggleClass('fullscreen')
|
||||
$('.fullscreen-container').toggleClass('medium-8', 'medium-12')
|
||||
|
||||
@@ -634,7 +634,7 @@ table.investment-projects-summary {
|
||||
}
|
||||
|
||||
#legislation_draft_version_body {
|
||||
font-family: $font-family-monospace;
|
||||
font-family: $font-family-serif;
|
||||
background: #f5f5f5;
|
||||
height: 16em;
|
||||
|
||||
@@ -651,10 +651,14 @@ table.investment-projects-summary {
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: $font-family-serif !important;
|
||||
font-size: 1rem;
|
||||
line-height: 1.625rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
border-bottom: 1px solid $text-medium;
|
||||
p {
|
||||
font-size: 1rem;
|
||||
line-height: 1.625rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user