Skip to content

Commit dd1ef7e

Browse files
committed
apply text-transform based on activity template
1 parent e8e31b9 commit dd1ef7e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/Activity.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,20 @@ export default {
379379
} else if (codeFont == 'robotomono') {
380380
fontFamilyCode = 'Roboto Mono'
381381
}
382+
let textTransform = ''
383+
if (this.activity.capsSwitch) {
384+
textTransform = 'uppercase'
385+
}
386+
else{
387+
textTransform = 'none'
388+
}
382389
383390
this.cssProps = {
384391
'--bodyFont': fontFamilyBody,
385392
'--codeFont': fontFamilyCode,
393+
'--transform': textTransform,
386394
}
395+
console.log(this.cssProps)
387396
},
388397
389398
initBlockly: function(settings) {
@@ -1858,12 +1867,13 @@ export default {
18581867
</script>
18591868
<style scoped>
18601869
.application {
1861-
font-family: var(--bodyFont)
1870+
font-family: var(--bodyFont);
1871+
text-transform: var(--transform);
18621872
}
18631873
18641874
pre,
18651875
code {
1866-
font-family: var(--codeFont)
1876+
font-family: var(--codeFont);
18671877
}
18681878
18691879
.blocklyDiv {

0 commit comments

Comments
 (0)