initial push
This commit is contained in:
32
src/app/editor/tabs/tab/tab.component.css
Normal file
32
src/app/editor/tabs/tab/tab.component.css
Normal file
@@ -0,0 +1,32 @@
|
||||
.tab,
|
||||
.title,
|
||||
.close-button {
|
||||
color: rgba(255, 255, 255, 0.64);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
.tab {
|
||||
float: left;
|
||||
clear: left;
|
||||
display: flow;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
.title {
|
||||
margin-left: 2em;
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.close-button {
|
||||
background: rgba(116, 0, 0, 0.64);
|
||||
border-style: solid;
|
||||
border-color: rgba(0, 0, 0, 0.64);
|
||||
border-width: 1px;
|
||||
border-radius: 0em 1em 0em 0em;
|
||||
}
|
||||
|
||||
.close-button:hover {
|
||||
background: rgba(256, 0, 0, 0.64);
|
||||
}
|
||||
4
src/app/editor/tabs/tab/tab.component.html
Normal file
4
src/app/editor/tabs/tab/tab.component.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<span class="tab">
|
||||
<span class="title">{{title}}</span>
|
||||
<button class="close-button">X</button>
|
||||
</span>
|
||||
30
src/app/editor/tabs/tab/tab.component.ts
Normal file
30
src/app/editor/tabs/tab/tab.component.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'tab',
|
||||
standalone: true,
|
||||
imports: [
|
||||
],
|
||||
templateUrl: './tab.component.html',
|
||||
styleUrl: './tab.component.css',
|
||||
host: {
|
||||
'class': 'col'
|
||||
// 'class': 'col tab'
|
||||
}
|
||||
})
|
||||
export class TabComponent {
|
||||
|
||||
title: string;
|
||||
|
||||
|
||||
constructor() {
|
||||
this.title = "[NO TITLE]";
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user