2015-01-16 14:56:10 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Composer
|
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer {
|
|
|
|
pointer-events: auto;
|
|
|
|
.box-shadow(0 2px 6px @fl-shadow-color);
|
|
|
|
}
|
|
|
|
.composer-controls {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.composer-header {
|
|
|
|
list-style: none;
|
2015-03-20 08:06:55 +08:00
|
|
|
padding: 1px 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
margin: 0;
|
|
|
|
|
2015-05-02 07:18:18 +08:00
|
|
|
& > li {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
& h3 {
|
|
|
|
margin: 0 0 10px;
|
|
|
|
line-height: 1.5em;
|
|
|
|
|
2015-05-18 09:10:14 +08:00
|
|
|
&, & input, & a {
|
2015-03-03 18:00:52 +08:00
|
|
|
color: @fl-body-muted-color;
|
2015-05-18 09:10:14 +08:00
|
|
|
font-size: 15px;
|
2015-03-03 18:00:52 +08:00
|
|
|
font-weight: normal;
|
2015-05-18 09:10:14 +08:00
|
|
|
transition: color 0.2s;
|
|
|
|
|
|
|
|
.active & {
|
|
|
|
color: @fl-body-primary-color;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
2015-05-02 07:18:18 +08:00
|
|
|
& input, & input[disabled] {
|
2015-03-03 18:00:52 +08:00
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-05-18 09:10:14 +08:00
|
|
|
.composer-controls {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 10px;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
& li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.minimized & {
|
|
|
|
top: 7px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-loading {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
bottom: 0;
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
opacity: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
pointer-events: none;
|
2015-03-03 18:00:52 +08:00
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
.transition(opacity 0.2s);
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
// On phones, show the composer as a fixed overlay that covers the whole
|
|
|
|
// screen. The controls are hidden (except for the 'x', which is the back-
|
|
|
|
// control), and the avatar hidden.
|
|
|
|
@media @phone {
|
|
|
|
.composer {
|
2015-05-18 09:10:14 +08:00
|
|
|
position: absolute;
|
2015-03-03 18:00:52 +08:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-content {
|
2015-05-18 09:10:14 +08:00
|
|
|
padding: 15px 15px 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
.composer-controls {
|
2015-05-18 09:10:14 +08:00
|
|
|
& li:not(:last-child) {
|
2015-03-03 18:00:52 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.composer-avatar {
|
|
|
|
display: none;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// On larger screens, show the composer as a window at the bottom of the
|
|
|
|
// content area. We hide a lot of the content when the composer is minimized.
|
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
|
|
|
.composer-container {
|
2015-02-10 15:35:40 +08:00
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
left: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
right: 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
z-index: @zindex-composer;
|
|
|
|
pointer-events: none;
|
|
|
|
.transition(left 0.2s);
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer {
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
background: fade(@fl-body-bg, 95%);
|
|
|
|
transform: translateZ(0); // Fix for Chrome bug where a transparent white background is actually gray
|
|
|
|
position: relative;
|
|
|
|
height: 300px;
|
2015-05-18 09:10:14 +08:00
|
|
|
.transition(~"background 0.2s, box-shadow 0.2s");
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-04-25 21:01:37 +08:00
|
|
|
&.active, &.full-screen {
|
2015-03-03 18:00:52 +08:00
|
|
|
background: @fl-body-bg;
|
|
|
|
}
|
2015-05-18 09:10:14 +08:00
|
|
|
&.active:not(.full-screen) {
|
|
|
|
box-shadow: 0 2px 6px @fl-shadow-color, 0 0 0 2px @fl-body-primary-color;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
&.minimized {
|
|
|
|
height: 50px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-04-25 21:01:37 +08:00
|
|
|
&.full-screen {
|
2015-03-03 18:00:52 +08:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: 0;
|
|
|
|
height: auto;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-05-02 07:18:18 +08:00
|
|
|
.composer-header {
|
|
|
|
.minimized & {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-content {
|
2015-05-18 09:10:14 +08:00
|
|
|
padding: 20px 20px 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
|
|
|
|
.minimized & {
|
2015-05-18 09:10:14 +08:00
|
|
|
padding: 12px 20px;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
2015-04-25 21:01:37 +08:00
|
|
|
.full-screen & {
|
2015-03-03 18:00:52 +08:00
|
|
|
max-width: 900px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 30px;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-handle {
|
2015-05-18 09:10:14 +08:00
|
|
|
height: 15px;
|
|
|
|
margin-bottom: -17px;
|
2015-03-03 18:00:52 +08:00
|
|
|
position: relative;
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-04-25 21:01:37 +08:00
|
|
|
.minimized &, .full-screen & {
|
2015-03-03 18:00:52 +08:00
|
|
|
display: none;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.fa-minus.minimize {
|
|
|
|
vertical-align: -5px;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-avatar {
|
|
|
|
float: left;
|
|
|
|
.avatar-size(64px);
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
.minimized & {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-body {
|
|
|
|
margin-left: 90px;
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
.minimized & {
|
|
|
|
margin-left: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.composer-editor {
|
|
|
|
.minimized & {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-05-02 07:18:18 +08:00
|
|
|
@media @desktop, @desktop-hd {
|
|
|
|
.composer {
|
|
|
|
margin-left: -20px;
|
|
|
|
margin-right: 180px;
|
|
|
|
|
2015-05-18 09:10:14 +08:00
|
|
|
.index-page &:not(.full-screen) {
|
2015-05-02 07:18:18 +08:00
|
|
|
margin-left: 205px;
|
|
|
|
margin-right: -20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-18 13:47:33 +08:00
|
|
|
@media @desktop-hd {
|
|
|
|
.has-pane.pane-pinned .composer-container {
|
|
|
|
left: @index-pane-width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Text Editor
|
|
|
|
|
2015-02-02 14:27:59 +08:00
|
|
|
.text-editor {
|
2015-02-10 15:35:40 +08:00
|
|
|
& textarea {
|
|
|
|
border-radius: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
resize: none;
|
|
|
|
color: @fl-body-color;
|
|
|
|
font-size: 14px;
|
2015-05-18 09:10:14 +08:00
|
|
|
line-height: 1.7;
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
&, &:focus, &[disabled] {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
}
|
|
|
|
.text-editor-controls {
|
2015-05-18 09:10:14 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 15px 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
list-style-type: none;
|
2015-05-14 21:01:51 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
& li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
}
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-05-18 09:10:14 +08:00
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
2015-03-03 18:00:52 +08:00
|
|
|
.text-editor-controls {
|
2015-05-18 09:10:14 +08:00
|
|
|
margin: 0 -20px 0 -110px;
|
|
|
|
padding: 15px 20px;
|
|
|
|
border-top: 1px solid @fl-body-secondary-color;
|
|
|
|
|
|
|
|
& .btn-primary {
|
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-02-06 11:37:15 +08:00
|
|
|
}
|