// Copyright (C) 2018 Avatao.com Innovative Learning Kft. // All Rights Reserved. See LICENSE file for details. @import "../../assets/scss/variables.scss"; @import "../../assets/scss/mixins/layout.scss"; @mixin set-tfw-web($layouts-key) { .tfw-web { .iframe-container { display: flex; overflow: hidden; @include set-component-size($layouts-key, 'web'); } .iframe { flex-grow: 1; border: none; margin: 0; padding: $small; } } } .tfw-grid-main-components { display: grid; width: 100vw; height: 100vh; justify-content: center; align-content: center; grid-template-columns: repeat($grid-columns-count, 1fr); grid-template-rows: repeat($grid-rows-count, 1fr); .tfw-header, .tfw-messages { // Check whether the layout contains a web component div[class*="web"] & { border: 2px solid $tao-gray-100; border-top: 0; border-left: 0; border-bottom: 0; } } .tfw-header { padding: $small; background-color: $tao-gray-50; } .tfw-messages { padding: $space; padding-top: $hair; background-color: $tao-gray-50; overflow-y: scroll; max-height: 95vmin; div[class="terminal-ide-web"] & { max-height: 55vmin; } } .tfw-ide { background-color: $tao-plum-900; } .tfw-sidebar { background-color: $tao-gray-50; display: flex; flex-direction: column; justify-content: space-between; padding-top: 5vh; align-items: center; border-left: 1px solid $tao-gray-400; z-index: 999; } .tfw-terminal { overflow-y: hidden; background-color: $tao-gray-800; padding-bottom: 2.2em; div[class*="web"] & { border-top: 1px solid $tao-plum-100; } } hr { display: block; height: 1px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 2px 0 7px 0; padding: 0; } .tfw-console-terminal-menu-button { font-size: $font-size-small; background-color: transparent; border: none; color: gray; cursor: pointer; } .selected { color: white; cursor: default; } } .deploy-blur { filter: blur(3px); } .terminal-ide-web { @include set-tfw-web('terminal-ide-web'); @include position-grid-items(map_get($layouts, 'terminal-ide-web'),'.tfw-'); } .terminal-web { @include set-tfw-web('terminal-web'); @include position-grid-items(map_get($layouts,'terminal-web'),'.tfw-'); } .terminal-ide-vertical { @include position-grid-items(map_get($layouts,'terminal-ide-vertical'),'.tfw-'); } .terminal-ide-horizontal { @include position-grid-items(map_get($layouts,'terminal-ide-horizontal'),'.tfw-'); } .ide-web-vertical { @include set-tfw-web('ide-web-vertical'); @include position-grid-items(map_get($layouts,'ide-web-vertical'),'.tfw-'); } .terminal-only { @include position-grid-items(map_get($layouts,'terminal-only'),'.tfw-'); } .ide-only { @include position-grid-items(map_get($layouts,'ide-only'),'.tfw-'); } .web-only { @include set-tfw-web('web-only'); @include position-grid-items(map_get($layouts,'web-only'),'.tfw-'); }