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(
(
"char": seagreen,
"varchar": seagreen,
"text": seagreen,
"mediumtext": seagreen,
"longtext": seagreen,
"int": cornflowerblue,
"tinyint": cornflowerblue,
"smallint": cornflowerblue,
"mediumint": cornflowerblue,
"float": cornflowerblue,
"double": cornflowerblue,
"decimal": cornflowerblue,
"bigint": cornflowerblue,
"datetime": coral,
"date": coral,
"time": coral,
"timestamp": coral,
"bit": lightskyblue,
"blob": darkorchid,
"mediumblob": darkorchid,
"longblob": darkorchid,
"enum": gold,
"set": gold,
"unknown": gray,
"char": $string-color,
"varchar": $string-color,
"text": $string-color,
"mediumtext": $string-color,
"longtext": $string-color,
"int": $number-color,
"tinyint": $number-color,
"smallint": $number-color,
"mediumint": $number-color,
"float": $number-color,
"double": $number-color,
"decimal": $number-color,
"bigint": $number-color,
"datetime": $date-color,
"date": $date-color,
"time": $date-color,
"timestamp": $date-color,
"bit": $bit-color,
"blob": $blob-color,
"mediumblob": $blob-color,
"longblob": $blob-color,
"enum": $enum-color,
"set": $enum-color,
"unknown": $unknown-color,
)
);
.is-null {
color: gray;
color: $unknown-color;
&::after {
content: "NULL";

View File

@ -9,6 +9,14 @@ $success-color: #32b643;
$error-color: #de3b28;
$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 */
$titlebar-height: 1.5rem;
$settingbar-width: 3rem;