Improved styling
This commit is contained in:
parent
52d057f2e3
commit
b7eaf1cc5c
3602
editor/package-lock.json
generated
3602
editor/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,9 @@
|
||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@editorjs/attaches": "^1.0.1",
|
"@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": "^4.39.2",
|
||||||
"webpack-cli": "^3.3.7"
|
"webpack-cli": "^3.3.7"
|
||||||
},
|
},
|
||||||
|
@ -15,9 +18,8 @@
|
||||||
"@editorjs/marker": "^1.2.1",
|
"@editorjs/marker": "^1.2.1",
|
||||||
"@editorjs/table": "^1.2.0",
|
"@editorjs/table": "^1.2.0",
|
||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"bulma": "^0.7.5",
|
||||||
"css-loader": "^3.2.0",
|
"css-loader": "^3.2.0",
|
||||||
"html-webpack-plugin": "^3.2.0",
|
|
||||||
"node-sass": "^4.12.0",
|
"node-sass": "^4.12.0",
|
||||||
"sass-loader": "^7.3.1",
|
"sass-loader": "^7.3.1",
|
||||||
"style-loader": "^1.0.0",
|
"style-loader": "^1.0.0",
|
||||||
|
|
|
@ -13,7 +13,7 @@ import Image from '@editorjs/image';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import qs from 'querystring'
|
import qs from 'querystring'
|
||||||
|
|
||||||
import './styles.css';
|
import './styles.scss';
|
||||||
|
|
||||||
function addSaver(editor, saveUrl, page, beforeSave) {
|
function addSaver(editor, saveUrl, page, beforeSave) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -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
58
editor/src/styles.scss
Normal 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;
|
||||||
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
||||||
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
|
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -16,8 +15,8 @@ module.exports = {
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.s?css$/,
|
||||||
use: ['style-loader', 'css-loader']
|
use: ['style-loader', 'css-loader', 'sass-loader']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user