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

99 lines
2.5 KiB
SCSS
Raw Normal View History

2020-11-13 12:39:40 +01:00
2020-06-10 19:29:10 +02:00
@mixin type-colors($types) {
2020-07-31 18:16:28 +02:00
@each $type, $color in $types {
.type-#{$type} {
color: $color;
}
}
2020-06-10 19:29:10 +02:00
}
2020-07-24 13:26:56 +02:00
@include type-colors(
2020-07-31 18:16:28 +02:00
(
2020-10-23 13:58:47 +02:00
"char": $string-color,
"varchar": $string-color,
"longvarchar": $string-color,
2020-10-23 13:58:47 +02:00
"text": $string-color,
2020-11-13 12:39:40 +01:00
"tinytext": $string-color,
2020-10-23 13:58:47 +02:00
"mediumtext": $string-color,
"longtext": $string-color,
"string": $string-color,
2020-11-13 12:39:40 +01:00
"json": $string-color,
"name": $string-color,
"character": $string-color,
"character_varying": $string-color,
"cidr": $string-color,
"inet": $string-color,
"macaddr": $string-color,
"macaddr8": $string-color,
"uuid": $string-color,
"regproc": $string-color,
2020-10-23 13:58:47 +02:00
"int": $number-color,
"tinyint": $number-color,
"smallint": $number-color,
"mediumint": $number-color,
"float": $number-color,
"double": $number-color,
"decimal": $number-color,
"bigint": $number-color,
"newdecimal": $number-color,
"integer": $number-color,
"numeric": $number-color,
"smallserial": $number-color,
"serial": $number-color,
"bigserial": $number-color,
"real": $number-color,
"double_precision": $number-color,
"oid": $number-color,
"xid": $number-color,
"money": $number-color,
"number": $number-color,
2020-10-23 13:58:47 +02:00
"datetime": $date-color,
"date": $date-color,
"time": $date-color,
"time_with_time_zone": $date-color,
2020-11-13 12:39:40 +01:00
"year": $date-color,
2020-10-23 13:58:47 +02:00
"timestamp": $date-color,
"timestamp_without_time_zone": $date-color,
"timestamp_with_time_zone": $date-color,
2020-10-23 13:58:47 +02:00
"bit": $bit-color,
"bit_varying": $bit-color,
2020-11-13 12:39:40 +01:00
"binary": $blob-color,
"varbinary": $blob-color,
2020-10-23 13:58:47 +02:00
"blob": $blob-color,
2020-11-13 12:39:40 +01:00
"tinyblob": $blob-color,
2020-10-23 13:58:47 +02:00
"mediumblob": $blob-color,
2021-03-03 19:31:05 +01:00
"medium_blob": $blob-color,
2020-10-23 13:58:47 +02:00
"longblob": $blob-color,
"bytea": $blob-color,
2020-10-23 13:58:47 +02:00
"enum": $enum-color,
"set": $enum-color,
"bool": $enum-color,
"boolean": $enum-color,
"interval": $array-color,
"array": $array-color,
"anyarray": $array-color,
"tsvector": $array-color,
"tsquery": $array-color,
"pg_node_tree": $array-color,
"point": $array-color,
"linestring": $array-color,
"polygon": $array-color,
"geometry": $array-color,
"multipoint": $array-color,
"multilinestring": $array-color,
"multipolygon": $array-color,
"geomcollection": $array-color,
"geometrycollection": $array-color,
"aclitem": $array-color,
2020-10-23 13:58:47 +02:00
"unknown": $unknown-color,
2020-07-31 18:16:28 +02:00
)
2020-07-24 13:26:56 +02:00
);
2020-06-18 19:01:09 +02:00
2020-07-24 13:26:56 +02:00
.is-null {
2020-10-23 13:58:47 +02:00
color: $unknown-color;
2020-06-18 19:01:09 +02:00
2020-07-31 18:16:28 +02:00
&::after {
content: "NULL";
}
2020-07-24 13:26:56 +02:00
}