mirror of https://github.com/zulip/zulip.git
1029 lines
22 KiB
CSS
1029 lines
22 KiB
CSS
/* Reusable, object-oriented CSS base components for the Zulip web app
|
|
(not included in the portico CSS) */
|
|
|
|
.flex {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hide {
|
|
display: none;
|
|
}
|
|
|
|
kbd {
|
|
display: inline-block;
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
background-color: hsl(0deg 0% 98%);
|
|
color: hsl(0deg 0% 20%);
|
|
margin: 0.25em 0.1em;
|
|
padding: 0.1em 0.4em;
|
|
text-shadow: 0 1px 0 hsl(0deg 0% 100%);
|
|
/* Prevent selection */
|
|
user-select: none;
|
|
}
|
|
|
|
@media (width < $sm_min) {
|
|
.hide-sm {
|
|
display: none !important;
|
|
}
|
|
|
|
.show-sm {
|
|
display: block !important;
|
|
}
|
|
|
|
#settings_page .save-button-controls {
|
|
display: block;
|
|
margin: 10px 0 0;
|
|
}
|
|
}
|
|
|
|
@media (width < $lg_min) {
|
|
.hide-lg {
|
|
display: none !important;
|
|
}
|
|
|
|
.show-lg {
|
|
display: block !important;
|
|
}
|
|
}
|
|
|
|
@media (width < $xl_min) {
|
|
.hide-xl {
|
|
display: none !important;
|
|
}
|
|
|
|
.show-xl {
|
|
display: block !important;
|
|
}
|
|
}
|
|
|
|
.light {
|
|
font-weight: 300;
|
|
}
|
|
|
|
.inline-block {
|
|
display: inline-block;
|
|
}
|
|
|
|
.display-block {
|
|
display: block !important;
|
|
}
|
|
|
|
.box-shadow {
|
|
box-shadow: 0 0 10px hsl(0deg 0% 0% / 10%);
|
|
}
|
|
|
|
.clear-float {
|
|
clear: both;
|
|
}
|
|
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.order-1 {
|
|
order: 1;
|
|
}
|
|
|
|
.order-2 {
|
|
order: 2;
|
|
}
|
|
|
|
.order-3 {
|
|
order: 3;
|
|
}
|
|
|
|
/*
|
|
Consistent placeholder styling, introduced to allow us to style the
|
|
Reply box like a placeholder. Chrome uses color to set placeholder,
|
|
while Firefox uses opacity, so we need to set both properties to avoid
|
|
mixed styling.
|
|
|
|
While we usually prefer opacity for text color in Zulip, there's some
|
|
evidence Edge may have bugs in its handling of placeholder opacity
|
|
CSS: https://github.com/necolas/normalize.css/issues/741
|
|
*/
|
|
.placeholder {
|
|
color: hsl(0deg 0% 45%);
|
|
opacity: 1;
|
|
}
|
|
|
|
textarea::placeholder,
|
|
input::placeholder {
|
|
@extend .placeholder;
|
|
}
|
|
|
|
.new-style {
|
|
/* -- base button styling -- */
|
|
.button {
|
|
padding: 7px 14px;
|
|
margin: 0;
|
|
min-width: 130px;
|
|
|
|
font-weight: 400;
|
|
line-height: normal;
|
|
text-align: center;
|
|
|
|
background-color: hsl(0deg 0% 100%);
|
|
color: inherit;
|
|
outline: none;
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
border-radius: 2px;
|
|
|
|
box-shadow: none;
|
|
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
|
|
/* -- button style variations -- */
|
|
&.no-style {
|
|
padding: 0;
|
|
background-color: transparent;
|
|
border: none;
|
|
min-width: 0;
|
|
width: auto;
|
|
outline: none;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
&.rounded {
|
|
border-radius: 4px;
|
|
}
|
|
|
|
&.green {
|
|
background-color: hsl(150deg 31% 53%);
|
|
}
|
|
|
|
&.grey {
|
|
background-color: hsl(0deg 0% 67%);
|
|
}
|
|
|
|
&.small {
|
|
font-size: 0.8rem;
|
|
min-width: inherit;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border-color: hsl(0deg 0% 60%);
|
|
}
|
|
|
|
&:active {
|
|
border-color: hsl(0deg 0% 60%);
|
|
color: inherit;
|
|
background-color: hsl(0deg 0% 95%);
|
|
}
|
|
|
|
&.sea-green {
|
|
color: hsl(156deg 41% 40%);
|
|
border-color: hsl(156deg 28% 70%);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border-color: hsl(156deg 30% 50%);
|
|
}
|
|
|
|
&:active {
|
|
border-color: hsl(156deg 30% 40%);
|
|
color: hsl(156deg 44% 43%);
|
|
background-color: hsl(154deg 33% 96%);
|
|
}
|
|
}
|
|
|
|
&.btn-warning {
|
|
color: hsl(35deg 70% 56%);
|
|
border-color: hsl(35deg 98% 84%);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border-color: hsl(35deg 55% 70%);
|
|
}
|
|
|
|
&:active {
|
|
color: hsl(35deg 82% 40%);
|
|
border-color: hsl(35deg 55% 70%);
|
|
background-color: hsl(33deg 48% 96%);
|
|
}
|
|
}
|
|
|
|
&.btn-danger {
|
|
color: hsl(357deg 64% 72%);
|
|
border-color: hsl(4deg 56% 82%);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border-color: hsl(2deg 46% 68%);
|
|
}
|
|
|
|
&:active {
|
|
color: hsl(357deg 55% 63%);
|
|
border-color: hsl(2deg 46% 68%);
|
|
background-color: hsl(7deg 82% 98%);
|
|
}
|
|
}
|
|
|
|
&.btn-link {
|
|
color: hsl(208deg 56% 53%);
|
|
text-decoration: none;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: hsl(208deg 56% 38%);
|
|
}
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
filter: saturate(0);
|
|
background-color: hsl(0deg 0% 93%);
|
|
color: hsl(0deg 3% 52%);
|
|
|
|
&:hover {
|
|
background-color: hsl(0deg 0% 93%);
|
|
color: hsl(156deg 39% 54%);
|
|
border-color: hsl(156deg 39% 77%);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* -- tab switcher -- */
|
|
|
|
.tab-switcher {
|
|
font-weight: initial;
|
|
margin: 2px 4px;
|
|
display: inline-block;
|
|
|
|
.ind-tab {
|
|
display: inline-block;
|
|
width: 90px;
|
|
margin: 0 -0.5px;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
vertical-align: bottom; /* See https://stackoverflow.com/a/43266155/ */
|
|
padding: 3px 10px;
|
|
background-color: hsl(0deg 0% 100%);
|
|
cursor: pointer;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&:not(.selected) {
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
}
|
|
|
|
&.first {
|
|
border-radius: 5px 0 0 5px;
|
|
border-right: 1px solid transparent;
|
|
}
|
|
|
|
&.middle {
|
|
border-right: 1px solid transparent;
|
|
}
|
|
|
|
&.last {
|
|
border-radius: 0 5px 5px 0;
|
|
}
|
|
|
|
&.selected {
|
|
position: relative;
|
|
background-color: hsl(0deg 0% 53%);
|
|
color: hsl(0deg 0% 100%);
|
|
border: 1px solid hsl(0deg 0% 47%);
|
|
z-index: 2;
|
|
}
|
|
|
|
&.disabled {
|
|
pointer-events: none;
|
|
color: hsl(0deg 0% 80%);
|
|
border-color: hsl(0deg 0% 87%);
|
|
}
|
|
}
|
|
|
|
&.large .ind-tab {
|
|
width: 100%;
|
|
}
|
|
|
|
&.allow-overflow {
|
|
display: flex;
|
|
|
|
.ind-tab {
|
|
display: flex;
|
|
text-overflow: initial;
|
|
white-space: initial;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
|
|
.stream_sorter_toggle {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
/* -- unified overlay design component -- */
|
|
div.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
background-color: hsl(0deg 0% 13% / 80%);
|
|
z-index: 105;
|
|
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
|
|
transition: all 0.2s ease-in;
|
|
overflow: hidden;
|
|
|
|
.overlay-content {
|
|
transform: translateY(20px);
|
|
transition: transform 0.2s ease-in;
|
|
z-index: 102;
|
|
}
|
|
|
|
&.show {
|
|
opacity: 1;
|
|
pointer-events: all;
|
|
visibility: visible;
|
|
transition: opacity 0.2s ease-out;
|
|
|
|
.overlay-content {
|
|
transform: translateY(0);
|
|
transition-timing-function: ease-out;
|
|
}
|
|
}
|
|
}
|
|
|
|
.input-append {
|
|
font-size: 90%;
|
|
letter-spacing: -0.3em;
|
|
display: block;
|
|
}
|
|
|
|
.input-append input[type="text"],
|
|
.new-style input[type="text"] {
|
|
border-radius: 5px;
|
|
box-shadow: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.clear_search_button {
|
|
&:hover {
|
|
color: hsl(0deg 0% 0%);
|
|
}
|
|
|
|
&:disabled {
|
|
visibility: hidden;
|
|
}
|
|
|
|
&,
|
|
&:focus,
|
|
&:active,
|
|
&:disabled:hover {
|
|
position: relative;
|
|
right: 20px;
|
|
background: none;
|
|
border: none;
|
|
text-align: center;
|
|
padding-top: 8px;
|
|
padding-left: 4px;
|
|
color: hsl(0deg 0% 80%);
|
|
text-shadow: none;
|
|
outline: none !important;
|
|
box-shadow: none;
|
|
z-index: 5;
|
|
|
|
#set-user-status-modal & {
|
|
margin-left: -26px;
|
|
right: 0;
|
|
padding-top: 6px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.grey-box {
|
|
margin: 0;
|
|
padding: 5px 10px;
|
|
background-color: hsl(0deg 0% 98%);
|
|
border: 1px solid hsl(0deg 0% 87%);
|
|
border-radius: 4px;
|
|
|
|
list-style-type: none;
|
|
}
|
|
|
|
.white-box {
|
|
background-color: hsl(0deg 0% 100%);
|
|
border: 1px solid hsl(0deg 0% 87%);
|
|
}
|
|
|
|
.guest-avatar {
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
&::after {
|
|
content: " ";
|
|
background-color: hsl(0deg 0% 47%);
|
|
position: absolute;
|
|
bottom: -30%;
|
|
right: -30%;
|
|
width: 50%;
|
|
height: 50%;
|
|
transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
.dependent-settings-block {
|
|
margin: 15px 0 -5px 23px;
|
|
}
|
|
|
|
@media (width < $md_min) {
|
|
/* Override Bootstrap's responsive grid to display input at full width */
|
|
.input-append .stream-list-filter {
|
|
/* Input width = 100% - 10px margin x2 - 6px padding x2 - 1px border x2. */
|
|
width: calc(100% - 34px);
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.input-append .topic-list-filter {
|
|
/* Input width = 100% - 11px margin x2 - 6px padding x2 - 1px border x2. */
|
|
width: calc(100% - 36px);
|
|
margin-left: 11px;
|
|
margin-bottom: 5px;
|
|
}
|
|
}
|
|
|
|
.topic-list-filter {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
|
|
& input {
|
|
padding-right: 20px;
|
|
}
|
|
}
|
|
|
|
.stream-selection-header-colorblock {
|
|
/* box-shadow: 0px 2px 3px hsl(0, 0%, 80%); */
|
|
box-shadow: inset 0 2px 1px -2px hsl(0deg 0% 20%),
|
|
inset 2px 0 1px -2px hsl(0deg 0% 20%),
|
|
inset 0 -2px 1px -2px hsl(0deg 0% 20%);
|
|
width: 10px;
|
|
border-radius: 3px 0 0 3px;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.stream_header_colorblock {
|
|
@extend .stream-selection-header-colorblock;
|
|
margin-bottom: 5px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.edit-controls .fa-angle-right,
|
|
.topic_stream_edit_header .fa-angle-right {
|
|
font-size: 0.9em;
|
|
-webkit-text-stroke: 0.05em;
|
|
position: relative;
|
|
margin: 0 5px;
|
|
top: 9px;
|
|
}
|
|
|
|
/* Standard loading indicators generated by the loading.ts API */
|
|
.loading_indicator_spinner {
|
|
/* If you change these, make sure to adjust the constants in
|
|
loading.make_indicator as well */
|
|
height: 38px;
|
|
width: 38px;
|
|
float: left;
|
|
}
|
|
|
|
.loading_indicator_text {
|
|
/* If you change these, make sure to adjust the constants in
|
|
loading.make_indicator as well */
|
|
margin-left: 5px;
|
|
font-size: 1.2em;
|
|
font-weight: 300;
|
|
line-height: 38px;
|
|
}
|
|
|
|
.upgrade-tip,
|
|
.upgrade-or-sponsorship-tip {
|
|
width: fit-content;
|
|
|
|
&::before {
|
|
content: "\f135";
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
|
|
.upgrade-tip:hover {
|
|
color: hsl(0deg 0% 20%);
|
|
border: 1px solid hsl(49deg 20% 60%);
|
|
box-shadow: 0 0 4px hsl(199deg 79% 56% / 20%);
|
|
|
|
text-decoration: none;
|
|
}
|
|
|
|
.upgrade-tip,
|
|
.upgrade-or-sponsorship-tip,
|
|
.tip {
|
|
position: relative;
|
|
display: block;
|
|
background-color: hsl(46deg 63% 95%);
|
|
border: 1px solid hsl(49deg 20% 84%);
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
color: hsl(0deg 0% 40%);
|
|
|
|
&::before {
|
|
display: inline;
|
|
|
|
font-family: FontAwesome;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.tip::before {
|
|
content: "\f0a2";
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* We are mostly consistent in how we style
|
|
unread counts, except for starred messages.
|
|
This is the common section.
|
|
*/
|
|
.unread_count {
|
|
float: right;
|
|
padding: 0 4px;
|
|
height: 16px;
|
|
line-height: 16px;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
letter-spacing: 0.6px;
|
|
border-radius: 4px;
|
|
background-color: hsl(105deg 2% 50%);
|
|
color: hsl(0deg 0% 100%);
|
|
}
|
|
|
|
.unread_mention_info:not(:empty) {
|
|
margin-right: 5px;
|
|
margin-left: 2px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Implement the web app's default-hidden convention for alert
|
|
elements. Portico pages lack this CSS and thus show them by
|
|
default. */
|
|
.alert {
|
|
display: none;
|
|
|
|
&.show {
|
|
display: block;
|
|
}
|
|
|
|
&#organization-status {
|
|
margin: 20px;
|
|
}
|
|
|
|
&.stream_create_info {
|
|
margin: 10px 10px 0;
|
|
}
|
|
|
|
.bankruptcy_unread_count {
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.white_zulip_icon_without_text {
|
|
display: inline-block;
|
|
background-image: url("../images/logo/white-zulip-logo-without-text.svg");
|
|
background-size: cover;
|
|
}
|
|
|
|
.only-visible-for-spectators {
|
|
display: none;
|
|
}
|
|
|
|
.spectator-view {
|
|
/* Add this class to elements which a
|
|
* spectator cannot use. */
|
|
.hidden-for-spectators {
|
|
display: none !important;
|
|
}
|
|
|
|
.only-visible-for-spectators {
|
|
display: revert;
|
|
}
|
|
}
|
|
|
|
.animated-purple-button {
|
|
color: hsl(0deg 0% 100%);
|
|
transition: all 80ms linear;
|
|
box-shadow: none;
|
|
/* This color just passes WCAG AA */
|
|
background-color: hsl(240deg 96% 68%);
|
|
cursor: pointer;
|
|
border: none;
|
|
border-radius: 4px;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
/* This color passes WCAG AAA */
|
|
background-color: hsl(240deg 41% 50%);
|
|
box-shadow: 0 1px 4px hsl(0deg 0% 0% / 30%);
|
|
}
|
|
|
|
&:focus {
|
|
background-color: hsl(240deg 41% 50%);
|
|
box-shadow: 0 1px 4px 0 hsl(235deg 18% 7%);
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.color_animated_button {
|
|
display: flex;
|
|
justify-content: center;
|
|
background-color: hsl(0deg 0% 90%);
|
|
color: hsl(0deg 0% 0%);
|
|
border-radius: 4px;
|
|
|
|
& span {
|
|
color: hsl(0deg 0% 0%);
|
|
}
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
background-color: hsl(240deg 96% 68%);
|
|
color: hsl(0deg 0% 100%);
|
|
|
|
& span {
|
|
color: hsl(0deg 0% 100%);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
* {
|
|
padding: 6px 3px;
|
|
}
|
|
|
|
.fa {
|
|
position: relative;
|
|
top: 3px;
|
|
}
|
|
}
|
|
|
|
.table-striped {
|
|
table-layout: auto;
|
|
border-collapse: separate;
|
|
|
|
& thead th {
|
|
min-width: 100px;
|
|
color: inherit;
|
|
background-color: hsl(0deg 0% 100%);
|
|
border-top: 1px solid hsl(0deg 0% 0% / 20%) !important;
|
|
border-bottom: 1px solid hsl(0deg 0% 0% / 20%) !important;
|
|
|
|
&.active::after,
|
|
&[data-sort]:hover::after {
|
|
content: " \f0d8";
|
|
white-space: pre;
|
|
display: inline-block;
|
|
position: absolute;
|
|
padding-top: 3px;
|
|
font: normal normal normal 12px/1 FontAwesome;
|
|
font-size: inherit;
|
|
}
|
|
|
|
&.active {
|
|
opacity: 1;
|
|
transition: opacity 100ms ease-out;
|
|
|
|
&.descend::after {
|
|
content: " \f0d7";
|
|
}
|
|
}
|
|
|
|
&[data-sort]:hover {
|
|
cursor: pointer;
|
|
background-color: hsl(0deg 0% 95%) !important;
|
|
transition: background-color 100ms ease-in-out;
|
|
|
|
&:not(.active)::after {
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Force the actions column to use the minimum space necessary */
|
|
.actions {
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
#stream_settings .save-button-controls,
|
|
#settings_page .save-button-controls {
|
|
display: inline;
|
|
margin-left: 15px;
|
|
|
|
&.hide {
|
|
display: none;
|
|
}
|
|
|
|
.save-discard-widget-button {
|
|
border-radius: 5px;
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
padding: 3px 14px 4px 11px;
|
|
text-decoration: none;
|
|
color: hsl(0deg 0% 47%);
|
|
min-width: 80px;
|
|
/* Limit the height of the button */
|
|
line-height: 1.2;
|
|
vertical-align: text-bottom;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border: 1px solid hsl(0deg 0% 61%);
|
|
|
|
.discard-button.save-discard-widget-button-text {
|
|
color: hsl(0deg 0% 18%);
|
|
}
|
|
}
|
|
|
|
&.primary {
|
|
background-color: hsl(156deg 30% 50%);
|
|
color: hsl(0deg 0% 100%);
|
|
border: 1px solid hsl(155deg 30% 50%);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: hsl(166deg 35% 57%);
|
|
border: 1px solid hsl(166deg 35% 57%);
|
|
}
|
|
|
|
.save-discard-widget-button-icon {
|
|
font-weight: 400;
|
|
color: hsl(0deg 0% 100%);
|
|
}
|
|
|
|
&.saving {
|
|
background-color: hsl(156deg 14% 40%);
|
|
border-color: hsl(156deg 14% 40%);
|
|
}
|
|
}
|
|
|
|
&.save-button {
|
|
margin-right: 5px;
|
|
|
|
.save-discard-widget-button-loading {
|
|
display: none;
|
|
}
|
|
|
|
&.saving {
|
|
.save-discard-widget-button-icon {
|
|
display: none;
|
|
}
|
|
|
|
.save-discard-widget-button-loading {
|
|
display: inline-block;
|
|
margin-right: 2px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.save-discard-widget-button-icon {
|
|
vertical-align: middle;
|
|
margin-right: 3px;
|
|
font-size: 15px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.save-discard-widget-button-text {
|
|
vertical-align: middle;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.stream-privacy-type-icon {
|
|
position: relative;
|
|
top: 0.06rem;
|
|
padding-right: 1px;
|
|
width: 12px;
|
|
|
|
&.zulip-icon-globe,
|
|
&.zulip-icon-hashtag {
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
&.zulip-icon-lock,
|
|
&.zulip-icon-users {
|
|
font-size: 0.8em;
|
|
}
|
|
}
|
|
|
|
#settings_content,
|
|
#stream_settings,
|
|
#stream-creation,
|
|
#edit_bot_modal {
|
|
.dropdown-list-widget .dropdown-list-wrapper {
|
|
width: fit-content;
|
|
|
|
& span {
|
|
min-width: 210px;
|
|
width: fit-content;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* This includes css needed to display messages in an overlay. */
|
|
.overlay-messages-container {
|
|
position: relative;
|
|
height: 95%;
|
|
background-color: var(--color-background-modal);
|
|
border-radius: 4px;
|
|
padding: 0;
|
|
width: 58%;
|
|
overflow: hidden;
|
|
max-width: 1200px;
|
|
max-height: 1000px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
@media (width < $md_min) {
|
|
height: 95%;
|
|
max-width: none;
|
|
width: 90%;
|
|
}
|
|
|
|
.overlay-messages-header {
|
|
padding-top: 4px;
|
|
padding-bottom: 8px;
|
|
text-align: center;
|
|
border-bottom: 1px solid hsl(0deg 0% 87%);
|
|
|
|
& h1 {
|
|
margin: 0;
|
|
font-size: 1.1em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.exit {
|
|
font-weight: 400;
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
color: hsl(0deg 0% 67%);
|
|
cursor: pointer;
|
|
|
|
.exit-sign {
|
|
position: relative;
|
|
top: 1px;
|
|
margin-left: 3px;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
|
|
.overlay-messages-list {
|
|
padding: 10px 25px;
|
|
overflow: auto;
|
|
|
|
.no-overlay-messages {
|
|
display: block;
|
|
margin-top: calc(45vh - 30px - 1.5em);
|
|
text-align: center;
|
|
font-size: 1.5em;
|
|
color: hsl(0deg 0% 67%);
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.overlay-messages-container .overlay-message-row {
|
|
padding: 5px 0;
|
|
|
|
> div {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.overlay-message-info-box {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
|
|
&.active {
|
|
outline: 2px solid hsl(215deg 47% 50%);
|
|
border-radius: 7px;
|
|
}
|
|
|
|
.message_row {
|
|
border-radius: 0 0 7px 7px;
|
|
border: 1px solid var(--color-message-list-border);
|
|
border-top: 0;
|
|
}
|
|
|
|
.messagebox-content {
|
|
grid-template-rows: auto;
|
|
grid-template-columns: auto max-content;
|
|
padding: 10px;
|
|
|
|
.message_content {
|
|
cursor: pointer;
|
|
grid-column: 1 / 2;
|
|
/* to space from restore draft button */
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.message_top_line {
|
|
grid-column: 2 / 3;
|
|
}
|
|
}
|
|
|
|
.messagebox {
|
|
cursor: auto;
|
|
box-shadow: none;
|
|
border-radius: 0 0 7px 7px;
|
|
}
|
|
|
|
.overlay_message_controls {
|
|
display: inline-block;
|
|
font-size: 0.9em;
|
|
|
|
[data-tippy-root] {
|
|
width: max-content;
|
|
word-wrap: unset;
|
|
}
|
|
|
|
.restore-overlay-message {
|
|
cursor: pointer;
|
|
margin-right: 5px;
|
|
color: hsl(170deg 48% 54%);
|
|
opacity: 0.7;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.delete-overlay-message {
|
|
cursor: pointer;
|
|
margin-left: 5px;
|
|
color: hsl(357deg 52% 57%);
|
|
opacity: 0.7;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.message_header {
|
|
/* We don't need these effects applied for message list in the drafts overlay. */
|
|
box-shadow: none !important;
|
|
border: 0 !important;
|
|
background: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown-widget-button {
|
|
background-color: hsl(0deg 0% 100%);
|
|
padding: 4px 6px;
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
outline: none;
|
|
|
|
.fa-chevron-down {
|
|
position: relative;
|
|
top: -1px;
|
|
}
|
|
}
|