mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Fix some bugs in corpus analysis and simplify code
This commit is contained in:
		@@ -70,6 +70,27 @@ $color: (
 | 
			
		||||
      "COMPLETED": #4caf50,
 | 
			
		||||
      "FAILED": #f44336
 | 
			
		||||
    )
 | 
			
		||||
  ),
 | 
			
		||||
  "s-attr": (
 | 
			
		||||
    "PERSON": #a6e22d,
 | 
			
		||||
    "PER": #a6e22d,
 | 
			
		||||
    "NORP": #ef60b4,
 | 
			
		||||
    "FACILITY": #43c6fc,
 | 
			
		||||
    "ORG": #43c6fc,
 | 
			
		||||
    "GPE": #fd9720,
 | 
			
		||||
    "LOC": #fd9720,
 | 
			
		||||
    "PRODUCT": #a99dfb,
 | 
			
		||||
    "MISC": #a99dfb,
 | 
			
		||||
    "EVENT": #fc0,
 | 
			
		||||
    "WORK_OF_ART": #fc0,
 | 
			
		||||
    "LANGUAGE": #fc0,
 | 
			
		||||
    "DATE": #2fbbab,
 | 
			
		||||
    "TIME": #2fbbab,
 | 
			
		||||
    "PERCENT": #bbb,
 | 
			
		||||
    "MONEY": #bbb,
 | 
			
		||||
    "QUANTITY": #bbb,
 | 
			
		||||
    "ORDINAL": #bbb,
 | 
			
		||||
    "CARDINAL": #bbb
 | 
			
		||||
  )
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
@@ -195,6 +216,13 @@ $color: (
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@each $key, $color-code in map-get($color, "s-attr") {
 | 
			
		||||
  .chip.s-attr[data-s-attr-type="ent"][data-s-attr-ent-type="#{$key}"] {
 | 
			
		||||
    background-color: $color-code !important;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
main {
 | 
			
		||||
  .btn, .btn-small, .btn-large, .btn-floating {
 | 
			
		||||
    background-color: map-deep-get($color, "baseline", "secondary");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user