mirror of
https://github.com/maxkratz/documentation.git
synced 2024-09-16 19:29:06 +00:00
Remove docs for svg api, it's not provided anymore
Signed-off-by: Florian <florian@nextcloud.com>
This commit is contained in:
parent
a57287b218
commit
0fbe6c78c2
1 changed files with 6 additions and 15 deletions
|
@ -16,24 +16,15 @@ White icons only have a grey background on this documentation page for readabili
|
|||
|
||||
.. _svgcolorapi:
|
||||
|
||||
|
||||
Svg color api
|
||||
=============
|
||||
|
||||
More information about scss and this api: :ref:`scss mixins and functions <cssicons>`
|
||||
The svg API is not supported anymore due to performance reasons.
|
||||
|
||||
You can request and color any svg icons used in nextcloud with this api.
|
||||
The server will directly change the colours of the ``circle``, ``rect`` and ``path`` elements in the svg you provide.
|
||||
Simply use those urls:
|
||||
|
||||
* ``https://yourdomain/svg/core/actions/menu?color=ffffff``
|
||||
Will serve the svg located in the core/img directory as a white icon
|
||||
``/core/img/actions/menu.svg``
|
||||
|
||||
* ``https://yourdomain/svg/core/places/calendar?color=0082c9``
|
||||
Will serve the svg located in the core/img directory with the color #0082c9
|
||||
``/core/img/places/calendar.svg``
|
||||
|
||||
* ``https://yourdomain/svg/files/app?color=000000``
|
||||
Will serve the svg located in the files app ``img`` directory ad a black icon
|
||||
``/app/files/img/app.svg``
|
||||
Material design icons
|
||||
=====================
|
||||
|
||||
If you need more than the shipped default icons, using the material-design-icons would be a good idea.
|
||||
For usage with vuejs look over here: https://nextcloud-vue-components.netlify.app/#/Components/NcIconSvgWrapper
|
||||
|
|
Loading…
Reference in a new issue