Skip to content
Snippets Groups Projects
Commit ee714b5a authored by chris's avatar chris
Browse files

image and note css

parent f283c11c
No related branches found
No related tags found
1 merge request!372Surface styles
...@@ -13,7 +13,6 @@ const fontWriting = css` ...@@ -13,7 +13,6 @@ const fontWriting = css`
export default css` export default css`
.ProseMirror { .ProseMirror {
background: white; background: white;
counter-reset: footnote;
line-height: 1.6; line-height: 1.6;
${fontWriting} ${fontWriting}
...@@ -36,31 +35,6 @@ export default css` ...@@ -36,31 +35,6 @@ export default css`
} }
} }
.ProseMirror .wax-selection-marker {
background-color: ${th('colorSelection')};
opacity: 0.8;
}
.ProseMirror footnote {
font-variant-numeric: lining-nums proportional-nums;
display: inline-block;
text-align: center;
width: 17px;
height: 17px;
background: white;
border-bottom: 2px solid black;
color: black;
cursor: pointer;
}
.ProseMirror footnote::after {
content: counter(footnote);
position: relative;
bottom: 2px;
font-size: 16px;
counter-increment: footnote;
}
hr { hr {
padding: 2px 10px; padding: 2px 10px;
border: none; border: none;
...@@ -87,38 +61,6 @@ export default css` ...@@ -87,38 +61,6 @@ export default css`
margin-right: 0; margin-right: 0;
} }
figure {
display: table;
margin-left: auto;
margin-right: auto;
word-break: break-word;
img {
cursor: default;
height: auto;
max-width: 100%;
width: auto;
}
figcaption {
background: #e2ebff;
caption-side: bottom;
display: table-caption;
max-width: 100%;
min-height: 20px;
padding: 4px;
width: auto;
&:focus {
outline: none;
}
&:before {
content: 'Caption: ';
font-weight: bold;
}
}
}
sup, sup,
sub { sub {
line-height: 0; line-height: 0;
......
...@@ -38,11 +38,6 @@ export default css` ...@@ -38,11 +38,6 @@ export default css`
} }
} }
.ProseMirror .wax-selection-marker {
background-color: ${th('colorSelection')};
opacity: 0.8;
}
ul, ul,
ol { ol {
padding-left: 30px; padding-left: 30px;
...@@ -55,38 +50,6 @@ export default css` ...@@ -55,38 +50,6 @@ export default css`
padding-left: 1em; padding-left: 1em;
} }
figure {
display: table;
margin-left: auto;
margin-right: auto;
word-break: break-word;
img {
cursor: default;
height: auto;
max-width: 100%;
width: auto;
}
figcaption {
background: #e2ebff;
caption-side: bottom;
display: table-caption;
max-width: 100%;
min-height: 20px;
padding: 4px;
width: auto;
&:focus {
outline: none;
}
&:before {
content: 'Caption: ';
font-weight: bold;
}
}
}
sup, sup,
sub { sub {
line-height: 0; line-height: 0;
......
...@@ -202,3 +202,9 @@ img.ProseMirror-separator { ...@@ -202,3 +202,9 @@ img.ProseMirror-separator {
.transform-icon { .transform-icon {
transform: rotate(40deg); transform: rotate(40deg);
} }
/* Wax Selection Marker */
.ProseMirror .wax-selection-marker {
background-color: #C5D7FE;
opacity: 0.8;
}
\ No newline at end of file
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
import { PlaceHolderPlugin, captionPlugin } from 'wax-prosemirror-plugins'; import { PlaceHolderPlugin, captionPlugin } from 'wax-prosemirror-plugins';
import Service from '../Service'; import Service from '../Service';
import Image from './Image'; import Image from './Image';
import './image.css';
class ImageService extends Service { class ImageService extends Service {
name = 'ImageService'; name = 'ImageService';
...@@ -31,11 +32,12 @@ class ImageService extends Service { ...@@ -31,11 +32,12 @@ class ImageService extends Service {
}, },
{ toWaxSchema: true }, { toWaxSchema: true },
); );
createNode({ createNode(
figcaption: figureCaptionNode, {
} figcaption: figureCaptionNode,
// , },
// { toWaxSchema: true }, // ,
// { toWaxSchema: true },
); );
} }
} }
......
figure {
display: table;
margin-left: auto;
margin-right: auto;
word-break: break-word;
}
figure img {
cursor: default;
height: auto;
max-width: 100%;
width: auto;
}
figcaption {
background: #e2ebff;
caption-side: bottom;
display: table-caption;
max-width: 100%;
min-height: 20px;
padding: 4px;
width: auto;
}
figcaption:focus {
outline: none;
}
figcaption:before {
content: 'Caption: ';
font-weight: bold;
}
\ No newline at end of file
...@@ -2,6 +2,7 @@ import { footNoteNode } from 'wax-prosemirror-schema'; ...@@ -2,6 +2,7 @@ import { footNoteNode } from 'wax-prosemirror-schema';
import Service from '../Service'; import Service from '../Service';
import Note from './Note'; import Note from './Note';
import NoteComponent from './NoteComponent'; import NoteComponent from './NoteComponent';
import './note.css';
class NoteService extends Service { class NoteService extends Service {
name = 'NoteService'; name = 'NoteService';
......
/* FootNote */
.ProseMirror {
counter-reset: footnote;
}
.ProseMirror footnote {
font-variant-numeric: lining-nums proportional-nums;
display: inline-block;
text-align: center;
width: 17px;
height: 17px;
background: white;
border-bottom: 2px solid black;
color: black;
cursor: pointer;
}
.ProseMirror footnote::after {
content: counter(footnote);
position: relative;
bottom: 2px;
font-size: 16px;
counter-increment: footnote;
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment