discourse/app/assets/stylesheets/common/base/compose.scss

388 lines
6.4 KiB
SCSS
Raw Normal View History

2017-11-08 04:39:26 -05:00
#reply-control {
position: fixed;
display: flex;
flex-direction: column;
bottom: 0;
height: 0;
right: 0;
left: 0;
margin-left: auto;
margin-right: auto;
max-width: 1475px;
width: 100%;
&.hide-preview {
max-width:740px;
}
@media screen and (max-width: 1200px) {
min-width: 0;
2017-11-08 04:39:26 -05:00
}
z-index: 999;
transition: height 250ms ease, background 250ms ease, transform 250ms ease, max-width 250ms ease;
background-color: $secondary;
box-shadow: 0 -2px 40px rgba($primary, .12);
2017-11-08 04:39:26 -05:00
.reply-area {
display: flex;
flex-direction: column;
2017-11-08 04:39:26 -05:00
}
.saving-text,
.draft-text {
display: none;
padding-left: 10px;
2017-11-08 04:39:26 -05:00
.spinner {
margin-left: 5px;
border-color: $secondary;
border-right-color: transparent;
2017-11-08 04:39:26 -05:00
}
i {
color: $secondary;
2017-11-08 04:39:26 -05:00
}
}
&.open {
height: 300px;
&.edit-title {
height: 400px; // more room when editing the title
}
}
&.closed {
height: 0 !important;
}
&.draft,
&.saving {
height: 40px !important;
align-items: center;
background: $tertiary;
color: $secondary;
flex-direction: row;
width: 100%;
.composer-controls {
margin-left: auto;
display: flex;
padding-right: 5px;
.toggle-toolbar {
display: none;
}
.d-icon {
opacity: 1;
}
}
2017-11-08 04:39:26 -05:00
}
&.draft {
cursor: pointer;
display: flex;
.draft-text {
display: block;
}
.grippie, .saving-text {
display: none;
}
}
&.saving .saving-text {
display: flex;
}
.reply-to {
color: $primary-medium;
margin: 5px 0 10px 0;
display: flex;
align-items: center;
2017-11-08 04:39:26 -05:00
i {
color: $primary-medium;
}
.reply-details {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: calc(100% - 100px);
}
.composer-controls {
margin-left: auto;
margin-right: -5px;
button {
padding: 0 8px;
}
}
2017-11-08 04:39:26 -05:00
}
.whisper,
.display-edit-reason {
font-style: italic;
}
#edit-reason {
margin: 4px;
}
.user-selector,
.title-and-category {
display: flex;
flex-wrap: wrap;
width: 100%;
2017-11-08 04:39:26 -05:00
align-items: center;
margin-bottom: 5px;
2017-11-08 04:39:26 -05:00
position: relative;
&.with-preview {
width: 50%;
}
2017-11-08 04:39:26 -05:00
}
.title-input {
position: relative;
display: flex;
flex: 1 1 50%;
input {
flex-grow: 1;
}
}
.with-tags {
.title-input {
flex: 1 1 100%;
}
}
.category-input {
display: flex;
flex: 1 0 35%;
margin: 0 0 5px 10px;
@media screen and (max-width: 955px) {
flex: 1 0 100%;
margin-left: 0;
}
.category-chooser {
display: flex;
flex: 1;
width: auto;
}
}
.with-tags {
.category-input {
flex-basis: 25%;
margin-left: 0;
}
2017-11-08 04:39:26 -05:00
}
.add-warning {
margin-left: 1em;
2017-12-04 11:15:10 -05:00
display: flex;
input {
margin-right: 5px;
}
2017-11-08 04:39:26 -05:00
}
#reply-title {
padding: 6px 10px;
margin: 0 0 5px 0;
flex-basis: 50%;
2017-11-08 04:39:26 -05:00
}
.tag-chooser {
flex: 1 1 25%;
margin: 0 0 5px 10px;
border: 1px solid $primary-medium;
background: $secondary;
@media all and (max-width: 900px) {
margin: 0;
flex: 1 1 100%;
}
.select2-choices {
border: none;
}
&.select2-dropdown-open, &.select2-container-active {
border-color: $tertiary;
}
2017-11-08 04:39:26 -05:00
}
.wmd-controls {
position: relative;
display: flex;
flex-direction: column;
flex-grow: 1;
min-height: 0;
}
.d-editor-button-bar .btn {
padding: 3px 8px;
@media all and (max-width: 800px) {
padding: 5px;
}
}
.submit-panel {
display: flex;
flex-shrink: 0;
margin-top: 10px;
2017-11-08 04:39:26 -05:00
}
.save-or-cancel {
flex-basis: 50%;
display: flex;
align-items: center;
button {
flex: 0 0 auto;
}
.cancel {
margin-left: 10px;
}
2017-11-08 04:39:26 -05:00
#draft-status,
#file-uploading {
margin-left: 25px;
}
#file-uploading {
display: flex;
a {
margin-left: 5px;
color: $primary-medium;
}
2017-11-08 04:39:26 -05:00
.spinner {
margin-right: 5px;
}
}
}
.composer-bottom-right {
flex-basis: 50%;
display: flex;
flex-direction: row-reverse;
.toggle-preview {
order: 2;
}
}
.create {
margin-right: 5px;
}
#draft-status, #file-uploading {
color: $primary-medium;
2017-11-08 04:39:26 -05:00
}
}
.cooked > *:first-child {
margin-top: 0;
}
.autocomplete {
z-index: 999999;
position: absolute;
width: 240px;
background-color: $secondary;
2017-11-08 04:39:26 -05:00
border: 1px solid $primary-low;
ul {
list-style: none;
padding: 0;
margin: 0;
2017-01-03 23:37:02 -05:00
li {
.d-icon-users {
color: lighten($primary, 40%);
padding: 0 2px;
}
2017-11-08 04:39:26 -05:00
border-bottom: 1px solid $primary-low;
a {
padding: 5px;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
span.username {
color: $primary;
}
span.name {
font-size: .8em;
vertical-align: middle;
}
&.selected {
2017-06-11 22:20:14 -04:00
background-color: $tertiary-low;
}
@include hover {
2017-11-08 04:39:26 -05:00
background-color: $highlight-low;
text-decoration: none;
}
}
}
}
}
div.ac-wrap.disabled {
input {
display:none;
}
.item a {
display:none;
}
}
div.ac-wrap div.item a.remove, .remove-link {
margin-left: 4px;
font-size: .8em;
line-height: 10px;
padding: 1.5px 1.5px 1.5px 2.5px;
border-radius: 12px;
width: 10px;
display: inline-block;
2017-11-08 04:39:26 -05:00
border: 1px solid $primary-low;
&:hover {
2017-10-10 16:07:46 -04:00
background-color: $danger-low;
border: 1px solid $danger-medium;
text-decoration: none;
color: $danger;
}
}
div.ac-wrap {
overflow: auto;
max-height: 150px;
background-color: $secondary;
border: 1px solid $primary-medium;
padding: 5px 4px 1px 10px;
div.item {
float: left;
margin-bottom: 4px;
margin-right: 10px;
span {
height: 24px;
display: inline-block;
line-height: 20px;
}
}
.ac-collapsed-button {
float: left;
border-radius: 20px;
position: relative;
top: -2px;
margin-right: 10px;
}
input[type="text"] {
float: left;
margin-bottom: 4px;
height: 24px;
display: block;
border: 0;
padding: 0;
box-shadow: none;
}
}
.future-date-input {
.examples {
color: $primary-medium;
}
}
.md-table {
overflow-y: auto;
}