discourse/app/assets/stylesheets/desktop/compose.scss
Kris ada1d6b987
Composer restyle
* composer restyle, some input normalization

* style adjustments: spacing, preview background, colors

* small spacing adjustments, removing default iOS input appearance, fixing merge

* small width adjustment

* fixing mobile link modal for small devices

* FIX: more resilient allowInitiatlValueMutation implementation

* Build scrollMap only on scroll.

* FIX: pick date and time was not reseting state

* FIX: removes auto sizing and touchstart support for now

* Revert "FIX: reflects discourse icons naming scheme s/d-icon-*/d-*"

This reverts commit b5ed980235.

* tweak icon-library generation

* FIX: regression preventing to set number of hours before closing

This commit also adds a full test suite for editing topic timer.

* FIX: makes allowInitialValueMutation more restrictive

* FIX: invite-list expects initial value mutation

* fixing tag input spacing

* minor input cleanup

* bump onebox version

* FIX: avoids test failing at some times of the day

* FIX: various issues when editing category permissions

This commit also adds multiple tests
2017-11-27 15:23:18 -05:00

189 lines
2.7 KiB
SCSS

#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;
}
}
}
.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: 110;
padding: 10px 10px 35px 10px;
box-shadow: 3px 3px 3px rgba(0,0,0, 0.34);
background: $highlight-medium;
&.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: 1.071em;
&:before {
content: 'esc';
font-size: 0.85em;
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-medium;
}
.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);
}
}
.badge-wrapper {
padding-left: 5px;
}
}
.composer-popup:nth-of-type(2) {
margin-left: 10px;
width: calc(50% - 65px);
}
.composer-bottom-right {
a {
color: $primary-medium;
&:hover {
color: $tertiary;
}
}
}
#draft-status,
#file-uploading {
flex-grow: 1;
text-align: right;
}