mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 07:03:44 +08:00
956 lines
18 KiB
SCSS
956 lines
18 KiB
SCSS
$float-height: 530px;
|
|
|
|
:root {
|
|
--message-left-width: 42px;
|
|
--full-page-border-radius: 12px;
|
|
--full-page-sidebar-width: 275px;
|
|
}
|
|
|
|
.chat-message-move-to-channel-modal-modal {
|
|
.modal-inner-container {
|
|
.chat-move-message-channel-chooser {
|
|
width: 100%;
|
|
.category-chat-badge {
|
|
.d-icon {
|
|
color: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.uppy-is-drag-over .chat-composer .drop-a-file {
|
|
display: flex;
|
|
position: absolute;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: rgba(0, 0, 0, 0.75);
|
|
z-index: z("header");
|
|
&-content {
|
|
width: max-content;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 2em;
|
|
background-color: #1d1d1d;
|
|
border-radius: 0.25em;
|
|
&-images {
|
|
.d-icon {
|
|
height: 3em;
|
|
width: 3em;
|
|
color: var(--secondary-or-primary);
|
|
&:first-of-type {
|
|
transform: rotate(-5deg);
|
|
}
|
|
&:nth-of-type(2) {
|
|
height: 4em;
|
|
width: 4em;
|
|
}
|
|
&:last-of-type {
|
|
transform: rotate(5deg);
|
|
}
|
|
}
|
|
}
|
|
&-text {
|
|
margin: 1.5em 0 0 0;
|
|
font-size: var(--font-up-1);
|
|
color: var(--secondary-or-primary);
|
|
.d-icon-upload {
|
|
padding-right: 0.25em;
|
|
position: relative;
|
|
bottom: 2px;
|
|
color: var(--secondary-or-primary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-channel-unread-indicator {
|
|
@include unselectable;
|
|
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 100%;
|
|
box-sizing: content-box;
|
|
border: 2px solid var(--secondary);
|
|
-webkit-touch-callout: none;
|
|
background: var(--tertiary-med-or-tertiary);
|
|
font-size: var(--font-down-2);
|
|
|
|
&.urgent {
|
|
background: var(--success);
|
|
color: var(--secondary);
|
|
|
|
.number-wrap {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
.number {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.header-dropdown-toggle.open-chat {
|
|
.icon {
|
|
&.active {
|
|
.d-icon-comment {
|
|
color: var(--primary-medium);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.chat-channel-unread-indicator {
|
|
border-color: var(--primary-low);
|
|
}
|
|
}
|
|
|
|
.chat-channel-unread-indicator {
|
|
border-color: var(--header_background);
|
|
position: absolute;
|
|
right: 2px;
|
|
bottom: 2px;
|
|
transition: border-color linear 0.15s;
|
|
}
|
|
}
|
|
}
|
|
|
|
.channels-list {
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
position: relative;
|
|
@include chat-scrollbar(var(--secondary));
|
|
|
|
@include breakpoint(mobile-large) {
|
|
@include chat-scrollbar();
|
|
}
|
|
|
|
.chat-channel-unread-indicator {
|
|
flex-shrink: 0;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 10px;
|
|
border: 0;
|
|
right: 7px;
|
|
top: calc(50% - 5px);
|
|
|
|
&.urgent .number-wrap {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.edit-channel-membership-btn,
|
|
.new-dm,
|
|
.chat-channel-leave-btn {
|
|
background: transparent;
|
|
color: var(--primary-medium);
|
|
font-size: var(--font-0-rem);
|
|
padding: 0.5rem;
|
|
|
|
&:hover {
|
|
background: transparent;
|
|
|
|
.d-icon {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.public-channel-empty-message {
|
|
margin: 0 0.5em 0.5em 0.5em;
|
|
}
|
|
|
|
.chat-channel-divider {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-weight: bold;
|
|
padding: 0.25rem 0.5rem 0.25rem 2rem;
|
|
font-family: var(--heading-font-family);
|
|
font-size: var(--font-0);
|
|
|
|
.channel-title {
|
|
line-height: var(--line-height-medium);
|
|
}
|
|
}
|
|
|
|
.edit-channels-dropdown {
|
|
.select-kit-header {
|
|
background: none;
|
|
border: none;
|
|
font-size: var(--font-0-rem);
|
|
padding: 0.5rem;
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
margin: 0;
|
|
}
|
|
|
|
&:focus .d-icon,
|
|
&:hover .d-icon {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
}
|
|
.edit-channel-membership-btn {
|
|
&:hover {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.chat-channel-title {
|
|
padding: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.chat-messages-container {
|
|
word-wrap: break-word;
|
|
white-space: normal;
|
|
|
|
.chat-message-container {
|
|
display: grid;
|
|
|
|
&.selecting-messages {
|
|
grid-template-columns: 1.5em 1fr;
|
|
}
|
|
|
|
.chat-message-selector {
|
|
align-self: center;
|
|
justify-self: end;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.chat-time {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-2);
|
|
}
|
|
|
|
.emoji-picker {
|
|
position: fixed;
|
|
}
|
|
|
|
&:hover {
|
|
.chat-.chat-message-react-btn {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-emoji-avatar {
|
|
width: var(--message-left-width);
|
|
align-items: center;
|
|
|
|
img {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
.chat-user-avatar {
|
|
@include unselectable;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.chat-message:not(.is-reply) & {
|
|
width: var(--message-left-width);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&.is-online {
|
|
.chat-user-avatar-container .avatar {
|
|
box-shadow: 0px 0px 0px 1px var(--success);
|
|
border: 1px solid var(--secondary);
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.chat-user-avatar-container {
|
|
position: relative;
|
|
|
|
.avatar {
|
|
padding: 1px;
|
|
}
|
|
|
|
.chat-user-presence-flair {
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
background-color: var(--success);
|
|
border: 1px solid var(--secondary);
|
|
border-radius: 50%;
|
|
|
|
.chat-message & {
|
|
width: 10px;
|
|
height: 10px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
}
|
|
|
|
.chat-channel-title & {
|
|
width: 8px;
|
|
height: 8px;
|
|
right: -1px;
|
|
bottom: -1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-channel-title & {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.chat-live-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
min-height: 1px;
|
|
position: relative;
|
|
|
|
.chat-messages-scroll {
|
|
flex-grow: 1;
|
|
overflow-y: scroll;
|
|
scrollbar-color: var(--primary-low) transparent;
|
|
transition: scrollbar-color 0.2s ease-in-out;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
z-index: 1;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 15px;
|
|
}
|
|
&::-webkit-scrollbar-thumb {
|
|
background: var(--primary-low);
|
|
border-radius: 8px;
|
|
border: 3px solid var(--secondary);
|
|
}
|
|
&::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
}
|
|
&:hover {
|
|
scrollbar-color: var(--primary-low-mid) transparent;
|
|
&::-webkit-scrollbar-thumb {
|
|
background: var(--primary-low-mid);
|
|
}
|
|
}
|
|
|
|
.join-channel-btn.in-float {
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
left: 50%;
|
|
top: 10px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.all-loaded-message {
|
|
text-align: center;
|
|
color: var(--primary-medium);
|
|
font-size: var(--font-down-1);
|
|
padding: 0.5em 0.25em 0.25em;
|
|
}
|
|
}
|
|
|
|
.scroll-stick-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.chat-scroll-to-bottom {
|
|
background: var(--primary-medium);
|
|
bottom: 1em;
|
|
border-radius: 100%;
|
|
left: 50%;
|
|
opacity: 50%;
|
|
padding: 0.5em;
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
z-index: 2;
|
|
|
|
&:hover {
|
|
background: var(--primary-medium);
|
|
opacity: 100%;
|
|
}
|
|
|
|
.d-icon {
|
|
color: var(--primary);
|
|
margin: 0;
|
|
}
|
|
|
|
&.unread-messages {
|
|
opacity: 85%;
|
|
border-radius: 0;
|
|
transition: border-radius 0.1s linear;
|
|
|
|
&:hover {
|
|
opacity: 100%;
|
|
}
|
|
|
|
.d-icon {
|
|
margin: 0 0 0 0.5em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.topic-title-chat-icon {
|
|
display: inline-block;
|
|
* {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.chat-channel-row {
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
position: relative;
|
|
cursor: pointer;
|
|
color: var(--primary-high);
|
|
transition: opacity 50ms ease-in;
|
|
opacity: 1;
|
|
|
|
.chat-channel-unread-indicator {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
&.unfollowing {
|
|
opacity: 0;
|
|
}
|
|
|
|
.toggle-channel-membership-button.-leave {
|
|
visibility: hidden;
|
|
margin-left: auto;
|
|
}
|
|
|
|
&:hover {
|
|
.toggle-channel-membership-button.-leave {
|
|
visibility: visible;
|
|
|
|
> * {
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.discourse-no-touch &:hover,
|
|
&.active {
|
|
background: var(--primary-low);
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
.topic-chat-badge .topic-chat-icon .d-icon {
|
|
background: transparent;
|
|
}
|
|
&.active {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-channel-unread-indicator {
|
|
border-color: var(--primary-low);
|
|
}
|
|
|
|
.chat-channel-title {
|
|
&,
|
|
.category-chat-name,
|
|
.dm-usernames {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.d-icon-lock {
|
|
background-color: var(--primary-low);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.muted {
|
|
opacity: 0.65;
|
|
}
|
|
.badge-wrapper {
|
|
align-items: center;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.chat-channel-unread-indicator {
|
|
background: var(--tertiary-med-or-tertiary);
|
|
|
|
&.urgent {
|
|
background: var(--success);
|
|
}
|
|
}
|
|
|
|
.chat-channel-row-unread-count {
|
|
display: inline-block;
|
|
margin-left: 5px;
|
|
font-size: var(--font-down-1);
|
|
color: var(--primary-high);
|
|
}
|
|
|
|
.emoji {
|
|
margin-left: 0.3em;
|
|
}
|
|
}
|
|
|
|
.chat-channel-settings-row {
|
|
display: flex;
|
|
padding: 0.5em;
|
|
align-items: center;
|
|
background: var(--secondary);
|
|
border-bottom: 1px solid var(--primary-low);
|
|
.chat-channel-info {
|
|
.channel-title-container {
|
|
position: relative;
|
|
.channel-title {
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 500;
|
|
.edit-btn {
|
|
border: none;
|
|
background-color: var(--secondary);
|
|
&:hover {
|
|
.d-icon {
|
|
color: var(--primary-very-high);
|
|
}
|
|
}
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
}
|
|
.select-kit-header {
|
|
background-color: var(--secondary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.chat-channel-data {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: var(--font-down-1);
|
|
.d-icon-check {
|
|
font-size: var(--font-down-3);
|
|
margin-right: 0.5em;
|
|
color: var(--success);
|
|
}
|
|
.channel-joined {
|
|
margin: 0 0.5em 0 0;
|
|
font-weight: 500;
|
|
color: var(--success);
|
|
}
|
|
.chat-channel-description {
|
|
color: var(--primary-high);
|
|
}
|
|
}
|
|
}
|
|
.btn-container {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
.chat-channel-settings-row {
|
|
.channel-name-edit {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 9px;
|
|
|
|
.name-input {
|
|
margin: 0;
|
|
}
|
|
|
|
.save-btn,
|
|
.cancel-btn {
|
|
margin-left: 0.25em;
|
|
}
|
|
}
|
|
}
|
|
|
|
body.has-sidebar-page.has-full-page-chat #main-outlet-wrapper {
|
|
gap: 0;
|
|
}
|
|
|
|
body.has-full-page-chat {
|
|
.alert-error,
|
|
.alert-info,
|
|
.alert-success,
|
|
.alert-warning {
|
|
margin: 0;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
}
|
|
}
|
|
|
|
.full-page-chat {
|
|
font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
display: grid;
|
|
grid-template-columns: var(--full-page-sidebar-width) 1fr;
|
|
|
|
.channels-list {
|
|
height: 100%;
|
|
border-right: 1px solid var(--primary-low);
|
|
|
|
.chat-channel-row {
|
|
padding: 0 0 0 0.5rem;
|
|
margin: 0 0.5rem 0.125rem 0.5rem;
|
|
border-radius: 0.25em;
|
|
|
|
.category-chat-private .d-icon {
|
|
background-color: var(--primary-very-low);
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
background-color: var(--primary-low);
|
|
.chat-channel-title {
|
|
.category-chat-name,
|
|
.topic-chat-name,
|
|
.tag-chat-name,
|
|
.chat-name,
|
|
.dm-usernames {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
.category-chat-private .d-icon {
|
|
background-color: var(--primary-low);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-full-page-header {
|
|
border-top: 1px solid var(--primary-low);
|
|
border-bottom: 1px solid var(--primary-low);
|
|
background: var(--secondary);
|
|
z-index: 3;
|
|
|
|
.chat-channel-title {
|
|
.category-chat-name,
|
|
.topic-chat-name,
|
|
.tag-chat-name,
|
|
.chat-name,
|
|
.dm-usernames {
|
|
color: var(--primary);
|
|
display: inline;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.-not-following {
|
|
.chat-channel-title {
|
|
max-width: calc(100% - 50px);
|
|
}
|
|
.join-channel-btn {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-live-pane,
|
|
.chat-messages-scroll,
|
|
.chat-live-pane {
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.chat-full-page-header__left-actions {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.chat-full-page-header__title {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.chat-full-page-header__right-actions {
|
|
align-items: stretch;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
font-size: var(--font-up-1);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.chat-full-page-header {
|
|
.chat-channel-header-details {
|
|
display: flex;
|
|
align-items: stretch;
|
|
|
|
.chat-channel-archive-status {
|
|
text-align: right;
|
|
padding-right: 1em;
|
|
}
|
|
}
|
|
|
|
.chat-channel-title {
|
|
margin: 0;
|
|
max-width: 100%;
|
|
|
|
.d-icon:not(.d-icon-lock) {
|
|
height: 1.25em;
|
|
width: 1.25em;
|
|
}
|
|
|
|
.category-chat-name,
|
|
.dm-username,
|
|
.topic-chat-name {
|
|
font-weight: 700;
|
|
font-size: var(--font-up-1);
|
|
line-height: var(--font-up-1);
|
|
}
|
|
|
|
.dm-usernames {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
.chat-channel-retry-archive {
|
|
display: flex;
|
|
margin-top: 1em;
|
|
}
|
|
}
|
|
|
|
.channels-list {
|
|
.tag-chat-badge,
|
|
.category-chat-badge,
|
|
.topic-chat-badge {
|
|
color: var(--primary-low-mid);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.d-icon {
|
|
height: 1.25em;
|
|
width: 1.25em;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.topic-chat-badge {
|
|
.d-icon {
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
.category-chat-private .d-icon {
|
|
background-color: var(--secondary);
|
|
position: absolute;
|
|
border-radius: 5px;
|
|
padding: 3px 2px;
|
|
color: var(--primary-high);
|
|
height: 0.5em;
|
|
width: 0.5em;
|
|
left: calc(0.6125em + 6px);
|
|
top: -4px;
|
|
}
|
|
}
|
|
|
|
.chat-channel-archive-modal-inner {
|
|
.chat-to-topic-selector {
|
|
width: 500px;
|
|
height: 300px;
|
|
}
|
|
|
|
.radios {
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
.radio-label {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
details {
|
|
margin-bottom: 9px;
|
|
}
|
|
|
|
input[type="text"],
|
|
.select-kit.combo-box.category-chooser {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.chat-channel-archive-modal-inner {
|
|
.chat-to-topic-selector {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.user-preferences .chat-setting .controls {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.create-channel-modal {
|
|
.modal-inner-container {
|
|
width: 500px;
|
|
}
|
|
.choose-topic-results-list {
|
|
max-height: 200px;
|
|
overflow-y: scroll;
|
|
}
|
|
.select-kit.combo-box,
|
|
.create-channel-name-input,
|
|
.create-channel-description-input,
|
|
#choose-topic-title {
|
|
width: 100%;
|
|
margin-bottom: 0;
|
|
}
|
|
.category-chooser {
|
|
.select-kit-selected-name.selected-name.choice {
|
|
color: var(
|
|
--primary-high
|
|
); // Make consistent with color of placeholder text when choosing topic
|
|
}
|
|
}
|
|
|
|
.create-channel-hint {
|
|
font-size: 0.8em;
|
|
margin-top: 0.2em;
|
|
}
|
|
|
|
.create-channel-label,
|
|
label[for="choose-topic-title"] {
|
|
margin: 1em 0 0.35em;
|
|
}
|
|
.chat-channel-title {
|
|
margin: 1em 0 0 0;
|
|
}
|
|
}
|
|
|
|
.small-action {
|
|
.open-chat {
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
font-size-adjust: var(--font-down-0);
|
|
}
|
|
}
|
|
|
|
.chat-message-collapser,
|
|
.chat-message-text {
|
|
> p {
|
|
margin: 0.5em 0 0.5em;
|
|
}
|
|
|
|
> p:first-of-type {
|
|
margin-top: 0.1em;
|
|
}
|
|
|
|
> p:last-of-type {
|
|
margin-bottom: 0.1em;
|
|
}
|
|
}
|
|
|
|
.reviewable-chat-message {
|
|
.chat-channel-title {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.chat-channel-dm-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
.channel-name {
|
|
font-weight: 700;
|
|
font-size: var(--font-up-1);
|
|
line-height: var(--font-up-1);
|
|
}
|
|
}
|
|
|
|
.chat-channel-status {
|
|
padding-top: 1rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
html.has-full-page-chat {
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
&.keyboard-visible body #main-outlet .full-page-chat {
|
|
padding-bottom: 0.2rem;
|
|
}
|
|
|
|
body {
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
#main-outlet {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
var(--composer-height, 0px)
|
|
);
|
|
|
|
.full-page-chat {
|
|
height: 100%;
|
|
min-height: 0;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
#main-chat-outlet {
|
|
min-height: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.mobile-view {
|
|
#main-outlet-wrapper {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
// these need to apply to desktop too, because iPads
|
|
&.discourse-touch {
|
|
// iPad web
|
|
#main-outlet-wrapper {
|
|
// restrict the row height, including when virtual keyboard is open
|
|
grid-template-rows: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset)
|
|
);
|
|
.sidebar-wrapper {
|
|
// prevents sidebar from overflowing behind the virtual keyboard
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
// iPad webview
|
|
.footer-nav-ipad {
|
|
#main-outlet-wrapper {
|
|
// restrict the row height, including when virtual keyboard is open
|
|
grid-template-rows: calc(
|
|
var(--chat-vh, 1vh) * 100 - calc(var(--header-offset))
|
|
);
|
|
}
|
|
}
|
|
|
|
.full-page-chat,
|
|
.chat-live-pane,
|
|
#main-outlet {
|
|
// allows containers to shrink to fit
|
|
min-height: 0;
|
|
}
|
|
|
|
#main-outlet {
|
|
// limits height for iPad
|
|
max-height: calc(
|
|
100vh - calc(var(--header-offset) + var(--composer-ipad-padding))
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
[data-popper-reference-hidden] {
|
|
visibility: hidden;
|
|
}
|