From f0ecdd31f29f1cf19dce92dea83ac0691a7358e7 Mon Sep 17 00:00:00 2001 From: Gabor PEK Date: Wed, 14 Mar 2018 16:43:44 +0100 Subject: [PATCH] Add next button for instructions and finally the terminal is responsive --- src/app/dashboard/dashboard.component.scss | 15 +++++---------- src/app/messages/messages.component.html | 5 ++++- src/app/messages/messages.component.scss | 22 +++++++++++++--------- src/app/terminal/terminal.component.html | 4 +--- src/app/terminal/terminal.component.scss | 12 ++++++++++-- src/assets/scss/mixins/_layout.scss | 15 +++------------ src/assets/scss/shared/_buttons.scss | 9 ++++++++- 7 files changed, 44 insertions(+), 38 deletions(-) diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss index e53584c..e166d97 100755 --- a/src/app/dashboard/dashboard.component.scss +++ b/src/app/dashboard/dashboard.component.scss @@ -62,19 +62,14 @@ } .tfw-terminal { - // overflow-y: hidden; + overflow-y: hidden; border: 1px solid $tao-plum-100; - border-left: 0; border-bottom: 0; - background-color: black; - } - - .tfw-terminal-footer { background-color: $tao-gray-800; - border: 1px solid $tao-plum-100; - border-left: 0; - border-top: 0; - border-bottom: 0; + + @if ($layout-template != 'vraw') { + border-left: 0; + } } } diff --git a/src/app/messages/messages.component.html b/src/app/messages/messages.component.html index 8cad97b..893907b 100755 --- a/src/app/messages/messages.component.html +++ b/src/app/messages/messages.component.html @@ -1,5 +1,8 @@
-
Instructions
+
+
Instructions
+
+
diff --git a/src/app/messages/messages.component.scss b/src/app/messages/messages.component.scss index 08869e0..2a3aedd 100755 --- a/src/app/messages/messages.component.scss +++ b/src/app/messages/messages.component.scss @@ -1,17 +1,21 @@ @import "../../assets/scss/variables.scss"; -.tfw-grid-header-messages { - - display: grid; - grid-template-rows: $tao-navbar-height auto; -} - .tfw-messages-main { - h5 { + + + .tfw-grid-messages-header { + display: grid; + grid-template-columns: 1fr 1fr; margin-bottom: $small; - color: $tao-blue-500; - font-weight: 500; + + + span { + color: $tao-blue-500; + font-weight: 500; + font-size: $font-size-h3; + } } + } .tfw-grid-message { diff --git a/src/app/terminal/terminal.component.html b/src/app/terminal/terminal.component.html index df8f55b..26e795b 100644 --- a/src/app/terminal/terminal.component.html +++ b/src/app/terminal/terminal.component.html @@ -1,3 +1 @@ -
-
-
+
diff --git a/src/app/terminal/terminal.component.scss b/src/app/terminal/terminal.component.scss index 86a03c2..43d03af 100644 --- a/src/app/terminal/terminal.component.scss +++ b/src/app/terminal/terminal.component.scss @@ -1,6 +1,14 @@ @import "../../assets/scss/mixins/layout.scss"; +@import "../../app/dashboard/dashboard.component.scss"; -.tfw-xterm-container { - @include set-component-size('terminal'); + + +.tfw-xterm { + max-height: 100%; + height: 100%; + min-height: 100%; } + + + diff --git a/src/assets/scss/mixins/_layout.scss b/src/assets/scss/mixins/_layout.scss index ba3e40c..2850480 100644 --- a/src/assets/scss/mixins/_layout.scss +++ b/src/assets/scss/mixins/_layout.scss @@ -5,8 +5,7 @@ $default-layout: ( 'header': (1, 2, 1, 2), 'messages': (1, 2, 2, 10), 'webide': (4,$grid-rows-count+1, 1, $grid-rows-count+1), - 'terminal': (1, 4, 10, $grid-rows-count), - 'terminal-footer': (1, 4, $grid-rows-count, -1), + 'terminal': (1, 4, 10, $grid-rows-count+1), 'web': (2, 4, 1, 10) ); @@ -14,8 +13,7 @@ $vraw-layout: ( 'header': (1, 2, 1, 2), 'messages': (1, 2, 2,$grid-rows-count+1), 'webide': (4,$grid-rows-count+1, 1,$grid-rows-count+1), - 'terminal': (2, 4, 1,$grid-rows-count), - 'terminal-footer': (2, 4, $grid-rows-count, -1), + 'terminal': (2, 4, 1,$grid-rows-count+1), 'web': (), ); @@ -23,8 +21,7 @@ $hraw-layout: ( 'header': (1, 2, 1,$grid-rows-count+1), 'messages': (1, 2, 2,$grid-rows-count+1), 'webide': (2,$grid-rows-count+1, 1, 10), - 'terminal': (2, $grid-rows-count+1, 10, $grid-rows-count), - 'terminal-footer': (2, $grid-rows-count+1, $grid-rows-count, -1), + 'terminal': (2, $grid-rows-count+1, 10, $grid-rows-count+1), 'web': (), ); @@ -62,10 +59,4 @@ $layout: ( min-width: #{$columns-count / $grid-columns-count * 100}vw; min-height: #{$rows-count / $grid-rows-count * 100}vh; - - width: #{$columns-count / $grid-columns-count * 100}vw; - height: #{$rows-count / $grid-rows-count * 100}vh; - - max-width: #{$columns-count / $grid-columns-count * 100}vw; - max-height: #{$rows-count / $grid-rows-count * 100}vh; } diff --git a/src/assets/scss/shared/_buttons.scss b/src/assets/scss/shared/_buttons.scss index 52742df..d995931 100644 --- a/src/assets/scss/shared/_buttons.scss +++ b/src/assets/scss/shared/_buttons.scss @@ -24,11 +24,18 @@ padding: 8px 24px; } - &:hover { + &:hover + { + background: initial; background-color: transparent; color: $tao-blue-500; box-shadow: inset 0 0 0 1px $tao-blue-500; } + + &:active { + + } + } .tao-btn-rainbow {