File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
apps/svelte.dev/src/routes/packages Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 19
19
</script >
20
20
21
21
<section class =" category" >
22
- <header bind:this ={header }>
23
- <h2 >
24
- {title }
25
- </h2 >
26
- </header >
22
+ <h2 bind:this ={header }>
23
+ {title }
24
+ </h2 >
25
+
27
26
{#if description }
28
- <h3 >{@html description }</h3 >
27
+ <p >{@html description }</p >
29
28
{/if }
30
29
31
30
<div class =" content" >
47
46
const { bottom } = header .getBoundingClientRect ();
48
47
49
48
// if the current section is wholly visible, don't muck about with the scroll position
50
- if (bottom > 0 ) {
49
+ if (! showAll || bottom > 0 ) {
51
50
showAll = ! showAll ;
52
51
return ;
53
52
}
70
69
margin-bottom : 3rem ;
71
70
}
72
71
73
- header {
74
- margin-bottom : 1rem ;
75
-
76
- h 2 {
77
- margin : 0 ;
78
- }
72
+ h2 {
73
+ margin : 0 0 1rem 0 ;
79
74
}
80
75
81
76
h3 {
You can’t perform that action at this time.
0 commit comments