mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
First pass new notification component
This commit is contained in:
parent
3e6cf30cfd
commit
2036552c76
2 changed files with 52 additions and 5 deletions
|
@ -1,2 +1,49 @@
|
||||||
/* Notifications
|
/* Notifications
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
.gh-notification {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 20px;
|
||||||
|
left: 20px;
|
||||||
|
display: flex;
|
||||||
|
padding: 4px;
|
||||||
|
width: 220px;
|
||||||
|
border: #e1e1e1 1px solid;
|
||||||
|
background: rgba(255,255,255,0.93);
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: rgba(0,0,0,0.06) 0 1px 7px;
|
||||||
|
color: #828282;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-notification-content {
|
||||||
|
flex-grow: 1;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-radius: 3px;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-notification:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-notification:hover .gh-notification-content {
|
||||||
|
background: color(var(--blue) lightness(+34%));
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-notification-close {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 6px 6px 5px 5px;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 4px 0 4px;
|
||||||
|
font-size: 7px;
|
||||||
|
line-height: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-notification-close:hover {
|
||||||
|
background: #fff;
|
||||||
|
color: var(--red);
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<section class="js-notification {{typeClass}}">
|
<article class="gh-notification js-notification {{typeClass}}">
|
||||||
<span class="notification-message">
|
<div class="gh-notification-content">
|
||||||
{{message.message}}
|
{{message.message}}
|
||||||
</span>
|
</div>
|
||||||
<button class="close icon-x" {{action "closeNotification"}}><span class="hidden">Close</span></button>
|
<button class="gh-notification-close icon-x" {{action "closeNotification"}}><span class="hidden">Close</span></button>
|
||||||
</section>
|
</article>
|
||||||
|
|
Loading…
Add table
Reference in a new issue