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

190 lines
3.1 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: 0 10px;
@media screen and (max-width: 374px) {
padding: 0 5px;
2017-11-08 04:39:26 -05:00
}
flex-grow: 1;
}
&.open {
height: 250px;
&.edit-title {
height: 100%;
2017-11-08 04:39:26 -05:00
}
}
.reply-to {
margin: 5px 0;
2018-11-13 11:12:58 -05:00
.reply-details {
max-width: calc(100% - 75px);
}
}
.toggler {
margin-left: -5px;
.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 {
.toggle-toolbar,
2017-11-08 04:39:26 -05:00
.toggler {
top: 8px;
}
.draft-text {
width: calc(100% - 40px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2013-09-05 15:37:07 -04:00
}
}
2013-09-05 15:37:07 -04:00
#reply-title {
width: calc(100% - 20px);
}
2017-11-08 04:39:26 -05:00
.category-input {
margin-bottom: 5px;
.category-chooser {
width: 100% !important;
2017-11-08 04:39:26 -05:00
}
}
.submit-panel {
margin-bottom: 5px;
align-items: baseline;
.save-or-cancel {
flex: 1 1 auto;
#draft-status,
#file-uploading {
margin-left: 15px;
}
.cancel {
font-size: 1.6em;
color: $primary-low-mid;
margin-left: 0.6em;
padding: 0 5px;
2013-09-05 15:37:07 -04:00
}
}
.composer-bottom-right {
margin-left: auto;
flex: 1 1 auto;
}
}
2017-11-08 04:39:26 -05:00
.d-editor-textarea-wrapper {
width: 100%;
}
2017-11-08 04:39:26 -05:00
&.show-preview {
.d-editor-preview-wrapper {
position: fixed;
z-index: z("base") + 1;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: $secondary;
max-width: 100%;
margin: 0;
padding: 10px;
overflow: auto;
.d-editor-preview {
margin-bottom: 40px;
}
2013-09-05 15:37:07 -04:00
}
.btn.hide-preview {
position: fixed;
right: 5px;
bottom: 5px;
z-index: z("base") + 2;
}
}
&.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 {
svg {
2019-01-17 21:13:52 -05:00
-webkit-transform: translate3d(
0,
0,
0
); // Hack: Reduces composer icon jitter while scrolling in Safari on iOS12
}
@media all and (max-width: 350px) {
padding: 2px 4px;
}
&.preview {
2017-11-08 04:39:26 -05:00
margin: 0;
}
}
#mobile-uploader {
display: none;
}
.title-and-category,
.user-selector {
margin: 0;
.users-input {
margin-bottom: 5px;
}
2017-11-08 04:39:26 -05:00
}
.with-tags {
.category-input {
flex-basis: auto;
flex: 1 0 0px;
margin: 0;
width: 45%;
margin-bottom: 5px;
}
.mini-tag-chooser {
width: 50%;
flex: 1 0 0px;
margin-left: 5px;
margin-bottom: 5px;
z-index: z("base");
}
}
.title-input,
.category-input,
.users-input,
.add-warning {
width: 100%;
}
.add-warning {
margin: 0 0 5px 5px;
}
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: 5px;
}
}