zulip/web/styles/popovers.css

1448 lines
33 KiB
CSS
Raw Normal View History

/*
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"] {
background-color: var(--color-background-popover);
/* Basic Tippy popovers scale with the base font-size. */
font-size: var(--base-font-size-px);
.sp-input {
/* Override incorrect color for text in dark theme. */
color: var(--color-text-default) !important;
}
.tippy-content {
/* We set the font-size here to override the
default value in the upstream tippy.css */
/* 14px at 14px/1em */
font-size: 1em;
}
/* TODO: Clean this logic up after drop Bootstrap styling */
& hr {
/* Override bootstrap defaults */
margin: 5px 0;
}
&[data-placement^="top"] {
> .tippy-arrow {
&::before {
border-top-color: var(--color-background-popover);
}
}
}
&[data-placement^="bottom"] {
> .tippy-arrow {
&::before {
border-bottom-color: var(--color-background-popover);
}
}
}
&[data-placement^="left"] {
> .tippy-arrow {
&::before {
border-left-color: var(--color-background-popover);
}
}
}
&[data-placement^="right"] {
> .tippy-arrow {
&::before {
border-right-color: var(--color-background-popover);
}
}
}
}
.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 dropdown widgets scale with the base font-size. */
font-size: var(--base-font-size-px);
.tippy-content {
/* We set the font-size here to override the
default value in the upstream tippy.css */
/* 14px at 14px/1em */
font-size: 1em;
color: hsl(0deg 0% 75%);
padding: 0;
}
}
.tippy-box[data-theme="popover-menu"] {
background-color: var(--color-background-popover-menu);
border: 1px solid var(--color-border-popover-menu);
border-radius: 6px;
box-shadow: var(--box-shadow-popover-menu);
/* Popover menus should scale no smaller than 15px,
but scale up with the base font-size. */
font-size: max(15px, var(--base-font-size-px));
> .tippy-content {
padding: 0;
/* We set the font-size here to override the
default value in the upstream tippy.css */
/* 15 at 15px/1em */
font-size: 1em;
}
> .tippy-arrow {
color: var(--color-background-popover-menu);
}
&[data-placement^="top"] > .tippy-arrow::before {
bottom: var(--popover-tippy-arrow-before-offset);
}
&[data-placement^="bottom"] > .tippy-arrow::before {
top: var(--popover-tippy-arrow-before-offset);
}
&[data-placement^="left"] > .tippy-arrow::before {
right: var(--popover-tippy-arrow-before-offset);
}
&[data-placement^="right"] > .tippy-arrow::before {
left: var(--popover-tippy-arrow-before-offset);
}
}
.tippy-box[data-theme="popover-menu"]:has(#gear-menu-dropdown) {
--box-shadow-popover-menu: var(--box-shadow-gear-menu);
}
.user_full_name,
.bot_owner {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.user-card-popover-actions {
.custom-profile-field-value {
display: flex;
align-items: center;
gap: 5px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.custom-profile-field-value.rendered_markdown p {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
/* Overriding CSS from rendered_markdown.css */
margin: 0;
}
.custom-profile-field-link {
color: var(--color-text-item);
&:hover {
color: var(--color-text-link);
text-decoration: none;
}
&:focus-visible {
color: var(--color-text-url-hover);
outline: 1px solid var(--color-outline-focus) !important;
outline-offset: 2px;
border-radius: 2px;
}
.custom-profile-field-text {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
&:hover {
text-decoration: underline;
}
}
}
}
.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;
}
}
}
2017-03-23 00:54:00 +01:00
.sp-container {
z-index: 106;
2017-03-23 00:54:00 +01:00
}
#stream-actions-menu-popover {
.popover-stream-name {
font-weight: 600;
color: var(--color-text-popover-menu);
line-height: 1.1;
}
.popover-stream-name,
.stream-privacy.filter-icon {
margin-top: 4px;
}
.zulip-icon-lock {
/* Override the margin-top set on the stream lock icon
at the top-level, since we don't need to pull up this
icon for the stream actions popover header. */
margin: 0 !important;
}
.colorpicker-container {
display: none;
margin-right: 10px;
.sp-container {
/* The base-font size for the color container is 12px,
inherited from the upstream spectrum.css file. */
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%);
/* 12px at 12px/1em */
font-size: 1em;
padding: 6px;
text-transform: capitalize;
text-align: center;
text-shadow: none;
}
.sp-picker-container {
border-left: solid 1px hsl(0deg 0% 88%);
}
}
}
2017-03-23 00:54:00 +01:00
}
#topic-actions-menu-popover {
.popover-topic-name {
font-weight: 600;
color: var(--color-text-popover-menu);
line-height: 1.1;
margin-top: 4px;
white-space: pre-wrap;
}
}
.popover-group-menu-info {
display: flex;
flex-direction: column;
gap: 5px;
padding: 3px 10px;
}
.popover-group-menu-name-container {
display: flex;
align-items: flex-start;
gap: 5px;
/* 18px at 15px/1em */
font-size: 1.2em;
font-weight: 600;
/* 20px at 18px/1em */
line-height: 1.1111em;
color: var(--color-text-full-name);
word-break: break-word;
}
.popover-group-menu-description {
/* 15px at 15px/1em */
font-size: 1em;
/* 16px at 15px/1em */
line-height: 1.0667em;
}
ul.popover-group-menu-member-list {
max-height: 300px;
display: flex;
flex-direction: column;
.simplebar-content {
width: unset;
}
}
.popover-group-menu-member {
display: flex;
align-items: center;
padding: 0 10px;
}
.popover-group-menu-member-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.popover-group-menu-description,
.popover-group-menu-member-name {
color: var(--color-text-popover-menu);
}
.user_profile_presence,
.popover_user_presence {
width: var(--length-user-status-circle);
height: var(--length-user-status-circle);
margin: 0 5px;
display: inline-block;
float: initial;
position: relative;
top: 0;
flex-shrink: 0;
}
.user_profile_presence {
/* Remove font-size to allow this to scale
with the menu header text. Declaring font-size
here maintains the legacy design of keeping
the user-circle smaller, despite the larger
surrounding text and icons. */
font-size: var(--base-font-size-px);
}
.bot-owner-name {
text-decoration: underline;
&:hover {
cursor: pointer;
color: hsl(200deg 100% 40%);
}
}
2017-03-23 00:54:00 +01:00
.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%);
font-weight: 600;
margin-right: 10px;
overflow-wrap: break-word;
}
.value {
vertical-align: top;
overflow-wrap: anywhere;
}
#exit-sign {
/* 24px at 14px/1em */
font-size: 1.7143em;
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 {
text-decoration: none;
/* 15px at 22px/1em */
font-size: 0.6818em;
}
.user-profile-manage-own-copy-link-button {
/* 19px at 22px/1em */
font-size: 0.8638em;
text-decoration: none;
}
.zulip-icon-link,
.zulip-icon-edit {
vertical-align: middle;
}
.deactivated-user-icon {
margin: -1px;
vertical-align: middle;
}
.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;
}
.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;
/* 21px at 14px/1em */
font-size: 1.5em;
}
#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 {
2023-06-22 17:31:32 +02:00
.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);
2023-06-22 17:31:32 +02:00
}
}
.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: var(--color-border-emoji-picker-tippy-arrow);
}
.tippy-box[data-placement="bottom"] .tippy-arrow::before {
border-bottom-color: var(--color-border-emoji-picker-tippy-arrow);
}
.tippy-box[data-placement="left"] .tippy-arrow::before {
border-left-color: var(--color-border-emoji-picker-tippy-arrow);
}
}
#giphy_grid_in_popover {
/* 300px of GIPHY grid + 5px is the extra gutter space
* + 1px for outline.
* between gif columns. */
width: 306px;
border: 0;
padding: 0;
.giphy-content {
position: relative;
left: 1px;
}
.giphy-gif {
cursor: pointer;
}
.giphy-gif:focus {
/* Red outline for clear visibility
* of which image is in focus.
*/
outline: 1px solid hsl(0deg 100% 50%);
}
.giphy-scrolling-container {
overflow: auto;
height: 200px;
margin: 2px;
padding: 5px 0;
}
.popover-footer {
text-align: center;
background-color: hsl(0deg 0% 0%);
2023-06-22 17:31:32 +02:00
/* 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;
}
}
}
2021-05-10 04:47:08 +02:00
#move_topic_modal {
/* Modals have a 16px/1em base font-size. */
& form {
margin: 0;
}
#move_topic_to_stream_widget_wrapper {
display: flex;
margin-bottom: 10px;
.dropdown-widget-button {
outline: none;
/* 24px at 16px/1em */
line-height: 1.5em;
width: auto;
max-width: 206px;
}
.dropdown_widget_value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--color-text-default);
.stream-privacy-type-icon {
/* 13px at 16px/1em */
font-size: 0.8125em;
/* 13px at 13px/1em */
width: 1em;
height: 1em;
position: relative;
top: 2px;
}
}
.zulip-icon-chevron-down {
padding-left: 5px;
color: hsl(0deg 0% 58%);
font-weight: lighter;
}
}
.move_messages_edit_topic {
margin-bottom: 10px;
2021-05-10 04:47:08 +02:00
}
2021-05-10 04:47:08 +02:00
.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;
}
2021-05-10 04:47:08 +02:00
}
}
#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 {
.popover-menu-list {
padding: 2px;
}
}
.recipient-bar-topic-visibility-switcher {
.tab-option-content {
/* 15px at 16px/1em */
font-size: 0.9375em;
color: var(--color-text-popover-menu);
gap: 10px;
justify-content: flex-start;
padding: 2px 13px;
}
}
.popover-menu-user-header {
display: flex;
flex-flow: row nowrap;
gap: 7px;
text-align: left;
padding: 4px;
.popover-menu-user-avatar-container {
position: relative;
flex-shrink: 0;
width: 64px;
height: 64px;
}
.popover-menu-user-avatar {
width: 64px;
height: 64px;
border-radius: 4px;
background-size: cover;
background-position: center;
}
.popover-menu-user-presence {
position: absolute;
width: 8px;
height: 8px;
right: -1px;
bottom: -1px;
border: solid 1px var(--color-background);
border-radius: 50%;
}
.popover-menu-user-info {
width: max-content;
align-self: center;
}
.popover-menu-user-full-name {
/* 18px at 15px/1em */
font-size: 1.2em;
font-weight: 600;
/* 20px at 18px/1em */
line-height: 1.1111em;
color: var(--color-text-full-name);
word-break: break-word;
}
.popover-menu-user-type {
/* 14px at 15px/1em */
font-size: 0.9333em;
font-weight: 400;
/* 16px at 14px/1em */
line-height: 1.1428em;
color: var(--color-text-item);
}
.user_circle_empty {
background-color: var(--color-background-popover-menu);
border-color: hsl(0deg 0% 50%);
}
}
.user-card-popover-email-field {
& .user_popover_email {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
#popover-menu-copy-email,
.copy-custom-profile-field-link {
display: flex;
padding: 3px 2px 1px;
border-radius: 4px;
color: var(--color-text-item);
text-decoration: none !important;
margin-left: auto;
&.hide_copy_icon {
display: none;
}
&:hover {
color: var(--color-copy-btn-hover) !important;
background-color: var(--color-copy-btn-bg-hover);
}
&:active {
color: var(--color-copy-btn-active) !important;
background-color: var(--color-copy-btn-bg-active);
}
&:focus-visible {
outline: 1px solid var(--color-outline-focus) !important;
outline-offset: 0;
color: var(--color-copy-btn-hover) !important;
background-color: var(--color-copy-btn-bg-hover);
}
}
.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: var(--length-user-status-circle);
height: var(--length-user-status-circle);
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-popover-menu);
border-color: hsl(0deg 0% 50%);
}
.text-area {
flex-grow: 1;
padding-top: 4px;
& p {
margin: 0 0 4px;
}
}
.full-name {
/* 18px at 15px/1em */
font-size: 1.2em;
font-weight: 600;
/* 20px at 18px/1em */
line-height: 1.1111em;
color: var(--color-text-full-name) !important;
max-width: 150px;
word-break: break-word;
}
.user-type {
/* 14px at 15px/1em */
font-size: 0.9333em;
font-weight: 400;
/* 16px at 14px/1em */
line-height: 1.1429em;
color: var(--color-text-item) !important;
}
}
.popover-menu {
margin: 0;
max-height: 85vh;
overflow-x: hidden;
user-select: none;
border-radius: 6px;
.simplebar-content {
/* Set the popover menu width equal to the width of the
longest menu item, thus letting the menu items control
the width of the menu. */
width: min-content;
/* Set `max-width` to the minimum of `97vw` and the value defined by
the `--popover-menu-max-width` custom property, which should be defined
as a local custom property in the scope of a particular popover where
we want apply a `max-width` limit.
When we don't define this local custom property, the fallback value of
`97vw` is considered and the `max-width` is then set to `min(97vw, 97vw)`
which is simply equivalent to `97vw`.
IMPORTANT: Setting `--popover-menu-max-width` in the `:root` scope
instead of the local scope, eliminates the fallback behavior and thus
prevents us from setting the max-width on a case-to-case basis. */
max-width: min(var(--popover-menu-max-width, 97vw), 97vw);
}
.popover-menu-label {
/* Keep menu items on a single line, unless forced to wrap
by a max-width on the popover. */
width: max-content;
flex: 1 0 0;
}
.text-item,
.link-item .popover-menu-link {
box-sizing: border-box;
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
gap: 5px;
padding: 0.2em 0.6666em;
/* 15px at 15px/1em */
font-size: 1em;
/* 16px at 15px/1em */
line-height: 1.0667em;
min-height: 26px;
.popover-menu-icon {
/* 16px at 15px/1em */
font-size: 1.0667em;
/* 16px at 16px/1em */
width: 1em;
height: 1em;
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-popover-menu);
}
.popover-menu-label,
.popover-menu-icon {
margin-top: 2px;
}
.popover-menu-icon {
color: var(--color-icon-purple);
}
.popover-menu-link {
color: var(--color-text-popover-menu) !important;
text-decoration: none;
flex-grow: 1;
&:hover {
background: var(--color-background-hover-popover-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-popover-menu);
}
}
}
.tab-picker {
&.popover-menu-tab-group {
margin: 2px 10px;
}
.tab-option-content:focus-visible {
border-radius: 4px;
/* Override the default focus style */
outline: 1px solid var(--color-outline-focus) !important;
outline-offset: -1px;
}
}
.status_emoji {
align-self: flex-start;
flex-shrink: 0;
/* 16px at 15px/1em */
width: 1.0667em;
height: 1.0667em;
}
2023-10-13 12:51:35 +02:00
.zulip-icon {
position: relative;
top: -1px;
}
}
#help-menu-dropdown,
#gear-menu-dropdown,
#personal-menu-dropdown {
.simplebar-content {
min-width: var(--navbar-popover-menu-min-width);
}
}
#message-actions-menu-dropdown {
/* 350px at 15px/1em */
--popover-menu-max-width: 23.3333em;
.simplebar-content {
min-width: var(--message-actions-popover-min-width);
}
}
#stream-actions-menu-popover,
#topic-actions-menu-popover {
.simplebar-content {
min-width: var(--topic-actions-popover-min-width);
}
}
#user_card_popover {
/* 250px at 14px/1em */
--popover-menu-max-width: 17.8571em;
.simplebar-content {
min-width: var(--user-card-popover-min-width);
}
}
.user-group-info-popover {
.simplebar-content {
min-width: var(--user-group-info-popover-min-width);
}
}
.personal-menu-clear-status {
display: flex;
align-items: center;
margin-left: auto;
color: hsl(0deg 0% 40%) !important;
border-radius: 4px;
opacity: 0.5;
&:focus {
/* Override bootstrap defaults */
outline: 1px solid var(--color-outline-focus) !important;
outline-offset: 0;
}
&:hover,
&:focus {
opacity: 0.9;
text-decoration: none;
}
}
.personal-menu-clear-status .personal-menu-clear-status-icon {
top: 0;
}
.personal-menu-status-wrapper {
display: flex;
align-items: flex-start;
gap: 5px;
}
.personal-menu-status-text {
color: var(--color-text-personal-menu-some-status);
}
.personal-menu-no-status-text {
color: var(--color-text-personal-menu-no-status);
}
2023-10-13 12:51:35 +02:00
#gear-menu-dropdown {
.org-info-container {
padding: 9px 0 5px;
border-bottom: solid 1px var(--color-border-popover-menu-separator);
2023-10-13 12:51:35 +02:00
.org-info {
2023-10-13 12:51:35 +02:00
display: flex;
justify-content: flex-start;
2023-10-13 12:51:35 +02:00
font-style: normal;
font-weight: 400;
/* 16px at 15px/1em */
line-height: 1.0667em;
2023-10-13 12:51:35 +02:00
letter-spacing: 0.28px;
&:focus-within {
background: var(--color-background-hover-popover-menu);
2023-10-13 12:51:35 +02:00
}
.popover-menu-link {
padding: 2px 10px;
2023-10-13 12:51:35 +02:00
flex-grow: 1;
text-decoration: none;
&:hover {
background: var(--color-background-hover-popover-menu);
2023-10-13 12:51:35 +02:00
outline: none;
}
&:focus-visible {
2023-10-13 12:51:35 +02:00
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-popover-menu);
2023-10-13 12:51:35 +02:00
}
}
}
.org-url {
margin-bottom: 7px;
padding: 0 10px;
2023-10-13 12:51:35 +02:00
}
.org-name,
.org-plan .popover-menu-link {
color: var(--color-text-popover-menu);
2023-10-13 12:51:35 +02:00
}
.org-name {
/* 17px at 15px/1em */
font-size: 1.1333em;
2023-10-13 12:51:35 +02:00
font-weight: 600;
/* 22px at 17px/1em */
line-height: 1.2941em;
padding: 0 10px;
2023-10-13 12:51:35 +02:00
}
.org-upgrade {
/* 14px at 15px/1em */
font-size: 0.9333em;
/* 16px at 14px/1em */
line-height: 1.1428em;
2023-10-13 12:51:35 +02:00
}
.org-upgrade,
.org-url {
color: var(--color-gear-menu-lighter-text);
}
.org-upgrade a,
.org-version a {
color: var(--color-gear-menu-blue-text);
}
}
}
ul.popover-menu-list {
list-style: none;
margin: 0;
padding: 4px 0;
li.popover-menu-separator {
margin: 4px 0;
border-bottom: solid 1px var(--color-border-popover-menu-separator);
}
}
.popover-menu-hotkey-hints {
display: flex;
gap: 4px;
margin-left: auto;
padding-left: 5px;
> .popover-menu-hotkey-hint {
box-sizing: border-box;
color: var(--color-popover-hotkey-hint);
text-align: center;
/* 14px at 15px/1em */
font-size: 0.9333em;
font-style: normal;
font-weight: 500;
/* 14px at 14px/1em */
line-height: 1em;
/* 20px at 14px/1em */
min-width: 1.4285em;
padding: 2px 4px;
border-radius: 3px;
border: 1px solid var(--color-border-popover-hotkey-hint);
}
}