File size: 2,989 Bytes
fea727b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
@import '@radix-ui/colors/blackA.css';
@import '@radix-ui/colors/green.css';
@import '@radix-ui/colors/mauve.css';
@import '@radix-ui/colors/slate.css';
@import '@radix-ui/colors/violet.css';
.ToastViewport {
font-family: var(--openpose-editor-font-family);
--viewport-padding: 25px;
position: fixed;
bottom: 0;
right: 0;
display: flex;
flex-direction: column;
padding: var(--viewport-padding);
gap: 10px;
width: 390px;
max-width: 100vw;
margin: 0;
list-style: none;
z-index: 2147483647;
outline: none;
}
.ToastRoot {
background-color: white;
border-radius: 6px;
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px,
hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
padding: 15px;
display: grid;
grid-template-areas: 'title action' 'description action';
grid-template-columns: auto max-content;
column-gap: 15px;
align-items: center;
}
.ToastRoot[data-state='open'] {
animation: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ToastRoot[data-state='closed'] {
animation: hide 100ms ease-in;
}
.ToastRoot[data-swipe='move'] {
transform: translateX(var(--radix-toast-swipe-move-x));
}
.ToastRoot[data-swipe='cancel'] {
transform: translateX(0);
transition: transform 200ms ease-out;
}
.ToastRoot[data-swipe='end'] {
animation: swipeOut 100ms ease-out;
}
@keyframes hide {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes slideIn {
from {
transform: translateX(calc(100% + var(--viewport-padding)));
}
to {
transform: translateX(0);
}
}
@keyframes swipeOut {
from {
transform: translateX(var(--radix-toast-swipe-end-x));
}
to {
transform: translateX(calc(100% + var(--viewport-padding)));
}
}
.ToastTitle {
grid-area: title;
margin-bottom: 5px;
font-weight: 500;
color: var(--slate12);
font-size: 15px;
}
.ToastDescription {
grid-area: description;
margin: 0;
color: var(--slate11);
font-size: 13px;
line-height: 1.3;
}
.ToastAction {
grid-area: action;
}
.Button {
all: unset;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 4px;
font-weight: 500;
}
.Button.small {
font-size: 12px;
padding: 0 10px;
line-height: 25px;
height: 25px;
}
.Button.large {
font-size: 15px;
padding: 0 15px;
line-height: 35px;
height: 35px;
}
.Button.violet {
background-color: white;
color: var(--violet11);
box-shadow: 0 2px 10px var(--blackA7);
}
.Button.violet:hover {
background-color: var(--mauve3);
}
.Button.violet:focus {
box-shadow: 0 0 0 2px black;
}
.Button.green {
background-color: var(--green2);
color: var(--green11);
box-shadow: inset 0 0 0 1px var(--green7);
}
.Button.green:hover {
box-shadow: inset 0 0 0 1px var(--green8);
}
.Button.green:focus {
box-shadow: 0 0 0 2px var(--green8);
}
|