-
-
+
+
{% endblock %}
{%- block script %}
{{ super() }}
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/source/screens/demo/examples/ui/tui.njk b/source/screens/demo/examples/ui/tui.njk
new file mode 100755
index 0000000..8f22162
--- /dev/null
+++ b/source/screens/demo/examples/ui/tui.njk
@@ -0,0 +1,17 @@
+---
+title: TUI
+tags:
+ - ui
+---
+{% set pageId = page.fileSlug %}
+
+{% extends "hippie/_app_frame.njk" %}
+
+{% block title %}{{ title }}
+{% endblock %}
+
+{% block body %}
+ {{ io.frameHeader('title-bar') }}
+
+ {{ io.frameFooter('mode-bar') }}
+{% endblock %}
\ No newline at end of file
diff --git a/source/style/hippie-style b/source/style/hippie-style
index b7ec209..fb1bd80 160000
--- a/source/style/hippie-style
+++ b/source/style/hippie-style
@@ -1 +1 @@
-Subproject commit b7ec209761cac635ba8312dbb07bf831ebc32933
+Subproject commit fb1bd808a0eac6b1031d1bf9f68487eb257053ff
diff --git a/source/style/modules/ui/_drag_module.scss b/source/style/modules/ui/_drag_module.scss
index a345922..83f1abb 100644
--- a/source/style/modules/ui/_drag_module.scss
+++ b/source/style/modules/ui/_drag_module.scss
@@ -1,4 +1,8 @@
#space {
position: relative;
height: 100%;
+
+ .body_frame {
+ background-color: white;
+ }
}
\ No newline at end of file
diff --git a/source/style/modules/ui/_frame_module.scss b/source/style/modules/ui/_frame_module.scss
new file mode 100755
index 0000000..a8e804d
--- /dev/null
+++ b/source/style/modules/ui/_frame_module.scss
@@ -0,0 +1,134 @@
+@mixin nav-spacer($name, $size, $orientation) {
+ .spacer.#{$name} {
+ width: $size;
+ }
+}
+
+.body_frame {
+ @extend %flex-column;
+
+ background-color: $color_back_basic;
+
+ position: relative;
+ height: 100%;
+
+ header,
+ aside,
+ footer {
+ border: 1px solid transparent;
+ }
+
+ &>header {
+ background-color: rgba(0, 0, 0, .1);
+ }
+
+ main {
+ @extend %flex-row;
+
+ flex: 1;
+
+ // aside {
+ // background-color: rgba(255, 255, 255, .1);
+ // }
+
+ section {
+
+ &>header,
+ &>footer {
+ background-color: transparentize($color_back_io, .5);
+
+ &:hover {
+ background-color: $color_back_io;
+ }
+ }
+ }
+
+ section,
+ section>div {
+ flex: 1;
+ }
+
+ section {
+ @extend %flex-column;
+ gap: 0;
+ }
+ }
+}
+
+.body_cli {
+ @extend .body_frame;
+
+ background-color: black;
+}
+
+#cli {
+ @extend %flex-column;
+
+ background-color: black;
+
+ #line {
+ @extend %flex-row;
+ }
+
+ #prompt {
+ flex: 1;
+ }
+
+ pre {
+ margin: .5em 0;
+ color: white;
+ }
+
+ textarea {
+ resize: none;
+ max-height: 128px;
+ margin: $margin_io;
+ border: 0;
+ padding: $space_half;
+ // color: $color_text_io;
+ color: white;
+ // background-color: $color_back_io;
+ background-color: transparent;
+ line-height: 1.2;
+ }
+}
+
+
+
+#content {
+ background-color: $color_back_io;
+
+ &>table {
+ width: 100%;
+ margin: 0;
+ border: 0;
+
+ tr:hover td {
+ background-color: $color_highlight_basic;
+ }
+
+ th {
+ border: 1px solid $color_border_io;
+ }
+
+ td {
+ border-width: 0 1px;
+ border-style: solid;
+ border-color: $color_border_io;
+ }
+ }
+}
+
+
+
+.io {
+ .spacer {
+ margin: 0;
+ border: $border_dotted;
+ padding: 0;
+ opacity: .25;
+ }
+
+ @include nav-spacer('a', $space_double, false);
+ @include nav-spacer('b', $space_small, false);
+}
\ No newline at end of file
diff --git a/source/style/modules/ui/_new_module.scss b/source/style/modules/ui/_new_module.scss
index db795cd..42946e2 100755
--- a/source/style/modules/ui/_new_module.scss
+++ b/source/style/modules/ui/_new_module.scss
@@ -2,23 +2,11 @@ $module_top_height: 32px;
$body_top_space: $module_top_height + $space_basic;
.body_new {
- @extend .body_ui;
-
+ @extend %flex-column;
padding: $body_top_space $space_basic $space_basic;
}
-#frame {
- display: grid;
- height: 100%;
- // margin: $space_basic;
- // grid-template-columns: repeat(3, 1fr);
- grid-template-rows: auto 1fr;
- gap: $space_basic;
-}
-
.area {
- width: 100%;
- height: 100%;
transition: $transition_best;
&:hover {
@@ -26,15 +14,9 @@ $body_top_space: $module_top_height + $space_basic;
}
}
-.menu,
-#top {
- nav ul {
- margin: 0;
- }
-}
-
.grid {
display: grid;
+ flex: 1;
// grid-template-rows: repeat(2, 1fr);
// grid-template-columns: repeat(2, 1fr);
grid-template-areas: "a a";
@@ -92,7 +74,7 @@ $body_top_space: $module_top_height + $space_basic;
nav ul {
display: flex;
- margin-left: 16px;
+ margin: 0 0 0 16px;
}
.brand {
diff --git a/source/style/modules/ui/_settings_module.scss b/source/style/modules/ui/_settings_module.scss
deleted file mode 100755
index a95c3bc..0000000
--- a/source/style/modules/ui/_settings_module.scss
+++ /dev/null
@@ -1,57 +0,0 @@
-@mixin nav-spacer($name, $size, $orientation) {
- .spacer-#{$name} {
- width: $size;
- margin: 0;
- border: $border_dotted;
- opacity: .25;
- }
-}
-
-.body_setting {
- @extend .body_ui;
-
- background-color: $color_back_basic;
-}
-
-#frame {
- @extend %flex-column;
-
- position: relative;
- height: 100%;
-
- header,
- aside,
- footer {
- border: 1px solid transparent;
- }
-
- &>header {
- background-color: rgba(0, 0, 0, .1);
- }
-
- main {
- @extend %flex-row;
-
- flex: 1;
-
- aside {
- background-color: $color_brighter;
- }
-
- section {
- flex: 1;
- }
- }
-}
-
-.io {
- .spacer {
- width: $space_double;
- margin: 0;
- border: $border_dotted;
- opacity: .25;
- }
-
- @include nav-spacer('a', $space_double, false);
- @include nav-spacer('b', $space_small, false);
-}
\ No newline at end of file
diff --git a/source/style/ui.scss b/source/style/ui.scss
index efe343b..5a4998b 100644
--- a/source/style/ui.scss
+++ b/source/style/ui.scss
@@ -22,11 +22,6 @@ $color_gui_back: $color_dark;
}
}
-.body_ui {
- height: 100vh;
- background-color: $color_gui_back;
-}
-
.step {
@extend %full_parent;
}
@@ -191,7 +186,7 @@ $color_gui_back: $color_dark;
font-family: $family_text_mono;
}
+@import "modules/ui/frame_module";
@import "modules/ui/new_module";
-@import "modules/ui/settings_module";
@import "modules/ui/drag_module";
@import "modules/ui/form_module";
\ No newline at end of file
diff --git a/source/templates/demo/_app.njk b/source/templates/demo/_app.njk
deleted file mode 100755
index 73a8dd0..0000000
--- a/source/templates/demo/_app.njk
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- {% block head %}
-
{{ hippie.titlePrefix }}
- {%- block title %}{% endblock %}{{ hippie.titlePostfix }}
-
- {% block meta %}
- {% include "demo/partials/_meta.njk" %}
-
- {% endblock %}
-
- {% block links %}{% endblock %}
-
- {% endblock %}
-
-
-
- {% block body %}{% endblock %}
-
- {% block script %}
-
-
- {% endblock %}
-
-
\ No newline at end of file
diff --git a/source/templates/hippie/_app.njk b/source/templates/hippie/_app.njk
new file mode 100755
index 0000000..3dcc729
--- /dev/null
+++ b/source/templates/hippie/_app.njk
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+ {% block head %}
+
{{ hippie.titlePrefix }}
+ {%- block title %}{% endblock %}{{ hippie.titlePostfix }}
+
+ {% block meta %}
+ {% include "hippie/partials/_head_meta.njk" %}
+
+ {% endblock %}
+
+ {% block links %}{% endblock %}
+
+ {% endblock %}
+
+
+
+ {% block body %}{% endblock %}
+
+ {% block script %}
+
+
+
+
+
+ {% endblock %}
+
+
\ No newline at end of file
diff --git a/source/templates/hippie/_app_frame.njk b/source/templates/hippie/_app_frame.njk
new file mode 100755
index 0000000..19a7504
--- /dev/null
+++ b/source/templates/hippie/_app_frame.njk
@@ -0,0 +1,17 @@
+
+{% extends "hippie/_app.njk" %}
+{% import "hippie/macros/_io.njk" as io %}
+
+{% block head %}
+ {{ super() }}
+{% endblock %}
+
+{% block links %}
+ {{ super() }}
+
+
+{% endblock %}
+
+{% block script %}
+ {{ super() }}
+{% endblock %}
\ No newline at end of file
diff --git a/source/templates/hippie/macros/_io.njk b/source/templates/hippie/macros/_io.njk
new file mode 100644
index 0000000..36a3b9e
--- /dev/null
+++ b/source/templates/hippie/macros/_io.njk
@@ -0,0 +1,35 @@
+{% macro frameHeader(title) %}
+
+
+
+
+{% endmacro %}
+
+{% macro frameFooter(title) %}
+
+{% endmacro %}
\ No newline at end of file