Skip to content

Commit

Permalink
Improve codeflask HTML syntax highlighting colours.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Sep 19, 2021
1 parent 4b13f0c commit 956e990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions frontend/src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import 'quill/dist/quill.core.css';
import { quillEditor, Quill } from 'vue-quill-editor';
import CodeFlask from 'codeflask';
import TurndownService from 'turndown';
import { colors } from '../constants';
import CampaignPreview from './CampaignPreview.vue';
import Media from '../views/Media.vue';
Expand Down Expand Up @@ -242,6 +243,9 @@ export default {
<style>
.codeflask .codeflask__flatten { font-size: 15px; }
.codeflask .codeflask__lines { background: #fafafa; z-index: 10; }
.codeflask .token.tag { font-weight: bold; }
.codeflask .token.attr-name { color: #111; }
.codeflask .token.attr-value { color: ${colors.primary} !important; }
</style>
<div id="area"></area>
`;
Expand Down
2 changes: 1 addition & 1 deletion static/public/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ input[type="text"], input[type="email"], select {

.button {
background: #0055d4;
padding: 10px 30px;
padding: 15px 30px;
border-radius: 3px;
border: 0;
cursor: pointer;
Expand Down

0 comments on commit 956e990

Please sign in to comment.