/* Our Tippy popovers use the strangely named "light-border" Tippy theme, so this block defines the common styling for all of our Tippy popovers. (Tippy tooltips are defined in tooltips.css). */ .tippy-box[data-theme="light-border"] { .sp-input { /* Override incorrect color for text in dark theme. */ color: var(--color-text-default) !important; } .tippy-content { font-size: 14px; } /* TODO: Clean this logic up after drop Bootstrap styling */ & hr { /* Override bootstrap defaults */ margin: 5px 0; } /* TODO: Clean this logic up after drop Bootstrap styling */ & ul.nav { /* Override default padding of tippyjs */ margin: 0 -9px; /* Override bootstrap defaults */ .nav-list > li > a { padding: 3px 15px; } } } .tippy-box[data-theme="dropdown-widget"] { border-radius: 6px; background-color: hsl(240deg 20% 98%); border: 1px solid hsl(0deg 0% 0% / 40%); box-shadow: 0 7px 13px hsl(0deg 0% 0% / 15%), 0 5px 8px hsl(0deg 0% 0% / 12%), 0 2px 4px hsl(0deg 0% 0% / 10%); .tippy-content { font-size: 14px; color: hsl(0deg 0% 75%); padding: 0; } } .tippy-box[data-theme="navbar-dropdown-menu"] { border: 0; border-radius: 6px; > .tippy-content { padding: 0; } > .tippy-arrow { top: -5.5px; width: 16px; height: 8px; z-index: 1; filter: drop-shadow(0 -1.25px 0 var(--color-border-dropdown-menu)); &::before { content: ""; top: 0; width: 100%; height: 100%; mask-image: url("../shared/icons/popover-arrow.svg"); mask-size: contain; mask-repeat: no-repeat; color: var(--color-background-dropdown-menu); } } } .user_full_name, .bot_owner { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .popover_user_name_row { display: flex; align-items: center; .zulip-icon.zulip-icon-bot { padding-left: 5px; } } .user-card-popover-action-buttons { margin-left: auto; line-height: 1; } .user-card-popover-manage-menu-btn { &:hover, &:focus { text-decoration: none; } } .user_popover_manage_menu { .zulip-icon { /* Overriding CSS margin */ margin-right: 0; } } /* Used extra classes to override styles from .nav */ .tippy-box .tippy-content .user-card-popover-content { padding: 5px 0; .user-card-popover-actions { margin: 0; } } .user-card-popover-actions .custom_user_field { display: flex; align-items: center; .value { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } /* Overriding CSS from rendered_markdown.css */ .rendered_markdown p { margin: 0; } /* Overriding CSS from bootstrap > nav-list. */ .custom-profile-fields-link { padding-top: 0; padding-bottom: 0; &:hover { background-color: transparent !important; } &:focus { background-color: transparent !important; } } } .custom-user-url-field { display: flex; overflow: hidden; .custom-profile-fields-link { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .copy-custom-field-url { background-color: transparent; border: 0; padding: 0; #clipboard_image { /* Adjust margin to align the copy icon */ margin: -2px 0 0 6px; &:hover path { fill: hsl(204deg 100% 40%); } } &:focus { outline: none; } } } .user-card-popover-actions .user-card-popover-manage-menu-btn { opacity: 0.8; &:hover { opacity: 1; } } .sp-container { z-index: 106; } .streams_popover { .topic-name { text-align: center; margin-top: 5px; margin-bottom: 5px; } .colorpicker-container { display: none; margin-right: 10px; .sp-container { background-color: hsl(0deg 0% 100%); cursor: pointer; border: none; .sp-palette-container { border-right: none; } & input { box-sizing: inherit; /* IE */ box-sizing: initial; width: calc(100% - 13px); } & button { background-color: hsl(0deg 0% 100%); background-image: none; border: 1px solid hsl(0deg 0% 80%); border-radius: 4px; color: hsl(0deg 0% 25%); font-size: 12px; padding: 6px; text-transform: capitalize; text-align: center; text-shadow: none; } .sp-picker-container { border-left: solid 1px hsl(0deg 0% 88%); } } } .popover_sub_unsub_button { margin-top: 0; float: none; } } ul { &.user-card-popover-actions i, &.actions_popover i, &.streams_popover i, &.topics_popover i { display: inline-block; text-align: center; &:not(.popover_action_icon, .guest-indicator) { width: 14px; } &:not(.popover_action_icon, .custom_user_field i) { margin-right: 3px; } &.zulip-icon:not(.tab-option > .zulip-icon) { /* These icons are different from font awesome icons, so they need to be aligned separately. */ line-height: 14px; position: relative; &:not(.zulip-icon-bot) { top: 2px; } &.popover_action_icon { font-size: 17px; line-height: 1; top: 1px; } } } &.topics_popover { .topic-name { text-align: center; margin-top: 5px; margin-bottom: 5px; .fa-chevron-right { font-size: 12px; } } } &.user-card-popover-actions i.fa-edit { vertical-align: middle; } } .actions_popover { .mark_as_unread { .unread_count { /* The icon for this menu item is in the form of an unread count from the left sidebar. We reuse much of the shared styling, but need to override some of the defaults set in app_components.css. */ display: inline; float: unset; line-height: 14px; font-size: 11px; font-weight: 600; margin-right: 2px; background-color: var( --color-background-unread-counter-popover-menu ); /* Override random undesired bootstrap style */ text-shadow: none; /* Not center aligned but looks better. */ position: relative; top: -1px; } } } /* Important note: The user info popover user-sidebar-popover-root class is applied to user info popovers ONLY when they are opened from the right sidebar; otherwise, it will have the user-card-popover-root class instead. */ .user-sidebar-popover-root { width: 240px; margin: -14px; padding: 0; .user-card-popover-title { padding: 0; border-color: hsl(0deg 0% 0% / 20%); } .popover_info li { word-wrap: break-word; } } .group-info-popover, .message-user-card-popover-root, .user-card-popover-root { width: 240px; padding: 0; } .group-info-popover { .group-info-content { padding: 5px 0; } .manage-group a { text-align: center; } .group-info { text-align: center; .group-name { font-weight: bold; } } .member-list { position: relative; max-height: 300px; overflow-y: auto; list-style: none; margin-left: 0; .bot { color: hsl(180deg 5% 74%); vertical-align: top; width: 20px; padding-top: 3.5px; text-align: center; } } } .user_profile_presence, .popover_user_presence { width: 8px; height: 8px; margin: 0 5px; display: inline-block; float: initial; position: relative; top: 0; flex-shrink: 0; } .bot-owner-name { text-decoration: underline; &:hover { cursor: pointer; color: hsl(200deg 100% 40%); } } .popover-avatar { height: 240px; width: 240px; background-size: cover; background-position: center; position: relative; &.guest-avatar::after { outline: 10px solid hsl(0deg 0% 100%); } .popover-inner { width: 240px; } } #user-profile-modal { .modal__body { box-sizing: border-box; height: 60vh; padding-left: 16px; padding-right: 16px; /* The height of the main body of the profile modal is 60vh. However, the footer is only present in the manage user tab. To make sure the modal doesn't expand while switching between tabs, we can reduce the height of the main body to 52vh - 1px (border radius of the footer) and add a footer of 8vh. */ &.modal__body__manage_profile_height { height: calc(52vh - 1px); } } .modal__header { justify-content: center; } .user_profile_presence { margin: 5px; vertical-align: middle; } .modal__close { position: absolute; right: 20px; } #tab-toggle { font-weight: initial; padding: 0 16px 6px; } .name { color: hsl(0deg 0% 20%); width: 120px; font-weight: 600; margin-right: 10px; } .value { vertical-align: top; } #exit-sign { font-size: 1.5rem; line-height: 1; } #profile-tab { margin: 1px 5px 0; & li.custom_user_field { display: block; } } .top { display: flex; justify-content: space-between; } @media (width < $ml_min) { .top { flex-direction: column-reverse; } } #avatar { display: inline-block; height: 180px; width: 180px; background-size: cover; background-position: center; border-radius: 5px; box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 20%); &.guest-avatar::after { outline: 9px solid hsl(0deg 0% 100%); } } .user_profile_manage_own_edit_button, .user_profile_manage_others_edit_button { width: 25px; height: 14px; text-align: center; font-size: 18px; } #user_profile_manage_own_edit_link { height: 25px; } .deactivated-user-icon { margin: -1px; vertical-align: middle; } .user_profile_name { margin: 0 10px; } .zulip-icon.zulip-icon-bot { padding: unset; } #default-section { vertical-align: top; .default-field { margin-bottom: 10px; } } & hr { border: 1px solid hsl(0deg 0% 93%); margin: 5px 0; } #content { .field-section { margin-bottom: 10px; .name { color: hsl(0deg 0% 20%); font-weight: 600; } &[data-type="2"] .value { overflow-wrap: break-word; } } .rendered_markdown p { margin: 0; } } .col-left { padding: 0 10px 0 0; word-break: break-all; } .col-right { width: fit-content; } .tab-data { .active { display: block; } margin-bottom: 20px; } .stream-tab-element-header { margin: 0; display: inline-block; font-weight: inherit; font-size: 21px; } #user-profile-streams-tab { .stream_list_info { margin-bottom: 8px; } .stream-privacy { display: inline-block; } .filter-icon i { padding-right: 3px; } .user_profile_subscribe_widget { display: flex; justify-content: space-between; align-items: baseline; padding-top: 2px; } } .stream-list-top-section { display: flex; margin-top: 12px; .stream-search { margin-left: auto; align-self: center; padding-right: 20px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } #clear_stream_search { display: none; padding: 5px 8px 5px 4px; position: relative; right: 0; } } .subscription-group-list, .subscription-stream-list { position: relative; border: 1px solid hsl(0deg 0% 83%); border-radius: 4px; overflow: auto; text-align: left; margin-bottom: 5px; -webkit-overflow-scrolling: touch; .remove-subscription-button { padding-top: 2px; padding-bottom: 2px; } .user-stream-list, .user-group-list { width: 100%; margin: auto; border-radius: 6px; border-collapse: collapse; & tr { border-bottom: 1px solid hsl(0deg 0% 87%); /* Ensure equal height for rows with a remove-subscription-button and those without one. */ height: 34px; &:last-of-type { border-bottom: none; } & td { padding: 4px 0; &:first-of-type { padding-left: 10px; } &:last-of-type { padding-right: 10px; } &.remove_subscription { text-align: right; } } } } } .manage-profile-tab-footer { height: 0; &.modal__footer_wrapper { border-top: 1px solid hsl(0deg 0% 87%); display: flex; justify-content: flex-end; align-items: center; height: 8vh; /* The default padding of the footer is 20px. However, since we have set */ /* the height of the footer wrapper to be 8vh on different screen sizes, */ /* the buttons might look odd. Instead of using padding top and bottom, we */ /* just use the flex and properties to align them. */ .modal__footer { padding-top: unset; padding-bottom: unset; } } } .empty-list { border: none; .empty-table-message { padding: 3em 1em; } } } @media (width < $md_min) { .colorpicker-popover { display: flex !important; justify-content: center; align-items: center; /* these are to override JS embedded inline styles. */ top: 0 !important; left: 0 !important; margin: 0 !important; width: 100%; height: 100%; background-color: hsl(0deg 0% 0% / 70%); border-radius: 0; border: none; pointer-events: none; .popover-inner { background-color: hsl(0deg 0% 100%); pointer-events: all; } @media (width < $sm_min) { .popover-inner { width: 70%; } .sp-picker-container { border-left: none !important; } } } .popover-flex { position: absolute; top: 0 !important; left: 0 !important; width: 100vw; height: 100vh; display: flex !important; justify-content: center; align-items: center; background-color: hsl(0deg 0% 0% / 70%); /* Needs to be higher than the 105 for div.overlay so that the emoji picker can render on top of the user status picker. */ z-index: 106; opacity: 0; pointer-events: none; transition: all 0.3s ease; &.fade.in { opacity: 1; pointer-events: all; } } .emoji-picker-popover { position: static; margin-right: 0; } #user-profile-modal { .stream-list-top-section { display: block; .header-section { width: 100%; } .stream-search { margin-bottom: 8px; } #clear_stream_search { padding-top: 1px; } } } } .popover.top .arrow::after { left: -1px; } .giphy-popover, .emoji-popover-root, .user-group-popover-root, .user-sidebar-popover-root, .message-user-card-popover-root, .user-card-popover-root { .tippy-content { /* We remove the default padding from this container as it is not necessary for the Giphy popover. */ padding: 0; /* By resetting to the default color from the `body`, we can ignore the colors applied from `tippy-box`. */ color: var(--color-text-default); } & ul.nav { /* TODO: Clean this logic up after drop Bootstrap styling */ margin: 0; } } .user-group-popover-root { & ul.nav { /* TODO: Clean this logic up after drop Bootstrap styling */ margin: 0; } & .tippy-box { box-shadow: 0 5px 10px hsl(0deg 0% 0% / 20%); /* User group popover has a bigger border-radius than our usual popovers. */ border-radius: 6px; } } .emoji-popover-root { /* The emoji popover has a different background color for the header and footer, so we customize the arrow to match this color. */ .tippy-box[data-placement="top"] .tippy-arrow::before { border-top-color: hsl(0deg 0% 93%); } .tippy-box[data-placement="bottom"] .tippy-arrow::before { border-bottom-color: hsl(0deg 0% 93%); } } #giphy_grid_in_popover { /* 300px of GIPHY grid + 5px is the extra gutter space * between gif columns. */ width: 305px; border: 0; padding: 0; .giphy-gif { cursor: pointer; } .giphy-gif-img:focus { /* Red outline for clear visibility * of which image is in focus. */ outline-color: hsl(0deg 100% 50%); } .search-box { display: flex; position: sticky; padding: 2px; & input { flex-grow: 1; margin: 5px; border-radius: 3px; } .clear_search_button { position: absolute; top: 5px; right: 3px; font-size: 16px; &:focus { .fa-remove { outline: 2px solid var(--color-outline-focus); } } } } .giphy-scrolling-container { overflow: auto; height: 200px; margin: 2px; padding: 5px 0; } .popover-footer { text-align: center; background-color: hsl(0deg 0% 0%); /* The border radius corresponds to the default radius value from `tippy-box`. */ border-radius: 0 0 4px 4px; /* This prevents the footer from experiencing height fluctuations at the moment when the image is uploaded. */ min-height: 25px; & img { width: 120px; } } } .user-card-status-text { opacity: 0.8; .status-emoji { height: 18px; width: 18px; /* Override the default 3px left margin for status emoji, which is intended for their presentation elsewhere to the left of a user's name. */ margin-left: 0; margin-right: 2px; } #status_message { padding: 1px 0; display: flex; align-items: baseline; hyphens: auto; } .status_text { overflow-wrap: anywhere; } } #move_topic_modal { & form { margin: 0; } #move_topic_to_stream_widget_wrapper { display: flex; margin-bottom: 10px; .dropdown-widget-button { /* Override the default border-radius to properly align the button corners with `stream_header_colorblock`. */ border-radius: 1px 4px 4px 1px !important; outline: none; line-height: 24px; width: auto; max-width: 206px; } .stream_header_colorblock { margin: 0; } .dropdown_widget_value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-default); .stream-privacy-type-icon { font-size: 13px; width: 13px; height: 13px; position: relative; top: 2px; } } .fa-chevron-down { padding-left: 5px; color: hsl(0deg 0% 58%); font-weight: lighter; } } .move_messages_edit_topic { margin-bottom: 10px; } .topic_stream_edit_header { display: flex; flex-wrap: wrap; justify-content: flex-start; #select_stream_id { border-left: 0; padding-left: 0; border-radius: 3px; margin: 0 5px 5px -10px; text-indent: 10px; } .dropdown-menu { position: fixed; top: 125px; left: 40px; } } } #language_selection_modal { width: min(750px, 70vw); } .default_language_modal_table { column-count: 3; @media (width < $md_min) { column-count: 2; } @media (width < $sm_min) { column-count: 1; } } #send_later_popover { & hr { margin: 5px 0; } } #send_later_modal { .modal__content { padding-bottom: 16px; } } .visibility_policy_popover { padding-left: 4px; padding-right: 4px; .visibility_policy_option { padding: 2px 13px; background-color: hsl(0deg 0% 0% / 7%); border-radius: 2px; border: 1px solid transparent; &:hover:not(.selected_visibility_policy) { background-color: hsl(0deg 0% 100%); border: 1px solid hsl(0deg 0% 0% / 30%); } .icon_and_text { display: flex; align-items: center; text-decoration: none; &:hover { background-color: transparent; } } .icon_and_text i { font-size: 17px; margin-right: 10px; } } .selected_visibility_policy { background-color: hsl(0deg 0% 100%); border: 1px solid hsl(0deg 0% 0% / 20%); } } #personal-menu-dropdown { padding-bottom: 5px; } .personal-menu-header { display: flex; flex-flow: row nowrap; gap: 7px; text-align: left; padding: 4px; .avatar { position: relative; width: 64px; height: 64px; } .avatar-image { width: 64px; height: 64px; border-radius: 4px; background-size: cover; background-position: center; } .status-circle { position: absolute; width: 8px; height: 8px; top: unset; left: unset; right: -1px; bottom: -1px; border: solid 1px var(--color-background); border-radius: 50%; } .user_circle_empty { background-color: var(--color-background-dropdown-menu); border-color: hsl(0deg 0% 50%); } .text-area { flex-grow: 1; padding-top: 4px; & p { margin: 0 0 4px; } } .full-name { font-size: 18px; font-weight: 600; line-height: 20px; color: var(--color-text-full-name) !important; max-width: 150px; word-break: break-word; } .user-type { font-size: 14px; font-weight: 400; line-height: 16px; color: var(--color-text-item) !important; } } .navbar-dropdown-menu { margin: 0; border: solid 1px var(--color-border-dropdown-menu); background-color: var(--color-background-dropdown-menu); max-height: 85vh; min-width: 230px; overflow-x: hidden; user-select: none; border-radius: 6px; box-shadow: var(--box-shadow-navbar-dropdown-menu); .simplebar-content { /* This is necessary to keep long menu items on a single line. */ min-width: max-content; } .text-item, .link-item .navbar-dropdown-menu-link { display: flex; flex-flow: row nowrap; align-items: center; gap: 5px; padding: 0 10px; font-size: 15px; line-height: 16px; height: 26px; .navbar-dropdown-icon { width: 16px; height: 16px; font-size: 16px; text-align: center; } } .text-item { color: var(--color-text-item); width: auto; user-select: text; } .link-item { outline: none; &:focus-within { background: var(--color-background-hover-dropdown-menu); } .navbar-dropdown-icon { color: var(--color-icon-purple); } .navbar-dropdown-menu-link { color: var(--color-text-dropdown-menu) !important; text-decoration: none; flex-grow: 1; &:hover { background: var(--color-background-hover-dropdown-menu); outline: none; } &:focus-visible { border-radius: 4px; /* Override the default focus style */ outline: 1px solid var(--color-outline-focus) !important; outline-offset: -1px; } &:active { background: var(--color-background-active-dropdown-menu); } } } .status_emoji { width: 16px; height: 16px; } .zulip-icon { position: relative; top: -1px; } } .personal-menu-clear-status { display: flex; padding: 3px; align-items: center; margin-left: auto; color: hsl(0deg 0% 40%) !important; border-radius: 4px; &:hover, &:focus { text-decoration: none; } } .personal-menu-clear-status .personal-menu-clear-status-icon { top: 0; } .personal-menu-status-wrapper { display: flex; align-items: center; gap: 5px; } #gear-menu-dropdown { padding: 5px 0; box-shadow: var(--box-shadow-gear-menu); .org-info { padding: 4px 0 5px; & li { display: flex; justify-content: center; font-size: 15px; font-style: normal; font-weight: 400; line-height: 16px; /* 114.286% */ letter-spacing: 0.28px; &:focus-within { background: var(--color-background-hover-dropdown-menu); } .navbar-dropdown-menu-link { padding: 2px 0; flex-grow: 1; text-align: center; text-decoration: none; &:hover { background: var(--color-background-hover-dropdown-menu); outline: none; } &:focus-visible { border-radius: 4px; /* Override the default focus style */ outline: 1px solid var(--color-outline-focus) !important; outline-offset: -1px; } &:active { background: var(--color-background-active-dropdown-menu); } } } .org-url { margin-bottom: 7px; } .org-name, .org-plan .navbar-dropdown-menu-link { color: var(--color-text-dropdown-menu); } .org-name { font-size: 17px; font-weight: 600; line-height: 22px; } .org-plan, .org-upgrade { font-size: 14px; } .org-upgrade, .org-url { color: var(--color-gear-menu-lighter-text); } .org-upgrade a, .org-version a { color: var(--color-gear-menu-blue-text); } } .gear-menu-select-light-theme, .gear-menu-select-dark-theme { display: none; } } #help-menu-dropdown { padding-bottom: 5px; } ul.navbar-dropdown-menu-outer-list { list-style: none; margin: 0; li.navbar-dropdown-menu-outer-list-item { border-bottom: solid 1px var(--color-border-popover-menu); &:last-child { border-bottom: none; ul.navbar-dropdown-menu-inner-list { padding-bottom: 0; } } ul.navbar-dropdown-menu-inner-list { margin: 0; padding: 4px 0; list-style: none; background: none !important; } } } .spectator-view { #gear-menu-dropdown .gear-menu-select-dark-theme { display: block; } } .navbar-dropdown-hotkey-hint { color: var(--color-hotkey-hint); text-align: center; font-size: 14px; font-style: normal; font-weight: 500; line-height: 14px; padding: 2px 4px; border-radius: 3px; border: 1px solid var(--color-hotkey-hint); margin-left: auto; }