You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything starts with wrapping a codeblock with `.codewindow` fenced div. So
16
+
17
+
`````markdown
18
+
::: {.codewindow}
19
+
```{{scss}}
20
+
.pink {
21
+
color: pink;
22
+
}
23
+
```
24
+
:::
25
+
`````
26
+
27
+
becomes
12
28
13
29
::: {.codewindow}
30
+
14
31
```{scss}
15
32
.pink {
16
33
color: pink;
17
34
}
18
35
```
19
36
:::
20
37
21
-
my friend
38
+
## file name on file tab
22
39
23
-
::: {.codewindow .sass}
40
+
THe file name can be specified by writing the name as plain text inside the `codewindow` div. So
41
+
42
+
`````markdown
43
+
::: {.codewindow}
44
+
styles.scss
45
+
```{{scss}}
46
+
.pink {
47
+
color: pink;
48
+
}
49
+
```
50
+
:::
51
+
`````
52
+
53
+
becomes
54
+
55
+
::: {.codewindow}
56
+
styles.scss
24
57
```{scss}
25
58
.pink {
26
59
color: pink;
27
60
}
28
61
```
29
62
:::
30
63
31
-
::: {.codewindow width="50%"}
64
+
## File icon
65
+
66
+
Adding a css class to the `.codewindow` div will add icon if supported. so
67
+
68
+
`````markdown
69
+
::: {.codewindow .sass}
70
+
styles.scss
71
+
```{{scss}}
72
+
.pink {
73
+
color: pink;
74
+
}
75
+
```
76
+
:::
77
+
`````
78
+
79
+
becomes
80
+
81
+
::: {.codewindow .sass}
82
+
styles.scss
32
83
```{scss}
33
84
.pink {
34
85
color: pink;
35
86
}
36
87
```
37
88
:::
38
89
90
+
## Setting width
39
91
40
-
## Getting up
92
+
The `width` argument is natively supported, so the width can be set like so:
41
93
42
-
- Turn off alarm
43
-
- Get out of bed
94
+
`````markdown
95
+
::: {.codewindow .sass width="350px"}
96
+
styles.scss
97
+
```{{scss}}
98
+
.pink {
99
+
color: pink;
100
+
}
101
+
```
102
+
:::
103
+
`````
44
104
45
-
## Breakfast
105
+
becomes
46
106
47
-
- Eat eggs
48
-
- Drink coffee
107
+
::: {.codewindow .sass width="350px"}
108
+
styles.scss
109
+
```{scss}
110
+
.pink {
111
+
color: pink;
112
+
}
113
+
```
114
+
:::
49
115
50
-
#In the evening
116
+
## Additional notes
51
117
52
-
## Dinner
118
+
These divs should work like any other divs. So you can pass in other styles with `styles=""` and use [absolute position](https://quarto.org/docs/presentations/revealjs/advanced.html#absolute-position)
0 commit comments