Merge pull request #757 from sharelatex/as-rt-styling

Rich text styling
This commit is contained in:
Alberto Fernández-Capel 2018-07-16 10:10:49 +01:00 committed by GitHub
commit f08b64eeac

View file

@ -1,12 +1,20 @@
@rt-font-family: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif;
// @rt-font-family-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
@rt-font-family-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
.rich-text .CodeMirror {
font-family: @rt-font-family;
font-family: @rt-font-family-serif;
font-size: 1.15em;
pre {
font-family: @rt-font-family;
font-family: @rt-font-family-serif;
}
.CodeMirror-line {
// Add horizontal padding, to emulate a manuscript more closely
padding: 0 8%;
}
.CodeMirror-linenumber {
font-size: 0.8em;
}
// TODO: Change prefix away from wl- ?
@ -108,7 +116,7 @@
.wl-figure-wrap {
padding: 10px 0;
background-color: #f5f5f5;
box-shadow: 2px 2px 2px #DFDFDF;
box-shadow: 1.3px 2px 2px #DFDFDF;
width: 96%;
margin: 0 auto;
text-align: center;