2023-03-23 18:57:47 +01:00
|
|
|
/*
|
|
|
|
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"] {
|
2023-08-01 15:53:24 +02:00
|
|
|
.sp-input {
|
|
|
|
/* Override incorrect color for text in dark theme. */
|
|
|
|
color: var(--color-text-default) !important;
|
|
|
|
}
|
|
|
|
|
2023-03-23 19:00:15 +01:00
|
|
|
.tippy-content {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
2023-08-31 14:21:23 +02:00
|
|
|
/* TODO: Clean this logic up after drop Bootstrap styling */
|
|
|
|
& hr {
|
|
|
|
/* Override bootstrap defaults */
|
|
|
|
margin: 5px 0;
|
|
|
|
}
|
|
|
|
|
2023-03-23 18:57:47 +01:00
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-07 14:42:54 +02:00
|
|
|
.tippy-box[data-theme="dropdown-widget"] {
|
|
|
|
border-radius: 6px;
|
|
|
|
background-color: hsl(240deg 20% 98%);
|
|
|
|
border: 1px solid hsl(0deg 0% 0% / 40%);
|
2023-07-21 23:08:07 +02:00
|
|
|
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%);
|
2023-05-07 14:42:54 +02:00
|
|
|
|
|
|
|
.tippy-content {
|
|
|
|
font-size: 14px;
|
|
|
|
color: hsl(0deg 0% 75%);
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-14 00:57:23 +02:00
|
|
|
.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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-19 13:03:10 +02:00
|
|
|
.user_full_name,
|
|
|
|
.bot_owner {
|
2022-07-12 21:25:02 +02:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2022-10-03 13:29:59 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popover_user_name_row {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-04-18 00:55:36 +02:00
|
|
|
|
|
|
|
.zulip-icon.zulip-icon-bot {
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
2022-10-03 13:29:59 +02:00
|
|
|
}
|
|
|
|
|
2023-09-14 17:26:00 +02:00
|
|
|
.user-card-popover-action-buttons {
|
2022-10-03 13:29:59 +02:00
|
|
|
margin-left: auto;
|
2023-09-01 20:25:52 +02:00
|
|
|
line-height: 1;
|
2022-10-03 13:29:59 +02:00
|
|
|
}
|
|
|
|
|
2023-09-14 17:27:55 +02:00
|
|
|
.user-card-popover-manage-menu-btn {
|
2022-10-03 13:29:59 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2022-07-12 21:25:02 +02:00
|
|
|
|
2022-10-03 13:29:59 +02:00
|
|
|
.user_popover_manage_menu {
|
|
|
|
.zulip-icon {
|
|
|
|
/* Overriding CSS margin */
|
2022-07-12 21:25:02 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-10-03 13:29:59 +02:00
|
|
|
}
|
2022-07-12 21:25:02 +02:00
|
|
|
|
2023-10-09 18:38:14 +02:00
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:32:54 +02:00
|
|
|
.user-card-popover-actions .custom_user_field {
|
2022-10-03 13:29:59 +02:00
|
|
|
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. */
|
2023-09-18 09:44:52 +02:00
|
|
|
.custom-profile-fields-link {
|
2022-10-03 13:29:59 +02:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
|
|
|
&:hover {
|
2023-03-03 04:52:36 +01:00
|
|
|
background-color: transparent !important;
|
2022-10-03 13:29:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2023-03-03 04:52:36 +01:00
|
|
|
background-color: transparent !important;
|
2022-10-03 13:29:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-18 09:50:39 +02:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:32:54 +02:00
|
|
|
.user-card-popover-actions .user-card-popover-manage-menu-btn {
|
2022-10-03 13:29:59 +02:00
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
2022-07-12 21:25:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-23 00:54:00 +01:00
|
|
|
.sp-container {
|
2019-07-10 19:07:34 +02:00
|
|
|
z-index: 106;
|
2017-03-23 00:54:00 +01:00
|
|
|
}
|
|
|
|
|
2019-07-04 07:48:19 +02:00
|
|
|
.streams_popover {
|
2020-05-20 22:12:29 +02:00
|
|
|
.topic-name {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
2019-07-04 07:48:19 +02:00
|
|
|
.colorpicker-container {
|
2020-05-13 08:49:24 +02:00
|
|
|
display: none;
|
2019-07-04 07:48:19 +02:00
|
|
|
margin-right: 10px;
|
2019-07-09 13:02:16 +02:00
|
|
|
|
|
|
|
.sp-container {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2019-07-09 13:02:16 +02:00
|
|
|
cursor: pointer;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
.sp-palette-container {
|
|
|
|
border-right: none;
|
|
|
|
}
|
2019-07-09 13:05:30 +02:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& input {
|
2020-08-04 23:58:56 +02:00
|
|
|
box-sizing: inherit; /* IE */
|
2019-07-09 13:05:30 +02:00
|
|
|
box-sizing: initial;
|
|
|
|
|
|
|
|
width: calc(100% - 13px);
|
|
|
|
}
|
2020-05-01 03:03:43 +02:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& button {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2020-05-01 03:03:43 +02:00
|
|
|
background-image: none;
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 80%);
|
2020-05-01 03:03:43 +02:00
|
|
|
border-radius: 4px;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 25%);
|
2020-05-01 03:03:43 +02:00
|
|
|
font-size: 12px;
|
|
|
|
padding: 6px;
|
|
|
|
text-transform: capitalize;
|
|
|
|
text-align: center;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
2020-05-01 03:34:10 +02:00
|
|
|
|
|
|
|
.sp-picker-container {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-left: solid 1px hsl(0deg 0% 88%);
|
2020-05-01 03:34:10 +02:00
|
|
|
}
|
2019-07-09 13:02:16 +02:00
|
|
|
}
|
2019-07-04 07:48:19 +02:00
|
|
|
}
|
2017-03-23 00:54:00 +01:00
|
|
|
|
2019-07-04 07:48:19 +02:00
|
|
|
.popover_sub_unsub_button {
|
2020-08-06 02:42:07 +02:00
|
|
|
margin-top: 0;
|
2019-07-04 07:48:19 +02:00
|
|
|
float: none;
|
|
|
|
}
|
2017-03-23 00:54:00 +01:00
|
|
|
}
|
|
|
|
|
2019-07-04 07:54:27 +02:00
|
|
|
ul {
|
2023-09-14 19:32:54 +02:00
|
|
|
&.user-card-popover-actions i,
|
2022-09-16 12:31:59 +02:00
|
|
|
&.actions_popover i,
|
|
|
|
&.streams_popover i,
|
|
|
|
&.topics_popover i {
|
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
2022-10-03 13:29:59 +02:00
|
|
|
|
2023-09-13 19:30:52 +02:00
|
|
|
&:not(.popover_action_icon, .guest-indicator) {
|
2022-10-03 13:29:59 +02:00
|
|
|
width: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.popover_action_icon, .custom_user_field i) {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
2022-09-16 13:11:23 +02:00
|
|
|
|
2023-10-08 21:10:35 +02:00
|
|
|
&.zulip-icon:not(.tab-option > .zulip-icon) {
|
2022-09-16 13:11:23 +02:00
|
|
|
/* These icons are different from font awesome icons,
|
|
|
|
so they need to be aligned separately. */
|
|
|
|
line-height: 14px;
|
|
|
|
position: relative;
|
2022-10-03 13:29:59 +02:00
|
|
|
|
|
|
|
&:not(.zulip-icon-bot) {
|
|
|
|
top: 2px;
|
|
|
|
}
|
2023-09-01 20:25:52 +02:00
|
|
|
|
|
|
|
&.popover_action_icon {
|
|
|
|
font-size: 17px;
|
|
|
|
line-height: 1;
|
|
|
|
top: 1px;
|
|
|
|
}
|
2022-09-16 13:11:23 +02:00
|
|
|
}
|
2019-07-04 07:54:27 +02:00
|
|
|
}
|
2017-03-23 00:54:00 +01:00
|
|
|
|
2020-05-15 16:08:25 +02:00
|
|
|
&.topics_popover {
|
|
|
|
.topic-name {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
2020-06-20 17:50:19 +02:00
|
|
|
|
|
|
|
.fa-chevron-right {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2020-05-15 16:08:25 +02:00
|
|
|
}
|
2020-02-19 01:38:34 +01:00
|
|
|
}
|
2022-09-16 12:31:59 +02:00
|
|
|
|
2023-09-14 19:32:54 +02:00
|
|
|
&.user-card-popover-actions i.fa-edit {
|
2022-09-16 12:31:59 +02:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2018-01-15 03:02:23 +01:00
|
|
|
}
|
2022-10-05 12:41:38 +02:00
|
|
|
|
2022-11-29 08:05:14 +01:00
|
|
|
.actions_popover {
|
2021-08-05 00:59:03 +02:00
|
|
|
.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;
|
2023-03-27 08:43:07 +02:00
|
|
|
font-weight: 600;
|
2021-08-05 00:59:03 +02:00
|
|
|
margin-right: 2px;
|
2023-10-02 19:19:10 +02:00
|
|
|
background-color: var(
|
|
|
|
--color-background-unread-counter-popover-menu
|
|
|
|
);
|
2021-08-05 00:59:03 +02:00
|
|
|
/* Override random undesired bootstrap style */
|
|
|
|
text-shadow: none;
|
|
|
|
/* Not center aligned but looks better. */
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-20 20:09:44 +02:00
|
|
|
/* 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 {
|
2017-07-27 19:35:35 +02:00
|
|
|
width: 240px;
|
|
|
|
|
2017-04-08 02:10:48 +02:00
|
|
|
margin: -14px;
|
2017-07-27 19:35:35 +02:00
|
|
|
padding: 0;
|
2020-08-06 02:34:58 +02:00
|
|
|
|
2023-10-09 16:45:10 +02:00
|
|
|
.user-card-popover-title {
|
2020-08-06 02:34:58 +02:00
|
|
|
padding: 0;
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(0deg 0% 0% / 20%);
|
2020-08-06 02:34:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.popover_info li {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2017-07-27 19:35:35 +02:00
|
|
|
}
|
|
|
|
|
2023-09-15 11:59:38 +02:00
|
|
|
.group-info-popover,
|
2023-09-20 20:09:44 +02:00
|
|
|
.message-user-card-popover-root,
|
|
|
|
.user-card-popover-root {
|
2017-12-13 20:45:06 +01:00
|
|
|
width: 240px;
|
2019-07-04 08:24:33 +02:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2019-07-09 12:31:47 +02:00
|
|
|
.group-info-popover {
|
2023-10-09 19:31:37 +02:00
|
|
|
.group-info-content {
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
|
2019-07-09 12:31:47 +02:00
|
|
|
.manage-group a {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2018-02-14 05:21:46 +01:00
|
|
|
|
2019-07-09 12:32:48 +02:00
|
|
|
.group-info {
|
|
|
|
text-align: center;
|
|
|
|
|
2019-07-09 12:33:44 +02:00
|
|
|
.group-name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-07-09 12:31:47 +02:00
|
|
|
}
|
2018-02-14 05:21:46 +01:00
|
|
|
|
2019-07-09 12:31:47 +02:00
|
|
|
.member-list {
|
|
|
|
position: relative;
|
|
|
|
max-height: 300px;
|
|
|
|
overflow-y: auto;
|
|
|
|
list-style: none;
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
.bot {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(180deg 5% 74%);
|
2019-07-09 12:31:47 +02:00
|
|
|
vertical-align: top;
|
|
|
|
width: 20px;
|
|
|
|
padding-top: 3.5px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
2018-02-14 05:21:46 +01:00
|
|
|
}
|
|
|
|
|
2022-11-14 22:01:19 +01:00
|
|
|
.user_profile_presence,
|
|
|
|
.popover_user_presence {
|
2019-02-18 15:59:34 +01:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
2020-08-06 02:42:07 +02:00
|
|
|
margin: 0 5px;
|
2019-07-09 12:29:40 +02:00
|
|
|
display: inline-block;
|
|
|
|
float: initial;
|
|
|
|
position: relative;
|
2022-10-03 13:29:59 +02:00
|
|
|
top: 0;
|
|
|
|
flex-shrink: 0;
|
2019-02-18 15:59:34 +01:00
|
|
|
}
|
|
|
|
|
2019-05-29 05:59:53 +02:00
|
|
|
.bot-owner-name {
|
|
|
|
text-decoration: underline;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(200deg 100% 40%);
|
2019-05-29 05:59:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-23 00:54:00 +01:00
|
|
|
.popover-avatar {
|
|
|
|
height: 240px;
|
|
|
|
width: 240px;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
position: relative;
|
2018-12-17 02:25:00 +01:00
|
|
|
|
|
|
|
&.guest-avatar::after {
|
2023-03-20 22:08:47 +01:00
|
|
|
outline: 10px solid hsl(0deg 0% 100%);
|
2018-12-17 02:25:00 +01:00
|
|
|
}
|
2017-03-29 00:26:38 +02:00
|
|
|
|
2019-07-04 08:30:45 +02:00
|
|
|
.popover-inner {
|
|
|
|
width: 240px;
|
|
|
|
}
|
2019-07-04 08:29:50 +02:00
|
|
|
}
|
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
#user-profile-modal {
|
2021-07-22 17:50:59 +02:00
|
|
|
.modal__body {
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 60vh;
|
|
|
|
padding-left: 16px;
|
|
|
|
padding-right: 16px;
|
user_profile: Fix inconsistent height of user profile switching tabs.
This commit fixes the inconsistent height of the user profile when
switching tabs. We now have four tabs in the user profile:
"Profile," "Streams," "User Groups," and "Manage User." However,
the "Manage User" tab has footer buttons that need to remain
sticky at the bottom without changing the overall height of
the modal.
To achieve this, we wrapped the footer inside a div element and
assigned it a class called "manage-profile-tab-footer." The main
body of the user profile is given a height of 60vh. However, for
the "Manage User" tab, we decreased this height to 52vh and
allocated the remaining 8vh height to the div element to
accommodate the footer buttons. This ensures that the user
profile maintains consistent height when switching between tabs.
However, we have a 1px border in the footer, so to ensure that
the height is consistent, we reduce the height of the modal
content by 1px, making it calc(52vh - 1px).
To implement this, CSS code was added to the "popover.css" file
and accessed through the class specified in the "user_profile.js"
file.
The default padding of the buttons inside footer is 20px, but
with the above solution on large screens the buttons are not
aligned properly, so removed the padding top and bottom
and instead applied the flex box and property to align the buttons.
2023-09-09 14:26:50 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
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);
|
|
|
|
}
|
2021-07-22 17:50:59 +02:00
|
|
|
}
|
|
|
|
|
2022-10-14 00:34:57 +02:00
|
|
|
.modal__header {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2022-11-14 22:01:19 +01:00
|
|
|
.user_profile_presence {
|
|
|
|
margin: 5px;
|
2022-11-09 20:53:11 +01:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2021-07-22 17:50:59 +02:00
|
|
|
.modal__close {
|
2022-10-14 00:34:57 +02:00
|
|
|
position: absolute;
|
|
|
|
right: 20px;
|
2021-07-22 17:50:59 +02:00
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2021-06-03 09:36:43 +02:00
|
|
|
#tab-toggle {
|
|
|
|
font-weight: initial;
|
2022-10-14 00:34:57 +02:00
|
|
|
padding: 0 16px 6px;
|
2021-06-03 09:36:43 +02:00
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2021-06-03 09:36:43 +02:00
|
|
|
.name {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 20%);
|
2022-06-05 09:51:26 +02:00
|
|
|
width: 120px;
|
2021-06-03 09:36:43 +02:00
|
|
|
font-weight: 600;
|
2022-06-05 09:51:26 +02:00
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.value {
|
|
|
|
vertical-align: top;
|
2021-06-03 09:36:43 +02:00
|
|
|
}
|
2018-05-24 20:56:53 +02:00
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
#exit-sign {
|
|
|
|
font-size: 1.5rem;
|
2021-06-11 23:14:08 +02:00
|
|
|
line-height: 1;
|
2018-10-05 05:29:44 +02:00
|
|
|
}
|
2018-05-24 20:56:53 +02:00
|
|
|
|
2022-06-05 14:12:19 +02:00
|
|
|
#profile-tab {
|
2023-01-28 02:59:41 +01:00
|
|
|
margin: 1px 5px 0;
|
2023-02-21 13:18:57 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& li.custom_user_field {
|
2023-02-21 13:18:57 +01:00
|
|
|
display: block;
|
|
|
|
}
|
2022-06-05 16:37:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.top {
|
2022-06-05 14:12:19 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2022-06-30 14:06:34 +02:00
|
|
|
@media (width < $ml_min) {
|
|
|
|
.top {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
#avatar {
|
|
|
|
display: inline-block;
|
|
|
|
height: 180px;
|
|
|
|
width: 180px;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
border-radius: 5px;
|
2023-03-20 22:08:47 +01:00
|
|
|
box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 20%);
|
2018-12-18 02:25:07 +01:00
|
|
|
|
|
|
|
&.guest-avatar::after {
|
2023-03-20 22:08:47 +01:00
|
|
|
outline: 9px solid hsl(0deg 0% 100%);
|
2018-12-18 02:25:07 +01:00
|
|
|
}
|
2018-10-05 05:29:44 +02:00
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2023-08-17 13:40:56 +02:00
|
|
|
.user_profile_manage_own_edit_button,
|
|
|
|
.user_profile_manage_others_edit_button {
|
2023-02-11 11:06:47 +01:00
|
|
|
width: 25px;
|
|
|
|
text-align: center;
|
2023-09-09 13:13:14 +02:00
|
|
|
font-size: 18px;
|
2023-02-11 11:06:47 +01:00
|
|
|
}
|
|
|
|
|
2023-04-18 00:55:20 +02:00
|
|
|
.user_profile_name {
|
2023-08-08 06:59:04 +02:00
|
|
|
margin: 0 10px;
|
2023-04-18 00:55:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.zulip-icon.zulip-icon-bot {
|
2023-09-09 13:32:47 +02:00
|
|
|
padding: unset;
|
2023-04-18 00:55:20 +02:00
|
|
|
}
|
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
#default-section {
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
.default-field {
|
2022-06-05 16:37:04 +02:00
|
|
|
margin-bottom: 10px;
|
2018-10-05 05:29:44 +02:00
|
|
|
}
|
2022-06-05 16:37:04 +02:00
|
|
|
}
|
2018-10-05 05:29:44 +02:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& hr {
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 93%);
|
2018-10-05 05:29:44 +02:00
|
|
|
margin: 5px 0;
|
|
|
|
}
|
2018-04-23 20:41:35 +02:00
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
#content {
|
|
|
|
.field-section {
|
2022-06-05 16:37:04 +02:00
|
|
|
margin-bottom: 10px;
|
2018-04-23 20:41:35 +02:00
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
.name {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 20%);
|
2020-06-11 05:11:49 +02:00
|
|
|
font-weight: 600;
|
2018-10-05 05:29:44 +02:00
|
|
|
}
|
2018-04-23 20:41:35 +02:00
|
|
|
|
2018-10-05 05:29:44 +02:00
|
|
|
&[data-type="2"] .value {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
}
|
2022-06-05 16:37:04 +02:00
|
|
|
|
|
|
|
.rendered_markdown p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-left {
|
2022-06-30 13:49:19 +02:00
|
|
|
padding: 0 10px 0 0;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-right {
|
|
|
|
width: fit-content;
|
2018-10-05 05:29:44 +02:00
|
|
|
}
|
2018-10-15 21:58:01 +02:00
|
|
|
|
2021-06-03 09:36:43 +02:00
|
|
|
.tab-data {
|
|
|
|
.active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
2023-09-08 22:46:01 +02:00
|
|
|
.stream-tab-element-header {
|
|
|
|
margin: 0;
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: inherit;
|
|
|
|
font-size: 21px;
|
|
|
|
}
|
|
|
|
|
2021-07-02 21:25:50 +02:00
|
|
|
#user-profile-streams-tab {
|
2021-06-30 23:07:02 +02:00
|
|
|
.stream_list_info {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2021-07-02 20:51:28 +02:00
|
|
|
|
|
|
|
.stream-privacy {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filter-icon i {
|
|
|
|
padding-right: 3px;
|
|
|
|
}
|
2023-09-08 19:37:58 +02:00
|
|
|
|
|
|
|
.user_profile_subscribe_widget {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: baseline;
|
|
|
|
padding-top: 2px;
|
|
|
|
}
|
2021-06-30 23:07:02 +02:00
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2021-06-30 18:47:04 +02:00
|
|
|
.stream-list-top-section {
|
|
|
|
display: flex;
|
2023-09-08 22:46:01 +02:00
|
|
|
margin-top: 12px;
|
2021-06-30 18:47:04 +02:00
|
|
|
|
|
|
|
.stream-search {
|
|
|
|
margin-left: auto;
|
|
|
|
align-self: center;
|
2021-10-25 22:34:46 +02:00
|
|
|
padding-right: 20px;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2021-06-30 18:47:04 +02:00
|
|
|
}
|
2021-06-30 22:17:19 +02:00
|
|
|
|
|
|
|
#clear_stream_search {
|
|
|
|
display: none;
|
|
|
|
padding: 5px 8px 5px 4px;
|
|
|
|
position: relative;
|
|
|
|
right: 0;
|
|
|
|
}
|
2021-06-30 16:49:06 +02:00
|
|
|
}
|
|
|
|
|
2021-06-23 11:48:01 +02:00
|
|
|
.subscription-group-list,
|
|
|
|
.subscription-stream-list {
|
2021-06-03 09:36:43 +02:00
|
|
|
position: relative;
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 83%);
|
2021-06-03 09:36:43 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
overflow: auto;
|
|
|
|
text-align: left;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
2023-02-05 21:33:31 +01:00
|
|
|
.remove-subscription-button {
|
|
|
|
padding-top: 2px;
|
|
|
|
padding-bottom: 2px;
|
|
|
|
}
|
|
|
|
|
2021-06-03 09:36:43 +02:00
|
|
|
.user-stream-list,
|
|
|
|
.user-group-list {
|
|
|
|
width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
border-radius: 6px;
|
2023-07-24 16:59:11 +02:00
|
|
|
border-collapse: collapse;
|
2021-06-03 09:36:43 +02:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& tr {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-bottom: 1px solid hsl(0deg 0% 87%);
|
2023-02-05 21:33:31 +01:00
|
|
|
/* Ensure equal height for rows with a remove-subscription-button and
|
|
|
|
those without one. */
|
|
|
|
height: 34px;
|
2021-06-03 09:36:43 +02:00
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& td {
|
2021-06-03 09:36:43 +02:00
|
|
|
padding: 4px 0;
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
2021-06-30 23:07:02 +02:00
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.remove_subscription {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2021-06-03 09:36:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
user_profile: Fix inconsistent height of user profile switching tabs.
This commit fixes the inconsistent height of the user profile when
switching tabs. We now have four tabs in the user profile:
"Profile," "Streams," "User Groups," and "Manage User." However,
the "Manage User" tab has footer buttons that need to remain
sticky at the bottom without changing the overall height of
the modal.
To achieve this, we wrapped the footer inside a div element and
assigned it a class called "manage-profile-tab-footer." The main
body of the user profile is given a height of 60vh. However, for
the "Manage User" tab, we decreased this height to 52vh and
allocated the remaining 8vh height to the div element to
accommodate the footer buttons. This ensures that the user
profile maintains consistent height when switching between tabs.
However, we have a 1px border in the footer, so to ensure that
the height is consistent, we reduce the height of the modal
content by 1px, making it calc(52vh - 1px).
To implement this, CSS code was added to the "popover.css" file
and accessed through the class specified in the "user_profile.js"
file.
The default padding of the buttons inside footer is 20px, but
with the above solution on large screens the buttons are not
aligned properly, so removed the padding top and bottom
and instead applied the flex box and property to align the buttons.
2023-09-09 14:26:50 +02:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-24 19:07:11 +02:00
|
|
|
|
|
|
|
.empty-list {
|
|
|
|
border: none;
|
|
|
|
|
2023-10-15 12:23:06 +02:00
|
|
|
.empty-table-message {
|
2023-08-24 19:07:11 +02:00
|
|
|
padding: 3em 1em;
|
|
|
|
}
|
|
|
|
}
|
2018-04-23 20:41:35 +02:00
|
|
|
}
|
|
|
|
|
2021-02-04 02:49:05 +01:00
|
|
|
@media (width < $md_min) {
|
2020-10-20 19:43:41 +02:00
|
|
|
.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%;
|
|
|
|
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 0% / 70%);
|
2020-10-20 19:43:41 +02:00
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
.popover-inner {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2020-10-20 19:43:41 +02:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2021-02-04 02:49:05 +01:00
|
|
|
@media (width < $sm_min) {
|
2020-10-20 19:43:41 +02:00
|
|
|
.popover-inner {
|
|
|
|
width: 70%;
|
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2020-10-20 19:43:41 +02:00
|
|
|
.sp-picker-container {
|
|
|
|
border-left: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-26 21:54:34 +02:00
|
|
|
.popover-flex {
|
|
|
|
position: absolute;
|
|
|
|
top: 0 !important;
|
|
|
|
left: 0 !important;
|
|
|
|
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
display: flex !important;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 0% / 70%);
|
2017-09-26 21:54:34 +02:00
|
|
|
|
2021-06-27 21:24:11 +02:00
|
|
|
/* 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;
|
2017-09-26 21:54:34 +02:00
|
|
|
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
2019-07-04 07:56:09 +02:00
|
|
|
&.fade.in {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
2017-09-26 21:54:34 +02:00
|
|
|
}
|
|
|
|
|
2023-08-25 15:26:28 +02:00
|
|
|
.emoji-picker-popover {
|
2017-09-26 21:54:34 +02:00
|
|
|
position: static;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2021-06-30 18:47:04 +02:00
|
|
|
#user-profile-modal {
|
|
|
|
.stream-list-top-section {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.header-section {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stream-search {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2021-06-30 22:17:19 +02:00
|
|
|
|
|
|
|
#clear_stream_search {
|
|
|
|
padding-top: 1px;
|
|
|
|
}
|
2021-06-30 18:47:04 +02:00
|
|
|
}
|
|
|
|
}
|
2017-05-11 01:43:33 +02:00
|
|
|
}
|
2017-05-12 20:17:17 +02:00
|
|
|
|
2021-03-19 13:21:18 +01:00
|
|
|
.popover.top .arrow::after {
|
|
|
|
left: -1px;
|
|
|
|
}
|
|
|
|
|
2023-08-25 12:19:43 +02:00
|
|
|
.giphy-popover,
|
2023-09-15 11:59:38 +02:00
|
|
|
.emoji-popover-root,
|
2023-09-20 20:09:44 +02:00
|
|
|
.user-group-popover-root,
|
|
|
|
.user-sidebar-popover-root,
|
|
|
|
.message-user-card-popover-root,
|
|
|
|
.user-card-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;
|
2023-07-25 17:41:58 +02:00
|
|
|
|
|
|
|
/* 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
|
|
|
}
|
2023-09-20 20:09:44 +02:00
|
|
|
|
2023-10-09 19:35:34 +02:00
|
|
|
& ul.nav {
|
2023-09-20 20:09:44 +02:00
|
|
|
/* TODO: Clean this logic up after drop Bootstrap styling */
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-06-22 17:31:32 +02:00
|
|
|
}
|
|
|
|
|
2023-09-15 11:59:38 +02:00
|
|
|
.user-group-popover-root {
|
2023-10-09 19:35:34 +02:00
|
|
|
& ul.nav {
|
2023-09-15 11:59:38 +02:00
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-25 12:19:43 +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: hsl(0deg 0% 93%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement="bottom"] .tippy-arrow::before {
|
|
|
|
border-bottom-color: hsl(0deg 0% 93%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-19 13:21:18 +01:00
|
|
|
#giphy_grid_in_popover {
|
2021-04-11 15:46:56 +02:00
|
|
|
/* 300px of GIPHY grid + 5px is the extra gutter space
|
|
|
|
* between gif columns. */
|
|
|
|
width: 305px;
|
2021-04-11 14:25:40 +02:00
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2021-03-19 13:21:18 +01:00
|
|
|
|
|
|
|
.giphy-gif {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.giphy-gif-img:focus {
|
|
|
|
/* Red outline for clear visibility
|
2021-04-25 22:54:23 +02:00
|
|
|
* of which image is in focus.
|
2021-03-19 13:21:18 +01:00
|
|
|
*/
|
2023-03-20 22:08:47 +01:00
|
|
|
outline-color: hsl(0deg 100% 50%);
|
2021-03-19 13:21:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
display: flex;
|
|
|
|
position: sticky;
|
2021-04-11 14:26:53 +02:00
|
|
|
padding: 2px;
|
2021-03-19 13:21:18 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& input {
|
2021-03-19 13:21:18 +01:00
|
|
|
flex-grow: 1;
|
|
|
|
margin: 5px;
|
2021-04-11 14:25:40 +02:00
|
|
|
border-radius: 3px;
|
2021-03-19 13:21:18 +01:00
|
|
|
}
|
2021-04-11 14:26:53 +02:00
|
|
|
|
|
|
|
.clear_search_button {
|
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
right: 3px;
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
.fa-remove {
|
2023-09-12 13:01:36 +02:00
|
|
|
outline: 2px solid var(--color-outline-focus);
|
2021-04-11 14:26:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-19 13:21:18 +01:00
|
|
|
}
|
|
|
|
|
2023-10-09 19:17:50 +02:00
|
|
|
.giphy-scrolling-container {
|
2021-03-19 13:21:18 +01:00
|
|
|
overflow: auto;
|
|
|
|
height: 200px;
|
2021-04-11 14:25:40 +02:00
|
|
|
margin: 2px;
|
2023-10-09 19:17:50 +02:00
|
|
|
padding: 5px 0;
|
2021-03-19 13:21:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.popover-footer {
|
|
|
|
text-align: center;
|
2023-03-20 22:08:47 +01:00
|
|
|
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;
|
2021-03-19 13:21:18 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& img {
|
2021-03-19 13:21:18 +01:00
|
|
|
width: 120px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-14 17:34:16 +02:00
|
|
|
.user-card-status-text {
|
2019-02-05 22:12:31 +01:00
|
|
|
opacity: 0.8;
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2023-03-15 21:56:35 +01:00
|
|
|
.status-emoji {
|
2021-06-29 17:21:30 +02:00
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
2022-10-03 13:29:59 +02:00
|
|
|
/* 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;
|
2022-10-04 09:19:30 +02:00
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#status_message {
|
|
|
|
padding: 1px 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
hyphens: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status_text {
|
|
|
|
overflow-wrap: anywhere;
|
2021-06-29 17:21:30 +02:00
|
|
|
}
|
2019-02-05 22:12:31 +01:00
|
|
|
}
|
2020-02-19 01:38:34 +01:00
|
|
|
|
2021-05-10 04:47:08 +02:00
|
|
|
#move_topic_modal {
|
2023-03-17 22:10:10 +01:00
|
|
|
& form {
|
2021-07-18 11:18:03 +02:00
|
|
|
margin: 0;
|
|
|
|
}
|
2021-10-16 21:57:26 +02:00
|
|
|
|
2023-07-19 16:09:53 +02:00
|
|
|
#move_topic_to_stream_widget_wrapper {
|
2023-06-20 12:18:41 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-07-19 16:09:53 +02:00
|
|
|
.dropdown_widget_value {
|
2023-06-20 12:18:41 +02:00
|
|
|
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;
|
|
|
|
}
|
2021-07-16 20:19:36 +02:00
|
|
|
}
|
|
|
|
|
2023-04-18 17:24:55 +02:00
|
|
|
.move_messages_edit_topic {
|
2021-07-18 11:18:03 +02:00
|
|
|
margin-bottom: 10px;
|
2021-05-10 04:47:08 +02:00
|
|
|
}
|
2020-05-12 13:41:45 +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;
|
|
|
|
}
|
2021-12-03 15:08:55 +01:00
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
position: fixed;
|
|
|
|
top: 125px;
|
|
|
|
left: 40px;
|
|
|
|
}
|
2021-05-10 04:47:08 +02:00
|
|
|
}
|
2020-05-12 13:41:45 +02:00
|
|
|
}
|
2022-06-06 15:38:17 +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;
|
|
|
|
}
|
|
|
|
}
|
2023-04-14 21:34:41 +02:00
|
|
|
|
|
|
|
#send_later_popover {
|
|
|
|
& hr {
|
|
|
|
margin: 5px 0;
|
|
|
|
}
|
2023-04-24 20:29:07 +02:00
|
|
|
}
|
2023-04-14 21:34:41 +02:00
|
|
|
|
2023-04-24 20:29:07 +02:00
|
|
|
#send_later_modal {
|
|
|
|
.modal__content {
|
|
|
|
padding-bottom: 16px;
|
2023-04-14 21:34:41 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-25 17:21:20 +02:00
|
|
|
|
|
|
|
.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%);
|
|
|
|
}
|
|
|
|
}
|
2023-07-17 18:01:16 +02:00
|
|
|
|
2023-10-13 12:51:35 +02:00
|
|
|
#personal-menu-dropdown {
|
|
|
|
padding-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
2023-07-17 18:01:16 +02:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-13 00:45:23 +02:00
|
|
|
.navbar-dropdown-menu {
|
2023-10-13 01:59:52 +02:00
|
|
|
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;
|
2023-10-13 12:03:50 +02:00
|
|
|
box-shadow: var(--box-shadow-navbar-dropdown-menu);
|
2023-10-13 01:59:52 +02:00
|
|
|
|
|
|
|
.simplebar-content {
|
2023-10-14 00:57:23 +02:00
|
|
|
/* This is necessary to keep long menu items on a single line. */
|
2023-10-13 01:59:52 +02:00
|
|
|
min-width: max-content;
|
|
|
|
}
|
2023-07-17 18:01:16 +02:00
|
|
|
|
|
|
|
.text-item,
|
|
|
|
.link-item a {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
|
|
|
gap: 5px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
font-size: 15px;
|
|
|
|
line-height: 16px;
|
|
|
|
|
|
|
|
& i {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
& i {
|
|
|
|
color: var(--color-icon-purple);
|
|
|
|
}
|
|
|
|
|
|
|
|
& a {
|
|
|
|
color: var(--color-text-dropdown-menu) !important;
|
|
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
flex-grow: 1;
|
|
|
|
align-items: center;
|
|
|
|
gap: 5px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-background-hover-dropdown-menu);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-10-19 18:08:45 +02:00
|
|
|
&:focus-visible {
|
2023-07-17 18:01:16 +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-dropdown-menu);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.clear_status {
|
|
|
|
margin-left: auto;
|
|
|
|
color: hsl(0deg 0% 40%) !important;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.status_emoji {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
2023-10-13 12:51:35 +02:00
|
|
|
|
|
|
|
.zulip-icon {
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
|
|
|
& a {
|
|
|
|
padding: 2px 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-background-hover-dropdown-menu);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-10-19 18:08:45 +02:00
|
|
|
&: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-dropdown-menu);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.org-url {
|
|
|
|
margin-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.org-name,
|
|
|
|
.org-plan a {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.light-theme,
|
|
|
|
.dark-theme {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-07-17 18:01:16 +02:00
|
|
|
}
|
2023-10-18 08:40:37 +02:00
|
|
|
|
|
|
|
ul.navbar-dropdown-menu-outer-list {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
& > li {
|
|
|
|
border-bottom: solid 1px var(--color-border-popover-menu);
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
2023-10-13 12:51:35 +02:00
|
|
|
|
|
|
|
& > ul {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2023-10-18 08:40:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
& > ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 4px 0;
|
|
|
|
list-style: none;
|
|
|
|
background: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-18 08:57:18 +02:00
|
|
|
|
|
|
|
.spectator-view {
|
|
|
|
#gear-menu-dropdown .dark-theme {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|