<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-documentation.git/docs/_static/css/code-snippets.css, branch T9032-circinus</title>
<subtitle>VyOS readthedocs (mirror of https://github.com/vyos/vyos-documentation.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-documentation.git/atom?h=T9032-circinus</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-documentation.git/atom?h=T9032-circinus'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/'/>
<updated>2026-05-07T14:08:51+00:00</updated>
<entry>
<title>fix(css): use .highlight &gt; .copyDiv.copyFailedNotifier for strict specificity</title>
<updated>2026-05-07T14:08:51+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-07T13:12:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=869dd9a194bce5b578708b5bd5fa4899e501e4df'/>
<id>urn:sha1:869dd9a194bce5b578708b5bd5fa4899e501e4df</id>
<content type='text'>
Specificity (0,2,1) &gt; (0,1,1) — no longer relies on rule order.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit ae4a58675633f59dde7b95c34bddc1a60a744483)
</content>
</entry>
<entry>
<title>fix(css): increase copyFailedNotifier specificity to override copyDiv base style</title>
<updated>2026-05-07T12:55:49+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-07T12:55:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=2098afd5836ef76eac8af695c17eda3f2c6e27c5'/>
<id>urn:sha1:2098afd5836ef76eac8af695c17eda3f2c6e27c5</id>
<content type='text'>
🤖 Generated by [robots](https://vyos.io)
</content>
</entry>
<entry>
<title>fix(codecopier): exclude Copy label from clipboard and stop showing false success</title>
<updated>2026-05-07T12:51:10+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-05T22:59:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=efb53fe14af6b279bc2c35bf7b87555db50c106a'/>
<id>urn:sha1:efb53fe14af6b279bc2c35bf7b87555db50c106a</id>
<content type='text'>
Two real bugs in the docs site copy-to-clipboard handler, both flagged by
copilot review on PR #1886 (deferred there because that PR is scoped to typos).

Bug 1: Copy label leaked into copied snippets on narrow screens
The handler read `currentTarget.offsetParent.innerText`. The same handler
appends a visible `.copyDiv` (with a 'Copy' &lt;p&gt;) into that container.
Below the 992px breakpoint the label is visible (see code-snippets.css
.copyDiv &gt; p) so users got 'Copy' appended to every copied snippet.

Fix: extract text from the &lt;pre&gt; element inside the container instead,
which excludes the injected button. Also switched the lookup root from
`offsetParent` to `parentElement` so the source-of-truth is the DOM
relationship (the .copyDiv is inserted as a beforeend child of the inner
.highlight div via insertAdjacentHTML), not CSS positioning.

Bug 2: Failed clipboard writes still showed 'Copied!'
The try/catch only logged on failure but the surrounding code still flipped
the button into the copiedNotifier success state. Users got false success
when writeText rejected (insecure context, permission denied, etc.).

Fix: move the success UI flip inside the try, add an explicit failure UI
flip ('Failed' text + new `.copyFailedNotifier` class with red background)
in the catch. setTimeout still reverts both classes after 2s.

Verified in browser with a sphinx-rendered fixture (jQuery 3.7 + Pygments
output): both snippets copy their own text without the Copy label, success
flow shows Copied!, simulated writeText rejection shows Failed, both states
revert after 2s.

🤖 Generated by [robots](https://vyos.io)
</content>
</entry>
<entry>
<title>Update code-snippets.css</title>
<updated>2024-02-29T11:15:02+00:00</updated>
<author>
<name>Robert Göhler</name>
<email>github@ghlr.de</email>
</author>
<published>2024-02-29T11:15:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=d4ddfafdcf1bf640a01604abe8b4764d9e059388'/>
<id>urn:sha1:d4ddfafdcf1bf640a01604abe8b4764d9e059388</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixed inner lists styles (#1296)</title>
<updated>2024-02-28T21:26:02+00:00</updated>
<author>
<name>bogdankol</name>
<email>68349689+bogdankol@users.noreply.github.com</email>
</author>
<published>2024-02-28T21:26:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=8feb2a57fb97189ba95a18b31020e0b7d44d7db4'/>
<id>urn:sha1:8feb2a57fb97189ba95a18b31020e0b7d44d7db4</id>
<content type='text'>
* merged css and js files and layout from dev branch

* merged here Robert's PR

* new conf.py file

* added a comment

* added a comment2

* asd1

* asd2

* asd3

* asd4

* asd5

* asd6

* asd7

* sad</content>
</entry>
<entry>
<title>Styles refactoring (#1278)</title>
<updated>2024-02-19T13:53:51+00:00</updated>
<author>
<name>bogdankol</name>
<email>68349689+bogdankol@users.noreply.github.com</email>
</author>
<published>2024-02-19T13:53:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=54cb31c8e76515b3245bf90ffb3735ae31918b9e'/>
<id>urn:sha1:54cb31c8e76515b3245bf90ffb3735ae31918b9e</id>
<content type='text'>
</content>
</entry>
</feed>
