2013-09-06 03:37:07 +08:00
|
|
|
// styles that apply to the reply pane that slides up to compose replies
|
|
|
|
|
|
|
|
@import "../common/foundation/variables";
|
|
|
|
@import "../common/foundation/mixins";
|
|
|
|
|
|
|
|
// hack, this needs to be done cleaner
|
|
|
|
.private-message input.span8 {
|
|
|
|
width: 47%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.composer-popup-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-09-10 04:54:33 +08:00
|
|
|
.composer-popup {
|
2013-09-06 03:37:07 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete {
|
|
|
|
z-index: 999999;
|
|
|
|
position: absolute;
|
|
|
|
width: 240px;
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $primary_background_color;
|
|
|
|
border: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
li {
|
2014-02-24 09:47:44 +08:00
|
|
|
border-bottom: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
a[href] {
|
|
|
|
padding: 5px;
|
|
|
|
display: block;
|
|
|
|
span.username {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: lighten($primary_text_color, 20%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
span.name {
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
&.selected {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: lighten($secondary_background_color, 60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
@include hover {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: lighten($secondary_background_color, 60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control {
|
2014-03-20 01:34:08 +08:00
|
|
|
.toggle-preview, #draft-status, #file-uploading, .mobile-file-upload {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
bottom: -31px;
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-top: 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-03-20 01:34:08 +08:00
|
|
|
.toggle-preview, .mobile-file-upload {
|
2013-09-06 03:37:07 +08:00
|
|
|
right: 5px;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
#file-uploading {
|
|
|
|
left: 51%;
|
|
|
|
font-size: 12px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: darken($tertiary_text_color, 40%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
#draft-status {
|
2014-03-28 02:06:23 +08:00
|
|
|
right: 70px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: lighten($primary_text_color, 60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
&.flash {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $warning_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@include transition(height 0.4s ease);
|
|
|
|
width: 100%;
|
|
|
|
z-index: 1039;
|
2014-03-06 14:14:51 +08:00
|
|
|
height: 0;
|
2014-03-27 09:16:41 +08:00
|
|
|
background-color: $composer_background_color;
|
2014-03-06 14:14:51 +08:00
|
|
|
bottom: 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 14px;
|
|
|
|
position: fixed;
|
|
|
|
.toggler {
|
|
|
|
display: block;
|
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
|
|
|
right: 13px;
|
|
|
|
position: absolute;
|
|
|
|
font-size: 15px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: lighten($primary_text_color, 35%);
|
2013-09-06 03:37:07 +08:00
|
|
|
text-decoration: none;
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f078";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
a.cancel {
|
|
|
|
text-decoration: underline;
|
|
|
|
padding-left: 7px;
|
2013-09-10 04:54:33 +08:00
|
|
|
float: left;
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-top: 6px;
|
|
|
|
}
|
|
|
|
.control-row {
|
|
|
|
margin: 0 0 0 5px;
|
|
|
|
}
|
|
|
|
.saving-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.draft-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.grippie {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
// The various states
|
|
|
|
&.open {
|
|
|
|
height: 300px;
|
|
|
|
}
|
|
|
|
&.closed {
|
2014-03-06 14:14:51 +08:00
|
|
|
height: 0 !important;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
&.draft {
|
|
|
|
height: 60px !important;
|
|
|
|
cursor: pointer;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-top: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
.draft-text {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
margin-right: 40px;
|
|
|
|
}
|
|
|
|
.toggler {
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f077";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.saving {
|
|
|
|
height: 40px !important;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-top: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
.saving-text {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.toggler {
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f00d";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.spinner {
|
|
|
|
position: absolute;
|
|
|
|
@include fades-in(0.25s);
|
|
|
|
@include border-radius-all(10px);
|
|
|
|
left: 250px;
|
|
|
|
top: 95px;
|
|
|
|
height: 100px;
|
|
|
|
width: 70px;
|
|
|
|
height: 70px;
|
|
|
|
text-indent: -9999em;
|
|
|
|
background: {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $primary_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
image: image-url("spinner_96_w.gif");
|
|
|
|
repeat: no-repeat;
|
|
|
|
size: 35px;
|
|
|
|
position: 17px 17px;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
&.loading {
|
|
|
|
.spinner {
|
|
|
|
z-index: 1000;
|
|
|
|
@include visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.reply-area {
|
|
|
|
max-width: 1500px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
2014-03-28 06:44:46 +08:00
|
|
|
// if this is a new topic, make room for the category field in the editor on
|
|
|
|
// a small screen mobile device
|
2013-09-06 03:37:07 +08:00
|
|
|
&.edit-title {
|
|
|
|
&.open {
|
2014-03-28 06:44:46 +08:00
|
|
|
height: 280px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.contents {
|
|
|
|
input#reply-title {
|
|
|
|
padding: 7px 10px;
|
2014-03-28 06:44:46 +08:00
|
|
|
margin: 6px 10px 0 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.wmd-controls {
|
|
|
|
@include transition(top 0.3s ease);
|
2014-03-28 06:44:46 +08:00
|
|
|
top: 120px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.contents {
|
2014-03-28 06:44:46 +08:00
|
|
|
padding: 10px 10px 0 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
min-width: 1280px;
|
|
|
|
.form-element {
|
|
|
|
.chzn-container {
|
|
|
|
width: 400px;
|
|
|
|
margin-top: 6px;
|
|
|
|
a {
|
|
|
|
padding-top: 4px;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
b {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.category-combobox {
|
|
|
|
width: 430px;
|
|
|
|
@include medium-width { width: 285px; }
|
|
|
|
@include small-width { width: 220px; }
|
|
|
|
|
|
|
|
.chzn-drop {
|
|
|
|
left: -9000px;
|
|
|
|
width: 428px;
|
|
|
|
@include medium-width { width: 283px; }
|
|
|
|
@include small-width { width: 218px; }
|
|
|
|
}
|
|
|
|
.chzn-search input {
|
|
|
|
width: 378px;
|
|
|
|
@include medium-width { width: 233px; }
|
|
|
|
@include small-width { width: 168px; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#reply-title {
|
|
|
|
margin-right: 10px;
|
|
|
|
&:disabled {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: lighten($secondary_background_color, 60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-input:disabled {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: lighten($secondary_background_color, 60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
#wmd-input, #wmd-preview {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $primary_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
video {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
audio {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-preview {
|
2014-02-24 09:47:44 +08:00
|
|
|
border: 1px dashed $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
overflow: auto;
|
|
|
|
visibility: visible;
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
&.hidden {
|
|
|
|
width: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-input {
|
|
|
|
bottom: 35px;
|
|
|
|
}
|
|
|
|
.submit-panel {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
bottom: 8px;
|
|
|
|
}
|
|
|
|
}
|
2013-10-18 01:17:38 +08:00
|
|
|
.category-input {
|
2013-09-06 03:37:07 +08:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.title-input .popup-tip {
|
2013-10-25 23:17:11 +08:00
|
|
|
width: 240px;
|
|
|
|
right: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.category-input .popup-tip {
|
|
|
|
width: 240px;
|
2013-10-25 23:17:11 +08:00
|
|
|
right: 5px;
|
|
|
|
}
|
|
|
|
.textarea-wrapper .popup-tip {
|
|
|
|
top: 28px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-18 01:17:38 +08:00
|
|
|
button.btn.no-text {
|
|
|
|
margin: 7px 0 0 5px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div.ac-wrap.disabled {
|
|
|
|
input {
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
.item a {
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div.ac-wrap {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $primary_background_color;
|
|
|
|
border: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
padding: 5px 10px;
|
|
|
|
@include border-radius-all(3px);
|
|
|
|
div.item {
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
span {
|
|
|
|
padding-left: 5px;
|
|
|
|
height: 22px;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 22px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
margin-left: 4px;
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 10px;
|
|
|
|
padding: 2px 1px 1px 3px;
|
|
|
|
border-radius: 10px;
|
|
|
|
width: 10px;
|
|
|
|
display: inline-block;
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0);
|
|
|
|
&:hover {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $warning_background_color;
|
|
|
|
border: 1px solid $warning_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
text-decoration: none;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $emphasis_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input[type="text"] {
|
|
|
|
float: left;
|
|
|
|
margin-top: 5px;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 4px 0 0;
|
|
|
|
box-shadow: none;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#reply-control .wmd-controls #wmd-input {font-size: 16px;}
|
|
|
|
|
|
|
|
#reply-control.edit-title.private-message {
|
|
|
|
.wmd-controls {
|
|
|
|
@include transition(top 0.3s ease);
|
2014-03-28 06:47:55 +08:00
|
|
|
top: 120px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-26 22:45:22 +08:00
|
|
|
#reply-control.topic #wmd-quote-post {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
#reply-control {
|
|
|
|
|
|
|
|
|
|
|
|
&.hide-preview {
|
|
|
|
.wmd-controls {
|
|
|
|
#wmd-input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.preview-wrapper {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.textarea-wrapper {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wmd-controls {
|
2013-09-11 11:56:55 +08:00
|
|
|
left: 10px;
|
|
|
|
right: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 60px;
|
|
|
|
bottom: 54px;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
// this removes the topmost margin;
|
|
|
|
// if we don't have this, all posts would have extra space at the top
|
|
|
|
#wmd-preview > *:first-child {
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-top: 0 !important;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#wmd-input, #wmd-preview {
|
2013-11-04 19:51:39 +08:00
|
|
|
@include box-sizing(border-box);
|
2013-09-06 03:37:07 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
padding: 7px;
|
|
|
|
margin: 0;
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $primary_background_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
// set up proper header margins in post preview
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2014-02-23 16:22:11 +08:00
|
|
|
margin: 30px 0 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-input {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
2013-11-04 19:51:39 +08:00
|
|
|
@include box-sizing(border-box);
|
2013-09-06 03:37:07 +08:00
|
|
|
border: 0;
|
|
|
|
border-top: 36px solid transparent;
|
|
|
|
@include border-radius-all(0);
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
.textarea-wrapper, .preview-wrapper {
|
|
|
|
position: relative;
|
2013-11-04 19:51:39 +08:00
|
|
|
@include box-sizing(border-box);
|
2013-09-06 03:37:07 +08:00
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
.textarea-wrapper {
|
|
|
|
padding-right: 5px;
|
|
|
|
float: left;
|
|
|
|
.popup-tip {
|
|
|
|
margin-top: 3px;
|
|
|
|
right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.preview-wrapper {
|
|
|
|
padding-left: 5px;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-button-bar {
|
|
|
|
top: 0;
|
|
|
|
position: absolute;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-bottom: 1px solid $primary_border_color;
|
|
|
|
background-color: $primary_background_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 1550px) {
|
|
|
|
#reply-control {
|
|
|
|
.wmd-controls {
|
|
|
|
width: 1450px;
|
|
|
|
left: auto;
|
|
|
|
right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.auto-close-fields {
|
|
|
|
input {
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-auto-close-modal {
|
|
|
|
form {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.auto-close-fields {
|
2013-12-10 05:27:49 +08:00
|
|
|
i.fa-clock-o {
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 8px;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|