mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Add some handy css classes
This commit is contained in:
		
							
								
								
									
										31
									
								
								app/static/css/helpers.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								app/static/css/helpers.scss
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Spacing
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					$spacing-shortcuts: ("margin": "mg", "padding": "pd");
 | 
				
			||||||
 | 
					$spacing-directions: ("top": "t", "right": "r", "bottom": "b", "left": "l");
 | 
				
			||||||
 | 
					$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@each $spacing-shortcut-name, $spacing-shortcut-value in $spacing-shortcuts {
 | 
				
			||||||
 | 
					  @each $spacing-name, $spacing-value in $spacing-values {
 | 
				
			||||||
 | 
					    // All directions
 | 
				
			||||||
 | 
					    .#{$spacing-shortcut-value}-#{$spacing-name} {
 | 
				
			||||||
 | 
					      #{$spacing-shortcut-name}: $spacing-value !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    // Horizontal axis
 | 
				
			||||||
 | 
					    .#{$spacing-shortcut-value}x-#{$spacing-name} {
 | 
				
			||||||
 | 
					      #{$spacing-shortcut-name}-left: $spacing-value !important;
 | 
				
			||||||
 | 
					      #{$spacing-shortcut-name}-right: $spacing-value !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    // Vertical axis
 | 
				
			||||||
 | 
					    .#{$spacing-shortcut-value}y-#{$spacing-name} {
 | 
				
			||||||
 | 
					      #{$spacing-shortcut-name}-top: $spacing-value !important;
 | 
				
			||||||
 | 
					      #{$spacing-shortcut-name}-bottom: $spacing-value !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    // Cardinal directions
 | 
				
			||||||
 | 
					    @each $spacing-direction-name, $spacing-direction-value in $spacing-directions {
 | 
				
			||||||
 | 
					      .#{$spacing-shortcut-value}#{$spacing-direction-value}-#{$spacing-name} {
 | 
				
			||||||
 | 
					        #{$spacing-shortcut-name}-#{$spacing-direction-name}: $spacing-value !important;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -49,5 +49,14 @@ h1 .nopaque-icons, h2 .nopaque-icons, h3 .nopaque-icons, h4 .nopaque-icons, .tab
 | 
				
			|||||||
.nopaque-icons.service-icon[data-service="spacy-nlp-pipeline"]:empty:before {content: "G";}
 | 
					.nopaque-icons.service-icon[data-service="spacy-nlp-pipeline"]:empty:before {content: "G";}
 | 
				
			||||||
.nopaque-icons.service-icon[data-service="corpus-analysis"]:empty:before {content: "H";}
 | 
					.nopaque-icons.service-icon[data-service="corpus-analysis"]:empty:before {content: "H";}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.hoverable {cursor: pointer;}
 | 
					.clickable {
 | 
				
			||||||
 | 
					  cursor: pointer !important;
 | 
				
			||||||
 | 
					  pointer-events: all !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
.chip.s-attr .chip.p-attr {background-color: inherit;}
 | 
					.chip.s-attr .chip.p-attr {background-color: inherit;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.width-25 {width: 25%;}
 | 
				
			||||||
 | 
					.width-50 {width: 50%;}
 | 
				
			||||||
 | 
					.width-75 {width: 75%;}
 | 
				
			||||||
 | 
					.width-100 {width: 100%;}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user