418 lines
		
	
	
		
			6.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			418 lines
		
	
	
		
			6.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| @import (less) "picnic.min.css";
 | |
| @import (less) "colors.less";
 | |
| 
 | |
| .translation-element-margin {
 | |
|   margin: 0 0.05em;
 | |
|   padding: 0;
 | |
| }
 | |
| 
 | |
| .translation-button {
 | |
|   width: 1.5em;
 | |
|   height: 1.5em;
 | |
|   border: 1px solid #ccc;
 | |
| }
 | |
| 
 | |
| .cluster-list-button {
 | |
|   padding: 0.2em;
 | |
|   margin-left: .2em;
 | |
|   background-color: #ddd;
 | |
|   color: @black;
 | |
|   background-color: @silver;
 | |
|   height: 1em;
 | |
|   width: 1em;
 | |
|   vertical-align: middle;
 | |
|   line-height: 0;
 | |
|   font-family: "Lucida Console", Monaco, monospace;
 | |
| }
 | |
| 
 | |
| .cluster-button-checked {
 | |
|   color: @silver;
 | |
|   background-color: @black;
 | |
| }
 | |
| 
 | |
| .example-clusters {
 | |
|   float: right;
 | |
| }
 | |
| 
 | |
| ._hoverable {
 | |
|   &:hover {
 | |
|     background-color: @silver;
 | |
|     cursor: pointer;
 | |
|   }
 | |
| }
 | |
| 
 | |
| ._in_brackets {
 | |
|   &:after {
 | |
|     content: ")";
 | |
|   }
 | |
|   &:before {
 | |
|     content: "(";
 | |
|   }
 | |
| }
 | |
| 
 | |
| // do I need this @ lexonomy?
 | |
| // .elm-div {
 | |
| //   clear: both;
 | |
| //   overflow: auto;
 | |
| //   margin-bottom: 1em;
 | |
| // }
 | |
| 
 | |
| #entry {
 | |
|   #entry-header {
 | |
|     // DONE!
 | |
|     display: block;
 | |
|     margin-bottom: 1em;
 | |
| 
 | |
|     #headword {
 | |
|       font-size: 1.2em; 
 | |
|       color: @darkred;
 | |
|       font-weight: bold;
 | |
|     }
 | |
| 
 | |
|     #grammar {
 | |
|       color: @gray; 
 | |
|       font-style: italic;
 | |
|       margin-left: 1em;
 | |
|     }
 | |
| 
 | |
|     #measure:not(:empty) {
 | |
|       color: @gray;
 | |
|       margin-left: 0.5em;
 | |
| 
 | |
|       ._in_brackets();
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   #entry-buttons {
 | |
|     button {
 | |
|       display: block;
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   #sense-container {
 | |
|     border-top: 1px dotted #999999; 
 | |
|     padding-top: 0.5em; 
 | |
|     margin-top: 0.5em;
 | |
| 
 | |
|     .sense-num {
 | |
|       float: left;
 | |
|       ._hoverable();
 | |
|     }
 | |
| 
 | |
|     .sense {
 | |
|       margin-left: 2em;
 | |
|       overflow: auto; // contain all elements, some sort of clear: both for me
 | |
| 
 | |
|       .sense-definition {
 | |
|         //done!
 | |
|         margin-left: 0.4em;
 | |
| 
 | |
|         ._hoverable();
 | |
|         ._in_brackets();
 | |
|       }
 | |
| 
 | |
|       .sense-label-list {
 | |
|         // done!
 | |
|         color: @blue;
 | |
|         ._hoverable();
 | |
| 
 | |
|         .sense-label + .sense-label:before {
 | |
|           content: ", ";
 | |
|           color: @label-color;
 | |
|         }
 | |
| 
 | |
|         &:empty:before {
 | |
|           content: "🍵";
 | |
|         }
 | |
|       }
 | |
| 
 | |
|       .translation-div-cluster + .translation-div-cluster:before {
 | |
|         content: "; ";
 | |
|       }
 | |
| 
 | |
|       .translation-div-cluster {
 | |
|         display: inline;
 | |
| 
 | |
|         .translation-div + .translation-div:before {
 | |
|           content: ", ";
 | |
|         }
 | |
| 
 | |
|         .translation-div {
 | |
|           display: inline;
 | |
|           ._hoverable();
 | |
| 
 | |
|           .translation-tags {
 | |
|             display: inline;
 | |
|             color: @green;
 | |
|             font-size: 0.6em;
 | |
|           }
 | |
| 
 | |
|           .translation-text {
 | |
|             display: inline;
 | |
|             color: @translation-color;
 | |
|             .translation-element-margin();
 | |
|           }
 | |
|           .translation-source {
 | |
|             vertical-align: super;
 | |
|             font-size: 0.7em;
 | |
|           }
 | |
|           .translation-explanation:not(:empty) {
 | |
|             font-style: italic;
 | |
| 
 | |
|             &:before {
 | |
|               content: '[';
 | |
|             }
 | |
|             &:after {
 | |
|               content: ']';
 | |
|             }
 | |
|           }
 | |
|         }
 | |
| 
 | |
|         .translation-add {
 | |
|           .translation-element-margin();
 | |
|           .translation-button();
 | |
|         }
 | |
|       }
 | |
|     }
 | |
| 
 | |
|     .example {
 | |
|       clear: left;
 | |
|       margin-left: 1em;
 | |
| 
 | |
|       .example-dot, .example-rest {
 | |
|         float: left;
 | |
|         max-width: 90%;
 | |
|       }
 | |
| 
 | |
|       .example-dot {
 | |
|         margin-right: 1em;
 | |
|       }
 | |
| 
 | |
|       .example-translation-list {
 | |
|         float: left;
 | |
|       }
 | |
| 
 | |
|       .example-translation {
 | |
|         margin-left: 1em;
 | |
|       }
 | |
| 
 | |
|       .example-text {
 | |
|         float: left;
 | |
|         ._hoverable();
 | |
| 
 | |
|         .example-text-1 {
 | |
|           color: @black;
 | |
|         }
 | |
|         .example-text-2 {
 | |
|           color: @darkpink;
 | |
|         }
 | |
|         .example-text-3 {
 | |
|           color: @darkpink;
 | |
|           font-weight: bold;
 | |
|         }
 | |
|       }
 | |
| 
 | |
| 
 | |
|       .example-rest {
 | |
|         border: 1px transparent solid;
 | |
|         width: 100%;
 | |
|       }
 | |
| 
 | |
|       .example-chosen {
 | |
|         border: 1px @gray solid;
 | |
|       }
 | |
|     }
 | |
| 
 | |
|     .comp-text {
 | |
|       margin-left: 0.5ch; // half width of '0'
 | |
|     }
 | |
| 
 | |
|     .comp-role {
 | |
|       color: @darkpink;
 | |
|     }
 | |
| 
 | |
|     .comp-role-headword {
 | |
|       font-weight: bold;
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   .add-button {
 | |
|     padding: 0 .5em;
 | |
|     margin: 0 0 0 0.3em;
 | |
|     background-color: @aqua;
 | |
|     color: @black;
 | |
|   }
 | |
| }
 | |
| 
 | |
| // if span left of input it is just too high, this is a fix
 | |
| .span-left-of-input {
 | |
|   margin-top: 0.3em; 
 | |
| }
 | |
| 
 | |
| 
 | |
| .example-text {
 | |
|   .example-cluster, .example-logdice, .example-frequency {
 | |
|     vertical-align: super;
 | |
|     font-size: 0.7em;
 | |
|     margin-left: 0.1em;
 | |
|     margin-right: 0.1em;
 | |
|   }
 | |
| 
 | |
|   .example-cluster {
 | |
|     color: @blue;
 | |
|   }
 | |
|   .example-logdice { 
 | |
|     color: @gray;
 | |
|   }
 | |
|   .example-frequency {
 | |
|     color: @darkred;
 | |
|   }
 | |
| }
 | |
| 
 | |
| .example-component {
 | |
|   .example-component-button {
 | |
|     padding-left: 0.3em;
 | |
|     padding-right: 0.3em;
 | |
|     cursor: pointer;
 | |
| 
 | |
|     ._hoverable();
 | |
|   }
 | |
| 
 | |
|   .example-component-headword {
 | |
|     color: @orange;
 | |
|   }
 | |
| 
 | |
|   .example-component-collocate {
 | |
|     color: @purple;
 | |
|   }
 | |
| 
 | |
|   .example-component-other {
 | |
|     color: @olive;
 | |
|   }
 | |
| 
 | |
|   .example-component-none {
 | |
|     color: @gray;
 | |
|   }
 | |
| }
 | |
| 
 | |
| 
 | |
| // if modal on full screen, it gets too small
 | |
| @media (min-width: 60em) {
 | |
|   .modal > article {
 | |
|     width: 40em;
 | |
|   }
 | |
| }
 | |
| 
 | |
| .modal-delete {
 | |
|   float: right;
 | |
|   margin-right: 1em;
 | |
| }
 | |
| 
 | |
| .ske-list {
 | |
|   font-size: zmall;
 | |
|   background-color: rgba(0,0, 0, 0.01);
 | |
|   padding: 0.5em;
 | |
|   border: 2px solid gray;
 | |
|   margin: 1em; 
 | |
| 
 | |
|   .ske-line {
 | |
|     display: block;
 | |
|     margin-top: 0.2em;
 | |
| 
 | |
|     .checkable {
 | |
|       display: block;
 | |
|     }
 | |
| 
 | |
|     .grey1 {
 | |
|       margin-left: 0.3em;
 | |
|       background-color: @silver; 
 | |
|       color: @black;
 | |
|     }
 | |
|     .grey2 {
 | |
|       margin-left: 0.3em;
 | |
|       background-color: @black;
 | |
|       color: @silver; 
 | |
|     }
 | |
|   }
 | |
| }
 | |
| 
 | |
| #ske-button {
 | |
|   padding-bottom: 0;
 | |
| }
 | |
| 
 | |
| // spinner
 | |
| .loadingspinner {
 | |
|   pointer-events: none;
 | |
|   width: 4em;
 | |
|   height: 4em;
 | |
|   border: 0.5em solid transparent;
 | |
|   border-color: @white;
 | |
|   border-top-color: @blue;
 | |
|   border-radius: 50%;
 | |
|   animation: loadingspin 1s linear infinite;
 | |
|   margin: 0 auto;
 | |
| }
 | |
| 
 | |
| @keyframes loadingspin {
 | |
|   100% {
 | |
|     transform: rotate(360deg)
 | |
|   }
 | |
| }
 | |
| 
 | |
| // TODO:
 | |
| // #log  {
 | |
| //   overflow: scroll;
 | |
| //   border: 2px solid red;
 | |
| //   height: 10em;
 | |
| // 
 | |
| //   :nth-last-child(odd) {
 | |
| //     background-color: lightgray;
 | |
| //   }
 | |
| // }
 | |
| 
 | |
| span.translation-original span {
 | |
|   margin-right: 0.3em;
 | |
| }
 | |
| 
 | |
| .popup-menu {
 | |
|   // DONE!
 | |
|   position: absolute;
 | |
| 
 | |
|   //better look with border
 | |
|   padding: 0 0.2em;
 | |
|   border: 1px solid @silver;
 | |
|   background-color: @white;
 | |
|   border-radius: 0.2em;
 | |
| 
 | |
|   // by default shown
 | |
|   visibility: visible;
 | |
|   opacity: 1;
 | |
|   transition: visibility 0s, opacity 0.1s linear;
 | |
| 
 | |
|   button {
 | |
|     margin-right: 0.1em; // space inbetween them
 | |
|     margin-left: 0.1em;
 | |
| 
 | |
|     padding: 0.1em 0.5em; // a little smaller than usual button
 | |
|   }
 | |
| }
 | |
| 
 | |
|  // --- I don't know how to properly fix this :(
 | |
| .ske-right-button {
 | |
|   margin-top: 0;
 | |
|   height: 2.1em;
 | |
| }
 | |
| .ske-mid-input {
 | |
|   padding-right: 1em;
 | |
| }
 | |
|  // ---
 | |
| 
 | |
| // remove me
 | |
| .blk {
 | |
|   &:before {
 | |
|     content: '\a';
 | |
|     white-space: pre;
 | |
|   }
 | |
|   display: block;
 | |
| }
 |