@@ -486,17 +486,37 @@ func (pw *PageWriter) Done() {
486
486
}
487
487
488
488
pp , _ := PropPathFromPath (pw .Info .Abstract )
489
- for _ , inline := range inlineOptions {
489
+ for i , inline := range inlineOptions {
490
+ hilight := ""
491
+ if i % 2 == 0 {
492
+ hilight = " inlinehilight"
493
+ }
490
494
checked = ""
491
495
pInline := MustPropPathFromUI (inline )
492
- fullInline := pp .Append (pInline ). DB ( )
493
- if pw .Info .IsInlineSet (fullInline ) {
496
+ fullPP := pp .Append (pInline )
497
+ if pw .Info .IsInlineSet (fullPP . DB () ) {
494
498
checked = " checked"
495
499
}
500
+
501
+ mini := ""
502
+ if (fullPP .Len () != 3 || fullPP .Parts [2 ].Text == "versions" ) &&
503
+ fullPP .Len () != 4 {
504
+ minichecked := ""
505
+ if pw .Info .IsInlineSet (fullPP .Append (NewPPP ("*" )).DB ()) {
506
+ minichecked = " checked"
507
+ }
508
+ mini = fmt .Sprintf (`
509
+ <div class=minicheckdiv>
510
+ <input id=inline%d type='checkbox' class=minicheck value='%s'%s/>.*
511
+ </div>` , inlineCount , inline + ".*" , minichecked )
512
+ inlineCount ++
513
+ }
514
+
496
515
inlines += fmt .Sprintf (`
497
- <div class=inlines>
498
- <input id=inline%d type='checkbox' value='%s'%s/>%s
499
- </div>` , inlineCount , inline , checked , inline )
516
+ <div class='inlines%s'>
517
+ <input id=inline%d type='checkbox' value='%s'%s/>%s%s
518
+ </div>` , hilight , inlineCount , inline , checked , inline , mini )
519
+
500
520
inlineCount ++
501
521
502
522
}
@@ -515,9 +535,9 @@ func (pw *PageWriter) Done() {
515
535
}
516
536
517
537
structureswitch := "false"
538
+ structureButton := ""
518
539
if pw .Info .RootPath == "" || pw .Info .RootPath == "export" {
519
540
structuretext := ""
520
- structureButton := ""
521
541
if pw .Info .ShowStructure {
522
542
structureswitch = "true"
523
543
structuretext = "Show document"
@@ -527,14 +547,11 @@ func (pw *PageWriter) Done() {
527
547
structuretext = "Show structure"
528
548
}
529
549
if pw .Info .ResourceUID != "" && pw .Info .What == "Entity" {
530
- structureButton = fmt .Sprintf (`<div >
531
- <button id=structure onclick='structureswitch=!structureswitch ; apply()' style="font-weight:bold" >%s</button>
532
- </div >
550
+ structureButton = fmt .Sprintf (`<center >
551
+ <button id=structure onclick='structureswitch=!structureswitch ; apply()'>%s</button>
552
+ </center >
533
553
` , structuretext )
534
554
}
535
-
536
- apply = `
537
- ` + structureButton
538
555
}
539
556
540
557
applyBtn := ""
@@ -607,28 +624,39 @@ func (pw *PageWriter) Done() {
607
624
align-items: start ;
608
625
padding: 2px ;
609
626
}
627
+
628
+ .colorButton, #applyBtn, #structure {
629
+ border-radius: 13px ;
630
+ border: 1px solid #407d16 ;
631
+ background: #407d16 ;
632
+ padding: 5 20 6 20 ;
633
+ color: white ;
634
+ }
635
+
610
636
#structure {
637
+ font-weight: bold ;
611
638
display: inline ;
612
639
margin-top: 10px ;
613
640
margin-bottom: 10px ;
641
+ padding: 1 10 2 10 ;
642
+ }
643
+ #structure:hover { background: #c4c4c4 ; color : black ; }
644
+ #structure:active { background: #c4c4c4 ; color : black ; }
645
+ #structure:focus { background: darkgray ; color : black ; }
646
+
647
+ legend {
648
+ margin-bottom: 3 ;
614
649
}
615
650
616
651
fieldset {
617
- // padding: 0 ;
618
- border-width: 2 0 0 2 ;
652
+ border-width: 1 0 1 1 ;
619
653
border-color: black ;
620
- padding: 0 0 0 2 ;
621
- margin-bottom: 10 ;
654
+ padding: 0 0 4 4 ;
622
655
}
623
656
624
657
#applyBtn {
625
658
font-weight: bold ;
626
- margin: 0 5 0 5 ;
627
- border-radius: 13px ;
628
- border: 1px solid #407d16 ;
629
- background: #407d16 ;
630
- padding: 5 20 6 20 ;
631
- color: white ;
659
+ margin: 5 5 0 5 ;
632
660
}
633
661
634
662
#applyBtn:hover { background: #c4c4c4 ; color : black ; }
@@ -663,16 +691,34 @@ func (pw *PageWriter) Done() {
663
691
font-family: courier ;
664
692
}
665
693
.inlines {
694
+ display: flex ;
666
695
font-size: 13px ;
667
696
font-family: courier ;
697
+ align-items: center ;
668
698
}
699
+
700
+ .inlinehilight {
701
+ background-color : #d0d0d0 ;
702
+ }
703
+
704
+ .minicheckdiv {
705
+ margin-left: auto ;
706
+ padding: 0 2 0 5 ;
707
+ }
708
+
709
+ .minicheck {
710
+ height: 10px ;
711
+ width: 10px ;
712
+ margin: 0px ;
713
+ }
714
+
669
715
.line {
670
716
width: 90%% ;
671
717
border-bottom: 1px solid black ;
672
718
margin: 3 0 3 20 ;
673
719
}
674
720
#urlPath {
675
- background-color: lightgray ;
721
+ background-color: ghostwhite; // lightgray ;
676
722
padding: 3px ;
677
723
font-size: 16px ;
678
724
font-family: courier ;
@@ -759,6 +805,7 @@ func (pw *PageWriter) Done() {
759
805
` + roots + `
760
806
<div id=buttonList>
761
807
` + applyBtn + `
808
+ ` + structureButton + `
762
809
</div>
763
810
<div style="height:12px"></div> <!-- buffer for "Commmit:" line -->
764
811
<div id=commit><a target=_blank
0 commit comments