@@ -299,6 +299,25 @@ button {
299
299
}
300
300
}
301
301
302
+ & .toggle {
303
+ background-color : $bgDark ;
304
+ box-shadow : none ;
305
+ border-radius : 2px ;
306
+ & .on {
307
+ box-shadow : 0 0 8px $green inset ;
308
+ outline : 1px solid $green ;
309
+ }
310
+ & :not (.on ) {
311
+ // box-shadow: 0 0 16px $red inset;
312
+ outline : 1px solid $bgLight ;
313
+ // background-color: $darkRed;
314
+ .icon {
315
+ opacity : 0.5 ;
316
+ // filter: brightness(0.4) sepia(1) hue-rotate(-0.4rad) saturate(6);
317
+ }
318
+ }
319
+ }
320
+
302
321
& .blue {
303
322
background-color : #2a73ab ;
304
323
& :hover {
@@ -923,10 +942,11 @@ ul.niceList {
923
942
grid-template-columns : auto min-content ;
924
943
gap : 0px 8px ;
925
944
padding : 8px ;
945
+ margin-bottom : 1px ;
926
946
927
947
font-size : 12pt ;
928
948
929
- border-bottom : 1px solid $bgDark ;
949
+ // border-bottom: 1px solid $bgDark;
930
950
background-color : $bgMed ;
931
951
cursor : pointer ;
932
952
@@ -943,8 +963,8 @@ ul.niceList {
943
963
}
944
964
945
965
& :not (.active ):hover {
946
- outline : 1px solid #586279 ;
947
- outline-offset : -1 px ;
966
+ outline : 1px solid transparentize ( $color : white , $amount : 0.35 ) ;
967
+ outline-offset : -2 px ;
948
968
}
949
969
950
970
button .context {
@@ -1044,7 +1064,13 @@ ul.niceList {
1044
1064
li .active {
1045
1065
background-color : $orange ;
1046
1066
color : black ;
1047
- box-shadow : 0px 0px 2px #ffffcc inset , 0px 0px 4px #aa0000 ;
1067
+ & :not (.customColor ) {
1068
+ box-shadow : 0px 0px 2px #ffffcc inset , 0px 0px 4px #aa0000 ;
1069
+ }
1070
+ & .customColor {
1071
+ outline : 1px solid white ;
1072
+ outline-offset : -2px ;
1073
+ }
1048
1074
}
1049
1075
1050
1076
li .subList.searchMatched {
@@ -1183,6 +1209,7 @@ ul.log {
1183
1209
.icon.down { background-image : url (" ../icons/arrow_down.svg" ); }
1184
1210
1185
1211
.icon.active { background-image : url (" ../icons/active.png" ); }
1212
+ .icon.alpha { background-image : url (" ../icons/alpha.svg" ); }
1186
1213
.icon.appUpdate { background-image : url (" ../icons/appUpdate.svg" ); }
1187
1214
.icon.add { background-image : url (" ../icons/add.svg" ); }
1188
1215
.icon.autoLayer { background-image : url (" ../icons/autoLayer.png" ) }
@@ -1209,6 +1236,7 @@ ul.log {
1209
1236
.icon.enum { background-image : url (" ../icons/enum.png" ); }
1210
1237
.icon.exit { background-image : url (" ../icons/exit.svg" ); }
1211
1238
.icon.expanded { background-image : url (" ../icons/expanded.svg" ); }
1239
+ .icon.fit { background-image : url (" ../icons/fit.svg" ); }
1212
1240
.icon.flatten { background-image : url (" ../icons/flatten.svg" ); }
1213
1241
.icon.folder { background-image : url (" ../icons/folder.svg" ); }
1214
1242
.icon.folderOpen { background-image : url (" ../icons/folderOpen.svg" ); }
@@ -1240,6 +1268,7 @@ ul.log {
1240
1268
.icon.pick { background-image : url (" ../icons/pick.svg" ); }
1241
1269
.icon.prohibited { background-image : url (" ../icons/prohibited.svg" ); }
1242
1270
.icon.project { background-image : url (" ../icons/projectSettings.png" ); }
1271
+ .icon.random { background-image : url (" ../icons/random.svg" ); }
1243
1272
.icon.recall { background-image : url (" ../icons/recall.svg" ); }
1244
1273
.icon.refresh { background-image : url (" ../icons/refresh.svg" ); }
1245
1274
.icon.rename { background-image : url (" ../icons/rename.svg" ); }
@@ -1849,9 +1878,21 @@ dl.form {
1849
1878
}
1850
1879
1851
1880
input [type = color ] {
1881
+ flex : 0 1 64px ;
1852
1882
height : 32px ;
1853
1883
cursor : pointer ;
1854
1884
padding : 0 ;
1885
+ & .null {
1886
+ background-image : url (" ../img/stripes.png" );
1887
+ background-color : gray ;
1888
+ appearance : none ;
1889
+ border-width : 1px ;
1890
+ border-color : transparent ;
1891
+ opacity : 0.3 ;
1892
+ & :hover {
1893
+ opacity : 1 ;
1894
+ }
1895
+ }
1855
1896
}
1856
1897
input [type = color ]:hover {
1857
1898
outline : 1px solid $orange ;
@@ -2126,6 +2167,13 @@ select {
2126
2167
border : 1px solid $bgLight ;
2127
2168
}
2128
2169
2170
+ & .disabled {
2171
+ color : $bgLight ;
2172
+ font-style : italic ;
2173
+ pointer-events : none ;
2174
+ background-color : $bgMed ;
2175
+ }
2176
+
2129
2177
& .selected {
2130
2178
outline : 1px dashed white !important ;
2131
2179
outline-offset : -2px !important ;
@@ -4499,9 +4547,11 @@ canvas#webgl {
4499
4547
width : 100vw ;
4500
4548
height : 100vh ;
4501
4549
z-index : 9999 ;
4502
- background-color : transparentize ($color : $bgDark , $amount : 0.6 );
4503
- background-image : url (" ../img/stripesLight.png" );
4504
- background-repeat : repeat ;
4550
+ & :not (.transparent ) {
4551
+ background-color : transparentize ($color : $bgDark , $amount : 0.6 );
4552
+ background-image : url (" ../img/stripesLight.png" );
4553
+ background-repeat : repeat ;
4554
+ }
4505
4555
}
4506
4556
4507
4557
#page .editor {
@@ -4708,13 +4758,10 @@ canvas#webgl {
4708
4758
align-items : center ;
4709
4759
min-width : 1.2em ;
4710
4760
text-align : center ;
4711
- color : $bgLighter ;
4761
+ opacity : 0.5 ;
4712
4762
font-weight : bold ;
4713
4763
font-size : 8pt ;
4714
4764
}
4715
- & .active .shortcut {
4716
- color : $darkOrange ;
4717
- }
4718
4765
4719
4766
.layerIcon {
4720
4767
display : flex ;
@@ -4828,13 +4875,35 @@ canvas#webgl {
4828
4875
}
4829
4876
}
4830
4877
4831
- #toolOptions {
4832
- select {
4833
- width : 100% ;
4834
- option .bad {
4835
- color : $bgLight ;
4878
+ .optionsWrapper {
4879
+ display : flex ;
4880
+ flex-wrap : nowrap ;
4881
+
4882
+ #toolOptions {
4883
+ display : flex ;
4884
+ flex : 1 ;
4885
+ select {
4886
+ flex : 1 1 100% ;
4887
+ width : 100% ;
4888
+ option .bad {
4889
+ color : $bgLight ;
4890
+ }
4836
4891
}
4837
4892
}
4893
+
4894
+ #paletteOptions {
4895
+ flex : 0 ;
4896
+ display : flex ;
4897
+ flex-wrap : nowrap ;
4898
+
4899
+ & :not (:empty ) {
4900
+ margin-left : 8px ;
4901
+ }
4902
+ }
4903
+
4904
+ button {
4905
+ padding : 2px 4px ;
4906
+ }
4838
4907
}
4839
4908
4840
4909
#mainPaletteWrapper {
@@ -5144,6 +5213,10 @@ canvas#webgl {
5144
5213
}
5145
5214
}
5146
5215
5216
+ .optionsWrapper {
5217
+ display : block ;
5218
+ }
5219
+
5147
5220
#guide {
5148
5221
display : none ;
5149
5222
}
@@ -8203,7 +8276,7 @@ body.sorting ul.collapsedSortTarget {
8203
8276
8204
8277
.options {
8205
8278
display : grid ;
8206
- grid-template-columns : repeat (6 , 1fr );
8279
+ grid-template-columns : repeat (7 , 1fr );
8207
8280
gap : 2px ;
8208
8281
8209
8282
& >* {
@@ -8220,49 +8293,49 @@ body.sorting ul.collapsedSortTarget {
8220
8293
height : 18px ;
8221
8294
}
8222
8295
8223
- .random {
8224
- grid-column : 1 / 4 ;
8225
- display : flex ;
8226
- flex-wrap : nowrap ;
8227
- align-items : center ;
8296
+ input [type = text ] {
8297
+ padding-left : 24px ;
8298
+ font-size : 9pt ;
8299
+ background-repeat : no-repeat ;
8300
+ background-position : 3px center ;
8301
+ background-size : 18px ;
8228
8302
8229
- input [name = " random" ] {
8230
- width : 100% ;
8231
- flex : 1 1 0 ;
8232
- font-size : 9pt ;
8233
- padding-top : 1px ;
8234
- padding-bottom : 1px ;
8235
- background-color : $bgMed ;
8236
- background-image : none !important ;
8237
- & :focus , & .editing {
8238
- background-color : $bgDark ;
8239
- }
8240
- & .max {
8241
- color : $bgLight ;
8242
- }
8303
+ & .max :not (:focus , .editing ) {
8304
+ opacity : 0.25 ;
8305
+ }
8306
+
8307
+ & :focus ,
8308
+ & .editing {
8309
+ background-color : $bgDark ;
8310
+ }
8311
+
8312
+ & [name = " random" ] {
8313
+ grid-column : span 3 ;
8314
+ background-image : url (" ../icons/random.svg" );
8243
8315
& .off {
8244
8316
color : $red ;
8245
8317
}
8246
8318
}
8247
8319
8248
- span {
8249
- font-size : 8pt ;
8250
- color : $bgLighter ;
8251
- padding-right : 8px ;
8320
+ & [name = " alpha" ] {
8321
+ grid-column : span 3 ;
8322
+ background-image : url (" ../icons/alpha.svg" );
8252
8323
}
8253
8324
}
8254
8325
8255
8326
.modulo {
8256
8327
display : grid ;
8328
+ grid-column : span 2 ;
8257
8329
align-items : center ;
8258
- grid-column : 5 / 7 ;
8259
8330
font-size : 9pt ;
8260
8331
text-align : center ;
8261
8332
white-space : nowrap ;
8262
8333
cursor : pointer ;
8263
8334
8264
8335
& .default {
8265
- color : $bgLighter ;
8336
+ opacity : 0.4 ;
8337
+ color : $red ;
8338
+ background-color : $darkRed ;
8266
8339
}
8267
8340
8268
8341
& :hover {
@@ -8271,26 +8344,6 @@ body.sorting ul.collapsedSortTarget {
8271
8344
}
8272
8345
}
8273
8346
8274
- input [name = xModulo ] {
8275
- grid-column : 5 / 6 ;
8276
- }
8277
- input [name = yModulo ] {
8278
- grid-column : 6 / 7 ;
8279
- }
8280
- input [name = xModulo ],
8281
- input [name = yModulo ] {
8282
- // width: 20px;
8283
- font-size : 9pt ;
8284
- text-align : center ;
8285
- color : $help ;
8286
- & :not (.default ) {
8287
- border : 1px solid $green ;
8288
- }
8289
- & .default {
8290
- color : $bgLighter ;
8291
- }
8292
- }
8293
-
8294
8347
a {
8295
8348
flex : 0.5 1 auto ;
8296
8349
display : grid ;
@@ -8640,12 +8693,6 @@ $patternSize : 32px;
8640
8693
8641
8694
.window.dialog.ruleModuloEditor {
8642
8695
8643
- // >.wrapper {
8644
- // padding: $gutter;
8645
- // justify-self: left;
8646
- // margin-left: 80px;
8647
- // }
8648
-
8649
8696
>.wrapper .content {
8650
8697
display : grid ;
8651
8698
max-width : 400px ;
@@ -8654,6 +8701,17 @@ $patternSize : 32px;
8654
8701
.help {
8655
8702
grid-column : 1 / 3 ;
8656
8703
}
8704
+ .form {
8705
+ margin-top : 8px ;
8706
+ padding-top : 8px ;
8707
+ border-top : 1px solid $bgLight ;
8708
+ grid-column : 1 / span 2 ;
8709
+ grid-row : 4 / span 1 ;
8710
+ dt {
8711
+ white-space : nowrap ;
8712
+ max-width : none ;
8713
+ }
8714
+ }
8657
8715
8658
8716
.options {
8659
8717
border : 1px solid $bgLight ;
0 commit comments