diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-03-20 18:06:46 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-03-20 18:06:46 -0300 |
commit | 5ee821e53b683e8375e771dd7c6bfb219b2c573a (patch) | |
tree | 06d83920178479cbb57b5516a8e284ba5bfbf6bd /src | |
parent | 79496c15c723331bd5e9375f6d5fff600198ad7e (diff) |
css: image-media-link picture icon
Diffstat (limited to 'src')
-rw-r--r-- | src/static/css/site.css | 18 | ||||
-rw-r--r-- | src/static/misc/image.svg | 11 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/static/css/site.css b/src/static/css/site.css index a864a25b..1b490ae8 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -904,6 +904,24 @@ a:not([href]):hover { color: white; } +.image-media-link::after { + content: ''; + display: inline-block; + width: 22px; + height: 1em; + + background-color: var(--primary-color); + + mask-image: url(/static-4p1/misc/image.svg); + mask-repeat: no-repeat; + mask-position: calc(100% - 2px); + vertical-align: text-bottom; +} + +.image-media-link:hover::after { + background-color: white; +} + .nav-link { display: inline-block; } diff --git a/src/static/misc/image.svg b/src/static/misc/image.svg new file mode 100644 index 00000000..a251b373 --- /dev/null +++ b/src/static/misc/image.svg @@ -0,0 +1,11 @@ +<!-- Copyright © (c) 2019-2023 The Bootstrap authors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software. --> + +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-image-fill" viewBox="0 0 16 16"> + <path d="M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2V3zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"/> +</svg> |