antares/src/renderer/scss/_data-types.scss

44 lines
774 B
SCSS

@mixin type-colors($types) {
@each $type, $color in $types {
.type-#{$type} {
color: $color;
@if $type == "number" {
text-align: right;
}
}
}
}
@include type-colors(
(
"char": seagreen,
"varchar": seagreen,
"text": seagreen,
"mediumtext": seagreen,
"longtext": seagreen,
"int": cornflowerblue,
"tinyint": cornflowerblue,
"smallint": cornflowerblue,
"mediumint": cornflowerblue,
"bigint": cornflowerblue,
"datetime": coral,
"date": coral,
"time": coral,
"timestamp": coral,
"bit": lightskyblue,
"blob": darkorchid,
"mediumblob": darkorchid,
"longblob": darkorchid,
"unknown": gray,
)
);
.is-null {
color: gray;
&::after {
content: "NULL";
}
}