mirror of
https://github.com/flarum/framework.git
synced 2025-02-05 02:51:45 +08:00
c28307903b
HTMLBars goodness! Since there was some breakage and a lot of fiddling around to get some things working, I took this opportunity to do a big cleanup of the whole Ember app. I accidentally worked on some new features too :3 Note that the app is still broken right now, pending on https://github.com/emberjs/ember.js/issues/10401 Cleanup: - Restructuring of components - Consolidation of some stuff into mixins, cleanup of some APIs that will be public - Change all instances of .property() / .observes() / .on() to Ember.computed() / Ember.observer() / Ember.on() respectively (I think it is more readable) - More comments - Start conforming to a code style (2 spaces for indentation) New features: - Post hiding/restoring - Mark individual discussions as read by clicking - Clicking on a read discussion jumps to the end - Mark all discussions as read - Progressively mark the discussion as read as the page is scrolled - Unordered list post formatting - Post permalink popup Demo once that Ember regression is fixed!
59 lines
930 B
Plaintext
59 lines
930 B
Plaintext
.alerts {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
z-index: @zindex-alerts;
|
|
|
|
& .alert {
|
|
display: inline-block;
|
|
.box-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
.alert {
|
|
padding: 12px 16px;
|
|
border-radius: @border-radius-base;
|
|
background: #FFF2AE;
|
|
&, & a, & a:hover {
|
|
color: #AD6C00;
|
|
}
|
|
}
|
|
.alert-warning {
|
|
background: #D83E3E;
|
|
&, & a, & a:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
.alert-controls {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0 -8px 0 8px;
|
|
display: inline-block;
|
|
|
|
& li {
|
|
display: inline-block;
|
|
margin: 0 5px;
|
|
}
|
|
& a {
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
& .btn {
|
|
margin: -10px;
|
|
}
|
|
}
|
|
.form-group { // probably move this elsewhere
|
|
position: relative;
|
|
}
|
|
.form-alert {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
margin-bottom: 12px;
|
|
& .alert {
|
|
display: inline-block;
|
|
}
|
|
}
|