2015-01-16 14:56:10 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Composer
|
|
|
|
|
|
|
|
.composer-container {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: @zindex-navbar-fixed;
|
|
|
|
pointer-events: none;
|
2015-01-30 09:52:19 +08:00
|
|
|
.transition(left 0.2s);
|
|
|
|
|
|
|
|
.with-pane & {
|
|
|
|
left: @index-pane-width;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer {
|
|
|
|
pointer-events: auto;
|
2015-01-30 09:52:19 +08:00
|
|
|
margin-left: -20px;
|
2015-01-30 11:05:54 +08:00
|
|
|
margin-right: 180px;
|
2015-01-16 14:56:10 +08:00
|
|
|
.box-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
|
2015-02-02 14:27:59 +08:00
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
2015-01-30 09:52:19 +08:00
|
|
|
background: rgba(255, 255, 255, 0.9);
|
2015-01-16 14:56:10 +08:00
|
|
|
transform: translateZ(0); // Fix for Chrome bug where a transparent white background is actually gray
|
2015-01-30 09:52:19 +08:00
|
|
|
position: relative;
|
2015-02-02 14:27:59 +08:00
|
|
|
height: 300px;
|
|
|
|
.transition(~"background 0.2s");
|
2015-01-30 09:52:19 +08:00
|
|
|
|
|
|
|
.index-index & {
|
|
|
|
margin-left: 205px;
|
|
|
|
margin-right: -20px;
|
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
&.active, &.fullscreen {
|
2015-01-30 11:05:54 +08:00
|
|
|
background: #fff;
|
2015-01-30 09:52:19 +08:00
|
|
|
}
|
|
|
|
&.minimized {
|
|
|
|
height: 50px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
&.fullscreen {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: 0;
|
|
|
|
height: auto;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer-content {
|
2015-01-30 09:52:19 +08:00
|
|
|
padding: 20px 20px 15px;
|
|
|
|
|
|
|
|
.minimized & {
|
|
|
|
padding: 10px 20px;
|
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
.fullscreen & {
|
|
|
|
max-width: 900px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 30px;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer-handle {
|
|
|
|
height: 20px;
|
2015-01-30 09:52:19 +08:00
|
|
|
margin-bottom: -20px;
|
|
|
|
position: relative;
|
|
|
|
|
2015-02-02 14:27:59 +08:00
|
|
|
.minimized &, .fullscreen & {
|
2015-01-30 09:52:19 +08:00
|
|
|
display: none;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer-controls {
|
2015-01-30 09:52:19 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 10px;
|
2015-02-02 14:27:59 +08:00
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
& li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn-minimize .fa {
|
|
|
|
vertical-align: -5px;
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer-avatar {
|
|
|
|
float: left;
|
2015-01-30 09:52:19 +08:00
|
|
|
.avatar-size(64px);
|
|
|
|
|
|
|
|
.minimized & {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer-body {
|
2015-01-30 09:52:19 +08:00
|
|
|
margin-left: 90px;
|
2015-01-16 14:56:10 +08:00
|
|
|
|
|
|
|
& h3 {
|
|
|
|
margin: 5px 0 10px;
|
|
|
|
color: @fl-body-muted-color;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2015-01-30 09:52:19 +08:00
|
|
|
|
|
|
|
.minimized & {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
2015-01-30 09:52:19 +08:00
|
|
|
.composer-editor {
|
2015-02-02 14:27:59 +08:00
|
|
|
.minimized & {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.text-editor {
|
2015-01-30 09:52:19 +08:00
|
|
|
& textarea {
|
2015-01-16 14:56:10 +08:00
|
|
|
background: none;
|
2015-01-30 09:52:19 +08:00
|
|
|
border-radius: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
resize: none;
|
|
|
|
color: @fl-body-color;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
2015-02-02 14:27:59 +08:00
|
|
|
}
|
|
|
|
.text-editor-controls {
|
|
|
|
margin: 10px 0 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
& li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
2015-01-30 09:52:19 +08:00
|
|
|
|
2015-02-02 14:27:59 +08:00
|
|
|
.composer-loading {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
.transition(opacity 0.2s);
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
}
|