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
|
2014-01-22 15:24:29 +08:00
|
|
|
#private-message-users {
|
|
|
|
width: 400px;
|
2014-09-08 23:11:56 +08:00
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.add-warning {
|
|
|
|
width: 300px;
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: -30px;
|
|
|
|
margin-left: 20px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.composer-popup-container {
|
|
|
|
max-width: 1500px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.composer-popup {
|
|
|
|
|
2014-10-11 06:02:46 +08:00
|
|
|
box-shadow: 3px 3px 3px rgba(0,0,0, 0.34);
|
2014-08-12 12:11:58 +08:00
|
|
|
background: dark-light-diff($highlight, $secondary, 50%, -80%);
|
2014-03-07 07:35:47 +08:00
|
|
|
|
|
|
|
&.urgent {
|
2014-08-06 21:31:13 +08:00
|
|
|
background: dark-light-diff($danger, $secondary, 50%, -40%);
|
2014-03-07 07:35:47 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2013-12-20 02:45:55 +08:00
|
|
|
h3 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
p {
|
2013-12-20 02:45:55 +08:00
|
|
|
margin-bottom: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a.close {
|
|
|
|
float: right;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-09-06 03:37:07 +08:00
|
|
|
opacity: 0.5;
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.close:hover {
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
padding: 10px;
|
|
|
|
width: 600px;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
ul.topics {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
font-weight: normal;
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-10 04:54:33 +08:00
|
|
|
.similar-topics {
|
2014-05-06 23:37:09 +08:00
|
|
|
background-color: scale-color($tertiary, $lightness: 60%);
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
a[href] {
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.posts-count {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($tertiary, $lightness: -40%);
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.composer-popup:nth-of-type(2) {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control {
|
|
|
|
.toggle-preview, #draft-status, #file-uploading {
|
|
|
|
position: absolute;
|
|
|
|
bottom: -31px;
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-top: 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.toggle-preview {
|
|
|
|
right: 5px;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
#file-uploading {
|
|
|
|
left: 51%;
|
|
|
|
font-size: 12px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
#draft-status {
|
|
|
|
right: 51%;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
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 {
|
2014-10-22 14:17:54 +08:00
|
|
|
width: 15px;
|
|
|
|
right: 1px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
font-size: 15px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2014-10-22 14:17:54 +08:00
|
|
|
padding: 0 10px 5px 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f078";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
a.cancel {
|
|
|
|
text-decoration: underline;
|
|
|
|
padding-left: 7px;
|
|
|
|
}
|
|
|
|
.control-row {
|
|
|
|
margin: 0 0 0 5px;
|
|
|
|
}
|
|
|
|
.saving-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.draft-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.grippie {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
// The various states
|
|
|
|
&.open {
|
|
|
|
height: 300px;
|
|
|
|
.grippie {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.closed {
|
2014-03-06 14:14:51 +08:00
|
|
|
height: 0 !important;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
&.draft {
|
|
|
|
height: 40px !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;
|
|
|
|
}
|
|
|
|
.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";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.reply-area {
|
|
|
|
max-width: 1500px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
float: none;
|
2014-05-19 01:15:11 +08:00
|
|
|
.ac-wrap {
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// When the post is new (new topic) the sizings are different
|
|
|
|
&.edit-title {
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
&.open {
|
|
|
|
height: 400px;
|
|
|
|
}
|
|
|
|
.contents {
|
2013-11-19 02:50:43 +08:00
|
|
|
input#reply-title {
|
2013-09-06 03:37:07 +08:00
|
|
|
padding: 7px 10px;
|
|
|
|
margin: 6px 10px 3px 0;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2014-02-10 14:04:21 +08:00
|
|
|
|
|
|
|
}
|
2014-03-06 14:14:51 +08:00
|
|
|
input#reply-title {
|
|
|
|
width: 400px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2014-02-10 14:04:21 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.wmd-controls {
|
|
|
|
@include transition(top 0.3s ease);
|
|
|
|
top: 100px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.contents {
|
|
|
|
padding: 10px;
|
|
|
|
min-width: 1280px;
|
|
|
|
.form-element {
|
2013-11-19 02:50:43 +08:00
|
|
|
display: inline-block;
|
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-05-11 12:50:03 +08:00
|
|
|
.select2-search input {
|
2013-09-06 03:37:07 +08:00
|
|
|
width: 378px;
|
|
|
|
@include medium-width { width: 233px; }
|
|
|
|
@include small-width { width: 168px; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-11-19 02:50:43 +08:00
|
|
|
.edit-reason-input {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-left: 10px;
|
|
|
|
top: 18px;
|
|
|
|
#edit-reason {
|
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#reply-title {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-right: 10px;
|
|
|
|
float: left;
|
|
|
|
&:disabled {
|
2014-05-19 13:17:59 +08:00
|
|
|
background-color: scale-color-diff();
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-input:disabled {
|
2014-05-19 13:17:59 +08:00
|
|
|
background-color: scale-color-diff();
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
#wmd-input, #wmd-preview {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2014-06-30 17:06:13 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2014-06-30 17:06:13 +08:00
|
|
|
#wmd-preview {
|
|
|
|
border: 1px dashed scale-color-diff();
|
|
|
|
overflow: auto;
|
|
|
|
visibility: visible;
|
2014-10-11 07:02:14 +08:00
|
|
|
cursor: default;
|
2013-09-06 03:37:07 +08:00
|
|
|
video {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
audio {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
&.hidden {
|
|
|
|
width: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#wmd-input {
|
|
|
|
bottom: 35px;
|
|
|
|
}
|
2014-06-30 17:06:13 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.submit-panel {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
bottom: 8px;
|
|
|
|
}
|
2013-11-27 08:06:20 +08:00
|
|
|
.auto-close-fields .examples {
|
|
|
|
margin-top: 0;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-11-27 08:06:20 +08:00
|
|
|
.title-input, .category-input, .show-admin-options {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline;
|
|
|
|
}
|
2014-01-14 08:00:23 +08:00
|
|
|
.show-admin-options {
|
2014-03-06 14:14:51 +08:00
|
|
|
vertical-align: top;
|
2014-01-14 08:00:23 +08:00
|
|
|
margin-top: 8px;
|
2014-05-19 13:17:59 +08:00
|
|
|
background: scale-color-diff();
|
2014-03-06 14:14:51 +08:00
|
|
|
&:hover {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
|
|
|
background: $primary;
|
2014-02-24 09:47:44 +08:00
|
|
|
}
|
2014-01-14 08:00:23 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
.title-input .popup-tip {
|
|
|
|
width: 300px;
|
|
|
|
left: -8px;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
.category-input .popup-tip {
|
|
|
|
width: 240px;
|
|
|
|
left: 432px;
|
2013-10-09 02:40:31 +08:00
|
|
|
top: -19px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-to {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control.edit-title.private-message {
|
|
|
|
.wmd-controls {
|
|
|
|
@include transition(top 0.3s ease);
|
|
|
|
top: 140px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control {
|
|
|
|
&.hide-preview {
|
|
|
|
.wmd-controls {
|
|
|
|
#wmd-input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.preview-wrapper {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.textarea-wrapper {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wmd-controls {
|
2014-04-21 23:54:57 +08:00
|
|
|
left: 30px;
|
|
|
|
right: 30px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
bottom: 48px;
|
2014-04-21 23:54:57 +08:00
|
|
|
top: 50px;
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
// 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
|
|
|
}
|
|
|
|
|
2014-03-27 22:18:48 +08:00
|
|
|
#wmd-input, #wmd-preview-scroller, #wmd-preview {
|
2014-10-11 19:30:34 +08:00
|
|
|
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-03-27 22:18:48 +08:00
|
|
|
#wmd-input, #wmd-preview-scroller {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2014-06-30 18:34:40 +08:00
|
|
|
border: 0px;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-top: 30px solid transparent;
|
2014-06-30 18:34:40 +08:00
|
|
|
@include border-radius-all(0);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-03-27 22:18:48 +08:00
|
|
|
#wmd-preview-scroller {
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 18px;
|
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
overflow: scroll;
|
|
|
|
visibility: hidden;
|
|
|
|
.marker, .caret {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
.textarea-wrapper, .preview-wrapper {
|
|
|
|
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;
|
|
|
|
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-05-19 13:17:59 +08:00
|
|
|
border-bottom: 1px solid scale-color-diff();
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2013-09-06 03:37:07 +08:00
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.control-row.reply-area {
|
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
2014-04-21 23:54:57 +08:00
|
|
|
|
2014-07-25 00:21:22 +08:00
|
|
|
@media all and (min-width: 1550px) {
|
2014-04-21 23:54:57 +08:00
|
|
|
#reply-control {
|
|
|
|
.wmd-controls {
|
|
|
|
width: 1450px;
|
|
|
|
left: auto;
|
|
|
|
right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|