Skip to content

Commit

Permalink
Jero/hotfix/editor font (#894)
Browse files Browse the repository at this point in the history
* feat (RichEditor) add default font-family

* fix (long-description mixin) remove colon

* feat (long-description mixin) add table
  • Loading branch information
aneurysmjs authored and levenecav committed Jan 22, 2019
1 parent ddeb345 commit 626cdfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/components/RichEditor/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const setup = editor => {
// set the editor font size
editor.on('init', () => {
/* eslint-disable no-param-reassign */
editor.getBody().style.fontFamily =
'"Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif';
editor.getBody().style.fontSize = '16px';
editor.getBody().style.color = '#505050';
});
Expand Down
6 changes: 3 additions & 3 deletions src/styles/mixins/_long-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $table-cell-padding: .75rem !default;
@mixin long-description() {
@media (max-width: $md) {
p {
img: {
img {
width: 100%;
height: auto;
}
Expand Down Expand Up @@ -36,8 +36,8 @@ $table-cell-padding: .75rem !default;
}
}

.table {
width: 100%;
table {
// width: 100%;
margin-bottom: 1rem;
color: #212529;
background-color: transparent; // Reset for nesting within parents with `background-color`.
Expand Down

0 comments on commit 626cdfb

Please sign in to comment.