Improved styling

This commit is contained in:
Peter Stuifzand 2019-08-25 14:45:43 +02:00
parent 52d057f2e3
commit b7eaf1cc5c
6 changed files with 3287 additions and 404 deletions

3602
editor/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,9 @@
{
"devDependencies": {
"@editorjs/attaches": "^1.0.1",
"clean-webpack-plugin": "^3.0.0",
"html-webpack-plugin": "^3.2.0",
"scss-loader": "0.0.1",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.7"
},
@ -15,9 +18,8 @@
"@editorjs/marker": "^1.2.1",
"@editorjs/table": "^1.2.0",
"axios": "^0.19.0",
"clean-webpack-plugin": "^3.0.0",
"bulma": "^0.7.5",
"css-loader": "^3.2.0",
"html-webpack-plugin": "^3.2.0",
"node-sass": "^4.12.0",
"sass-loader": "^7.3.1",
"style-loader": "^1.0.0",

View File

@ -13,7 +13,7 @@ import Image from '@editorjs/image';
import axios from 'axios';
import qs from 'querystring'
import './styles.css';
import './styles.scss';
function addSaver(editor, saveUrl, page, beforeSave) {
return {

View File

@ -1,18 +0,0 @@
#editor {
max-width: 650px;
margin: 0 auto;
}
#save-indicator {
position: fixed;
top: 0;
left: 0;
background: lightskyblue;
font-weight: bold;
color: white;
padding: 3px;
z-index: 50;
}
.hidden {
display: none;
}

58
editor/src/styles.scss Normal file
View File

@ -0,0 +1,58 @@
@import "~bulma";
#editor {
max-width: 650px;
margin: 0 auto;
}
#save-indicator {
position: fixed;
top: 0;
left: 0;
background: lightskyblue;
font-weight: bold;
color: white;
padding: 3px;
z-index: 50;
}
.hidden {
display: none;
}
.codex-editor .icon {
align-items: initial;
display: initial;
justify-content: initial;
height: initial;
width: initial;
}
.codex-editor h1.ce-header {
@extend .title;
@extend .title.is-1;
}
.codex-editor h2.ce-header {
@extend .title;
@extend .is-2;
}
.codex-editor h3.ce-header {
@extend .title;
@extend .is-3;
}
.codex-editor h4.ce-header {
@extend .title;
@extend .is-4;
}
.codex-editor h5.ce-header {
@extend .title;
@extend .is-5;
}
.codex-editor h6.ce-header {
@extend .title;
@extend .is-6;
}

View File

@ -1,6 +1,5 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
module.exports = {
@ -16,8 +15,8 @@ module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
test: /\.s?css$/,
use: ['style-loader', 'css-loader', 'sass-loader']
}
]
},