2013-09-06 03:37:07 +08:00
|
|
|
// styles that apply to the reply pane that slides up to compose replies
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control {
|
2014-05-26 22:53:05 +08:00
|
|
|
.composer-bottom-right {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
2014-03-30 13:48:59 +08:00
|
|
|
bottom: -37px;
|
2014-05-26 22:53:05 +08:00
|
|
|
right: 5px;
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-top: 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-06-04 02:00:54 +08:00
|
|
|
.toggle-preview { display:none; }
|
|
|
|
.mobile-file-upload {
|
2014-05-26 22:53:05 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2014-07-10 04:40:22 +08:00
|
|
|
#mobile-uploader { display: none; }
|
2014-06-04 02:00:54 +08:00
|
|
|
#draft-status, #file-uploading, .mobile-file-upload {
|
2014-05-26 22:53:05 +08:00
|
|
|
float: right;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
#file-uploading {
|
|
|
|
left: 51%;
|
|
|
|
font-size: 12px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($secondary, $lightness: 50%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
#draft-status {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($primary, $lightness: 75%);
|
2013-09-06 03:37:07 +08:00
|
|
|
&.flash {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $danger;
|
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-05-19 13:17:59 +08:00
|
|
|
background-color: scale-color-diff();
|
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-05-06 13:50:51 +08:00
|
|
|
color: scale-color($primary, $lightness: 50%);
|
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 {
|
2014-07-07 10:32:20 +08:00
|
|
|
max-height: 100%; // ensure no overflow e.g. on small Android
|
2014-06-11 05:12:28 +08:00
|
|
|
height: 270px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
&.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-05-19 13:17:59 +08:00
|
|
|
border-top: 1px solid scale-color-diff();
|
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-05-19 13:17:59 +08:00
|
|
|
border-top: 1px solid scale-color-diff();
|
2013-09-06 03:37:07 +08:00
|
|
|
.saving-text {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.toggler {
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f00d";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-07-07 10:32:20 +08:00
|
|
|
max-height: 100%; // ensure no overflow e.g. on small Android
|
2014-06-11 05:12:28 +08:00
|
|
|
height: 250px;
|
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 {
|
2014-05-11 12:50:03 +08:00
|
|
|
.select2-container {
|
2013-09-06 03:37:07 +08:00
|
|
|
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; }
|
|
|
|
|
2014-05-11 12:50:03 +08:00
|
|
|
.select2-drop {
|
2013-09-06 03:37:07 +08:00
|
|
|
left: -9000px;
|
|
|
|
width: 428px;
|
|
|
|
@include medium-width { width: 283px; }
|
|
|
|
@include small-width { width: 218px; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-06 00:09:08 +08:00
|
|
|
.edit-reason-input, .display-edit-reason {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-06-04 03:19:18 +08:00
|
|
|
.edit-reason-input {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 2px;
|
|
|
|
#edit-reason {
|
|
|
|
margin: 0;
|
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
#reply-title {
|
|
|
|
margin-right: 10px;
|
|
|
|
&:disabled {
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: scale-color($primary, $lightness: 75%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-input:disabled {
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: scale-color($primary, $lightness: 75%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-10-11 18:59:26 +08:00
|
|
|
#wmd-input {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: darken($primary, 40%);
|
2014-06-30 17:06:13 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
#wmd-input {
|
|
|
|
bottom: 35px;
|
|
|
|
}
|
|
|
|
.submit-panel {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
2014-03-30 13:48:59 +08:00
|
|
|
bottom: 2px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-18 01:17:38 +08:00
|
|
|
.category-input {
|
2013-09-06 03:37:07 +08:00
|
|
|
display: inline;
|
|
|
|
}
|
2014-08-02 03:11:55 +08:00
|
|
|
.popup-tip .close {
|
|
|
|
padding: 0 2px 2px 8px; // so my fingers can touch the little x
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
.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
|
|
|
}
|
|
|
|
|
|
|
|
#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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control {
|
2014-10-11 18:59:26 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.wmd-controls {
|
2013-09-11 11:56:55 +08:00
|
|
|
left: 10px;
|
|
|
|
right: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
2014-03-30 13:48:59 +08:00
|
|
|
top: 40px;
|
2013-09-06 03:37:07 +08:00
|
|
|
bottom: 54px;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
|
2014-10-11 18:59:26 +08:00
|
|
|
#wmd-input {
|
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-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2013-09-06 03:37:07 +08:00
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2014-10-11 18:59:26 +08:00
|
|
|
#wmd-input {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2014-03-27 22:18:48 +08:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
2014-10-11 18:59:26 +08:00
|
|
|
.textarea-wrapper {
|
2013-09-06 03:37:07 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-button-bar {
|
2014-05-26 22:53:05 +08:00
|
|
|
display: none;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2014-07-07 23:35:52 +08:00
|
|
|
|
|
|
|
// make sure the category selector *NEVER* gets focus by default on mobile anywhere
|
|
|
|
.select2-hidden,
|
|
|
|
.select2-search,
|
|
|
|
.select2-focusser {
|
|
|
|
display:none !important;
|
|
|
|
}
|