Update snackbar styles
This commit is contained in:
parent
5ca6757b44
commit
04baaf941b
@ -1,45 +1,29 @@
|
|||||||
/* TODO: Create tailwind styles for this component */
|
/* TODO: Create tailwind styles for this component */
|
||||||
.sb-topLeft {
|
.sb-topLeft {
|
||||||
top: 0;
|
@apply top-0 left-0 bottom-auto right-auto;
|
||||||
bottom: auto;
|
|
||||||
left: 0;
|
|
||||||
right: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-topCenter {
|
.sb-topCenter {
|
||||||
left: 50%;
|
|
||||||
top: 0;
|
|
||||||
bottom: auto;
|
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
@apply top-0 bottom-auto left-1/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-topRight {
|
.sb-topRight {
|
||||||
top: 0;
|
@apply right-0 top-0 left-auto bottom-auto;
|
||||||
bottom: auto;
|
|
||||||
left: auto;
|
|
||||||
right: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-bottomLeft {
|
.sb-bottomLeft {
|
||||||
top: auto;
|
@apply right-auto left-0 bottom-0 top-auto;
|
||||||
bottom: 0px;
|
|
||||||
left: 0px;
|
|
||||||
right: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-bottomCenter {
|
.sb-bottomCenter {
|
||||||
left: 50%;
|
@apply top-auto bottom-0 left-1/2;
|
||||||
bottom: 0;
|
|
||||||
top: auto;
|
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-bottomRight {
|
.sb-bottomRight {
|
||||||
top: auto;
|
|
||||||
bottom: 0px;
|
|
||||||
left: auto;
|
|
||||||
right: 0px;
|
|
||||||
margin: 10px 0 0;
|
margin: 10px 0 0;
|
||||||
|
@apply top-auto bottom-0 left-auto right-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-topLeft .sb-item,
|
.sb-topLeft .sb-item,
|
||||||
@ -55,20 +39,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sb-closeBtn {
|
.sb-closeBtn {
|
||||||
height: 20px;
|
|
||||||
opacity: 1;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: 2px;
|
|
||||||
text-align: center;
|
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
cursor: pointer;
|
height: 20px;
|
||||||
position: absolute;
|
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
transition: all 0.3s ease;
|
@apply overflow-hidden opacity-100 rounded-full p-1 bg-white cursor-pointer absolute text-center duration-300 transition-all ease-in-out;
|
||||||
background: rgba(255, 255, 255, 0.6);
|
|
||||||
border-radius: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-closeBtn:hover {
|
.sb-closeBtn:hover {
|
||||||
@ -76,31 +52,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sb-closeIcon {
|
.sb-closeIcon {
|
||||||
display: block;
|
@apply w-full relative overflow-hidden h-full block leading-none;
|
||||||
font-size: 0;
|
|
||||||
height: 100%;
|
|
||||||
line-height: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-closeIcon:after,
|
.sb-closeIcon:after,
|
||||||
.sb-closeIcon:before {
|
.sb-closeIcon:before {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
display: block;
|
|
||||||
height: 2px;
|
height: 2px;
|
||||||
transition: all 0.3s ease;
|
|
||||||
width: 12px;
|
width: 12px;
|
||||||
background-color: #222;
|
@apply duration-300 transition-all ease-in-out block bg-black opacity-100 absolute;
|
||||||
opacity: 1;
|
|
||||||
position: absolute;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-closeIcon:before {
|
.sb-closeIcon:before {
|
||||||
left: 4px;
|
left: 4px;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
|
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
transform-origin: 0px 50%;
|
transform-origin: 0px 50%;
|
||||||
}
|
}
|
||||||
@ -113,46 +78,38 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sb-title {
|
.sb-title {
|
||||||
font-size: 16px;
|
@apply break-normal text-lg font-bold;
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-message {
|
.sb-message {
|
||||||
font-size: 14px;
|
@apply break-normal text-base;
|
||||||
word-break: normal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sb-item {
|
.sb-item {
|
||||||
position: relative;
|
|
||||||
transition: height 300ms ease;
|
|
||||||
animation: fadein 1s;
|
animation: fadein 1s;
|
||||||
padding: 20px;
|
|
||||||
color: white;
|
|
||||||
overflow: hidden;
|
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12),
|
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12),
|
||||||
0 3px 5px -1px rgba(0, 0, 0, 0.14);
|
0 3px 5px -1px rgba(0, 0, 0, 0.14);
|
||||||
|
@apply relative p-5 text-white overflow-hidden rounded-md transition-height ease-in-out duration-300;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadein {
|
@keyframes fadein {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
|
||||||
top: 30px;
|
top: 30px;
|
||||||
|
@apply opacity-0;
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
@apply opacity-100 top-0;
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Internet Explorer */
|
/* Internet Explorer */
|
||||||
@-ms-keyframes fadein {
|
@-ms-keyframes fadein {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
|
||||||
top: 30px;
|
top: 30px;
|
||||||
|
@apply opacity-0;
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
@apply opacity-100;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -329,6 +329,7 @@ module.exports = {
|
|||||||
auto: 'auto',
|
auto: 'auto',
|
||||||
full: '100%',
|
full: '100%',
|
||||||
viewport: '0.5rem',
|
viewport: '0.5rem',
|
||||||
|
'1/2': '50%',
|
||||||
'viewport-scrollbar': '1.3rem'
|
'viewport-scrollbar': '1.3rem'
|
||||||
},
|
},
|
||||||
letterSpacing: {
|
letterSpacing: {
|
||||||
@ -683,6 +684,7 @@ module.exports = {
|
|||||||
transitionProperty: {
|
transitionProperty: {
|
||||||
none: 'none',
|
none: 'none',
|
||||||
all: 'all',
|
all: 'all',
|
||||||
|
'height': 'height',
|
||||||
default:
|
default:
|
||||||
'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
|
'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
|
||||||
colors: 'background-color, border-color, color, fill, stroke',
|
colors: 'background-color, border-color, color, fill, stroke',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user