mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +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!
61 lines
2.2 KiB
Plaintext
61 lines
2.2 KiB
Plaintext
@fl-primary-color: #4d698e;
|
|
@fl-secondary-color: #edf2f7;
|
|
@fl-dark-body: false;
|
|
@fl-dark-hdr: false;
|
|
|
|
// ---------------------------------
|
|
// BODY
|
|
|
|
.define-body-variables(@fl-dark-body);
|
|
.define-body-variables(false) {
|
|
@fl-body-bg: #fff;
|
|
@fl-body-color: #444;
|
|
@fl-body-muted-color: hsv(hue(@fl-secondary-color), max(0, saturation(@fl-secondary-color) - 20%), 65%); // todo
|
|
@fl-body-muted-more-color: #bbb;
|
|
@fl-body-heading-color: @fl-body-color;
|
|
|
|
@fl-body-control-bg: @fl-secondary-color;
|
|
@fl-body-control-color: @fl-body-muted-color;
|
|
|
|
@fl-body-control-primary-bg: @fl-primary-color;
|
|
@fl-body-control-primary-color: #fff;
|
|
}
|
|
.define-body-variables(true) {
|
|
@fl-body-bg: #333;
|
|
@fl-body-color: #ccc;
|
|
@fl-body-muted-color: hsv(hue(@fl-secondary-color), max(0, saturation(@fl-secondary-color) - 20%), 65%); // todo
|
|
@fl-body-muted-more-color: #bbb;
|
|
@fl-body-heading-color: @fl-body-color;
|
|
|
|
@fl-body-control-bg: @fl-secondary-color;
|
|
@fl-body-control-color: @fl-body-muted-color;
|
|
|
|
@fl-body-control-primary-bg: @fl-primary-color;
|
|
@fl-body-control-primary-color: #fff;
|
|
}
|
|
|
|
// ---------------------------------
|
|
// HEADER
|
|
|
|
.define-hdr-variables(@fl-dark-hdr);
|
|
.define-hdr-variables(false) {
|
|
@fl-hdr-bg: @fl-body-bg;
|
|
@fl-hdr-color: @fl-primary-color;
|
|
@fl-hdr-muted-color: @fl-body-muted-color;
|
|
@fl-hdr-control-bg: @fl-body-control-bg;
|
|
@fl-hdr-control-color: @fl-body-control-color;
|
|
|
|
@fl-body-hero-bg: @fl-primary-color;
|
|
@fl-body-hero-color: #fff;
|
|
}
|
|
.define-hdr-variables(true) {
|
|
@fl-hdr-bg: @fl-primary-color;
|
|
@fl-hdr-color: #fff;
|
|
@fl-hdr-muted-color: fade(#fff, 50%);
|
|
@fl-hdr-control-bg: fade(#000, 10%);
|
|
@fl-hdr-control-color: #fff;
|
|
|
|
@fl-body-hero-bg: @fl-secondary-color;
|
|
@fl-body-hero-color: @fl-body-muted-color;
|
|
}
|