Commit abe3472
Update styling (#1335)
closes #1324
## Changes for CCP editor projects
### Heading
- **_Editor-ui_**: The blue box and squiggly line for heading are used
only for projects site editor projects. So it is safe to remove.
- In the past, projects site heading was styled using a css class. Going
forward, it will be pure markdown h2.
- There was a blanket removal of margin from h2 in `instructions.scss`
which made the markdown h2 look strange.
- **_Editor-ui_**: This was replaced with different margin. This doesn't
affect CEfE instructions.
- Task fencing (--- task ---) no longer needed so removed from .md file.
- Need to keep`.c-project-task` css class for existing projects that
contain the task fencing.
### Steps
- Used markdown h3 in .md file.
- With that, they get `id = step-1` etc. probably by kramdown during
project build
- **_Editor-ui_**: Added CCP styling for the steps ids
### 'Now run your code`
- Used markdown h3 in .md file
- With that, it gets `id = now-run-your-code`
- **_Editor-ui_**: Added styling for the id
### Callouts
- No changes in the editor-ui.
- Instead of using html, used kramdown syntax to set classes in .md file
-> worked!
## Screenshots
Before - After (with existing .md format) - After (with new .md format)
<img width="931" alt="Screenshot 2026-02-23 at 11 09 35"
src="https://github.com/user-attachments/assets/52c549c5-d825-4aea-ad40-6a9eb7fa7688"
/>
## Impact on CEfE instructions panel?
CEfE instructions panel does use the `.project-instructions` class with
markdowns; however, the markdown headings don't get ids when used to
populate the instruction panel. So there won't be any impact on CEfE.
---------
Co-authored-by: create-issue-branch[bot] <53036503+create-issue-branch[bot]@users.noreply.github.com>
Co-authored-by: cocomarine <hj.kang@raspberrypi.org>
Co-authored-by: HJ <cocomarine@users.noreply.github.com>1 parent d4a76ea commit abe3472
2 files changed
+42
-25
lines changedLoading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
70 | 107 | | |
71 | 108 | | |
72 | 109 | | |
| |||
202 | 239 | | |
203 | 240 | | |
204 | 241 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 242 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 243 | + | |
230 | 244 | | |
231 | 245 | | |
232 | 246 | | |
| |||
0 commit comments