1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 10:55:47 +02:00

Rename to Flags, tweak flag controls

- Display post "destructiveControls" in flag instead of custom buttons
- Make flags more versatile/extensible
- Delete associated flags when a post is deleted

Uninstall the Reports extension before installing.
This commit is contained in:
Toby Zerner
2015-09-22 18:14:33 +09:30
parent 8da417c5b5
commit a1e01938ef
36 changed files with 390 additions and 401 deletions

View File

@@ -1,34 +1,32 @@
.Post--reported {
.Post--flagged {
padding-top: 0 !important;
border: 2px solid @primary-color;
}
.Post-header .item-reported {
.Post-header .item-flagged {
display: block;
margin: 0;
}
.Post-reported {
.Post-flagged {
background: @primary-color;
margin-top: -2px;
margin-bottom: 20px;
margin-left: -22px;
margin-right: -22px;
@media @tablet-up {
margin-left: -22px - 85px;
text-align: right;
}
padding: 10px;
border-radius: @border-radius @border-radius 0 0;
overflow: hidden;
.light-contents(@color: @body-bg; @control-color: @body-bg);
@media @tablet-up {
margin-left: -22px - 85px;
}
&, a {
color: @body-bg !important;
}
}
.Post-reported-summary {
.Post-flagged-flags {
@media @tablet-up {
float: left;
}
@@ -38,16 +36,21 @@
text-align: left;
font-weight: bold;
}
.Post-reported-detail {
.Post-flagged-detail {
font-size: 12px;
margin-top: 5px;
margin-left: 10px;
font-weight: normal;
}
.Post-reported-actions .Button {
.Post-flagged-actions {
@media @tablet-up {
float: right;
}
}
.Post-flagged-actions .Button {
margin-left: 5px;
}
.ReportsDropdown .Dropdown-toggle {
.FlagsDropdown .Dropdown-toggle {
.Button-label,
.Button-caret {
display: none;