mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 15:51:46 +02:00
refactor: remove unneeded mixin, use bs5 classes and inline style as needed
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
@import "./manage/tags";
|
||||
@import "./manage/groups";
|
||||
@import "./appearance/customise";
|
||||
@import "./appearance/themes";
|
||||
@import "./appearance/skins";
|
||||
@import "./extend/plugins";
|
||||
@import "./extend/rewards";
|
||||
@import "./extend/widgets";
|
||||
@@ -275,7 +273,7 @@ form small {
|
||||
}
|
||||
|
||||
#save {
|
||||
@include floating-button;
|
||||
transition: background-color 500ms linear;
|
||||
|
||||
&.saved {
|
||||
background-color: $success;
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#skins > [data-type] button {
|
||||
@include floating-button;
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
#revert_theme {
|
||||
@include floating-button;
|
||||
}
|
||||
@@ -44,9 +44,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
#new {
|
||||
@include floating-button;
|
||||
|
||||
bottom: calc(64px + $spacer);
|
||||
background-color: $success;
|
||||
.page-admin-rewards {
|
||||
#new {
|
||||
bottom: calc(64px + $spacer);
|
||||
background-color: $success;
|
||||
}
|
||||
}
|
||||
@@ -96,10 +96,4 @@ div.categories {
|
||||
min-width: 150px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-admin-categories {
|
||||
[data-action="create"] {
|
||||
@include floating-button;
|
||||
}
|
||||
}
|
||||
@@ -39,8 +39,4 @@
|
||||
#group-icon-preview.fa-nbb-none {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#create {
|
||||
@include floating-button;
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#discard {
|
||||
@include floating-button;
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,4 @@
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@mixin floating-button {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
transition: background-color 500ms linear;
|
||||
|
||||
i {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
|
||||
<div data-type="bootswatch" data-theme="" data-css="">
|
||||
<button data-action="use" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button data-action="use" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="material-icons">undo</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="revert_theme" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button id="revert_theme" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="material-icons">undo</i>
|
||||
</button>
|
||||
@@ -72,7 +72,7 @@
|
||||
</div>
|
||||
|
||||
<div class="floating-button">
|
||||
<button id="new" class="btn btn-primary position-fixed end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button id="new" class="btn btn-primary position-fixed end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="fa fa-fw fa-plus"></i>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
<div>
|
||||
<!-- IMPORT partials/paginator.tpl -->
|
||||
</div>
|
||||
<button data-action="create" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button data-action="create" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="fa fa-fw fa-plus"></i>
|
||||
</button>
|
||||
@@ -62,6 +62,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="create" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button id="create" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="fa fa-fw fa-plus"></i>
|
||||
</button>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
<div class="floating-button">
|
||||
<button id="discard" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button id="discard" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="fa fa-rotate-left"></i>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<button id="save" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle" type="button">
|
||||
<button id="save" class="btn btn-primary position-fixed bottom-0 end-0 px-3 py-2 mb-4 me-4 rounded-circle fs-4" type="button" style="width: 64px; height: 64px;">
|
||||
<i class="fa fa-fw fas fa-floppy-disk"></i>
|
||||
</button>
|
||||
Reference in New Issue
Block a user