mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:21:31 +00:00
Design vscode-like menu for terminal and console switching
This commit is contained in:
parent
8fb0fc7cfc
commit
5bdf6e0d42
@ -21,6 +21,13 @@
|
||||
<app-ide></app-ide>
|
||||
</div>
|
||||
<div class="tfw-terminal">
|
||||
<div class="btn-group btn-group-sm flex-wrap tao-grid-center-left tfw-console-terminal-menu">
|
||||
<button class="tfw-console-terminal-menu-button"
|
||||
[class.selected]="terminalOrConsole === 'terminal'">TERMINAL</button>
|
||||
<button class="tfw-console-terminal-menu-button"
|
||||
[class.selected]="terminalOrConsole === 'console'">CONSOLE</button>
|
||||
</div>
|
||||
<hr>
|
||||
<app-terminal *ngIf="terminalOrConsole === 'terminal'"></app-terminal>
|
||||
<app-console *ngIf="terminalOrConsole === 'console'"></app-console>
|
||||
</div>
|
||||
|
@ -81,6 +81,26 @@
|
||||
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;
|
||||
}
|
||||
|
||||
.selected {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.deploy-blur {
|
||||
|
Loading…
Reference in New Issue
Block a user