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

189 lines
2.7 KiB
SCSS
Raw Normal View History

#reply-control {
.reply-area {
max-width: 1500px;
margin: 0 auto;
padding: 5px 15px;
box-sizing: border-box;
height: calc(100% - 11px);
width: 100%;
.submit-panel {
flex-wrap: wrap;
align-items: center;
}
}
}
.category-input {
margin-left: 10px;
}
.edit-title {
.d-editor-preview {
margin-top: -43px;
}
&:not(.private-message) {
.d-editor-preview {
@media screen and (max-width: 955px) {
margin-top: -79px;
}
}
}
.with-tags {
.d-editor-preview {
margin-top: -79px;
@media screen and (max-width: 900px) {
margin-top: -116px;
}
}
}
}
.closed {
.grippie {
display: none;
}
}
.open {
.grippie {
cursor: row-resize;
padding: 4px 0px;
background: $tertiary;
&:before {
content: '';
display: block;
width: 27px;
margin: auto;
border-top: 3px double $secondary;
}
}
}
2013-09-06 03:37:07 +08:00
.composer-popup-container {
max-width: 1500px;
margin-left: auto;
margin-right: auto;
}
.composer-popup {
2015-12-29 05:51:07 +08:00
position: absolute;
width: calc(50% - 45px);
2015-12-29 05:51:07 +08:00
max-width: 724px;
top: 20px;
bottom: 10px;
left: 51%;
2015-12-29 05:51:07 +08:00
overflow-y: auto;
z-index: 110;
padding: 10px 10px 35px 10px;
box-shadow: 3px 3px 3px rgba(0,0,0, 0.34);
2017-06-12 10:20:14 +08:00
background: $highlight-medium;
&.urgent {
2017-06-12 10:20:14 +08:00
background: $danger-low;
}
2013-09-06 03:37:07 +08:00
&.education-message {
2017-06-12 10:20:14 +08:00
background-color: $tertiary-low;
}
h3 {
margin-bottom: 10px;
}
2013-09-06 03:37:07 +08:00
p {
margin-bottom: 10px;
2013-09-06 03:37:07 +08:00
}
a.close {
position: absolute;
right: 10px;
bottom: 10px;
color: $primary;
2017-11-08 17:39:26 +08:00
opacity: 0.5;
font-size: 1.071em;
&:before {
content: 'esc';
font-size: 0.85em;
margin-right: 0.5em;
}
2013-09-06 03:37:07 +08:00
}
a.close:hover {
opacity: 1.0;
}
ul.topics {
list-style: none;
margin: 0;
padding: 0;
li {
font-weight: normal;
margin-top: 8px;
2013-09-06 03:37:07 +08:00
}
}
}
.composer-controls {
.d-chevron-down {
vertical-align: text-top;
}
2017-11-08 17:39:26 +08:00
}
.custom-body {
2017-06-12 10:20:14 +08:00
background-color: $tertiary-low;
p {
max-width: 98%;
}
}
.similar-topics {
2017-06-12 10:20:14 +08:00
background-color: $tertiary-low;
2013-09-06 03:37:07 +08:00
a[href] {
2017-06-12 10:20:14 +08:00
color: $primary-medium;
2013-09-06 03:37:07 +08:00
}
.posts-count {
2017-10-11 04:07:46 +08:00
background-color: dark-light-choose($tertiary, $tertiary-medium);
2013-09-06 03:37:07 +08:00
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
.search-link {
.fa, .blurb {
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-high, $secondary-medium);
}
}
.badge-wrapper {
padding-left: 5px;
}
2013-09-06 03:37:07 +08:00
}
.composer-popup:nth-of-type(2) {
margin-left: 10px;
2015-12-29 05:51:07 +08:00
width: calc(50% - 65px);
2013-09-06 03:37:07 +08:00
}
.composer-bottom-right {
a {
color: $primary-medium;
&:hover {
color: $tertiary;
}
2013-09-06 03:37:07 +08:00
}
}
2017-11-08 17:39:26 +08:00
#draft-status,
#file-uploading {
flex-grow: 1;
text-align: right;
}