Skip to content

Commit

Permalink
Sticky Data Component name while scrolling techniques table
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Jan 7, 2025
1 parent 7ead378 commit 7e775a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/datasources/templates/datasource.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ <h2 class="pt-3" id="datacomponents">Data Components</h2>
<div class="col-md-12 section-view {% for domain in datacomponent.domains %}{{domain}} {% endfor %}">
<a class="anchor" id="{{datacomponent.name}}"></a>

<div class="section-desktop-view anchor-section">
<h4 class="pt-3">{{parsed.name}}: {{datacomponent.name}}</h4>
<div class="section-shadow"></div>
</div>
<div class="section-desktop-view">
<h4 class="pt-3 anchor-section">{{parsed.name}}: {{datacomponent.name}}</h4>
{% if datacomponent.descr %}
<div class="description-body">
{% if parsed.deprecated %}
Expand All @@ -160,11 +163,10 @@ <h4 class="pt-3 anchor-section">{{parsed.name}}: {{datacomponent.name}}</h4>
{{clean_output.stixToHTML(datacomponent.descr, parsed.citations)}}
</div>
{% endif %}
<div class="section-shadow"></div>
</div>

<div class="section-mobile-view">
<h4 class="pt-3 anchor-section">{{parsed.name}}: {{datacomponent.name}}</h4>
<div class="section-mobile-view anchor-section">
<h4 class="pt-3">{{parsed.name}}: {{datacomponent.name}}</h4>
<div class="section-shadow"></div>
</div>
<div class="section-mobile-view">
Expand Down

0 comments on commit 7e775a5

Please sign in to comment.