mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
40a6d77e74
- Extract shared Ember components into a “flarum-common” ember-cli addon. This can be used by both the forum + admin Ember apps, keeping things DRY - Move LESS styles into their own top-level directory and do a similar thing (extract common styles) - Add LESS/JS compilation and versioning to PHP (AssetManager) - Set up admin entry point (Theoretical) upgrade instructions: - Delete everything in [app_root]/public - Set up tooling in forum/admin Ember apps (npm install/update, bower install/update) and then build them (ember build) - php artisan vendor:publish - Upgrade flarum/flarum repo (slight change in a config file) - If you need to trigger a LESS/JS recompile, delete the .css/.js files in [app_root]/public/flarum. I set up LiveReload to do this for me when I change files in less/ or ember/ Todo: - Start writing admin app! - Remove bootstrap/font-awesome from repo and instead depend on their composer packages? Maybe? (Bower is not an option here)
117 lines
1.9 KiB
Plaintext
117 lines
1.9 KiB
Plaintext
.btn {
|
|
border: 0;
|
|
.box-shadow(none);
|
|
line-height: 20px;
|
|
|
|
& .fa {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
.btn-group .btn + .btn {
|
|
margin-left: 1px;
|
|
}
|
|
.btn-icon {
|
|
padding-left: 9px;
|
|
padding-right: 9px;
|
|
}
|
|
.btn-link {
|
|
color: @fl-body-muted-color;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
.btn-primary {
|
|
font-weight: bold;
|
|
& .icon-glyph {
|
|
display: none;
|
|
}
|
|
}
|
|
.btn-user {
|
|
& .avatar {
|
|
margin: -2px 5px -2px -5px;
|
|
.avatar-size(24px);
|
|
}
|
|
}
|
|
.btn-more {
|
|
padding: 1px 3px;
|
|
border-radius: 2px;
|
|
line-height: 1;
|
|
}
|
|
.btn-danger {
|
|
.button-variant(#d66, #fdd, #fdd);
|
|
}
|
|
|
|
// Add to Bootstrap's mixin to make some general changes
|
|
.button-variant(@color; @background; @border) {
|
|
&:hover,
|
|
&:focus,
|
|
&.focus,
|
|
&:active,
|
|
&.active,
|
|
.open > .dropdown-toggle& {
|
|
background-color: darken(@background, 5%);
|
|
}
|
|
&.active {
|
|
.box-shadow(none);
|
|
}
|
|
}
|
|
|
|
// Little round icon buttons
|
|
.btn-icon.btn-sm {
|
|
border-radius: 12px;
|
|
height: 24px;
|
|
width: 24px;
|
|
text-align: center;
|
|
padding: 3px 0;
|
|
|
|
& .label, & .icon-caret {
|
|
display: none;
|
|
}
|
|
& .fa-ellipsis-v {
|
|
font-size: 17px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
// Buttons that blend into the background
|
|
.btn-naked {
|
|
background: transparent;
|
|
&:hover {
|
|
background: @fl-body-control-bg;
|
|
}
|
|
}
|
|
|
|
.btn-rounded {
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.back-button {
|
|
& .back {
|
|
z-index: 3 !important; // z-index of an active .btn-group .btn is 2
|
|
border-radius: @border-radius-base !important;
|
|
.transition(border-radius 0.2s);
|
|
}
|
|
& .pin {
|
|
opacity: 0;
|
|
margin-left: -36px !important;
|
|
.transition(~"opacity 0.2s, margin-left 0.2s");
|
|
|
|
&:not(.active) .fa {
|
|
.rotate(45deg);
|
|
}
|
|
}
|
|
@media @desktop-hd {
|
|
&.active {
|
|
& .back {
|
|
border-radius: @border-radius-base 0 0 @border-radius-base !important;
|
|
}
|
|
& .pin {
|
|
opacity: 1;
|
|
margin-left: 1px !important;
|
|
}
|
|
}
|
|
}
|
|
}
|