You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: icons.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,12 @@
6
6
7
7
## Bootstrap Icons
8
8
9
-
Bootstrap is the default CSS Framework in Plone 6. We decided to use it's icons as well. Check out all available Icons:
9
+
Bootstrap is the default CSS Framework in Plone 6.
10
+
We decided to use it's icons as well.
11
+
Check out all available Icons at [icons.getbootstrap.com](https://icons.getbootstrap.com/).
10
12
11
-
https://icons.getbootstrap.com/
12
-
13
-
Icons are shipped via plone.staticresources. Check out the [package.json](https://github.com/plone/plone.staticresources/blob/master/package.json) of the package to get the actual version of the icons in Plone.
13
+
Icons are shipped via plone.staticresources.
14
+
Check out the [package.json](https://github.com/plone/plone.staticresources/blob/master/package.json) of the package to get the actual version of the icons in Plone.
14
15
15
16
## Registration
16
17
@@ -32,7 +33,7 @@ We definde contextual icons. If you don't like e.g. the share icon - override it
32
33
33
34
## Icon expression
34
35
35
-
- icon_expression field is used again to define icons (e.g. for actions, contenttypes)
36
+
-`icon_expression` field is used again to define icons (e.g. for actions, contenttypes)
36
37
- Use icon name for icon expressions
37
38
38
39
## Customization
@@ -53,30 +54,28 @@ We definde contextual icons. If you don't like e.g. the share icon - override it
53
54
54
55
URL method of @@icons view returns the actual URL to the SVG icon. This can be used e.g. in an img tag.
Tag method is used with tal:replace and returns an entire inline SVG image. Inline icons can be styled via CSS. tag_class and tag_alt is used to pass in custom classes and an alt text.
63
+
Tag method is used with `tal:replace` and returns an entire inline SVG image.
64
+
Inline icons can be styled via CSS.
65
+
`tag_class` and `tag_alt` is used to pass in custom classes and an alt text.
SVG Files are avaiblae as resource: `++plone++bootstrap-icons/lightning.svg`
75
74
76
75
### Fallback
77
76
78
77
- There is a Plone icon defined as fallback if icon name is not found
79
78
- There are fallback groups e.g. for [mimetype icons](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_mimetype.xml)
80
-
- JPEG icon is e.g. mimetype-image/jpeg
79
+
- JPEG icon is e.g. `mimetype-image/jpeg`
81
80
- You can register specific icons
82
-
- If there is no specific icon mmimetype-image is used as fallback
81
+
- If there is no specific icon mimetype-image is used as fallback
0 commit comments