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

183 lines
3.2 KiB
SCSS
Raw Normal View History

.autocomplete {
z-index: 999999;
position: absolute;
width: 240px;
background-color: $secondary;
2017-06-12 10:20:14 +08:00
border: 1px solid $primary-low;
ul {
list-style: none;
padding: 0;
margin: 0;
2017-01-04 12:37:02 +08:00
li {
.d-icon-users {
color: lighten($primary, 40%);
padding: 0 2px;
}
2017-06-12 10:20:14 +08:00
border-bottom: 1px solid $primary-low;
a {
padding: 5px;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
span.username {
color: darken($primary, 40%);
}
span.name {
font-size: 11px;
vertical-align: middle;
}
&.selected {
2017-06-12 10:20:14 +08:00
background-color: $tertiary-low;
}
@include hover {
2017-10-11 04:07:46 +08:00
background-color: dark-light-choose($highlight-low, $highlight-medium);
text-decoration: none;
}
}
}
}
}
#reply-control {
.d-editor-textarea-wrapper .spinner {
z-index: 1000;
margin-top: 5em;
}
.d-editor-button-bar {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0px;
padding: 5px;
2017-06-12 10:20:14 +08:00
border-bottom: 2px solid $primary-low;
height: 33px;
2017-06-12 10:20:14 +08:00
.btn:hover {
color: $primary-low;
}
}
textarea {
box-shadow: none;
}
}
2015-10-14 01:05:55 +08:00
.saving-text .spinner {
display: inline-block;
left: 5px;
top: 4px;
}
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: 11px;
line-height: 10px;
padding: 1.5px 1.5px 1.5px 2.5px;
border-radius: 12px;
width: 10px;
display: inline-block;
2017-06-12 10:20:14 +08:00
border: 1px solid $primary-low;
&:hover {
2017-10-11 04:07:46 +08: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;
2017-06-12 10:20:14 +08:00
border: 1px solid $primary-low;
padding: 5px 4px 1px 4px;
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 {
2014-10-11 05:32:52 +08:00
color: lighten($primary, 40%);
}
}
#reply-control {
.composer-loading {
position: absolute;
left: 48%;
top: 20%;
}
.whisper {
margin-left: 1em;
font-style: italic;
}
}
#reply-control.topic-featured-link-only.open {
.wmd-controls { display: none; }
}
#cancel-file-upload {
font-size: 1.6em;
}
#draft-status, #file-uploading {
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
.composer-bottom-right {
.spinner.small {
width: 6px;
height: 6px;
}
}
// this removes the topmost margin from the first element in the topic post
// if we don't do this, all posts would have extra space at the top
.d-editor-preview > *:first-child {
margin-top: 0;
}
.cooked > *:first-child {
margin-top: 0;
}