forked from paviliondev/discourse-dropdown-header
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.yml
150 lines (150 loc) · 4.73 KB
/
settings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
header_links:
description: "Top level header links"
default: >-
json_schema: '
{
"type": "array",
"format": "table",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"icon": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": false
}
}'
dropdown_links:
description: "Dropdown Items"
default: >-
json_schema: '
{
"type": "array",
"format": "table",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"headerLinkId": {
"type": "number",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"icon": {
"type": "string"
},
"url": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string"
}
},
"additionalProperties": false
}
}
'
icon_source:
type: enum
default: font_awesome
description:
en: "Select where to source icons from (image url or font awesome class)"
choices:
- image_url
- font_awesome
security:
description:
en: "Add security to a link by allowing only a specific group/trust level to see it"
default: >-
json_schema: '
{
"type": "array",
"format": "table",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"headerLinkId": {
"type": "number",
"minLength": 1
},
"title": {
"type": "string",
"description": "Enter the group name"
}
},
"additionalProperties": false
}
}
'
links_position:
default: right
type: enum
choices:
- right
- left
description:
en: "Position of the links on the header. (Auto hidden on scroll when position is left)"
show_caret_icons:
default: true
type: bool
description:
en: "Show caret icons on dropdown links"
main_link_color:
default: 'var(--primary-low-mid)'
type: string
description:
en: "Color of main top level links. Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
main_link_hover_color:
default: 'var(--primary-medium)'
type: string
description:
en: "Color of main top level links when hovered over. Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
dropdown_background_color:
default: 'var(--secondary)'
type: string
description:
en: "The background color of dropdowns. Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
dropdown_border_color:
default: 'var(--primary-low)'
type: string
description:
en: "The border color of dropdowns (use 'transparent' to hide borders). Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
dropdown_item_color:
default: 'var(--primary-medium)'
type: string
description:
en: "Color of dropdown links. Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
dropdown_item_hover_color:
default: 'var(--primary-medium)'
type: string
description:
en: "Color of dropdown links when hovered over. Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
dropdown_item_hover_background_color:
default: 'var(--highlight-medium)'
type: string
description:
en: "Background color of dropdown links when hovered over. Note: it is recommended to use a <a target='_blank' href='https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/color_definitions.scss'>color variable</a> so dark mode will be supported."
svg_icons:
type: "list"
list_type: "compact"
default: ""
description:
en: "Add FontAwesome 5 icon classes for each icon used in the list and not already present in the Discourse instance."