refactor(ui): improve scss

This commit is contained in:
Fabio 2020-10-23 13:58:47 +02:00
parent ea9b489f5f
commit cef6f681c8
2 changed files with 33 additions and 25 deletions

View File

@ -12,35 +12,35 @@
@include type-colors( @include type-colors(
( (
"char": seagreen, "char": $string-color,
"varchar": seagreen, "varchar": $string-color,
"text": seagreen, "text": $string-color,
"mediumtext": seagreen, "mediumtext": $string-color,
"longtext": seagreen, "longtext": $string-color,
"int": cornflowerblue, "int": $number-color,
"tinyint": cornflowerblue, "tinyint": $number-color,
"smallint": cornflowerblue, "smallint": $number-color,
"mediumint": cornflowerblue, "mediumint": $number-color,
"float": cornflowerblue, "float": $number-color,
"double": cornflowerblue, "double": $number-color,
"decimal": cornflowerblue, "decimal": $number-color,
"bigint": cornflowerblue, "bigint": $number-color,
"datetime": coral, "datetime": $date-color,
"date": coral, "date": $date-color,
"time": coral, "time": $date-color,
"timestamp": coral, "timestamp": $date-color,
"bit": lightskyblue, "bit": $bit-color,
"blob": darkorchid, "blob": $blob-color,
"mediumblob": darkorchid, "mediumblob": $blob-color,
"longblob": darkorchid, "longblob": $blob-color,
"enum": gold, "enum": $enum-color,
"set": gold, "set": $enum-color,
"unknown": gray, "unknown": $unknown-color,
) )
); );
.is-null { .is-null {
color: gray; color: $unknown-color;
&::after { &::after {
content: "NULL"; content: "NULL";

View File

@ -9,6 +9,14 @@ $success-color: #32b643;
$error-color: #de3b28; $error-color: #de3b28;
$warning-color: #e0a40c; $warning-color: #e0a40c;
$string-color: seagreen;
$number-color: cornflowerblue;
$date-color: coral;
$bit-color: lightskyblue;
$blob-color: darkorchid;
$enum-color: gold;
$unknown-color: gray;
/* Sizes */ /* Sizes */
$titlebar-height: 1.5rem; $titlebar-height: 1.5rem;
$settingbar-width: 3rem; $settingbar-width: 3rem;