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.

css: Modal read receipts CSS to modal.css.

Tim Abbott155787512fa1
diff --git a/static/styles/modal.css b/static/styles/modal.css
index d1355ccca88..f3f7641b9a9 100644
--- a/static/styles/modal.css
+++ b/static/styles/modal.css
@@ -127,6 +127,85 @@
margin-bottom: 10px;
}
+#read_receipts_modal {
+ .modal__container {
+ width: 360px;
+
+ .modal__content {
+ /* When showing read receipts, we use simplebar
+ to make the list scrollable. It requires this to
+ be flex. */
+ display: flex;
+
+ /* Setting a minimum height prevents the loading indicator
+ appearing/disappearing from resizing the modal in the
+ common case that one is requesting read receipts for
+ PMs. */
+ min-height: 120px;
+ /* Setting a maximum height is just for aesthetics; the modal looks
+ weird if its aspect ratio gets too stretched. */
+ max-height: 480px;
+
+ /* For the notification bot error, we want to keep the modal clean and small.
+ The 16px padding is intended to match the padding at the top of the modal. */
+ &.compact {
+ min-height: unset;
+ padding-bottom: 16px;
+ }
+ }
+ }
+
+ .modal__header {
+ padding-bottom: 0;
+ }
+
+ hr {
+ margin: 10px 0;
+ }
+
+ .modal__content {
+ padding: 0 24px 8px;
+ }
+
+ .loading_indicator {
+ margin: auto;
+ }
+
+ #read_receipts_list {
+ margin-left: 0;
+
+ li {
+ .read_receipts_user_avatar {
+ display: inline-block;
+ height: 20px;
+ width: 20px;
+ position: relative;
+ right: 8px;
+ border-radius: 4px;
+ }
+
+ margin: 2px 0;
+ list-style-type: none;
+ overflow-x: hidden;
+ padding-left: 10px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ cursor: pointer;
+ line-height: 26px;
+
+ &:hover {
+ background-color: hsla(0, 0%, 0%, 0.05);
+ }
+
+ &:active,
+ &:focus {
+ background-color: hsla(0, 0%, 0%, 0.1);
+ outline: none;
+ }
+ }
+ }
+}
+
.email_field {
margin-top: 10px;
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 83efc61e818..24fc6d933b9 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -650,85 +650,6 @@ strong {
display: none;
}
-#read_receipts_modal {
- .modal__container {
- width: 360px;
-
- .modal__content {
- /* When showing read receipts, we use simplebar
- to make the list scrollable. It requires this to
- be flex. */
- display: flex;
-
- /* Setting a minimum height prevents the loading indicator
- appearing/disappearing from resizing the modal in the
- common case that one is requesting read receipts for
- PMs. */
- min-height: 120px;
- /* Setting a maximum height is just for aesthetics; the modal looks
- weird if its aspect ratio gets too stretched. */
- max-height: 480px;
-
- /* For the notification bot error, we want to keep the modal clean and small.
- The 16px padding is intended to match the padding at the top of the modal. */
- &.compact {
- min-height: unset;
- padding-bottom: 16px;
- }
- }
- }
-
- .modal__header {
- padding-bottom: 0;
- }
-
- hr {
- margin: 10px 0;
- }
-
- .modal__content {
- padding: 0 24px 8px;
- }
-
- .loading_indicator {
- margin: auto;
- }
-
- #read_receipts_list {
- margin-left: 0;
-
- li {
- .read_receipts_user_avatar {
- display: inline-block;
- height: 20px;
- width: 20px;
- position: relative;
- right: 8px;
- border-radius: 4px;
- }
-
- margin: 2px 0;
- list-style-type: none;
- overflow-x: hidden;
- padding-left: 10px;
- white-space: nowrap;
- text-overflow: ellipsis;
- cursor: pointer;
- line-height: 26px;
-
- &:hover {
- background-color: hsla(0, 0%, 0%, 0.05);
- }
-
- &:active,
- &:focus {
- background-color: hsla(0, 0%, 0%, 0.1);
- outline: none;
- }
- }
- }
-}
-
/* .dropdown-menu from v2.3.2
+ https://github.com/zulip/zulip/commit/7a3a3be7e547d3e8f0ed00820835104867f2433d
basic idea of this fix is to remove decorations from :hover and apply them only