Merge pull request #89 from medialab-prado/66-sync-scroll-in-markdown-editor

Sync scroll in markdown editor
This commit is contained in:
Fernando Blat
2017-01-23 15:28:30 +01:00
committed by GitHub
2 changed files with 10 additions and 3 deletions

View File

@@ -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')

View File

@@ -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;
}
}