discourse/app/assets/stylesheets/desktop/compose.scss
2018-04-25 21:00:33 -04:00

202 lines
3.0 KiB
SCSS

#reply-control {
.reply-area {
margin: 0 auto;
padding: 5px 15px;
box-sizing: border-box;
height: calc(100% - 11px);
width: 100%;
.submit-panel {
flex-wrap: wrap;
align-items: center;
}
}
#private-message-users {
width: 404px;
}
.select-kit.is-expanded {
z-index: z("composer","dropdown");
}
}
.category-input {
margin-left: 10px;
}
.edit-title {
.d-editor-preview-wrapper {
margin-top: -43px;
}
&:not(.private-message) {
.d-editor-preview-wrapper {
@media screen and (max-width: 955px) {
margin-top: -77px;
}
}
}
.with-tags {
.d-editor-preview-wrapper {
margin-top: -77px;
@media screen and (max-width: 900px) {
margin-top: -105px;
}
}
}
}
.closed {
.grippie {
display: none;
}
}
.open {
.grippie {
cursor: row-resize;
padding: 4px 0;
background: $tertiary;
&:before {
content: '';
display: block;
width: 27px;
margin: auto;
border-top: 3px double $secondary;
}
}
}
.composer-popup-container {
max-width: 1500px;
margin-left: auto;
margin-right: auto;
}
.composer-popup {
position: absolute;
width: calc(50% - 45px);
max-width: 724px;
top: 20px;
bottom: 10px;
left: 51%;
overflow-y: auto;
z-index: z("composer","popover");
padding: 10px 10px 35px 10px;
box-shadow: shadow("card");
background: $highlight-medium;
.hide-preview & {
z-index: z("composer","dropdown") + 1;
}
&.urgent {
background: $danger-low;
}
&.education-message {
background-color: $tertiary-low;
}
h3 {
margin-bottom: 10px;
}
p {
margin-bottom: 10px;
}
a.close {
position: absolute;
right: 10px;
bottom: 10px;
color: $primary;
opacity: 0.5;
font-size: $font-up-1;
&:before {
content: 'esc';
font-size: $font-down-1;
margin-right: 0.5em;
}
}
a.close:hover {
opacity: 1.0;
}
ul.topics {
list-style: none;
margin: 0;
padding: 0;
li {
font-weight: normal;
margin-top: 8px;
}
}
}
.composer-controls {
.d-chevron-down {
vertical-align: text-top;
}
}
.custom-body {
background-color: $tertiary-low;
p {
max-width: 98%;
}
}
.similar-topics {
background-color: $tertiary-low;
a[href] {
color: $primary;
}
.posts-count {
background-color: dark-light-choose($tertiary, $tertiary-medium);
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
.search-link {
.fa, .blurb {
color: dark-light-choose($primary-high, $secondary-medium);
}
span.topic {
display: flex;
flex-wrap: wrap;
}
}
.badge-wrapper {
margin-left: 5px;
}
}
.composer-popup:nth-of-type(2) {
margin-left: 10px;
width: calc(50% - 65px);
}
.composer-bottom-right {
a {
color: $primary-high;
&:hover {
color: $tertiary;
}
}
}
#draft-status,
#file-uploading {
flex-grow: 1;
text-align: right;
}