Browse Source

editor style now roughly doing the right thing

master
phryk 1 week ago
parent
commit
b1e9cf6211
3 changed files with 16 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +14
    -1
      poobrains/themes/default/editor.scss
  3. +1
    -1
      poobrains/themes/default/form/fieldset.jinja

+ 1
- 1
README.md View File

@@ -68,7 +68,7 @@ completely implemented as client-side scripts (often loaded from third parties),
extremely rudimentary or offer very poor usability – poobrains aims to avoid
all three of those properties and as such comes with its own data visualization
system to output partially interactive visualizations combining SVG, CSS and
HTML. For a sample of what it can currently do, see attachment 'LinePlot.svg'.
HTML.

In tandem with this works the Data Editor, which harnesses poobrains' powerful,
custom-built form system to enable collection and analysis of data.


+ 14
- 1
poobrains/themes/default/editor.scss View File

@@ -3,7 +3,6 @@ body.content-type-dataeditor {
height: 100vh;
max-height: 100vh;
max-width: 100%;
overflow: hidden;

/* elements to completely hide */
& > section.dashbar, /* user dashbar */
@@ -72,6 +71,10 @@ body.content-type-dataeditor {

height: calc(100vh - 3rem); /* tab-nav is 3rem high */

&.idx-0 { /* first tab of display is always the plot (if any) has sizing/overflow issues */
overflow: hidden;
}

fieldset {
margin: 0;
padding: 0;
@@ -97,6 +100,11 @@ body.content-type-dataeditor {
height: 100%;
}
}

&.table-wrapper {
height: 100%;
background: $color_background_dark;
}
}
}
}
@@ -107,6 +115,11 @@ body.content-type-dataeditor {
flex-basis: 30rem;
flex-shrink: 1;
flex-grow: 1;
section.tab {
background: $color_background_dark;
height: calc(100vh - 3rem);
}
}

.dataeditor-plot {


+ 1
- 1
poobrains/themes/default/form/fieldset.jinja View File

@@ -1,7 +1,7 @@
{% if config.DEBUG %}<span class="debug-hint" title="{{ self._TemplateReference__context.name }}">?</span>{% endif %}
{% block pre %}{% if content.pre %}{{ content.pre.render() }}{% endif %}{% endblock %}

<fieldset name="{{ content.prefix}}.{{ content.name }}">
<fieldset class="{{ content.name }}">

<header><h4>{{ content.title }}</h4></header>



Loading…
Cancel
Save