-
1
-
2
-
3
-
4
+
{% 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
deleted file mode 100755
index 8f22162..0000000
--- a/source/screens/demo/examples/ui/tui.njk
+++ /dev/null
@@ -1,17 +0,0 @@
----
-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 fb1bd80..b7ec209 160000
--- a/source/style/hippie-style
+++ b/source/style/hippie-style
@@ -1 +1 @@
-Subproject commit fb1bd808a0eac6b1031d1bf9f68487eb257053ff
+Subproject commit b7ec209761cac635ba8312dbb07bf831ebc32933
diff --git a/source/style/modules/ui/_drag_module.scss b/source/style/modules/ui/_drag_module.scss
index 83f1abb..a345922 100644
--- a/source/style/modules/ui/_drag_module.scss
+++ b/source/style/modules/ui/_drag_module.scss
@@ -1,8 +1,4 @@
#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
deleted file mode 100755
index a8e804d..0000000
--- a/source/style/modules/ui/_frame_module.scss
+++ /dev/null
@@ -1,134 +0,0 @@
-@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 42946e2..db795cd 100755
--- a/source/style/modules/ui/_new_module.scss
+++ b/source/style/modules/ui/_new_module.scss
@@ -2,11 +2,23 @@ $module_top_height: 32px;
$body_top_space: $module_top_height + $space_basic;
.body_new {
- @extend %flex-column;
+ @extend .body_ui;
+
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 {
@@ -14,9 +26,15 @@ $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";
@@ -74,7 +92,7 @@ $body_top_space: $module_top_height + $space_basic;
nav ul {
display: flex;
- margin: 0 0 0 16px;
+ margin-left: 16px;
}
.brand {
diff --git a/source/style/modules/ui/_settings_module.scss b/source/style/modules/ui/_settings_module.scss
new file mode 100755
index 0000000..a95c3bc
--- /dev/null
+++ b/source/style/modules/ui/_settings_module.scss
@@ -0,0 +1,57 @@
+@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 5a4998b..efe343b 100644
--- a/source/style/ui.scss
+++ b/source/style/ui.scss
@@ -22,6 +22,11 @@ $color_gui_back: $color_dark;
}
}
+.body_ui {
+ height: 100vh;
+ background-color: $color_gui_back;
+}
+
.step {
@extend %full_parent;
}
@@ -186,7 +191,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
new file mode 100755
index 0000000..73a8dd0
--- /dev/null
+++ b/source/templates/demo/_app.njk
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+ {% 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
deleted file mode 100755
index 3dcc729..0000000
--- a/source/templates/hippie/_app.njk
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
- {% 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
deleted file mode 100755
index 19a7504..0000000
--- a/source/templates/hippie/_app_frame.njk
+++ /dev/null
@@ -1,17 +0,0 @@
-
-{% 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
deleted file mode 100644
index 36a3b9e..0000000
--- a/source/templates/hippie/macros/_io.njk
+++ /dev/null
@@ -1,35 +0,0 @@
-{% macro frameHeader(title) %}
-
-
-
-
-{% endmacro %}
-
-{% macro frameFooter(title) %}
-
-{% endmacro %}
\ No newline at end of file