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));
|
|
|
|
border-radius: 4px 4px 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;
|
|
|
|
.transition(~"margin-left 0.2s, margin-right 0.2s, background 0.2s");
|
|
|
|
|
|
|
|
.index-index & {
|
|
|
|
margin-left: 205px;
|
|
|
|
margin-right: -20px;
|
|
|
|
}
|
|
|
|
&.active {
|
2015-01-30 11:05:54 +08:00
|
|
|
background: #fff;
|
2015-01-30 09:52:19 +08:00
|
|
|
}
|
|
|
|
&.minimized {
|
|
|
|
height: 50px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
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-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.composer-handle {
|
|
|
|
height: 20px;
|
2015-01-30 09:52:19 +08:00
|
|
|
margin-bottom: -20px;
|
2015-01-16 14:56:10 +08:00
|
|
|
cursor: row-resize;
|
2015-01-30 09:52:19 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.minimized & {
|
|
|
|
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-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 {
|
|
|
|
& textarea {
|
2015-01-16 14:56:10 +08:00
|
|
|
background: none;
|
2015-01-30 09:52:19 +08:00
|
|
|
border-radius: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
height: 200px;
|
|
|
|
border: 0;
|
|
|
|
resize: none;
|
|
|
|
color: @fl-body-color;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.minimized & {
|
|
|
|
visibility: hidden;
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
}
|