discourse/app/assets/stylesheets/mobile/compose.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

238 lines
4.3 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
.composer-popup-container {
display: none !important; // can be removed if inline JS CSS is removed from composer-popup
2013-09-05 15:37:07 -04:00
}
.composer-popup {
display: none !important; // can be removed if inline JS CSS is removed from composer-popup
2013-09-05 15:37:07 -04:00
}
#reply-control {
z-index: z("mobile-composer");
.reply-area {
padding: 6px;
2021-11-30 14:02:22 -05:00
padding-bottom: unquote("max(env(safe-area-inset-bottom), 6px)");
flex-grow: 1;
}
&.open {
height: 250px;
&.edit-title {
height: 100%;
}
}
.keyboard-visible &.open {
height: 100%; // Android: Reduces composer jumpiness when the keyboard toggles
}
.keyboard-visible body.ios-safari-composer-hacks &.open {
height: calc(var(--composer-vh, 1vh) * 100);
.reply-area {
padding-bottom: 6px;
}
}
.reply-to {
justify-content: space-between;
margin-bottom: 6px;
2018-11-13 11:12:58 -05:00
.reply-details {
max-width: calc(100% - 75px);
}
2019-07-11 09:57:53 -04:00
// Protection for languages with long strings on very small screens. This
// has no effect on most users but we need it for some cases. If this is
// not added, "add edit reason" will overlap with the composer controls
@include breakpoint(mobile-small) {
.reply-details {
flex-wrap: wrap;
}
.display-edit-reason {
margin-top: 0.5em;
}
.composer-controls {
align-self: flex-start;
gap: 6px;
2019-07-11 09:57:53 -04:00
}
}
}
.toggle-minimize {
.d-icon-chevron-down {
vertical-align: text-top;
2017-11-08 04:39:26 -05:00
}
}
2017-11-08 04:39:26 -05:00
&.draft {
z-index: z("footer-nav") + 1;
padding-bottom: env(safe-area-inset-bottom);
.toggle-toolbar,
.toggle-minimize {
top: 6px;
}
.draft-text {
width: calc(100% - 40px);
@include ellipsis;
2013-09-05 15:37:07 -04:00
}
}
2013-09-05 15:37:07 -04:00
#reply-title {
width: calc(100% - 20px);
margin-bottom: 6px;
}
2017-11-08 04:39:26 -05:00
.category-input,
.with-tags .category-input {
margin-bottom: 6px;
max-width: calc(50% - 3px);
}
.submit-panel {
margin-top: 6px;
.save-or-cancel {
flex: 1 1 auto;
#draft-status,
#file-uploading {
margin-left: 6px;
}
.cancel {
font-size: 1.4em;
color: var(--primary-low-mid);
margin-left: 0.6em;
padding: 3px 6px;
2013-09-05 15:37:07 -04:00
}
}
.mobile-file-upload:not(.hidden),
.mobile-preview {
// Alignment fix, remove if converted to buttons
display: inline-flex;
}
.mobile-file-upload {
&.hidden + .mobile-preview {
// Hide preview button while file is uploading to make room for upload progress
display: none;
}
}
.mobile-preview {
margin-left: 0.25em;
}
}
2017-11-08 04:39:26 -05:00
&.show-preview {
.submit-panel {
padding-top: 10px;
z-index: z("fullscreen") + 1;
background-color: var(--secondary);
.cancel,
.mobile-file-upload,
.mobile-preview {
display: none;
}
}
.d-editor-preview-wrapper {
position: fixed;
2019-06-04 11:08:21 -04:00
z-index: z("fullscreen");
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: var(--secondary);
border-bottom: 40px solid var(--secondary);
max-width: 100%;
margin: 0;
padding: 10px;
overflow: auto;
.d-editor-preview {
margin-bottom: 40px;
}
2013-09-05 15:37:07 -04:00
}
}
&.hide-preview {
.d-editor-preview-wrapper {
display: none;
}
}
.d-editor-button-bar {
display: none;
}
.toolbar-visible .d-editor-button-bar {
display: flex;
}
.d-editor-button-bar .btn {
&.preview {
2017-11-08 04:39:26 -05:00
margin: 0;
}
}
.title-and-category,
.user-selector {
margin: 0;
.users-input {
margin-bottom: 6px;
}
2017-11-08 04:39:26 -05:00
}
.with-tags {
.mini-tag-chooser,
.category-chooser {
z-index: z("base");
}
.mini-tag-chooser {
margin: 0 0 6px 6px;
max-width: calc(50% - 3px);
}
.selected-name {
.name {
font-size: $font-down-1;
.badge-wrapper {
font-size: $font-0;
}
}
}
.formatted-selection {
font-size: var(--font-down-1);
}
}
.without-tags {
.category-input {
margin-left: 6px;
}
}
.user-selector {
flex-wrap: wrap;
}
.users-input,
.add-warning {
width: 100%;
}
.users-input .select-kit.multi-select {
width: 100%;
}
.add-warning {
margin-bottom: 6px;
}
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
.whisper {
margin-right: 6px;
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
}
}