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

148 lines
2.4 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 {
2017-11-08 04:39:26 -05:00
z-index: 1002; //d-header is 1001
.reply-area {
padding: 0 5px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
2017-11-08 04:39:26 -05:00
&.open {
height: 250px;
&.edit-title {
height: 100%;
}
}
.reply-to {
2017-11-08 04:39:26 -05:00
margin: 5px;
max-width: calc(100% - 60px);
}
.toggle-toolbar,
.toggler {
top: 2px;
}
2017-11-08 04:39:26 -05:00
&.draft {
.toggle-toolbar,
.toggler {
top: 8px;
}
2013-09-05 15:37:07 -04:00
}
2017-11-08 04:39:26 -05:00
.title-input {
margin-bottom: 5px;
2013-09-05 15:37:07 -04:00
}
2017-11-08 04:39:26 -05:00
#reply-title {
width: calc(100% - 20px);
2013-09-05 15:37:07 -04:00
}
2017-11-08 04:39:26 -05:00
.category-input {
margin-bottom: 5px;
.category-chooser {
width: 100% !important;
2013-09-05 15:37:07 -04:00
}
2017-11-08 04:39:26 -05:00
}
2017-11-08 04:39:26 -05:00
.submit-panel {
margin-bottom: 5px;
display: flex;
align-items: baseline;
flex-shrink: 0;
.save-or-cancel {
flex-basis: 69%;
}
2017-11-08 04:39:26 -05:00
.composer-bottom-right {
flex-basis: 30%;
2013-09-05 15:37:07 -04:00
}
}
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: 1000000;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: $secondary;
max-width: 100%;
2014-06-03 15:19:18 -04:00
margin: 0;
2017-11-08 04:39:26 -05:00
.d-editor-preview {
margin-bottom: 40px;
overflow: auto;
}
2014-06-03 15:19:18 -04:00
}
2017-11-08 04:39:26 -05:00
.btn.hide-preview {
position: fixed;
right: 5px;
bottom: 5px;
z-index: 1000001;
2013-09-05 15:37:07 -04:00
}
}
2017-11-08 04:39:26 -05:00
&.hide-preview {
.d-editor-preview-wrapper {
display: none;
}
2013-09-05 15:37:07 -04:00
}
2017-11-08 04:39:26 -05:00
.d-editor-button-bar {
display: none;
}
2017-11-08 04:39:26 -05:00
.toolbar-visible .d-editor-button-bar {
display: flex;
}
2017-11-08 04:39:26 -05:00
.d-editor-button-bar .btn {
@media all and ( max-width: 350px) {
padding: 2px 4px;
}
2017-11-08 04:39:26 -05:00
&.preview {
margin: 0;
2013-09-05 15:37:07 -04:00
}
}
2017-11-08 04:39:26 -05:00
#mobile-uploader {
display: none;
}
2017-11-08 04:39:26 -05:00
.title-and-category,
.user-selector {
flex-direction: column;
margin: 0;
}
2017-11-08 04:39:26 -05:00
.title-input,
.category-input,
.users-input,
.add-warning {
width: 100%;
}
2017-11-08 04:39:26 -05:00
.add-warning {
margin: 5px 0 5px 5px;
}
2017-11-08 04:39:26 -05:00
#draft-status {
color: $primary-medium;
}
2017-11-08 04:39:26 -05:00
}