@manuscripts/body-editor 1.6.15 → 1.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/styles/Editor.css +18 -8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "1.6.15",
4
+ "version": "1.6.16",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -126,4 +126,4 @@
126
126
  "resolutions": {
127
127
  "@types/react": "^17.0.2"
128
128
  }
129
- }
129
+ }
package/styles/Editor.css CHANGED
@@ -941,9 +941,6 @@
941
941
 
942
942
  .ProseMirror .table-footer {
943
943
  font-size: 14px;
944
- }
945
-
946
- .ProseMirror .table-footer .footnote-element:first-child {
947
944
  padding-top: 8px;
948
945
  }
949
946
 
@@ -969,17 +966,31 @@
969
966
  margin-right: 4px;
970
967
  }
971
968
 
972
- .ProseMirror .table-footer .footnote-element p {
969
+ .ProseMirror .table-footer p {
973
970
  margin-bottom: 0px;
974
971
  margin-top: 0px;
975
972
  }
976
973
 
974
+ .ProseMirror .table-footer .footnote-selected, .table-footer > div:has(> p.footnote-selected) > p {
975
+ background-color: #f2fbfc;
976
+ padding: 4px;
977
+ }
978
+ .table-footer > div > p {
979
+ padding-bottom: 10px;
980
+ }
977
981
  .ProseMirror .table-footer .footnote-element .footnote-selected {
978
- padding: 8px 0 8px 0;
979
982
  border: 1px solid #bce7f6;
980
- background-color: #f2fbfc;
981
983
  }
982
-
984
+ .table-footer > div:has(> p.footnote-selected) > p {
985
+ border-left: 1px solid #bce7f6;
986
+ border-right: 1px solid #bce7f6;
987
+ }
988
+ .table-footer > div:has(> p.footnote-selected) > p:first-child {
989
+ border-top: 1px solid #bce7f6;
990
+ }
991
+ .table-footer > div:has(> p.footnote-selected) > p:last-child {
992
+ border-bottom: 1px solid #bce7f6;
993
+ }
983
994
  .ProseMirror .footnote-label {
984
995
  vertical-align: super;
985
996
  font-size: 75%;
@@ -1006,4 +1017,3 @@
1006
1017
  div[style*="background-color: rgba(249, 2, 2, 0.53)"] {
1007
1018
  background-color: #ffe08b !important;
1008
1019
  }
1009
-