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 {
|
2014-11-20 13:46:11 +08:00
|
|
|
display: none !important; // can be removed if inline JS CSS is removed from composer-popup
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2013-09-10 04:54:33 +08:00
|
|
|
.composer-popup {
|
2014-11-20 13:46:11 +08:00
|
|
|
display: none !important; // can be removed if inline JS CSS is removed from composer-popup
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2015-08-21 04:59:32 +08:00
|
|
|
input {
|
|
|
|
background: $secondary;
|
|
|
|
color: $primary;
|
2016-12-02 15:53:07 +08:00
|
|
|
padding: 4px;
|
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: inset 0 1px 1px rgba(0,0,0, .3);
|
|
|
|
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2015-08-21 04:59:32 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
#reply-control {
|
2014-10-11 20:29:50 +08:00
|
|
|
// used for upload link
|
2014-05-26 22:53:05 +08:00
|
|
|
.composer-bottom-right {
|
2015-09-17 03:15:07 +08:00
|
|
|
float: right;
|
2015-09-17 04:04:48 +08:00
|
|
|
line-height: 3em;
|
2015-09-17 03:15:07 +08:00
|
|
|
}
|
2015-09-17 04:04:48 +08:00
|
|
|
#mobile-uploader { display: none; }
|
2015-09-17 11:05:14 +08:00
|
|
|
.mobile-file-upload.hidden { display: none; }
|
2015-09-17 04:04:48 +08:00
|
|
|
#draft-status, #file-uploading, .mobile-file-upload { display: inline-block; }
|
|
|
|
transition: height .4s ease;
|
2013-09-06 03:37:07 +08:00
|
|
|
width: 100%;
|
|
|
|
z-index: 1039;
|
2014-03-06 14:14:51 +08:00
|
|
|
height: 0;
|
2015-06-15 10:59:49 +08:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-03-06 14:14:51 +08:00
|
|
|
bottom: 0;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1em;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: fixed;
|
2016-02-09 14:10:24 +08:00
|
|
|
.toggle-toolbar, .toggler {
|
2014-10-22 14:27:06 +08:00
|
|
|
width: 15px;
|
|
|
|
right: 1px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.071em;
|
2015-08-20 17:42:12 +08:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
2014-10-22 14:27:06 +08:00
|
|
|
padding: 0 10px 5px 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f078";
|
|
|
|
}
|
|
|
|
}
|
2016-02-09 14:10:24 +08:00
|
|
|
|
|
|
|
.toggle-toolbar {
|
|
|
|
right: 30px;
|
|
|
|
&:before {
|
|
|
|
content: "\f0c9";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
a.cancel {
|
|
|
|
padding-left: 7px;
|
2015-09-16 05:28:31 +08:00
|
|
|
line-height: 30px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.control-row {
|
|
|
|
margin: 0 0 0 5px;
|
2014-10-15 05:12:48 +08:00
|
|
|
.reply-to {
|
|
|
|
overflow: hidden;
|
2016-02-09 14:10:24 +08:00
|
|
|
max-width: 80%;
|
2014-10-15 05:12:48 +08:00
|
|
|
white-space: nowrap;
|
2015-09-16 06:39:59 +08:00
|
|
|
i {
|
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
|
|
}
|
2014-10-15 05:12:48 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.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 {
|
2014-10-22 14:37:34 +08:00
|
|
|
height: 35px !important;
|
2013-09-06 03:37:07 +08:00
|
|
|
cursor: pointer;
|
2015-06-15 10:59:49 +08:00
|
|
|
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
.draft-text {
|
|
|
|
display: block;
|
2016-12-08 22:41:58 +08:00
|
|
|
position: absolute;
|
|
|
|
margin-right: 40px;
|
|
|
|
max-width: 80%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.toggler {
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
2016-12-08 22:41:58 +08:00
|
|
|
content: "\f00d";
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.saving {
|
|
|
|
height: 40px !important;
|
2015-06-15 10:59:49 +08:00
|
|
|
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
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 {
|
2014-10-11 20:29:50 +08:00
|
|
|
padding: 5px;
|
2014-10-13 14:28:33 +08:00
|
|
|
margin-top: 6px;
|
|
|
|
width: 99%;
|
|
|
|
box-sizing: border-box;
|
2016-03-30 14:57:44 +08:00
|
|
|
border: 1px solid $secondary;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.wmd-controls {
|
2014-12-23 19:09:17 +08:00
|
|
|
transition: top 0.3s ease;
|
2014-10-11 20:29:50 +08:00
|
|
|
top: 110px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.contents {
|
2014-10-11 20:08:25 +08:00
|
|
|
padding: 8px 5px 0 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
.form-element {
|
2014-05-11 12:50:03 +08:00
|
|
|
.select2-container {
|
2014-10-11 19:37:30 +08:00
|
|
|
width: 99%;
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-top: 6px;
|
|
|
|
a {
|
|
|
|
padding-top: 4px;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
b {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
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 {
|
2015-08-20 17:42:12 +08:00
|
|
|
background-color: dark-light-choose(scale-color($primary, $lightness: 75%), scale-color($secondary, $lightness: 25%));
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-input:disabled {
|
2015-08-20 17:42:12 +08:00
|
|
|
background-color: dark-light-choose(scale-color($primary, $lightness: 75%), scale-color($secondary, $lightness: 25%));
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-input {
|
2015-08-21 07:47:34 +08:00
|
|
|
color: dark-light-choose(darken($primary, 40%), blend-primary-secondary(90%));
|
2013-09-06 03:37:07 +08:00
|
|
|
bottom: 35px;
|
2016-03-30 14:57:44 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 7px;
|
|
|
|
margin: 0;
|
|
|
|
background-color: $secondary;
|
|
|
|
word-wrap: break-word;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border: 1px solid $secondary;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.submit-panel {
|
2016-03-28 14:21:26 +08:00
|
|
|
// need minimum width that fits, or this'll wrap cancel under submit/create which is super bad
|
|
|
|
width: 180px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
display: block;
|
2016-03-26 16:18:16 +08:00
|
|
|
bottom: 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-18 01:17:38 +08:00
|
|
|
.category-input {
|
2014-10-11 20:49:18 +08:00
|
|
|
// hack, select2 is using inline styles
|
|
|
|
.select2-container {
|
|
|
|
width: 99% !important;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
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;
|
|
|
|
}
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-textarea-wrapper .popup-tip {
|
2013-10-25 23:17:11 +08:00
|
|
|
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 {
|
2014-12-23 19:09:17 +08:00
|
|
|
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
|
|
|
|
2015-11-07 04:51:21 +08:00
|
|
|
.d-editor {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-container {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
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;
|
2014-10-11 20:29:50 +08:00
|
|
|
bottom: 50px;
|
2013-09-06 03:37:07 +08:00
|
|
|
display: block;
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-container {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-02-09 14:10:24 +08:00
|
|
|
|
2016-07-04 16:15:36 +08:00
|
|
|
.btn.hide-preview {
|
|
|
|
position: fixed;
|
|
|
|
right: 5px;
|
|
|
|
bottom: 5px;
|
|
|
|
z-index: 1000001;
|
|
|
|
}
|
|
|
|
|
2016-02-09 14:10:24 +08:00
|
|
|
.d-editor-preview-wrapper.force-preview {
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1000000;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: $secondary;
|
|
|
|
|
|
|
|
.d-editor-preview {
|
|
|
|
height: 90%;
|
|
|
|
height: calc(100% - 60px);
|
|
|
|
border: 0;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
}
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-textarea-wrapper {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
2014-10-11 19:30:34 +08:00
|
|
|
box-sizing: border-box;
|
2013-09-06 03:37:07 +08:00
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
.popup-tip {
|
|
|
|
margin-top: 3px;
|
|
|
|
right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-button-bar {
|
2014-05-26 22:53:05 +08:00
|
|
|
display: none;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2016-02-09 14:10:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
.wmd-controls.toolbar-visible .d-editor-input {
|
|
|
|
padding-top: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wmd-controls.toolbar-visible .d-editor-button-bar {
|
|
|
|
|
|
|
|
.btn.link, .btn.upload, .btn.rule, .btn.bullet, .btn.list, .btn.heading {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
margin: 1px 4px;
|
|
|
|
position: absolute;
|
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
|
|
background-color: $secondary;
|
|
|
|
z-index: 100;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
width: calc(100% - 10px);
|
|
|
|
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
button {
|
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
|
|
}
|
|
|
|
button.btn.no-text {
|
|
|
|
margin: 0 2px;
|
|
|
|
padding: 2px 5px;
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
}
|