mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 05:11:56 +00:00
Change terminal colors
This commit is contained in:
parent
ba2e2ace6d
commit
a7dbd15370
@ -13,4 +13,5 @@
|
|||||||
<div class="tfw-terminal">
|
<div class="tfw-terminal">
|
||||||
<app-terminal></app-terminal>
|
<app-terminal></app-terminal>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tfw-terminal-footer"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
.tfw-messages {
|
.tfw-messages {
|
||||||
padding: $space;
|
padding: $space;
|
||||||
|
padding-top: $hair;
|
||||||
background-color: $tao-gray-50;
|
background-color: $tao-gray-50;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
@ -61,12 +62,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tfw-terminal {
|
.tfw-terminal {
|
||||||
border: 1px solid $tao-gray-500;
|
border: 2px solid $tao-plum-100;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tfw-terminal-footer {
|
||||||
|
background-color: $tao-phtalo-900;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.deploy-blur {
|
.deploy-blur {
|
||||||
|
@ -11,7 +11,32 @@ export class TerminadoService {
|
|||||||
constructor() {
|
constructor() {
|
||||||
Terminal.applyAddon(fit);
|
Terminal.applyAddon(fit);
|
||||||
Terminal.applyAddon(terminado);
|
Terminal.applyAddon(terminado);
|
||||||
this.xterm = new Terminal();
|
this.xterm = new Terminal({
|
||||||
|
theme: {
|
||||||
|
foreground: '#ffffff',
|
||||||
|
background: '#002426', // $tao-phtalo-900
|
||||||
|
cursor: '#ffffff',
|
||||||
|
selection: 'rgba(255, 255, 255, 0.3)',
|
||||||
|
black: '#000000',
|
||||||
|
red: '#FF5252', // $tao-red-500
|
||||||
|
brightRed: '#FF7171', // $tao-red-400
|
||||||
|
green: '#2fd19f', // $tao-bright-green-500
|
||||||
|
brightGreen: '#2fd19f', // $tao-bright-green-500
|
||||||
|
brightYellow: '#FFD283', // $tao-warm-yellow-300
|
||||||
|
yellow: '#FFB83B', // $tao-warm-yellow-500
|
||||||
|
magenta: '#FF8FC6', // $tao-pink-200
|
||||||
|
brightMagenta: '#FF8FC6', // $tao-pink-200
|
||||||
|
cyan: '#277EEC', // $tao-blue-500
|
||||||
|
blue: '#277EEC', // $tao-blue-500
|
||||||
|
brightCyan: '#42B7DF', // $tao-sky-400
|
||||||
|
brightBlue: '#19A7D8', // $tao-sky-500
|
||||||
|
white: '#FAFAFA', // $tao-gray-50
|
||||||
|
brightBlack: '#808080',
|
||||||
|
brightWhite: '#ffffff'
|
||||||
|
},
|
||||||
|
fontSize: 14
|
||||||
|
});
|
||||||
|
|
||||||
const wsproto = (location.protocol === 'https:') ? 'wss://' : 'ws://';
|
const wsproto = (location.protocol === 'https:') ? 'wss://' : 'ws://';
|
||||||
this.ws = new WebSocket(wsproto + window.location.host + '/terminal');
|
this.ws = new WebSocket(wsproto + window.location.host + '/terminal');
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
<div #xterm class="tfw-xterm"></div>
|
<div #xterm class="tfw-xterm" (window:resize)="fit()"></div>
|
||||||
|
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
|
|
||||||
.tfw-xterm {
|
.tfw-xterm {
|
||||||
.xterm {
|
.xterm-viewport {
|
||||||
@include set-component-size('terminal');
|
@include set-component-size('terminal');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.xterm .composition-view {
|
||||||
|
background: blue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,4 +161,4 @@ $company-logo-width: 130px;
|
|||||||
|
|
||||||
|
|
||||||
// Change this to switch template. Options: 'default', 'vraw', 'hraw'
|
// Change this to switch template. Options: 'default', 'vraw', 'hraw'
|
||||||
$layout-template: 'default';
|
$layout-template: 'hraw';
|
||||||
|
@ -5,7 +5,8 @@ $default-layout: (
|
|||||||
'header': (1, 2, 1, 2),
|
'header': (1, 2, 1, 2),
|
||||||
'messages': (1, 2, 2, 10),
|
'messages': (1, 2, 2, 10),
|
||||||
'webide': (4,$grid-rows-count+1, 1, $grid-rows-count+1),
|
'webide': (4,$grid-rows-count+1, 1, $grid-rows-count+1),
|
||||||
'terminal': (1, 4, 10,$grid-rows-count+1),
|
'terminal': (1, 4, 10, $grid-rows-count),
|
||||||
|
'terminal-footer': (1, 4, $grid-rows-count, -1),
|
||||||
'web': (2, 4, 1, 10)
|
'web': (2, 4, 1, 10)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -13,7 +14,8 @@ $vraw-layout: (
|
|||||||
'header': (1, 2, 1, 2),
|
'header': (1, 2, 1, 2),
|
||||||
'messages': (1, 2, 2,$grid-rows-count+1),
|
'messages': (1, 2, 2,$grid-rows-count+1),
|
||||||
'webide': (4,$grid-rows-count+1, 1,$grid-rows-count+1),
|
'webide': (4,$grid-rows-count+1, 1,$grid-rows-count+1),
|
||||||
'terminal': (2, 4, 1,$grid-rows-count+1),
|
'terminal': (2, 4, 1,$grid-rows-count),
|
||||||
|
'terminal-footer': (2, 4, $grid-rows-count, -1),
|
||||||
'web': (),
|
'web': (),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -21,7 +23,8 @@ $hraw-layout: (
|
|||||||
'header': (1, 2, 1,$grid-rows-count+1),
|
'header': (1, 2, 1,$grid-rows-count+1),
|
||||||
'messages': (1, 2, 2,$grid-rows-count+1),
|
'messages': (1, 2, 2,$grid-rows-count+1),
|
||||||
'webide': (2,$grid-rows-count+1, 1, 10),
|
'webide': (2,$grid-rows-count+1, 1, 10),
|
||||||
'terminal': (2,$grid-rows-count+1, 10,$grid-rows-count+1),
|
'terminal': (2, $grid-rows-count+1, 10, $grid-rows-count),
|
||||||
|
'terminal-footer': (2, $grid-rows-count+1, $grid-rows-count, -1),
|
||||||
'web': (),
|
'web': (),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user