Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

zulip-icon: Add `zulip-icon` as classPrefix for icon.

Aman Agrawal5bd37b44f2b7
diff --git a/static/assets/icons/zulip-icons.font.js b/static/assets/icons/zulip-icons.font.js
index 37d01037ba8..378083a68d9 100644
--- a/static/assets/icons/zulip-icons.font.js
+++ b/static/assets/icons/zulip-icons.font.js
@@ -5,7 +5,7 @@
module.exports = {
files: ["./*.svg"],
fontName: "zulip-icons",
- classPrefix: "",
+ classPrefix: "zulip-icon-",
baseSelector: ".zulip-icon",
cssTemplate: "./template.hbs",
ligature: false,
diff --git a/static/styles/components.css b/static/styles/components.css
index 5a781c3887c..52de5fb1909 100644
--- a/static/styles/components.css
+++ b/static/styles/components.css
@@ -106,7 +106,7 @@ a.no-underline:hover {
}
}
-i.zulip-icon.bot {
+i.zulip-icon.zulip-icon-bot {
color: hsl(180, 5%, 74%);
vertical-align: top;
padding: 0 2px;
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 631752af9ed..5fb7f0b8f57 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -1251,7 +1251,7 @@ td.pointer {
vertical-align: top;
position: relative;
- i.zulip-icon.bot {
+ i.zulip-icon.zulip-icon-bot {
font-size: 12px;
}
}
@@ -1277,7 +1277,7 @@ td.pointer {
}
}
-.popover_info i.zulip-icon.bot {
+.popover_info i.zulip-icon.zulip-icon-bot {
margin-top: 3px;
}
diff --git a/static/templates/me_message.hbs b/static/templates/me_message.hbs
index a84bcf4a693..da4cf21d744 100644
--- a/static/templates/me_message.hbs
+++ b/static/templates/me_message.hbs
@@ -12,7 +12,7 @@
</span>
</span>
{{#if sender_is_bot}}
- <i class="zulip-icon bot" aria-label="{{t 'Bot' }}"></i>
+ <i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
{{/if}}
<span class="rendered_markdown status-message auto-select">{{rendered_markdown status_message}}</span>
diff --git a/static/templates/message_body.hbs b/static/templates/message_body.hbs
index 08616a38134..1b87f0e597c 100644
--- a/static/templates/message_body.hbs
+++ b/static/templates/message_body.hbs
@@ -6,7 +6,7 @@
{{> message_avatar}}
<span class="sender_name auto-select" role="button" tabindex="0">{{msg/sender_full_name}}</span>
{{#if sender_is_bot}}
- <i class="zulip-icon bot" aria-label="{{t 'Bot' }}"></i>
+ <i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
{{/if}}
</span>
{{/if}}
diff --git a/static/templates/message_controls.hbs b/static/templates/message_controls.hbs
index 1553f33bdcc..44216b402ca 100644
--- a/static/templates/message_controls.hbs
+++ b/static/templates/message_controls.hbs
@@ -11,7 +11,7 @@
{{#unless msg/locally_echoed}}
<div class="info actions_hover message_control_button">
- <i class="zulip-icon ellipsis-v-solid" title="{{#tr}}Message actions{{/tr}} (i)" title="{{#tr}}Message actions{{/tr}}" role="button" aria-haspopup="true" tabindex="0" aria-label="{{#tr}}Message actions{{/tr}}"></i>
+ <i class="zulip-icon zulip-icon-ellipsis-v-solid" title="{{#tr}}Message actions{{/tr}} (i)" title="{{#tr}}Message actions{{/tr}}" role="button" aria-haspopup="true" tabindex="0" aria-label="{{#tr}}Message actions{{/tr}}"></i>
</div>
{{/unless}}
diff --git a/static/templates/stream_sidebar_row.hbs b/static/templates/stream_sidebar_row.hbs
index eec5b2a5972..3463d789df7 100644
--- a/static/templates/stream_sidebar_row.hbs
+++ b/static/templates/stream_sidebar_row.hbs
@@ -12,6 +12,6 @@
<span class="unread_count"></span>
</div>
- <span class="stream-sidebar-menu-icon"><i class="zulip-icon ellipsis-v-solid" aria-hidden="true"></i></span>
+ <span class="stream-sidebar-menu-icon"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</div>
</li>
diff --git a/static/templates/topic_list_item.hbs b/static/templates/topic_list_item.hbs
index ca6f792b8e6..5eebcf2e937 100644
--- a/static/templates/topic_list_item.hbs
+++ b/static/templates/topic_list_item.hbs
@@ -8,6 +8,6 @@
</span>
</span>
<span class="topic-sidebar-menu-icon">
- <i class="zulip-icon ellipsis-v-solid" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i>
</span>
</li>
diff --git a/static/templates/user_group_info_popover_content.hbs b/static/templates/user_group_info_popover_content.hbs
index 062f8007891..c465bff0e93 100644
--- a/static/templates/user_group_info_popover_content.hbs
+++ b/static/templates/user_group_info_popover_content.hbs
@@ -11,7 +11,7 @@
<li>
{{#if is_active }}
{{#if is_bot}}
- <i class="zulip-icon bot" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>
{{else}}
<span class="user_circle {{user_circle_class}} popover_user_presence" title="{{user_last_seen_time_status}}"></span>
{{/if}}
diff --git a/static/templates/user_info_popover_content.hbs b/static/templates/user_info_popover_content.hbs
index 1d2938ad2a4..b02a9b4ca7d 100644
--- a/static/templates/user_info_popover_content.hbs
+++ b/static/templates/user_info_popover_content.hbs
@@ -5,7 +5,7 @@
<b>{{user_full_name}}</b>
{{#if is_active }}
{{#if is_bot}}
- <i class="zulip-icon bot" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>
{{else}}
<span class="{{user_circle_class}} user_circle popover_user_presence" title="{{user_last_seen_time_status}}"></span>
{{/if}}
diff --git a/static/templates/user_presence_row.hbs b/static/templates/user_presence_row.hbs
index b23deec9b0c..1d37cc3d163 100644
--- a/static/templates/user_presence_row.hbs
+++ b/static/templates/user_presence_row.hbs
@@ -12,5 +12,5 @@
</a>
<span class="unread_count">{{#if num_unread}}{{num_unread}}{{/if}}</span>
</div>
- <span class="user-list-sidebar-menu-icon"><i class="zulip-icon ellipsis-v-solid" aria-hidden="true"></i></span>
+ <span class="user-list-sidebar-menu-icon"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
diff --git a/templates/zerver/app/left_sidebar.html b/templates/zerver/app/left_sidebar.html
index 1fdf229bbf7..aaf6f116f2a 100644
--- a/templates/zerver/app/left_sidebar.html
+++ b/templates/zerver/app/left_sidebar.html
@@ -11,7 +11,7 @@
<span>{{ _('All messages') }}</span>
<span class="unread_count"></span>
</a>
- <span class="arrow all-messages-sidebar-menu-icon"><i class="zulip-icon ellipsis-v-solid" aria-hidden="true"></i></span>
+ <span class="arrow all-messages-sidebar-menu-icon"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
<li class="top_left_private_messages">
<div class="private_messages_header top_left_row" title="{{ _('Private messages') }} (P)">
@@ -46,7 +46,7 @@
<span>{{ _('Starred messages') }}</span>
<span class="unread_count"></span>
</a>
- <span class="arrow starred-messages-sidebar-menu-icon"><i class="zulip-icon ellipsis-v-solid" aria-hidden="true"></i></span>
+ <span class="arrow starred-messages-sidebar-menu-icon"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
<li class="top_left_recent_topics top_left_row" title="{{ _('Recent topics') }} (t)">
<a href="#recent_topics">
diff --git a/templates/zerver/archive/single_message.html b/templates/zerver/archive/single_message.html
index 705d5935a10..dfce0f49240 100644
--- a/templates/zerver/archive/single_message.html
+++ b/templates/zerver/archive/single_message.html
@@ -11,7 +11,7 @@
<span class="sender-status">
<span class="sender_name-in-status">{{ sender_full_name }}</span>
{% if sender_is_bot %}
- <i class="zulip-icon bot" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>
{% endif %}
<span class="status-message">
{{ status_message }}
@@ -20,7 +20,7 @@
{% else %}
<span class="sender_name auto-select">{{ sender_full_name }}</span>
{% if sender_is_bot %}
- <i class="zulip-icon bot" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>
{% endif %}
{% endif %}
{% endif %}
diff --git a/templates/zerver/help/delete-a-topic.md b/templates/zerver/help/delete-a-topic.md
index 5a05c6916b6..34e2c7a50a2 100644
--- a/templates/zerver/help/delete-a-topic.md
+++ b/templates/zerver/help/delete-a-topic.md
@@ -24,7 +24,7 @@ whereas [archiving a stream](/help/archive-a-stream) does not.
1. Hover over the topic in the **left sidebar**.
-1. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>).
+1. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>).
1. Click **Delete topic**.
diff --git a/templates/zerver/help/emoji-reactions.md b/templates/zerver/help/emoji-reactions.md
index ddb3da045c7..528db9813ca 100644
--- a/templates/zerver/help/emoji-reactions.md
+++ b/templates/zerver/help/emoji-reactions.md
@@ -15,7 +15,7 @@ underneath the message.
!!! warn ""
For messages that you've sent, click the ellipsis
- (<i class="zulip-icon ellipsis-v-solid"></i>) and then
+ (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) and then
**Add emoji reaction**.
1. Select an emoji. Type to search, use the arrow keys, or click on an emoji
diff --git a/templates/zerver/help/include/message-actions-menu.md b/templates/zerver/help/include/message-actions-menu.md
index e54dcf34618..db82e8402cb 100644
--- a/templates/zerver/help/include/message-actions-menu.md
+++ b/templates/zerver/help/include/message-actions-menu.md
@@ -1,3 +1,3 @@
1. Hover over a message to reveal three icons on the right.
-1. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>).
+1. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>).
diff --git a/templates/zerver/help/include/stream-actions.md b/templates/zerver/help/include/stream-actions.md
index 6a826095cd6..4869964cc23 100644
--- a/templates/zerver/help/include/stream-actions.md
+++ b/templates/zerver/help/include/stream-actions.md
@@ -1,3 +1,3 @@
1. Hover over a stream in the left sidebar.
-1. Click on the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>).
+1. Click on the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>).
diff --git a/templates/zerver/help/marking-messages-as-read.md b/templates/zerver/help/marking-messages-as-read.md
index 06a6ce6ddc9..fbc380f013e 100644
--- a/templates/zerver/help/marking-messages-as-read.md
+++ b/templates/zerver/help/marking-messages-as-read.md
@@ -22,7 +22,7 @@ stream or topic as read**.
1. Hover over a stream, topic, or All messages in the left sidebar.
-1. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>) to the right.
+1. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to the right.
1. Click **Mark all messages as read**.
diff --git a/templates/zerver/help/mention-a-user-or-group.md b/templates/zerver/help/mention-a-user-or-group.md
index eb6e1b3b95c..557518977e2 100644
--- a/templates/zerver/help/mention-a-user-or-group.md
+++ b/templates/zerver/help/mention-a-user-or-group.md
@@ -23,7 +23,7 @@ messages and alert words.
1. Hover over a user in the right sidebar.
-1. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>) to the right.
+1. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to the right.
1. Select **Reply mentioning user**.
diff --git a/templates/zerver/help/mute-a-topic.md b/templates/zerver/help/mute-a-topic.md
index 452956fced6..5462ffd7242 100644
--- a/templates/zerver/help/mute-a-topic.md
+++ b/templates/zerver/help/mute-a-topic.md
@@ -15,8 +15,8 @@ Muted topics still appear in the left sidebar, though they are grayed out.
1. On the left, click on the stream that contains the topic you want to mute or unmute.
2. Hover over the topic to reveal a ellipsis
- (<i class="zulip-icon ellipsis-v-solid"></i>) to its right.
- Click on the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>).
+ (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to its right.
+ Click on the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>).
4. Select **Mute the topic <topic name\>**.
diff --git a/templates/zerver/help/status-and-availability.md b/templates/zerver/help/status-and-availability.md
index 236e5bd5073..9fc1220ac08 100644
--- a/templates/zerver/help/status-and-availability.md
+++ b/templates/zerver/help/status-and-availability.md
@@ -17,7 +17,7 @@ teammates know when you were last active.
1. Hover over your name in the right sidebar.
-1. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>) to the right.
+1. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to the right.
1. Click **Set a status message**.
@@ -63,7 +63,7 @@ unavailable).
1. Hover over your name in the right sidebar.
-1. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>) to the right.
+1. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to the right.
1. Click **Set yourself as unavailable**.
diff --git a/templates/zerver/help/stream-notifications.md b/templates/zerver/help/stream-notifications.md
index 44a7d53f68c..e0a85361b9a 100644
--- a/templates/zerver/help/stream-notifications.md
+++ b/templates/zerver/help/stream-notifications.md
@@ -9,7 +9,7 @@ stream basis.
1. Hover over the stream in the left sidebar.
-2. Click the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>) to the
+2. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to the
right of the stream.
3. Click **Stream settings**.
diff --git a/templates/zerver/help/view-someones-profile.md b/templates/zerver/help/view-someones-profile.md
index e145f77a06d..4ca3880aa7c 100644
--- a/templates/zerver/help/view-someones-profile.md
+++ b/templates/zerver/help/view-someones-profile.md
@@ -22,7 +22,7 @@ when they were last active, and any
1. Hover over a user's name in the right sidebar.
-1. Click on the ellipsis (<i class="zulip-icon ellipsis-v-solid"></i>) to
+1. Click on the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to
the right of their name.
1. Click **View full profile**.