Group up existing components into elements

This commit is contained in:
2019-11-19 16:12:52 +09:00
parent dc4fc1410d
commit c542bcdcd6
77 changed files with 291 additions and 349 deletions

View File

@ -0,0 +1,5 @@
component StatusMessage
#status-message.fade.fade-out
#status-message-text
a.status-message-action.action(href="#", data-trigger="click", data-action="closeStatusMessage", aria-label="Close status message")
RawIcon("close")

View File

@ -0,0 +1,33 @@
#status-message
horizontal
position fixed
bottom 0
left 0
width 100%
padding 0.5rem content-padding
pointer-events none
z-index 1000
&.fade-out
z-index 1
#status-message-text
flex 1
text-align center
line-height content-line-height
.status-message-action
color white !important
pointer-events auto !important
display flex
justify-content center
align-items center
margin-left 0.5rem
.error-message
color white
background-color hsl(0, 75%, 50%)
.info-message
color white
background tab-active-background