File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -379,11 +379,20 @@ export default {
379
379
} else if (codeFont == ' robotomono' ) {
380
380
fontFamilyCode = ' Roboto Mono'
381
381
}
382
+ let textTransform = ' '
383
+ if (this .activity .capsSwitch ) {
384
+ textTransform = ' uppercase'
385
+ }
386
+ else {
387
+ textTransform = ' none'
388
+ }
382
389
383
390
this .cssProps = {
384
391
' --bodyFont' : fontFamilyBody,
385
392
' --codeFont' : fontFamilyCode,
393
+ ' --transform' : textTransform,
386
394
}
395
+ console .log (this .cssProps )
387
396
},
388
397
389
398
initBlockly : function (settings ) {
@@ -1858,12 +1867,13 @@ export default {
1858
1867
</script >
1859
1868
<style scoped>
1860
1869
.application {
1861
- font-family : var (--bodyFont )
1870
+ font-family : var (--bodyFont );
1871
+ text-transform : var (--transform );
1862
1872
}
1863
1873
1864
1874
pre ,
1865
1875
code {
1866
- font-family : var (--codeFont )
1876
+ font-family : var (--codeFont );
1867
1877
}
1868
1878
1869
1879
.blocklyDiv {
You can’t perform that action at this time.
0 commit comments