forked from NodeBB/NodeBB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ACP alerts to use same system as client (NodeBB#6396)
* Fix PostCSS warning message * Fix disconnect indicator styling Would increase size of quick actions when active * Use same alert system in ACP and client - Remove snackbar - Add styling and fix template for ACP (based on Persona)
- Loading branch information
Showing
9 changed files
with
91 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,95 @@ | ||
.alert-window { | ||
position:fixed; | ||
width:300px; | ||
z-index:10; | ||
.toaster-alert { | ||
.pointer; | ||
} | ||
position: fixed; | ||
width: 300px; | ||
z-index: 10002; | ||
|
||
right: 20px; | ||
bottom: 0px; | ||
|
||
.alert { | ||
img { | ||
float:left; | ||
padding-right:10px; | ||
.close { | ||
color: inherit; | ||
} | ||
} | ||
} | ||
|
||
.alert-left-top { | ||
left:20px; | ||
top:70px; | ||
} | ||
&::before { | ||
position: relative; | ||
top: -15px; | ||
left: -15px; | ||
display: block; | ||
height: 2px; | ||
width: 0; | ||
transition: inherit; | ||
} | ||
|
||
.alert-left-bottom { | ||
left:20px; | ||
bottom:20px; | ||
} | ||
&.alert-info::before { | ||
background-color: @brand-info; | ||
} | ||
|
||
.alert-right-top { | ||
right:20px; | ||
top:70px; | ||
} | ||
&.alert-warning::before { | ||
background-color: @brand-warning; | ||
} | ||
|
||
&.alert-success::before { | ||
background-color: @brand-success; | ||
} | ||
|
||
.alert-right-bottom { | ||
right:20px; | ||
bottom:20px; | ||
&.alert-danger::before { | ||
background-color: @brand-danger; | ||
} | ||
|
||
&.animate { | ||
&.alert-info::before { | ||
background-color: lighten(@brand-info, 25%); | ||
} | ||
|
||
&.alert-warning::before { | ||
background-color: lighten(@brand-warning, 25%); | ||
} | ||
|
||
&.alert-success::before { | ||
background-color: lighten(@brand-success, 25%); | ||
} | ||
|
||
&.alert-danger::before { | ||
background-color: lighten(@brand-danger, 25%); | ||
} | ||
|
||
&::before { | ||
width: ~"calc(100% + 50px)"; | ||
} | ||
} | ||
|
||
background-color: white; | ||
border: 0; | ||
border-left: 5px solid !important; | ||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25), 0px 2px 10px 0px rgba(0, 0, 0, 0.25); | ||
|
||
strong { | ||
text-transform: uppercase; | ||
} | ||
|
||
p { | ||
padding: 10px 0px 0px; | ||
} | ||
|
||
&.alert-info { | ||
color: @brand-info; | ||
border-color: @brand-info; | ||
} | ||
|
||
&.alert-warning { | ||
color: @brand-warning; | ||
border-color: @brand-warning; | ||
} | ||
|
||
&.alert-success { | ||
color: @brand-success; | ||
border-color: @brand-success; | ||
} | ||
|
||
&.alert-danger { | ||
color: @brand-danger; | ||
border-color: @brand-danger; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters