Skip to content

Commit b915018

Browse files
nzakasmdjermanovic
andauthored
docs: Update website UI to latest (#15944)
* docs: Update website UI to latest * Update docs/src/_includes/components/docs-toc.html Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/_includes/components/nav-version-switcher.html Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/_includes/components/nav-version-switcher.html Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/_includes/components/nav-version-switcher.html Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/_includes/components/navigation.html Co-authored-by: Milos Djermanovic <[email protected]> * Fix hidden attribute * Update docs/src/_includes/components/theme-switcher.html Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/_includes/components/theme-switcher.html Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/assets/js/focus-visible.js Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/assets/js/main.js Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/assets/js/components-index.js Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/assets/js/main.js Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/assets/js/main.js Co-authored-by: Milos Djermanovic <[email protected]> Co-authored-by: Milos Djermanovic <[email protected]>
1 parent 55319e1 commit b915018

84 files changed

Lines changed: 547 additions & 5681 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ yarn.lock
2828
package-lock.json
2929
pnpm-lock.yaml
3030

31-
# Docs site output
31+
# Docs site
3232
_site
33+
/docs/src/assets/css
Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{%- macro warning(params) -%}
2-
<div role="note" class="alert alert--warning">
2+
<aside role="note" class="alert alert--warning">
33
<svg class="alert__icon" aria-hidden="true" focusable="false" width="19" height="20" viewBox="0 0 19 20" fill="none">
44
<path d="M9.49999 6.66667V10M9.49999 13.3333H9.50832M17.8333 10C17.8333 14.6024 14.1024 18.3333 9.49999 18.3333C4.89762 18.3333 1.16666 14.6024 1.16666 10C1.16666 5.39763 4.89762 1.66667 9.49999 1.66667C14.1024 1.66667 17.8333 5.39763 17.8333 10Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
55
</svg>
@@ -8,18 +8,11 @@
88
<div class="alert__text">{{ params.text }}</div>
99
<a href="{{ params.url }}" class="alert__learn-more">Learn more</a>
1010
</div>
11-
12-
<!-- <button class="alert__remove-btn" hidden>
13-
<span class="visually-hidden">Remove</span>
14-
<svg width="13" height="12" viewBox="0 0 13 12" fill="none" aria-hidden="true" focusable="false">
15-
<path d="M11.5 1L1.5 11M1.5 1L11.5 11" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
16-
</svg>
17-
</button> -->
18-
</div>
11+
</aside>
1912
{%- endmacro -%}
2013

2114
{%- macro important(params) -%}
22-
<div role="note" class="alert alert--important">
15+
<aside role="note" class="alert alert--important">
2316
<svg class="alert__icon" aria-hidden="true" focusable="false" width="21" height="18" viewBox="0 0 21 18" fill="none">
2417
<path d="M10.4998 6.66666V9.99999M10.4998 13.3333H10.5081M9.0748 2.38333L2.01647 14.1667C1.87094 14.4187 1.79394 14.7044 1.79313 14.9954C1.79231 15.2864 1.86771 15.5726 2.01183 15.8254C2.15594 16.0783 2.36374 16.2889 2.61456 16.4365C2.86538 16.5841 3.15047 16.6635 3.44147 16.6667H17.5581C17.8491 16.6635 18.1342 16.5841 18.385 16.4365C18.6359 16.2889 18.8437 16.0783 18.9878 15.8254C19.1319 15.5726 19.2073 15.2864 19.2065 14.9954C19.2057 14.7044 19.1287 14.4187 18.9831 14.1667L11.9248 2.38333C11.7762 2.13841 11.5671 1.93593 11.3175 1.7954C11.0679 1.65487 10.7862 1.58104 10.4998 1.58104C10.2134 1.58104 9.93175 1.65487 9.68214 1.7954C9.43254 1.93593 9.22336 2.13841 9.0748 2.38333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
2518
</svg>
@@ -28,18 +21,11 @@
2821
<div class="alert__text">{{ params.text }}</div>
2922
<a href="{{ params.url }}" class="alert__learn-more">Learn more</a>
3023
</div>
31-
32-
<!-- <button class="alert__remove-btn" hidden>
33-
<span class="visually-hidden">Remove</span>
34-
<svg width="13" height="12" viewBox="0 0 13 12" fill="none" aria-hidden="true" focusable="false">
35-
<path d="M11.5 1L1.5 11M1.5 1L11.5 11" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
36-
</svg>
37-
</button> -->
38-
</div>
24+
</aside>
3925
{%- endmacro -%}
4026

4127
{%- macro tip(params) -%}
42-
<div role="note" class="alert alert--tip">
28+
<aside role="note" class="alert alert--tip">
4329
<svg class="alert__icon" aria-hidden="true" focusable="false" width="19" height="20" viewBox="0 0 19 20" fill="none">
4430
<path d="M17.8333 9.23333V10C17.8323 11.797 17.2504 13.5456 16.1744 14.9849C15.0985 16.4241 13.5861 17.4771 11.8628 17.9866C10.1395 18.4961 8.29771 18.4349 6.61205 17.8122C4.92639 17.1894 3.4872 16.0384 2.50912 14.5309C1.53105 13.0234 1.06648 11.2401 1.18472 9.44693C1.30296 7.6538 1.99766 5.94694 3.16522 4.58089C4.33278 3.21485 5.91064 2.26282 7.66348 1.86679C9.41632 1.47076 11.2502 1.65195 12.8917 2.38333M17.8333 3.33333L9.49999 11.675L6.99999 9.175" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
4531
</svg>
@@ -48,12 +34,5 @@
4834
<div class="alert__text">{{ params.text }}</div>
4935
<a href="{{ params.url }}" class="alert__learn-more">Learn more</a>
5036
</div>
51-
52-
<!-- <button class="alert__remove-btn" hidden>
53-
<span class="visually-hidden">Remove</span>
54-
<svg width="13" height="12" viewBox="0 0 13 12" fill="none" aria-hidden="true" focusable="false">
55-
<path d="M11.5 1L1.5 11M1.5 1L11.5 11" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
56-
</svg>
57-
</button> -->
58-
</div>
37+
</aside>
5938
{%- endmacro -%}

docs/src/_includes/components/docs-index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@
1111
{%- endmacro %}
1212

1313
<nav class="docs-index" id="docs-index">
14-
<button class="docs-index-toggle" aria-label="Index" id="js-docs-index-toggle" hidden>
14+
<button class="docs-index-toggle" id="js-docs-index-toggle" hidden>
1515
Index
16-
<svg width="20" height="20" viewBox="20 20 60 60">
16+
<svg width="20" height="20" viewBox="20 20 60 60" aria-hidden="true" focusable="false">
1717
<path id="ham-top" d="M30,37 L70,37 Z" stroke="currentColor"></path>
1818
<path id="ham-middle" d="M30,50 L70,50 Z" stroke="currentColor"></path>
1919
<path id="ham-bottom" d="M30,63 L70,63 Z" stroke="currentColor"></path>
2020
</svg>
2121
</button>
22-
<ul class="docs-index__list" id="js-docs-index-list">
23-
{%- for entry in navPages %}{{ renderNavListItem(entry) }}{%- endfor -%}
24-
</ul>
22+
<div class="docs__index__panel" id="js-docs-index-panel">
23+
{% include 'components/search.html' %}
24+
25+
<ul class="docs-index__list" id="js-docs-list">
26+
{%- for entry in navPages %}{{ renderNavListItem(entry) }}{%- endfor -%}
27+
</ul>
28+
</div>
2529
</nav>

docs/src/_includes/components/nav-version-switcher.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1+
<!-- only displayed in mobile; be sure to update version-switcher.html too -->
12
<div class="version-switcher">
23
<a href="/versions/" class="switcher-fallback">Versions</a>
34

45
<div hidden role="region" class="switcher switcher--version" aria-labelledby="nav-version-switcher-label" id="nav-version-switcher">
5-
<span id="nav-version-switcher-label" hidden>Language Switcher</span>
6+
<span id="nav-version-switcher-label" hidden>Version Switcher</span>
67
<div class="infobox visually-hidden" id="nav-version-infobox">
7-
Selecting a language will take you to the ESLint Web site in that language.
8+
Selecting a version will take you to the chosen version of the ESLint docs.
89
</div>
910

1011
<label class="switcher__label label--block" for="version-select">
11-
Version
12+
<span class="label__text">Version</span>
1213
</label>
13-
<select name="version selector" id="nav-version-select" aria-describedby="version-infobox" class="c-custom-select switcher__select auto-switcher">
14-
<option value="{{ eslintVersion }}" selected>
15-
v{{ eslintVersion }}
16-
</option>
14+
<select name="version selector" id="nav-version-select" aria-describedby="nav-version-infobox" class="c-custom-select switcher__select auto-switcher">
15+
<option value="{{ eslintVersion }}" selected>v{{ eslintVersion }}</option>
1716
{% for version in versions.items %}
1817
<option value="{{ version.number }}"
19-
data-url="{{ version.url }}"
20-
{% if config.version == version.number %} selected {% endif %}>
18+
data-url="{{ version.url }}">
2119
v{{ version.number }}
2220
</option>
2321
{% endfor %}

docs/src/_includes/components/navigation.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<nav class="docs-site-nav" aria-label="Main">
22
<div class="flexer">
3-
<a href="https://eslint.org/donate" class="c-btn c-btn--primary donate-link">Donate</a>
3+
<a href="/donate/" class="c-btn c-btn--primary donate-link">Donate</a>
44
<button class="docs-site-nav-toggle" aria-label="Menu" id="nav-toggle" hidden>
55
<svg width="20" height="20" viewBox="20 20 60 60">
66
<path id="ham-top" d="M30,37 L70,37 Z" stroke="currentColor"></path>
@@ -19,7 +19,6 @@
1919
</ul>
2020
<div class="mobile-only">
2121
{% include 'components/nav-version-switcher.html' %}
22-
{% include 'components/nav-search.html' %}
2322
</div>
2423
</div>
2524
</nav>

docs/src/_includes/components/rule.macro.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span class="rule__status">deprecated</span>
88
</p>
99
{%- if params.replacedBy|length -%}
10-
<p class="rule__description">Replaced by <a href="{{ '/rules' | url }}/{{ params.replacedBy }}"><code>{{ params.replacedBy }}</code></a></p>
10+
<p class="rule__description">Replaced by <a href="{{ ['/rules/', params.replacedBy] | join | url }}"><code>{{ params.replacedBy }}</code></a></p>
1111
{%- else -%}<p class="rule__description">{{ params.description }}</p>
1212
{%- endif -%}
1313
{%- elseif params.removed == true -%}
@@ -16,11 +16,11 @@
1616
<span class="rule__status">removed</span>
1717
</p>
1818
{%- if params.replacedBy -%}
19-
<p class="rule__description">Replaced by <a href="{{ '/rules' | url }}/{{ params.replacedBy }}"><code>{{ params.replacedBy }}</code></a></p>
19+
<p class="rule__description">Replaced by <a href="{{ ['/rules/', params.replacedBy] | join | url }}"><code>{{ params.replacedBy }}</code></a></p>
2020
{%- else -%}<p class="rule__description">{{ params.description }}</p>
2121
{%- endif -%}
2222
{%- else -%}
23-
<a href="{{ '/rules' | url }}/{{ params.name }}" class="rule__name">{{ params.name }}</a>
23+
<a href="{{ ['/rules/', params.name] | join | url }}" class="rule__name">{{ params.name }}</a>
2424
<p class="rule__description">{{ params.description }}</p>
2525
{%- endif -%}
2626
</div>
Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
<div role="region" aria-labelledby="search-label" class="search">
22
<label for="search" class="label--block">
33
<span class="label__text" id="search-label">Search</span>
4-
<div class="search__input-wrapper">
5-
<svg class="search__icon" width="20" height="20" viewBox="0 0 20 20" fill="none" aria-hidden="true" focusable="false">
6-
<path d="M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
7-
</svg>
8-
<input type="search" id="search" class="search__input" autocomplete="off">
9-
</div>
104
</label>
11-
<div id="search-results"></div>
5+
<div class="search__input-wrapper">
6+
<svg class="search__icon" width="20" height="20" viewBox="0 0 20 20" fill="none" aria-hidden="true" focusable="false">
7+
<path d="M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" />
8+
</svg>
9+
<p class="visually-hidden" id="search-hint">Results will be shown and updated as you type.</p>
10+
<div class="search__inner-input-wrapper">
11+
<input type="search" id="search" class="search__input" autocomplete="off" aria-describedby="search-hint" pattern="\S+">
12+
<button class="search__clear-btn" id="search__clear-btn" hidden>
13+
<span class="visually-hidden">Clear search</span>
14+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true" focusable="false">
15+
<path d="M9 3L3 9M3 3L9 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" />
16+
</svg>
17+
</button>
18+
</div>
19+
</div>
20+
<div id="search-results-announcement" class="visually-hidden" aria-live="polite" aria-atomic="true"></div>
21+
<div id="search-results" class="search-results"></div>
1222
</div>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div role="region" class="theme-switcher" aria-labelledby="theme-switcher-label" id="js-theme-switcher" hidden>
2-
<h2 class="theme-switcher-label" id="theme-switcher-label">Theme <span class="visually-hidden">Switcher</span></h2>
2+
<h2 class="theme-switcher-label visually-hidden" id="theme-switcher-label">Theme <span class="visually-hidden">Switcher</span></h2>
33
<div class="theme-switcher__buttons">
44
<button class="theme-switcher__button js-toggle-button" id="light-theme-toggle" data-theme="light">
5-
<span class="visually-hidden">Light</span>
6-
<svg class="theme-switcher__icon" focusable="false" width="22" height="22" role="img" aria-label="Sun" viewBox="0 0 100 100" aria-hidden="true"><g transform="translate(0,-952.36218)"><path d="m 50,955.36218 c 1.6568,0 3,1.3431 3,3 l 0,16 c 0,1.6569 -1.3432,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 l 0,-16 c 0,-1.6569 1.3431,-3 3,-3 z m 31.125,12.875 c 0.76777,0 1.50798,0.3205 2.09375,0.9062 1.17159,1.1717 1.17157,3.0472 0,4.2188 l -11.3125,11.3125 c -1.17157,1.1716 -3.04714,1.1716 -4.21875,0 -1.17153,-1.1715 -1.17158,-3.0472 0,-4.2187 L 79,969.14338 c 0.58579,-0.5857 1.35723,-0.9062 2.125,-0.9062 z m -62.25,0 c 0.76777,0 1.53921,0.3205 2.125,0.9062 l 11.3125,11.3126 c 1.17158,1.1715 1.17153,3.0472 0,4.2187 -1.17161,1.1716 -3.04718,1.1716 -4.21875,0 l -11.3125,-11.3125 c -1.17157,-1.1716 -1.17159,-3.0471 0,-4.2188 0.58577,-0.5857 1.32598,-0.9062 2.09375,-0.9062 z M 50,983.36218 c 10.45786,0 19,8.5422 19,19.00002 0,10.4579 -8.54214,19 -19,19 -10.45784,0 -19,-8.5421 -19,-19 0,-10.45792 8.54216,-19.00002 19,-19.00002 z m 0,6 c -7.21516,0 -13,5.7848 -13,13.00002 0,7.2152 5.78484,13 13,13 7.21518,0 13,-5.7848 13,-13 0,-7.21522 -5.78482,-13.00002 -13,-13.00002 z m 44,10 c 1.65686,0 2.99999,1.34322 3,3.00002 -1e-5,1.6569 -1.34315,3 -3,3 l -16,0 c -1.65685,0 -3,-1.3431 -3,-3 0,-1.6568 1.34316,-3.00002 3,-3.00002 l 16,0 z m -72,0 c 1.65684,0 3,1.34322 3,3.00002 0,1.6569 -1.34315,3 -3,3 l -16,0 c -1.65685,0 -2.99999,-1.3431 -3,-3 1e-5,-1.6568 1.34314,-3.00002 3,-3.00002 l 16,0 z m 47.8125,19.81252 c 0.76777,0 1.50797,0.2892 2.09375,0.875 l 11.3125,11.3125 c 1.17158,1.1716 1.17152,3.0472 0,4.2188 -1.1716,1.1715 -3.04718,1.1715 -4.21875,0 l -11.3125,-11.3126 c -1.17157,-1.1715 -1.1716,-3.0471 0,-4.2187 0.58577,-0.5858 1.35723,-0.875 2.125,-0.875 z m -39.625,0 c 0.76777,0 1.53923,0.2892 2.125,0.875 1.1716,1.1716 1.17157,3.0472 0,4.2187 L 21,1035.581 c -1.17157,1.1715 -3.04715,1.1715 -4.21875,0 -1.17152,-1.1716 -1.17158,-3.0472 0,-4.2188 l 11.3125,-11.3125 c 0.58578,-0.5858 1.32598,-0.875 2.09375,-0.875 z M 50,1027.3622 c 1.6568,0 3,1.3431 3,3 l 0,16 c 0,1.6569 -1.3432,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 l 0,-16 c 0,-1.6569 1.3431,-3 3,-3 z" fill="currentColor" fill-opacity="1" stroke="none"></path></g></svg>
5+
<svg class="theme-switcher__icon" focusable="false" width="22" height="22" viewBox="0 0 100 100" aria-hidden="true"><g transform="translate(0,-952.36218)"><path d="m 50,955.36218 c 1.6568,0 3,1.3431 3,3 l 0,16 c 0,1.6569 -1.3432,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 l 0,-16 c 0,-1.6569 1.3431,-3 3,-3 z m 31.125,12.875 c 0.76777,0 1.50798,0.3205 2.09375,0.9062 1.17159,1.1717 1.17157,3.0472 0,4.2188 l -11.3125,11.3125 c -1.17157,1.1716 -3.04714,1.1716 -4.21875,0 -1.17153,-1.1715 -1.17158,-3.0472 0,-4.2187 L 79,969.14338 c 0.58579,-0.5857 1.35723,-0.9062 2.125,-0.9062 z m -62.25,0 c 0.76777,0 1.53921,0.3205 2.125,0.9062 l 11.3125,11.3126 c 1.17158,1.1715 1.17153,3.0472 0,4.2187 -1.17161,1.1716 -3.04718,1.1716 -4.21875,0 l -11.3125,-11.3125 c -1.17157,-1.1716 -1.17159,-3.0471 0,-4.2188 0.58577,-0.5857 1.32598,-0.9062 2.09375,-0.9062 z M 50,983.36218 c 10.45786,0 19,8.5422 19,19.00002 0,10.4579 -8.54214,19 -19,19 -10.45784,0 -19,-8.5421 -19,-19 0,-10.45792 8.54216,-19.00002 19,-19.00002 z m 0,6 c -7.21516,0 -13,5.7848 -13,13.00002 0,7.2152 5.78484,13 13,13 7.21518,0 13,-5.7848 13,-13 0,-7.21522 -5.78482,-13.00002 -13,-13.00002 z m 44,10 c 1.65686,0 2.99999,1.34322 3,3.00002 -1e-5,1.6569 -1.34315,3 -3,3 l -16,0 c -1.65685,0 -3,-1.3431 -3,-3 0,-1.6568 1.34316,-3.00002 3,-3.00002 l 16,0 z m -72,0 c 1.65684,0 3,1.34322 3,3.00002 0,1.6569 -1.34315,3 -3,3 l -16,0 c -1.65685,0 -2.99999,-1.3431 -3,-3 1e-5,-1.6568 1.34314,-3.00002 3,-3.00002 l 16,0 z m 47.8125,19.81252 c 0.76777,0 1.50797,0.2892 2.09375,0.875 l 11.3125,11.3125 c 1.17158,1.1716 1.17152,3.0472 0,4.2188 -1.1716,1.1715 -3.04718,1.1715 -4.21875,0 l -11.3125,-11.3126 c -1.17157,-1.1715 -1.1716,-3.0471 0,-4.2187 0.58577,-0.5858 1.35723,-0.875 2.125,-0.875 z m -39.625,0 c 0.76777,0 1.53923,0.2892 2.125,0.875 1.1716,1.1716 1.17157,3.0472 0,4.2187 L 21,1035.581 c -1.17157,1.1715 -3.04715,1.1715 -4.21875,0 -1.17152,-1.1716 -1.17158,-3.0472 0,-4.2188 l 11.3125,-11.3125 c 0.58578,-0.5858 1.32598,-0.875 2.09375,-0.875 z M 50,1027.3622 c 1.6568,0 3,1.3431 3,3 l 0,16 c 0,1.6569 -1.3432,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 l 0,-16 c 0,-1.6569 1.3431,-3 3,-3 z" fill="currentColor" fill-opacity="1" stroke="none"></path></g></svg>
6+
<span>Light</span>
77
</button>
88
<button class="theme-switcher__button js-toggle-button" id="dark-theme-toggle" data-theme="dark">
9-
<span class="visually-hidden">Dark</span>
10-
<svg class="theme-switcher__icon" focusable="false" width="22" height="22" role="img" aria-label="Moon" viewBox="0 0 100 100" aria-hidden="true"><g transform="translate(0,-952.36218)"><path d="m 35.377874,961.36325 a 3.0003,3.0003 0 0 0 -0.9063,0.1875 c -16.1759,5.9947 -25.4686997,21.7109 -25.4686997,39.59375 0,23.2769 18.9104997,42.2187 42.1873997,42.2187 17.8829,0 33.6304,-9.324 39.625,-25.5 a 3.0003,3.0003 0 0 0 -3.9374,-3.8125 c -4.0936,1.6462 -8.5949,2.5 -13.3438,2.5 -19.5969,0 -37.7188,-18.15315 -37.7188,-37.74995 0,-4.7489 0.8226,-9.2504 2.4688,-13.3437 a 3.0003,3.0003 0 0 0 -2.9062,-4.0938 z m -4.6563,8.7188 c -0.5822,2.8241 -0.9063,5.7363 -0.9063,8.7187 0,23.21085 20.5079,43.74995 43.7188,43.74995 2.9824,0 5.8946,-0.3553 8.7188,-0.9375 -6.2657,10.0487 -17.6431,15.75 -31.0626,15.75 -20.0342,0 -36.1874,-16.1844 -36.1874,-36.2187 0,-13.42105 5.6679,-24.79725 15.7187,-31.06245 z" fill="currentColor" fill-opacity="1" stroke="none"></path></g></svg>
9+
<svg class="theme-switcher__icon" focusable="false" width="22" height="22" viewBox="0 0 100 100" aria-hidden="true"><g transform="translate(0,-952.36218)"><path d="m 35.377874,961.36325 a 3.0003,3.0003 0 0 0 -0.9063,0.1875 c -16.1759,5.9947 -25.4686997,21.7109 -25.4686997,39.59375 0,23.2769 18.9104997,42.2187 42.1873997,42.2187 17.8829,0 33.6304,-9.324 39.625,-25.5 a 3.0003,3.0003 0 0 0 -3.9374,-3.8125 c -4.0936,1.6462 -8.5949,2.5 -13.3438,2.5 -19.5969,0 -37.7188,-18.15315 -37.7188,-37.74995 0,-4.7489 0.8226,-9.2504 2.4688,-13.3437 a 3.0003,3.0003 0 0 0 -2.9062,-4.0938 z m -4.6563,8.7188 c -0.5822,2.8241 -0.9063,5.7363 -0.9063,8.7187 0,23.21085 20.5079,43.74995 43.7188,43.74995 2.9824,0 5.8946,-0.3553 8.7188,-0.9375 -6.2657,10.0487 -17.6431,15.75 -31.0626,15.75 -20.0342,0 -36.1874,-16.1844 -36.1874,-36.2187 0,-13.42105 5.6679,-24.79725 15.7187,-31.06245 z" fill="currentColor" fill-opacity="1" stroke="none"></path></g></svg>
10+
<span>Dark</span>
1111
</button>
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)