mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
74e80ea2df
- Write CSS for everything, update templates. - Refactor discussion view. Stream is split into two components (content and scrubber) which have their own responsibilities. - Extract pane functionality into a mixin. - Implement global “back button” system. You give a “paneable” target to the application controller, the back button will modulate its pane-related properties as necessary, and call an action when the button is clicked. - Extract welcome-hero into its own component. - Lots of other general improvements/refactoring. The code is quite well-commented so take a look!
61 lines
1.0 KiB
Plaintext
61 lines
1.0 KiB
Plaintext
// ------------------------------------
|
|
// Composer
|
|
|
|
.composer-container {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: @zindex-navbar-fixed;
|
|
pointer-events: none;
|
|
}
|
|
.composer {
|
|
pointer-events: auto;
|
|
margin-left: 200px;
|
|
.box-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
|
|
border-radius: 4px 4px 0 0;
|
|
background: rgba(255, 255, 255, 0.98);
|
|
transform: translateZ(0); // Fix for Chrome bug where a transparent white background is actually gray
|
|
}
|
|
.composer-content {
|
|
padding: 0 20px 15px;
|
|
}
|
|
.composer-handle {
|
|
height: 20px;
|
|
cursor: row-resize;
|
|
}
|
|
.composer-controls {
|
|
float: right;
|
|
margin: -5px 15px 0 0;
|
|
}
|
|
.composer-avatar {
|
|
float: left;
|
|
width: 64px;
|
|
height: 64px;
|
|
}
|
|
.composer-body {
|
|
margin-left: 84px;
|
|
|
|
& h3 {
|
|
margin: 5px 0 10px;
|
|
color: @fl-body-muted-color;
|
|
font-size: 16px;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
.composer-editor textarea {
|
|
background: none;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
margin-bottom: 10px;
|
|
height: 200px;
|
|
border: 0;
|
|
resize: none;
|
|
color: @fl-body-color;
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
|
|
&:focus {
|
|
background: none;
|
|
}
|
|
} |