mapshaper 0.7.72 → 0.7.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/www/page.css CHANGED
@@ -1362,7 +1362,7 @@ body.simplify .layer-control-btn {
1362
1362
  starts a line has its dot pushed past the left edge of the row and clipped,
1363
1363
  so no line ends or begins with a stray dot. */
1364
1364
  .layer-add-links {
1365
- margin: 2px 0 2px 0;
1365
+ margin: 4px 0 8px 0;
1366
1366
  font-size: 13px;
1367
1367
  line-height: 1.2;
1368
1368
  overflow: hidden;
@@ -1414,20 +1414,20 @@ body.simplify .layer-control-btn {
1414
1414
  }
1415
1415
 
1416
1416
  .layer-menu .layer-list {
1417
- margin-top: -5px;
1418
- /* margin: 0 0 7px 0; */
1417
+ margin-top: -2px;
1419
1418
  }
1420
1419
 
1421
1420
  .layer-menu .layer-item {
1422
1421
  position: relative;
1423
1422
  margin-left: -14px;
1424
1423
  margin-right: 6px;
1425
- padding: 6px 14px;
1424
+ padding: 0 14px;
1426
1425
  width: 100%;
1427
1426
  }
1428
1427
 
1429
1428
  .layer-menu .layer-list .layer-item {
1430
1429
  cursor: pointer;
1430
+ padding: 6px 14px;
1431
1431
  }
1432
1432
 
1433
1433
  .map-frame-section {
@@ -1499,8 +1499,8 @@ img.close-btn {
1499
1499
 
1500
1500
  .pin-all img {
1501
1501
  position: absolute;
1502
- top: 11px;
1503
1502
  cursor: pointer;
1503
+ top: 0;
1504
1504
  }
1505
1505
 
1506
1506
 
@@ -3021,12 +3021,6 @@ body.pan.panning .map-layers:not(.drawing) {
3021
3021
  width: 54px;
3022
3022
  }
3023
3023
 
3024
- .export-frame-info {
3025
- color: #555;
3026
- font-size: 12px;
3027
- margin: 8px 0 12px;
3028
- }
3029
-
3030
3024
  .label-style-panel select,
3031
3025
  .label-saved-style-btn {
3032
3026
  background-image: var(--label-menu-chevron);
@@ -3696,7 +3690,7 @@ body.pan.panning .map-layers:not(.drawing) {
3696
3690
 
3697
3691
  /* In the narrow column beside the fill's colour, level with it and as wide
3698
3692
  as the fields in that column. */
3699
- .label-split-cell > .layer-random-fill-btn {
3693
+ .label-split-cell > .layer-palettes-btn {
3700
3694
  display: flex;
3701
3695
  justify-content: center;
3702
3696
  width: 100%;
@@ -3774,10 +3768,6 @@ body.pan.panning .map-layers:not(.drawing) {
3774
3768
  border-radius: 0;
3775
3769
  }
3776
3770
 
3777
- .label-color-row .label-color-picker input[type="text"] {
3778
- width: 45px;
3779
- }
3780
-
3781
3771
  .label-css-row input {
3782
3772
  width: 100%;
3783
3773
  box-sizing: border-box;
@@ -3824,6 +3814,13 @@ body.pan.panning .map-layers:not(.drawing) {
3824
3814
  box-shadow: 0 1px 7px rgba(0,0,0,0.18);
3825
3815
  }
3826
3816
 
3817
+ /* A style panel is a stacking context, below the floating toolbars (25), so a
3818
+ picker that opens low enough to reach them would be drawn under them. The
3819
+ panel comes forward while one of its pickers is open. */
3820
+ .label-style-panel.color-picker-open {
3821
+ z-index: 26;
3822
+ }
3823
+
3827
3824
  .label-color-picker canvas {
3828
3825
  display: block;
3829
3826
  width: 256px;
@@ -3892,27 +3889,24 @@ body.dragging-color-picker * {
3892
3889
  margin-top: 6px;
3893
3890
  }
3894
3891
 
3895
- .label-color-picker-fields label {
3896
- display: inline-flex;
3897
- align-items: center;
3898
- gap: 3px;
3899
- margin: 0;
3900
- color: #555;
3901
- }
3902
-
3903
- .label-color-picker-fields span {
3904
- display: inline;
3905
- margin: 0;
3906
- color: #555;
3907
- }
3908
-
3909
- .label-color-picker-fields input {
3910
- width: 34px;
3892
+ /* Like the panels' own buttons (.label-panel-action-btn) */
3893
+ .label-color-picker-fields button {
3911
3894
  box-sizing: border-box;
3895
+ height: var(--label-field-height, 22px);
3896
+ margin: 0 0 0 auto;
3897
+ padding: 0 8px;
3898
+ border: 1px solid var(--label-field-border, #c6c6c6);
3899
+ border-radius: var(--label-field-radius, 4px);
3900
+ background-color: white;
3901
+ box-shadow: none;
3902
+ font: inherit;
3903
+ font-size: 12px;
3904
+ color: var(--normal-text);
3905
+ cursor: pointer;
3912
3906
  }
3913
3907
 
3914
- .label-color-picker-fields button {
3915
- margin-left: auto;
3908
+ .label-color-picker-fields button:hover {
3909
+ background-color: #f0f0f0;
3916
3910
  }
3917
3911
 
3918
3912
  .label-style-selection-row {
@@ -4013,7 +4007,8 @@ body.dragging-color-picker * {
4013
4007
 
4014
4008
  /* Words, like the label panel's Fixed/Draggable, but splitting the group
4015
4009
  evenly so that it lines up with the shapes above. */
4016
- .layer-style-panel .layer-arrow-position-buttons .label-panel-btn {
4010
+ .layer-style-panel .layer-arrow-position-buttons .label-panel-btn,
4011
+ .layer-style-panel .layer-cap-buttons .label-panel-btn {
4017
4012
  display: flex;
4018
4013
  align-items: center;
4019
4014
  justify-content: center;
@@ -4369,6 +4364,12 @@ body.dragging-color-picker * {
4369
4364
  pointer-events: none;
4370
4365
  }
4371
4366
 
4367
+ /* Undo/redo stays at the bottom, below any mode toolbar, whichever toolbar
4368
+ happened to be created first. */
4369
+ .floating-toolbar-stack > .edit-toolbar {
4370
+ order: -1;
4371
+ }
4372
+
4372
4373
  .floating-toolbar {
4373
4374
  pointer-events: auto;
4374
4375
  display: flex;
@@ -4670,3 +4671,560 @@ body.dragging-color-picker * {
4670
4671
  .simplify-control .clicktext:focus {
4671
4672
  background: #fff;
4672
4673
  }
4674
+
4675
+ /* Color scheme panel (gui-color-scheme-panel.mjs): it opens in the polygon
4676
+ style panel's place, which is hidden until it closes. */
4677
+ .layer-style-panel.replaced {
4678
+ display: none;
4679
+ }
4680
+
4681
+ .color-scheme-note {
4682
+ font-size: 11px;
4683
+ line-height: 1.3;
4684
+ color: #555;
4685
+ }
4686
+
4687
+ .label-style-panel .color-scheme-select-row > span {
4688
+ margin-bottom: 2px;
4689
+ }
4690
+
4691
+ .color-scheme-palette-cell {
4692
+ position: relative;
4693
+ }
4694
+
4695
+ .color-scheme-palette-btn {
4696
+ display: flex;
4697
+ align-items: center;
4698
+ gap: 6px;
4699
+ box-sizing: border-box;
4700
+ height: var(--label-field-height);
4701
+ padding: 0 20px 0 4px;
4702
+ border: 1px solid var(--label-field-border);
4703
+ border-radius: var(--label-field-radius);
4704
+ background: white var(--label-menu-chevron) no-repeat right 6px center / 10px 7px;
4705
+ cursor: pointer;
4706
+ user-select: none;
4707
+ }
4708
+
4709
+ /* The background stops at the border: a gradient repeats under a border,
4710
+ which would show the first color along the far edge. */
4711
+ .color-scheme-strip {
4712
+ flex: none;
4713
+ width: 48px;
4714
+ height: 12px;
4715
+ border: 1px solid rgba(0,0,0,0.15);
4716
+ background-clip: padding-box;
4717
+ }
4718
+
4719
+ .label-style-panel .color-scheme-palette-btn > span,
4720
+ .label-style-panel .color-scheme-palette-item > span {
4721
+ display: inline;
4722
+ overflow: hidden;
4723
+ text-overflow: ellipsis;
4724
+ white-space: nowrap;
4725
+ font-size: 12px;
4726
+ color: var(--normal-text);
4727
+ }
4728
+
4729
+ .color-scheme-palette-menu {
4730
+ position: absolute;
4731
+ z-index: 2;
4732
+ top: 100%;
4733
+ left: 0;
4734
+ right: -84px;
4735
+ max-height: 260px;
4736
+ overflow-y: auto;
4737
+ margin-top: 2px;
4738
+ padding: 3px 0;
4739
+ background: white;
4740
+ border: 1px solid #ccc;
4741
+ border-radius: var(--label-field-radius);
4742
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
4743
+ }
4744
+
4745
+ .color-scheme-palette-item {
4746
+ display: flex;
4747
+ align-items: center;
4748
+ gap: 8px;
4749
+ padding: 3px 8px;
4750
+ cursor: pointer;
4751
+ }
4752
+
4753
+ .color-scheme-palette-item:hover {
4754
+ background-color: #f0f0f0;
4755
+ }
4756
+
4757
+ .color-scheme-palette-item.selected {
4758
+ background-color: var(--lt-theme-col);
4759
+ }
4760
+
4761
+ .color-scheme-palette-heading {
4762
+ padding: 7px 8px 2px;
4763
+ font-size: 11px;
4764
+ color: #888;
4765
+ cursor: default;
4766
+ }
4767
+
4768
+ .color-scheme-tile-row {
4769
+ margin-top: 10px;
4770
+ }
4771
+
4772
+ .color-scheme-tiles {
4773
+ position: relative;
4774
+ display: flex;
4775
+ gap: 3px;
4776
+ }
4777
+
4778
+ /* Where a dragged categorical swatch would go */
4779
+ .color-scheme-drop-marker {
4780
+ position: absolute;
4781
+ z-index: 1;
4782
+ width: 2px;
4783
+ margin-left: -0.5px;
4784
+ background-color: #000;
4785
+ pointer-events: none;
4786
+ }
4787
+
4788
+ .color-scheme-tiles.dragging .color-scheme-tile {
4789
+ cursor: grabbing;
4790
+ }
4791
+
4792
+ .color-scheme-tiles.dragging .color-scheme-tile:hover::after {
4793
+ display: none;
4794
+ }
4795
+
4796
+ .color-scheme-tile-cell.drag-source .color-scheme-tile {
4797
+ opacity: 0.35;
4798
+ }
4799
+
4800
+ .color-scheme-tiles.two-rows {
4801
+ flex-wrap: wrap;
4802
+ row-gap: 7px;
4803
+ }
4804
+
4805
+ .color-scheme-tiles.two-rows > .color-scheme-tile-cell {
4806
+ flex: none;
4807
+ width: calc((100% - (var(--tiles-per-row) - 1) * 3px) / var(--tiles-per-row));
4808
+ }
4809
+
4810
+ /* The pins' tooltips are placed against the cell, which ends at the pin */
4811
+ .color-scheme-tile-cell {
4812
+ position: relative;
4813
+ flex: 1;
4814
+ min-width: 0;
4815
+ }
4816
+
4817
+ .color-scheme-tile {
4818
+ position: relative;
4819
+ height: 26px;
4820
+ border-radius: 3px;
4821
+ box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
4822
+ cursor: pointer;
4823
+ touch-action: none;
4824
+ user-select: none;
4825
+ }
4826
+
4827
+ .color-scheme-tile.selected {
4828
+ box-shadow: 0 0 0 2px #000;
4829
+ }
4830
+
4831
+ /* A continuous ramp: the gradient over half-height tiles, which are its
4832
+ color stops. The script places each gradient over its tiles. */
4833
+ .color-scheme-gradient {
4834
+ position: relative;
4835
+ height: 12px;
4836
+ margin-bottom: 4px;
4837
+ }
4838
+
4839
+ .color-scheme-gradient-segment {
4840
+ position: absolute;
4841
+ top: 0;
4842
+ height: 100%;
4843
+ border-radius: 3px;
4844
+ box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
4845
+ }
4846
+
4847
+ .color-scheme-tiles.continuous .color-scheme-tile {
4848
+ height: 14px;
4849
+ }
4850
+
4851
+ /* A dot under each color the user set between the ends of a ramp; the ends
4852
+ are always pinned, so they have no dot. */
4853
+ .color-scheme-pin {
4854
+ width: 7px;
4855
+ height: 7px;
4856
+ margin: 4px auto 0;
4857
+ border-radius: 50%;
4858
+ }
4859
+
4860
+ .color-scheme-pin.pinned {
4861
+ background: #222;
4862
+ cursor: pointer;
4863
+ }
4864
+
4865
+ .label-color-picker-fields input.label-color-picker-input {
4866
+ flex: 1;
4867
+ width: auto;
4868
+ min-width: 0;
4869
+ font-family: Menlo, Consolas, monospace;
4870
+ font-size: 11.5px;
4871
+ }
4872
+
4873
+ /* Format tabs over a picker's color field, and the color palette panel's
4874
+ scheme types: a segmented control on a grey well, the chosen tab drawn like
4875
+ the panels' fields and buttons. */
4876
+ .label-color-format-tabs,
4877
+ .color-scheme-tabs {
4878
+ display: flex;
4879
+ margin-top: 6px;
4880
+ border-radius: var(--label-field-radius, 4px);
4881
+ background-color: #f0f0f0;
4882
+ }
4883
+
4884
+ .label-color-picker .label-color-format-tab,
4885
+ .color-scheme-tabs .color-scheme-tab {
4886
+ flex: 1;
4887
+ min-width: 0;
4888
+ box-sizing: border-box;
4889
+ height: var(--label-field-height, 22px);
4890
+ margin: 0;
4891
+ padding: 0 4px;
4892
+ border: 1px solid transparent;
4893
+ border-radius: var(--label-field-radius, 4px);
4894
+ background: transparent;
4895
+ box-shadow: none;
4896
+ font: inherit;
4897
+ font-size: 12px;
4898
+ color: #777;
4899
+ cursor: pointer;
4900
+ }
4901
+
4902
+ .label-color-picker .label-color-format-tab:hover:not(.selected),
4903
+ .color-scheme-tabs .color-scheme-tab:hover:not(.selected) {
4904
+ color: var(--normal-text);
4905
+ }
4906
+
4907
+ .label-color-picker .label-color-format-tab.selected,
4908
+ .color-scheme-tabs .color-scheme-tab.selected {
4909
+ border-color: var(--label-field-border, #c6c6c6);
4910
+ background-color: white;
4911
+ color: var(--normal-text);
4912
+ cursor: default;
4913
+ }
4914
+
4915
+ /* In the style panel, the scheme's colors take the place of the fill's swatch
4916
+ and hex value. */
4917
+ .label-style-panel .label-color-field.has-scheme .label-color-chit,
4918
+ .label-style-panel .label-color-field.has-scheme .label-color-input {
4919
+ display: none;
4920
+ }
4921
+
4922
+ .layer-scheme-strip {
4923
+ display: none;
4924
+ flex: 1;
4925
+ align-items: center;
4926
+ gap: 4px;
4927
+ min-width: 0;
4928
+ height: 100%;
4929
+ cursor: pointer;
4930
+ }
4931
+
4932
+ .label-color-field.has-scheme .layer-scheme-strip {
4933
+ display: flex;
4934
+ }
4935
+
4936
+ .layer-scheme-colors {
4937
+ flex: 1;
4938
+ height: 13px;
4939
+ border: 1px solid rgba(0,0,0,0.22);
4940
+ background-clip: padding-box;
4941
+ }
4942
+
4943
+ .layer-scheme-remove {
4944
+ flex: none;
4945
+ padding: 0 2px;
4946
+ font-size: 14px;
4947
+ line-height: 1;
4948
+ color: #777;
4949
+ }
4950
+
4951
+ .layer-scheme-remove:hover {
4952
+ color: #000;
4953
+ }
4954
+
4955
+ .layer-palettes-btn.selected {
4956
+ background-color: var(--lt-theme-col);
4957
+ }
4958
+
4959
+ .color-scheme-slider-row:not(.hidden) {
4960
+ display: flex;
4961
+ align-items: center;
4962
+ gap: 5px;
4963
+ }
4964
+
4965
+ .color-scheme-tile-row + .color-scheme-slider-row {
4966
+ margin-top: 6px;
4967
+ }
4968
+
4969
+ .color-scheme-slider-label,
4970
+ .color-scheme-hint-label {
4971
+ position: relative;
4972
+ flex: none;
4973
+ cursor: default;
4974
+ }
4975
+
4976
+ /* Gray like the fields and buttons, and the same at rest, on hover and while
4977
+ dragged. --fill (set by the script) is how far the light gray part of the
4978
+ track goes. The handle is a 12px box, which sets how far it travels, drawn
4979
+ as a 16px circle by its box-shadow rings, so that at either end it covers
4980
+ the end of the track. */
4981
+ .color-scheme-slider-row input[type=range] {
4982
+ -webkit-appearance: none;
4983
+ appearance: none;
4984
+ flex: 1;
4985
+ min-width: 0;
4986
+ height: 18px;
4987
+ margin: 0 7px 0 4px;
4988
+ background: transparent;
4989
+ cursor: pointer;
4990
+ }
4991
+
4992
+ .color-scheme-slider-row input[type=range]:focus {
4993
+ outline: none;
4994
+ }
4995
+
4996
+ .color-scheme-slider-row input[type=range]::-webkit-slider-runnable-track {
4997
+ box-sizing: border-box;
4998
+ height: 7px;
4999
+ border: 1px solid var(--label-field-border);
5000
+ border-radius: 3.5px;
5001
+ background: linear-gradient(to right, #dadada var(--fill, 0%), white var(--fill, 0%));
5002
+ }
5003
+
5004
+ .color-scheme-slider-row input[type=range]::-moz-range-track {
5005
+ box-sizing: border-box;
5006
+ height: 7px;
5007
+ border: 1px solid var(--label-field-border);
5008
+ border-radius: 3.5px;
5009
+ background: white;
5010
+ }
5011
+
5012
+ .color-scheme-slider-row input[type=range]::-moz-range-progress {
5013
+ height: 5px;
5014
+ border-radius: 3.5px 0 0 3.5px;
5015
+ background: #dadada;
5016
+ }
5017
+
5018
+ .color-scheme-slider-row input[type=range]::-webkit-slider-thumb {
5019
+ -webkit-appearance: none;
5020
+ width: 12px;
5021
+ height: 12px;
5022
+ margin-top: -3.5px;
5023
+ border: none;
5024
+ border-radius: 50%;
5025
+ background: white;
5026
+ box-shadow: 0 0 0 1px white, 0 0 0 2px #888;
5027
+ }
5028
+
5029
+ .color-scheme-slider-row input[type=range]::-moz-range-thumb {
5030
+ width: 12px;
5031
+ height: 12px;
5032
+ border: none;
5033
+ border-radius: 50%;
5034
+ background: white;
5035
+ box-shadow: 0 0 0 1px white, 0 0 0 2px #888;
5036
+ }
5037
+
5038
+ .color-scheme-slider-row input[type=range]:focus-visible::-webkit-slider-thumb {
5039
+ box-shadow: 0 0 0 1px white, 0 0 0 2px #888, 0 0 0 4px var(--theme-col);
5040
+ }
5041
+
5042
+ .color-scheme-slider-row input[type=range]:focus-visible::-moz-range-thumb {
5043
+ box-shadow: 0 0 0 1px white, 0 0 0 2px #888, 0 0 0 4px var(--theme-col);
5044
+ }
5045
+
5046
+ /* Presets have only the reverse button in the vibrance row, and sequential
5047
+ and diverging presets, the range */
5048
+ .color-scheme-slider-row.preset {
5049
+ justify-content: flex-end;
5050
+ }
5051
+
5052
+ .color-scheme-slider-row.preset > :not(.color-scheme-icon-btn):not(.color-scheme-range-part),
5053
+ .color-scheme-slider-row.preset > .long-hue-btn,
5054
+ .color-scheme-slider-row:not(.ranged) > .color-scheme-range-part {
5055
+ display: none;
5056
+ }
5057
+
5058
+ /* A strip of the whole preset, shaded outside the part the tiles use */
5059
+ .color-scheme-range {
5060
+ position: relative;
5061
+ flex: 1;
5062
+ min-width: 0;
5063
+ height: 12px;
5064
+ margin: 0 9px 0 6px;
5065
+ cursor: pointer;
5066
+ touch-action: none;
5067
+ }
5068
+
5069
+ .color-scheme-range-strip {
5070
+ position: absolute;
5071
+ inset: 0;
5072
+ border-radius: 2px;
5073
+ box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
5074
+ }
5075
+
5076
+ .color-scheme-range-shade {
5077
+ position: absolute;
5078
+ top: 0;
5079
+ bottom: 0;
5080
+ background-color: rgba(255, 255, 255, 0.75);
5081
+ }
5082
+
5083
+ .color-scheme-range-shade.left {
5084
+ left: 0;
5085
+ }
5086
+
5087
+ .color-scheme-range-shade.right {
5088
+ right: 0;
5089
+ }
5090
+
5091
+ .color-scheme-range-handle {
5092
+ position: absolute;
5093
+ top: -4px;
5094
+ bottom: -4px;
5095
+ width: 4px;
5096
+ margin-left: -3px;
5097
+ border: 1px solid #444;
5098
+ border-radius: 2px;
5099
+ background-color: white;
5100
+ cursor: ew-resize;
5101
+ }
5102
+
5103
+ .color-scheme-range-handle:focus-visible {
5104
+ outline: 2px solid var(--theme-col);
5105
+ outline-offset: 1px;
5106
+ }
5107
+
5108
+ /* Takes an end tile of a sequential preset away, shown over the tile on hover */
5109
+ .color-scheme-tile-remove {
5110
+ display: none;
5111
+ position: absolute;
5112
+ top: 2px;
5113
+ right: 2px;
5114
+ width: 14px;
5115
+ height: 14px;
5116
+ padding: 0;
5117
+ border: none;
5118
+ border-radius: 50%;
5119
+ background-color: rgba(255, 255, 255, 0.85);
5120
+ box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
5121
+ color: #333;
5122
+ font-size: 12px;
5123
+ line-height: 14px;
5124
+ text-align: center;
5125
+ cursor: pointer;
5126
+ }
5127
+
5128
+ .color-scheme-tile:hover > .color-scheme-tile-remove {
5129
+ display: block;
5130
+ }
5131
+
5132
+ .color-scheme-icon-btn {
5133
+ position: relative;
5134
+ flex: none;
5135
+ display: inline-flex;
5136
+ align-items: center;
5137
+ justify-content: center;
5138
+ box-sizing: border-box;
5139
+ width: var(--label-field-height, 22px);
5140
+ height: var(--label-field-height, 22px);
5141
+ padding: 0;
5142
+ border: 1px solid var(--label-field-border);
5143
+ border-radius: var(--label-field-radius, 4px);
5144
+ background-color: white;
5145
+ color: var(--normal-text);
5146
+ font: inherit;
5147
+ cursor: pointer;
5148
+ }
5149
+
5150
+ .label-style-row .color-scheme-icon-btn {
5151
+ margin-right: 0;
5152
+ }
5153
+
5154
+ .color-scheme-icon-btn:hover {
5155
+ background-color: #f0f0f0;
5156
+ }
5157
+
5158
+ .color-scheme-icon-btn.selected {
5159
+ background-color: var(--lt-theme-col);
5160
+ }
5161
+
5162
+ /* A bar under the categorical swatches in use, joined across the gaps
5163
+ between them; diverging tiles have one under the tiles their classes use,
5164
+ above the pin dots */
5165
+ .color-scheme-pin.used,
5166
+ .color-scheme-bar.used {
5167
+ width: 100%;
5168
+ height: 3px;
5169
+ margin: 4px 0 0;
5170
+ border-radius: 0;
5171
+ background-color: #333;
5172
+ }
5173
+
5174
+ .color-scheme-pin.used.joined,
5175
+ .color-scheme-bar.used.joined {
5176
+ width: calc(100% + 3px);
5177
+ }
5178
+
5179
+ .color-scheme-bar {
5180
+ height: 3px;
5181
+ margin-top: 4px;
5182
+ }
5183
+
5184
+ .color-scheme-bar + .color-scheme-pin {
5185
+ margin-top: 2px;
5186
+ }
5187
+
5188
+ /* The pivot class switch, level with the select beside it */
5189
+ .color-scheme-toggle-line {
5190
+ display: flex;
5191
+ align-items: center;
5192
+ height: var(--label-field-height);
5193
+ }
5194
+
5195
+ /* Under an interpolated tile whose color was moved to fit the sRGB gamut,
5196
+ in place of a pin dot */
5197
+ .color-scheme-pin.adjusted {
5198
+ width: 0;
5199
+ height: 0;
5200
+ border-radius: 0;
5201
+ border-left: 4px solid transparent;
5202
+ border-right: 4px solid transparent;
5203
+ border-bottom: 7px solid #dd5555;
5204
+ }
5205
+
5206
+ /* In the floating toolbar's tooltip style, below the pins so as not to cover
5207
+ the tiles. A newline in the text breaks the line. --tooltip-shift is set
5208
+ on hover to keep the tooltip inside the window; the script reads the
5209
+ tooltip's width, so it is sized as a border box. */
5210
+ .color-scheme-pin[data-tooltip]:hover::after,
5211
+ .color-scheme-tile[data-tooltip]:hover::after,
5212
+ .color-scheme-slider-label[data-tooltip]:hover::after,
5213
+ .color-scheme-hint-label[data-tooltip]:hover::after,
5214
+ .color-scheme-icon-btn[data-tooltip]:hover::after {
5215
+ content: attr(data-tooltip);
5216
+ box-sizing: border-box;
5217
+ position: absolute;
5218
+ top: calc(100% + 5px);
5219
+ left: 50%;
5220
+ transform: translateX(calc(-50% + var(--tooltip-shift, 0px)));
5221
+ background-color: rgba(40, 40, 40, 0.92);
5222
+ color: #fff;
5223
+ font-size: 11px;
5224
+ line-height: 1.3;
5225
+ white-space: pre;
5226
+ padding: 5px 7px;
5227
+ border-radius: 4px;
5228
+ pointer-events: none;
5229
+ z-index: 1;
5230
+ }