Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/prosemirror.scss29
1 files changed, 29 insertions, 0 deletions
diff --git a/css/prosemirror.scss b/css/prosemirror.scss
index 9b0f2ac9d..b5680aee1 100644
--- a/css/prosemirror.scss
+++ b/css/prosemirror.scss
@@ -252,6 +252,35 @@ div.ProseMirror {
}
}
+ // TODO: create new css variables to improve the theming capability.
+ table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ width: 100%;
+ table-layout: fixed;
+ white-space: normal; // force text to wrapping
+
+ td, th {
+ border: 1px solid var(--color-border);
+ color: var(--color-main-text);
+ padding: 0.5em 0.75em;
+ vertical-align: top;
+ max-width: 100%;
+ }
+ thead tr {
+ background-color: var(--color-background-darker);
+ th {
+ font-weight: bold;
+ border-color: var(--color-border-dark);
+ }
+ }
+ tbody tr {
+ background-color: var(--color-main-background);
+ &:hover, &:active, &:focus {
+ background-color: var(--color-background-dark);
+ }
+ }
+ }
}
.ProseMirror-focused .ProseMirror-gapcursor {