|
33 | 33 | // TODO add favicon (from library? gro?) |
34 | 34 | </script> |
35 | 35 |
|
36 | | -<div class="modules_detail"> |
37 | | - <div class="nav_wrapper"> |
| 36 | +<div class="modules-detail"> |
| 37 | + <div class="nav-wrapper"> |
38 | 38 | <section> |
39 | 39 | <ModulesNav {repos_modules} /> |
40 | 40 | </section> |
|
43 | 43 | <ul class="width_atmost_md box unstyled"> |
44 | 44 | {#each repos_modules as repo_modules (repo_modules)} |
45 | 45 | {@const {repo, modules} = repo_modules} |
46 | | - <li class="repo_module"> |
| 46 | + <li class="repo-module"> |
47 | 47 | <header class="width:100% position:relative"> |
48 | 48 | <a href="#{repo.name}" id={repo.name} class="subtitle">🔗</a> |
49 | 49 | <a href={resolve(`/tree/${repo.repo_name}`)}>{repo.name}</a> |
|
58 | 58 | class:css={path.endsWith('.css')} |
59 | 59 | class:json={path.endsWith('.json')} |
60 | 60 | > |
61 | | - <div class="module_file"> |
| 61 | + <div class="module-file"> |
62 | 62 | {#if repo.repo_url} |
63 | 63 | <div class="chip row"> |
64 | 64 | <!-- TODO this is a hack that could be fixed by adding an optional `base: './'` that defaults to './src/lib/' --> |
|
76 | 76 | <ul class="declarations unstyled"> |
77 | 77 | {#each declarations as { name, kind } (name)} |
78 | 78 | {#if name !== 'default'} |
79 | | - <li class="declaration chip {kind}_declaration"> |
| 79 | + <li class="declaration chip {kind}-declaration"> |
80 | 80 | {name} |
81 | 81 | </li> |
82 | 82 | {/if} |
|
94 | 94 | <!-- TODO better rendering, also show author, etc --> |
95 | 95 |
|
96 | 96 | <style> |
97 | | - .modules_detail { |
| 97 | + .modules-detail { |
98 | 98 | position: relative; |
99 | 99 | padding: var(--space_lg); |
100 | 100 | display: flex; |
|
109 | 109 | top: 0; |
110 | 110 | text-align: right; |
111 | 111 | } |
112 | | - .repo_module { |
| 112 | + .repo-module { |
113 | 113 | width: 100%; |
114 | 114 | display: flex; |
115 | 115 | flex-direction: column; |
116 | 116 | margin-bottom: var(--space_xl5); |
117 | 117 | } |
118 | | - .repo_module > header { |
| 118 | + .repo-module > header { |
119 | 119 | display: flex; |
120 | 120 | padding: var(--space_xs) var(--space_md); |
121 | 121 | font-size: var(--font_size_lg); |
|
130 | 130 | margin-bottom: var(--space_lg); |
131 | 131 | --link_color: var(--text_70); |
132 | 132 | } |
133 | | - .module_file { |
| 133 | + .module-file { |
134 | 134 | margin-bottom: var(--space_xs); |
135 | 135 | } |
136 | 136 | .ts { |
|
159 | 159 | font-family: var(--font_family_mono); |
160 | 160 | font-size: var(--font_size_sm); |
161 | 161 | } |
162 | | - .variable_declaration { |
| 162 | + .variable-declaration { |
163 | 163 | color: var(--color_d_50); |
164 | 164 | } |
165 | | - .function_declaration { |
| 165 | + .function-declaration { |
166 | 166 | color: var(--color_c_50); |
167 | 167 | } |
168 | | - .type_declaration { |
| 168 | + .type-declaration { |
169 | 169 | color: var(--color_g_50); |
170 | 170 | } |
171 | | - .class_declaration { |
| 171 | + .class-declaration { |
172 | 172 | color: var(--color_f_50); |
173 | 173 | } |
174 | 174 | /* TODO extract */ |
175 | | - .nav_wrapper { |
| 175 | + .nav-wrapper { |
176 | 176 | position: sticky; |
177 | 177 | top: var(--space_xl); |
178 | 178 | display: flex; |
|
0 commit comments