Cosmetic changes
Removed deprecated roll functions. Recentered field texts to not obscure values. Adjust tab heights. Fixed #15.master
							parent
							
								
									fa69f4206e
								
							
						
					
					
						commit
						a498d36c25
					
				
							
								
								
									
										71
									
								
								src/acks.css
								
								
								
								
							
							
						
						
									
										71
									
								
								src/acks.css
								
								
								
								
							|  | @ -84,17 +84,18 @@ | ||||||
|   right: -169px; |   right: -169px; | ||||||
|   width: 320px; |   width: 320px; | ||||||
|   border-top: none; |   border-top: none; | ||||||
|   height: 20px; |   height: 18px; | ||||||
|   z-index: -1; |   z-index: -1; | ||||||
| } | } | ||||||
| .acks.sheet.actor .sheet-tabs .item { | .acks.sheet.actor .sheet-tabs .item { | ||||||
|   padding: 2px 10px 0; |   padding: 1px 10px 0; | ||||||
|   margin-left: -5px; |   margin-left: -5px; | ||||||
|   text-indent: 4px; |   text-indent: 4px; | ||||||
|   line-height: 18px; |   line-height: 16px; | ||||||
|   background: url("/ui/parchment.jpg"); |   background: url("/ui/parchment.jpg"); | ||||||
|   border-top-right-radius: 4px; |   border-top-right-radius: 4px; | ||||||
|   border-top-left-radius: 80px; |   border-top-left-radius: 80px; | ||||||
|  |   border-bottom: 1px solid rgba(0, 0, 0, 0.15); | ||||||
|   box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.9); |   box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.9); | ||||||
|   font-size: 12px; |   font-size: 12px; | ||||||
|   filter: brightness(0.9); |   filter: brightness(0.9); | ||||||
|  | @ -107,7 +108,6 @@ | ||||||
|   margin-bottom: -1px; |   margin-bottom: -1px; | ||||||
| } | } | ||||||
| .acks.sheet.actor .sheet-body { | .acks.sheet.actor .sheet-body { | ||||||
|   padding: 5px 0; |  | ||||||
|   height: calc(100% - 140px); |   height: calc(100% - 140px); | ||||||
| } | } | ||||||
| .acks.sheet.actor .sheet-body .tab { | .acks.sheet.actor .sheet-body .tab { | ||||||
|  | @ -375,6 +375,16 @@ | ||||||
|   flex: 0; |   flex: 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .acks.dialog.party-xp .actors { | ||||||
|  |   height: 270px; | ||||||
|  |   padding: 0; | ||||||
|  |   overflow-y: auto; | ||||||
|  | } | ||||||
|  | .acks.dialog.party-xp .form-group button { | ||||||
|  |   line-height: 18px; | ||||||
|  |   flex-grow: 0; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .acks.dialog.party-sheet { | .acks.dialog.party-sheet { | ||||||
|   min-width: 250px; |   min-width: 250px; | ||||||
|   min-height: 250px; |   min-height: 250px; | ||||||
|  | @ -627,6 +637,18 @@ | ||||||
|   font-size: 14px; |   font-size: 14px; | ||||||
|   font-weight: bold; |   font-weight: bold; | ||||||
| } | } | ||||||
|  | .acks.chat-card .card-content .treasure-list .sub { | ||||||
|  |   padding-left: 25px; | ||||||
|  |   line-height: 28px; | ||||||
|  | } | ||||||
|  | .acks.chat-card .card-content .treasure-list .sub img { | ||||||
|  |   flex: 0 0 28px; | ||||||
|  |   border: none; | ||||||
|  | } | ||||||
|  | .acks.chat-card .card-content .treasure-list .sub div { | ||||||
|  |   text-indent: 10px; | ||||||
|  |   font-size: 14px; | ||||||
|  | } | ||||||
| .acks.chat-card .card-content h3 { | .acks.chat-card .card-content h3 { | ||||||
|   font-size: 12px; |   font-size: 12px; | ||||||
|   margin: 0; |   margin: 0; | ||||||
|  | @ -837,11 +859,11 @@ | ||||||
|   line-height: 30px; |   line-height: 30px; | ||||||
| } | } | ||||||
| .acks.sheet.actor.character .sheet-body .exploration .attribute { | .acks.sheet.actor.character .sheet-body .exploration .attribute { | ||||||
|   margin: 1px; |   margin: 4px; | ||||||
| } | } | ||||||
| .acks.sheet.actor.character .sheet-body .exploration .attribute .attribute-name { | .acks.sheet.actor.character .sheet-body .exploration .attribute .attribute-name { | ||||||
|   text-align: center; |   text-align: left; | ||||||
|   flex: 1 0 45px; |   flex: 1 0 60px; | ||||||
|   line-height: 25px; |   line-height: 25px; | ||||||
|   font-size: 12px; |   font-size: 12px; | ||||||
| } | } | ||||||
|  | @ -908,39 +930,39 @@ | ||||||
|   border-top: 4px solid rgba(0, 0, 0, 0.9); |   border-top: 4px solid rgba(0, 0, 0, 0.9); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .acks.window-content .collapsed { | .acks .window-content .collapsed { | ||||||
|   display: none; |   display: none; | ||||||
| } | } | ||||||
| .acks.window-content .margin { | .acks .window-content .margin { | ||||||
|   margin: 5px; |   margin: 5px; | ||||||
| } | } | ||||||
| .acks.window-content input { | .acks .window-content input { | ||||||
|   text-align: center; |   text-align: center; | ||||||
| } | } | ||||||
| .acks.window-content input[type=number] { | .acks .window-content input[type=number] { | ||||||
|   -moz-appearance: textfield; |   -moz-appearance: textfield; | ||||||
| } | } | ||||||
| .acks.window-content input[type=number]::-webkit-inner-spin-button, | .acks .window-content input[type=number]::-webkit-inner-spin-button, | ||||||
| .acks.window-content input[type=number]::-webkit-outer-spin-button { | .acks .window-content input[type=number]::-webkit-outer-spin-button { | ||||||
|   -webkit-appearance: none; |   -webkit-appearance: none; | ||||||
|   -moz-appearance: none; |   -moz-appearance: none; | ||||||
|   appearance: none; |   appearance: none; | ||||||
|   margin: 0; |   margin: 0; | ||||||
| } | } | ||||||
| .acks.window-content input:not([type=checkbox]) { | .acks .window-content input:not([type=checkbox]) { | ||||||
|   background: none; |   background: none; | ||||||
|   border: none; |   border: none; | ||||||
|   border-radius: 0; |   border-radius: 0; | ||||||
|   border-bottom: 1px solid #7a7971; |   border-bottom: 1px solid #7a7971; | ||||||
| } | } | ||||||
| .acks.window-content input:not([type=checkbox]):hover:not(:disabled), .acks.window-content input:not([type=checkbox]):focus:not(:disabled) { | .acks .window-content input:not([type=checkbox]):hover:not(:disabled), .acks .window-content input:not([type=checkbox]):focus:not(:disabled) { | ||||||
|   box-shadow: none; |   box-shadow: none; | ||||||
|   background: linear-gradient(transparent, rgba(0, 0, 0, 0.1)); |   background: linear-gradient(transparent, rgba(0, 0, 0, 0.1)); | ||||||
| } | } | ||||||
| .acks.window-content a:hover { | .acks .window-content a:hover { | ||||||
|   text-shadow: none; |   text-shadow: none; | ||||||
| } | } | ||||||
| .acks.window-content .resizable { | .acks .window-content .resizable { | ||||||
|   overflow: auto; |   overflow: auto; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -1015,6 +1037,19 @@ | ||||||
| .acks.sheet.item .sheet-body .stats .form-group.attack-type a.active, .acks.sheet.item .sheet-body .stats .form-group.attack-type a :hover { | .acks.sheet.item .sheet-body .stats .form-group.attack-type a.active, .acks.sheet.item .sheet-body .stats .form-group.attack-type a :hover { | ||||||
|   color: rgba(0, 0, 0, 0.9); |   color: rgba(0, 0, 0, 0.9); | ||||||
| } | } | ||||||
|  | .acks.sheet.item .sheet-body .stats .form-group { | ||||||
|  |   align-items: inherit; | ||||||
|  | } | ||||||
|  | .acks.sheet.item .sheet-body .stats .form-group label { | ||||||
|  |   line-height: 21px; | ||||||
|  | } | ||||||
|  | .acks.sheet.item .sheet-body .stats .form-group .form-fields { | ||||||
|  |   justify-content: space-evenly; | ||||||
|  |   height: 22px; | ||||||
|  | } | ||||||
|  | .acks.sheet.item .sheet-body .stats .form-group .form-fields select { | ||||||
|  |   height: 24px; | ||||||
|  | } | ||||||
| .acks.sheet.item .sheet-body .stats .block-input { | .acks.sheet.item .sheet-body .stats .block-input { | ||||||
|   display: flex; |   display: flex; | ||||||
|   flex-direction: column; |   flex-direction: column; | ||||||
|  | @ -1104,5 +1139,3 @@ | ||||||
| /* ----------------------------------------- */ | /* ----------------------------------------- */ | ||||||
| /*  Sheet Styles                             */ | /*  Sheet Styles                             */ | ||||||
| /* ----------------------------------------- */ | /* ----------------------------------------- */ | ||||||
| 
 |  | ||||||
| /*# sourceMappingURL=acks.css.map */ |  | ||||||
|  |  | ||||||
|  | @ -21,12 +21,12 @@ export class AcksActorSheet extends ActorSheet { | ||||||
|     return data; |     return data; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   _createEditor(target, editorOptions, initialContent) { |   activateEditor(target, editorOptions, initialContent) { | ||||||
|     // remove some controls to the editor as the space is lacking
 |     // remove some controls to the editor as the space is lacking
 | ||||||
|     if (target == "data.details.description") { |     if (target == "data.details.description") { | ||||||
|       editorOptions.toolbar = "styleselect bullist hr table removeFormat save"; |       editorOptions.toolbar = "styleselect bullist hr table removeFormat save"; | ||||||
|     } |     } | ||||||
|     super._createEditor(target, editorOptions, initialContent); |     super.activateEditor(target, editorOptions, initialContent); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   /** |   /** | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ export class AcksDice { | ||||||
|       total: roll.total, |       total: roll.total, | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     let die = roll.parts[0].total; |     let die = roll.terms[0].total; | ||||||
|     if (data.roll.type == "above") { |     if (data.roll.type == "above") { | ||||||
|       // SAVING THROWS
 |       // SAVING THROWS
 | ||||||
|       if (roll.total >= result.target) { |       if (roll.total >= result.target) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue