File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- // Componente reutilizável para exibir uma caixa de nota estilizada.
3
- // Ele usa um slot padrão para receber o conteúdo da nota.
4
2
---
5
- <div class = " custom-note-box " >
6
- <slot /> { /* O conteúdo da nota será inserido aqui */ }
7
- </div >
3
+ <NoteBox >
4
+ <slot />
5
+ </NoteBox >
8
6
9
7
<style >
10
8
.custom-note-box {
11
- background-color: var(--sl-color-blue-low); /* Tema Claro */
9
+ background-color: var(--sl-color-blue-low);
12
10
border-left: 4px solid var(--sl-color-blue);
13
11
border-radius: 8px;
14
12
padding: 1rem 1.25rem;
15
- margin-bottom: 1rem; /* Espaço abaixo se houver múltiplas notas */
13
+ margin-bottom: 1rem;
16
14
color: var(--sl-color-text);
17
15
}
18
16
html[data-theme="dark"] .custom-note-box {
19
- background-color: var(--sl-color-gray-5); /* Tema Escuro */
17
+ background-color: var(--sl-color-gray-5);
20
18
}
21
19
</style >
You can’t perform that action at this time.
0 commit comments