mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Delete unused files, restructure assets and use scss
This commit is contained in:
		
							
								
								
									
										242
									
								
								app/static/css/colors.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										242
									
								
								app/static/css/colors.scss
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,242 @@
 | 
			
		||||
/// Map deep get
 | 
			
		||||
/// @author Kitty Giraudel
 | 
			
		||||
/// @access public
 | 
			
		||||
/// @param {Map} $map - Map
 | 
			
		||||
/// @param {Arglist} $keys - Key chain
 | 
			
		||||
/// @return {*} - Desired value
 | 
			
		||||
@function map-deep-get($map, $keys...) {
 | 
			
		||||
    @each $key in $keys {
 | 
			
		||||
        $map: map-get($map, $key);
 | 
			
		||||
    }
 | 
			
		||||
    @return $map;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
$color: (
 | 
			
		||||
  "baseline": (
 | 
			
		||||
    "primary": #00426f,
 | 
			
		||||
    "primary-variant": #1a5c89,
 | 
			
		||||
    "secondary": #00426f,
 | 
			
		||||
    "secondary-variant": #1a5c89,
 | 
			
		||||
    "background": #ffffff,
 | 
			
		||||
    "surface": #ffffff,
 | 
			
		||||
    "error": #b00020
 | 
			
		||||
  ),
 | 
			
		||||
  "service": (
 | 
			
		||||
    "corpus-analysis": (
 | 
			
		||||
      "base": #aa9cc9,
 | 
			
		||||
      "darken": #6b3f89,
 | 
			
		||||
      "lighten": #ebe8f6
 | 
			
		||||
    ),
 | 
			
		||||
    "file-setup": (
 | 
			
		||||
      "base": #d5dc95,
 | 
			
		||||
      "darken": #a1b300,
 | 
			
		||||
      "lighten": #f2f3e1
 | 
			
		||||
    ),
 | 
			
		||||
    "spacy-nlp": (
 | 
			
		||||
      "base": #98acd2,
 | 
			
		||||
      "darken": #0064a3,
 | 
			
		||||
      "lighten": #e5e8f5
 | 
			
		||||
    ),
 | 
			
		||||
    "tesseract-ocr": (
 | 
			
		||||
      "base": #a9d8c8,
 | 
			
		||||
      "darken": #00a58b,
 | 
			
		||||
      "lighten": #e7f4f1
 | 
			
		||||
    )
 | 
			
		||||
  ),
 | 
			
		||||
  "status": (
 | 
			
		||||
    "corpus": (
 | 
			
		||||
      "UNPREPARED": #9e9e9e,
 | 
			
		||||
      "QUEUED": #2196f3,
 | 
			
		||||
      "BUILDING": #ffc107,
 | 
			
		||||
      "BUILT": #4caf50,
 | 
			
		||||
      "FAILED": #f44336,
 | 
			
		||||
      "STARTING_ANALYSIS_SESSION": #2196f3,
 | 
			
		||||
      "RUNNING_ANALYSIS_SESSION": #4caf50,
 | 
			
		||||
      "CANCELING_ANALYSIS_SESSION": #ff5722
 | 
			
		||||
    ),
 | 
			
		||||
    "job": (
 | 
			
		||||
      "INITIALIZING": #9e9e9e,
 | 
			
		||||
      "SUBMITTED": #9e9e9e,
 | 
			
		||||
      "QUEUED": #2196f3,
 | 
			
		||||
      "RUNNING": #ffc107,
 | 
			
		||||
      "CANCELING": #ff5722,
 | 
			
		||||
      "CANCELED": #ff5722,
 | 
			
		||||
      "COMPLETED": #4caf50,
 | 
			
		||||
      "FAILED": #f44336
 | 
			
		||||
    )
 | 
			
		||||
  )
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
@each $key, $color-code in map-get($color, "baseline") {
 | 
			
		||||
  .#{$key}-color {
 | 
			
		||||
    background-color: $color-code !important;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .#{$key}-color-border {
 | 
			
		||||
    border-color: $color-code !important;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .#{$key}-color-text {
 | 
			
		||||
    color: $color-code !important;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@each $service-name, $color-palette in map-get($color, "service") {
 | 
			
		||||
  .service-color[data-service="#{$service-name}"] {
 | 
			
		||||
    background-color: map-get($color-palette, "base") !important;
 | 
			
		||||
 | 
			
		||||
    &.darken {
 | 
			
		||||
      background-color: map-get($color-palette, "darken") !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    &.lighten {
 | 
			
		||||
      background-color: map-get($color-palette, "lighten") !important;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .service-color-border[data-service="#{$service-name}"] {
 | 
			
		||||
    border-color: map-get($color-palette, "base") !important;
 | 
			
		||||
 | 
			
		||||
    &.border-darken {
 | 
			
		||||
      border-color: map-get($color-palette, "darken") !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    &.border-lighten {
 | 
			
		||||
      border-color: map-get($color-palette, "lighten") !important;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .service-color-text[data-service="#{$service-name}"] {
 | 
			
		||||
    color: map-get($color-palette, "base") !important;
 | 
			
		||||
 | 
			
		||||
    &.text-darken {
 | 
			
		||||
      color: map-get($color-palette, "darken") !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    &.text-lighten {
 | 
			
		||||
      color: map-get($color-palette, "lighten") !important;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .service-scheme[data-service="#{$service-name}"] {
 | 
			
		||||
    background-color: map-get($color-palette, "lighten");
 | 
			
		||||
 | 
			
		||||
    .btn, .btn-small, .btn-large, .btn-floating {
 | 
			
		||||
      background-color: map-get($color-palette, "darken");
 | 
			
		||||
 | 
			
		||||
      &:hover {
 | 
			
		||||
        background-color: map-get($color-palette, "base");
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .pagination {
 | 
			
		||||
      li.active {
 | 
			
		||||
        background-color: map-get($color-palette, "darken");
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .table-of-contents {
 | 
			
		||||
      a.active, a:hover {
 | 
			
		||||
        border-color: map-get($color-palette, "darken");
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .tabs {
 | 
			
		||||
      .tab {
 | 
			
		||||
        &.disabled {
 | 
			
		||||
          a {
 | 
			
		||||
            color: inherit;
 | 
			
		||||
 | 
			
		||||
            &:hover {
 | 
			
		||||
              color: change-color(map-get($color-palette, "darken"), $alpha: 0.15);
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        a {
 | 
			
		||||
          color: inherit;
 | 
			
		||||
 | 
			
		||||
          &:focus, &:hover, &.active {
 | 
			
		||||
            color: map-get($color-palette, "darken");
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          &:focus, &.active, &.active:focus {
 | 
			
		||||
            background-color: change-color(map-get($color-palette, "darken"), $alpha: 0.15);
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .indicator {
 | 
			
		||||
        background-color: map-get($color-palette, "darken");
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@each $ressource-name, $color-palette in map-get($color, "status") {
 | 
			
		||||
  @each $key, $color-code in $color-palette {
 | 
			
		||||
    .#{$ressource-name}-status-color[data-#{$ressource-name}-status="#{$key}"] {
 | 
			
		||||
      background-color: $color-code !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .#{$ressource-name}-status-color-border[data-#{$ressource-name}-status="#{$key}"] {
 | 
			
		||||
      border-color: $color-code !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .#{$ressource-name}-status-color-text[data-#{$ressource-name}-status="#{$key}"] {
 | 
			
		||||
      color: $color-code !important;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
main {
 | 
			
		||||
  .btn, .btn-small, .btn-large, .btn-floating {
 | 
			
		||||
    background-color: map-deep-get($color, "baseline", "secondary");
 | 
			
		||||
 | 
			
		||||
    &:hover {
 | 
			
		||||
      background-color: map-deep-get($color, "baseline", "secondary-variant");
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .pagination {
 | 
			
		||||
    li.active {
 | 
			
		||||
      background-color: map-deep-get($color, "baseline", "secondary");
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .table-of-contents {
 | 
			
		||||
    a.active, a:hover {
 | 
			
		||||
      border-color: map-deep-get($color, "baseline", "secondary");
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .tabs {
 | 
			
		||||
    .tab {
 | 
			
		||||
      &.disabled {
 | 
			
		||||
        a {
 | 
			
		||||
          color: inherit;
 | 
			
		||||
 | 
			
		||||
          &:hover {
 | 
			
		||||
            color: change-color(map-deep-get($color, "baseline", "secondary"), $alpha: 0.15);
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      a {
 | 
			
		||||
        color: inherit;
 | 
			
		||||
 | 
			
		||||
        &:focus, &:hover, &.active {
 | 
			
		||||
          color: map-deep-get($color, "baseline", "secondary");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        &:focus, &.active, &.active:focus {
 | 
			
		||||
          background-color: change-color(map-deep-get($color, "baseline", "secondary"), $alpha: 0.15);
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .indicator {
 | 
			
		||||
      background-color: map-deep-get($color, "baseline", "secondary");
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,39 +0,0 @@
 | 
			
		||||
/* https://google.github.io/material-design-icons/#setup-method-2-self-hosting */
 | 
			
		||||
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Material Icons';
 | 
			
		||||
  font-style: normal;
 | 
			
		||||
  font-weight: 400;
 | 
			
		||||
  src: local('Material Icons'),
 | 
			
		||||
    local('MaterialIcons-Regular'),
 | 
			
		||||
    url(../fonts/material_icons/MaterialIcons-Regular.ttf) format('truetype'),
 | 
			
		||||
    url(../fonts/material_icons/MaterialIconsOutlined-Regular.otf) format('opentype'),
 | 
			
		||||
    url(../fonts/material_icons/MaterialIconsRound-Regular.otf) format('opentype'),
 | 
			
		||||
    url(../fonts/material_icons/MaterialIconsSharp-Regular.otf) format('opentype'),
 | 
			
		||||
    url(../fonts/material_icons/MaterialIconsTwoTone-Regular.otf) format('opentype');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.material-icons {
 | 
			
		||||
  font-family: 'Material Icons';
 | 
			
		||||
  font-weight: normal;
 | 
			
		||||
  font-style: normal;
 | 
			
		||||
  font-size: 24px;  /* Preferred icon size */
 | 
			
		||||
  display: inline-block;
 | 
			
		||||
  line-height: 1;
 | 
			
		||||
  text-transform: none;
 | 
			
		||||
  letter-spacing: normal;
 | 
			
		||||
  word-wrap: normal;
 | 
			
		||||
  white-space: nowrap;
 | 
			
		||||
  direction: ltr;
 | 
			
		||||
 | 
			
		||||
  /* Support for all WebKit browsers. */
 | 
			
		||||
  -webkit-font-smoothing: antialiased;
 | 
			
		||||
  /* Support for Safari and Chrome. */
 | 
			
		||||
  text-rendering: optimizeLegibility;
 | 
			
		||||
 | 
			
		||||
  /* Support for Firefox. */
 | 
			
		||||
  -moz-osx-font-smoothing: grayscale;
 | 
			
		||||
 | 
			
		||||
  /* Support for IE. */
 | 
			
		||||
  font-feature-settings: 'liga';
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								app/static/css/materialize.min.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								app/static/css/materialize.min.css
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -1,70 +0,0 @@
 | 
			
		||||
:root {
 | 
			
		||||
  --main-bg-color: brown;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Change navbar height bacause an extended and fixed navbar is used */
 | 
			
		||||
.navbar-fixed {
 | 
			
		||||
  height: 112px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* add custom bold class */
 | 
			
		||||
.bold {font-weight: bold;}
 | 
			
		||||
 | 
			
		||||
/* Change placholdertext color of file uplaod fields */
 | 
			
		||||
::placeholder {
 | 
			
		||||
  color: #9e9e9e;
 | 
			
		||||
  opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * changes preoloader size etc. to fit visually better with the chip status
 | 
			
		||||
 * indicator of jobs
 | 
			
		||||
 */
 | 
			
		||||
.status-spinner {
 | 
			
		||||
  margin-bottom: -10px;
 | 
			
		||||
  width: 30px !important;
 | 
			
		||||
  height: 30px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.show-if-only-child:not(:only-child) {
 | 
			
		||||
  display: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-scale-x2 {
 | 
			
		||||
  transform: scale(2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-scale-x2 .nopaque-icon.nopaque-service-icon {
 | 
			
		||||
  font-size: 2.5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Fix material icon vertical alignment when nested in various elements */
 | 
			
		||||
h1 .nopaque-icon, h2 .nopaque-icon, h3 .nopaque-icon, h4 .nopaque-icon, .tab .nopaque-icon, .tab .material-icons {
 | 
			
		||||
  line-height: inherit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.nopaque-icon.nopaque-service-icon[data-service="file-setup"]:empty:before {content: "E";}
 | 
			
		||||
.nopaque-icon.nopaque-service-icon[data-service="tesseract-ocr"]:empty:before {content: "F";}
 | 
			
		||||
.nopaque-icon.nopaque-service-icon[data-service="spacy-nlp"]:empty:before {content: "G";}
 | 
			
		||||
.nopaque-icon.nopaque-service-icon[data-service="corpus-analysis"]:empty:before {content: "H";}
 | 
			
		||||
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="UNPREPARED"]:empty:before {content: "Unprepared";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="SUBMITTED"]:empty:before {content: "Submitted";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="QUEUED"]:empty:before {content: "Queued";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="BUILDING"]:empty:before {content: "Building";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="BUILT"]:empty:before {content: "Built";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="STARTING_ANALYSIS_SESSION"]:empty:before {content: "Starting analysis session";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="RUNNING_ANALYSIS_SESSION"]:empty:before {content: "Running analysis session";}
 | 
			
		||||
.nopaque-corpus-status-text[data-corpus-status="CANCELING_ANALYSIS_SESSION"]:empty:before {content: "Canceling analysis session";}
 | 
			
		||||
 | 
			
		||||
.nopaque-job-status-text[data-job-status="INITIALIZING"]:empty:before {content: "Initializing";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="SUBMITTED"]:empty:before {content: "Submitted";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="QUEUED"]:empty:before {content: "Queued";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="RUNNING"]:empty:before {content: "Running";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="CANCELING"]:empty:before {content: "Canceling";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="CANCELED"]:empty:before {content: "Canceled";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="COMPLETED"]:empty:before {content: "Completed";}
 | 
			
		||||
.nopaque-job-status-text[data-job-status="FAILED"]:empty:before {content: "Failed";}
 | 
			
		||||
 | 
			
		||||
.hoverable {cursor: pointer;}
 | 
			
		||||
.chip.s-attr .chip.p-attr {background-color: inherit;}
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
    url(../fonts/nopaque_icons/NopaqueIcons-Regular.otf) format('opentype');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.nopaque-icon {
 | 
			
		||||
.nopaque-icons {
 | 
			
		||||
  font-family: 'Nopaque Icons';
 | 
			
		||||
  font-weight: normal;
 | 
			
		||||
  font-style: normal;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										52
									
								
								app/static/css/style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								app/static/css/style.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
			
		||||
/* Change navbar height bacause an extended and fixed navbar is used */
 | 
			
		||||
.navbar-fixed {
 | 
			
		||||
  height: 112px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Change placholdertext color of file uplaod fields */
 | 
			
		||||
::placeholder {
 | 
			
		||||
  color: #9e9e9e;
 | 
			
		||||
  opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * changes preoloader size etc. to fit visually better with the chip status
 | 
			
		||||
 * indicator of jobs
 | 
			
		||||
 */
 | 
			
		||||
.status-spinner {
 | 
			
		||||
  margin-bottom: -10px;
 | 
			
		||||
  width: 30px !important;
 | 
			
		||||
  height: 30px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.show-if-only-child:not(:only-child) {
 | 
			
		||||
  display: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-scale-x2 {
 | 
			
		||||
  transform: scale(2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-scale-x2 .nopaque-icons.service-icon {
 | 
			
		||||
  font-size: 2.5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Fix material icon vertical alignment when nested in various elements */
 | 
			
		||||
h1 .nopaque-icons, h2 .nopaque-icons, h3 .nopaque-icons, h4 .nopaque-icons, .tab .nopaque-icons, .tab .material-icons {
 | 
			
		||||
  line-height: inherit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
.corpus-status-text {text-transform: lowercase;}
 | 
			
		||||
.corpus-status-text[data-corpus-status]:empty:before {content: attr(data-corpus-status);}
 | 
			
		||||
 | 
			
		||||
.job-status-text {text-transform: lowercase;}
 | 
			
		||||
.job-status-text[data-job-status]:empty:before {content: attr(data-job-status);}
 | 
			
		||||
 | 
			
		||||
.nopaque-icons.service-icon[data-service="file-setup"]:empty:before {content: "E";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="tesseract-ocr"]:empty:before {content: "F";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="spacy-nlp"]:empty:before {content: "G";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="corpus-analysis"]:empty:before {content: "H";}
 | 
			
		||||
 | 
			
		||||
.hoverable {cursor: pointer;}
 | 
			
		||||
.chip.s-attr .chip.p-attr {background-color: inherit;}
 | 
			
		||||
		Reference in New Issue
	
	Block a user