_category-buttons.scss
3 weeks ago
_controls.scss
1 year ago
_custom-tooltip.scss
2 years ago
_editor-selector.scss
2 years ago
_error.scss
2 years ago
_features_list.scss
1 year ago
_filters.scss
3 weeks ago
_form.scss
2 years ago
_general.scss
2 weeks ago
_header.scss
2 years ago
_import.scss
2 years ago
_media-queries.scss
2 years ago
_mock.scss
2 years ago
_progress-bar.scss
2 years ago
_search.scss
2 years ago
_site-settings.scss
1 year ago
_starter-site-card.scss
2 weeks ago
_toast.scss
2 weeks ago
_vars.scss
2 years ago
_toast.scss
119 lines
| 1 | .ob-toast { |
| 2 | position: fixed; |
| 3 | bottom: 24px; |
| 4 | right: 24px; |
| 5 | z-index: 100; |
| 6 | display: flex; |
| 7 | align-items: flex-start; |
| 8 | gap: 10px; |
| 9 | max-width: 340px; |
| 10 | padding: 12px 14px; |
| 11 | border-radius: $button-radius; |
| 12 | border: 1px solid $border; |
| 13 | background: #fff; |
| 14 | box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); |
| 15 | opacity: 0; |
| 16 | transform: translateY(12px); |
| 17 | transition: opacity 0.35s ease, transform 0.35s ease; |
| 18 | pointer-events: none; |
| 19 | } |
| 20 | |
| 21 | .ob-toast.show { |
| 22 | opacity: 1; |
| 23 | transform: translateY(0); |
| 24 | pointer-events: auto; |
| 25 | } |
| 26 | |
| 27 | .ob-toast-icon { |
| 28 | flex: 0 0 auto; |
| 29 | line-height: 0; |
| 30 | margin-top: 1px; |
| 31 | |
| 32 | svg { |
| 33 | width: 24px; |
| 34 | height: 24px; |
| 35 | display: block; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | .ob-toast-content { |
| 40 | flex: 1 1 auto; |
| 41 | min-width: 0; |
| 42 | } |
| 43 | |
| 44 | .ob-toast-heading { |
| 45 | margin: 0; |
| 46 | color: $main-text; |
| 47 | font-size: 13px; |
| 48 | line-height: 18px; |
| 49 | font-weight: 600; |
| 50 | } |
| 51 | |
| 52 | .ob-toast-message { |
| 53 | margin: 2px 0 0; |
| 54 | color: $secondary-text; |
| 55 | font-size: 13px; |
| 56 | line-height: 18px; |
| 57 | font-weight: 400; |
| 58 | |
| 59 | a { |
| 60 | color: $primary; |
| 61 | font-weight: 600; |
| 62 | text-decoration: none; |
| 63 | white-space: nowrap; |
| 64 | |
| 65 | &:hover, |
| 66 | &:focus-visible { |
| 67 | text-decoration: underline; |
| 68 | } |
| 69 | |
| 70 | &:focus-visible { |
| 71 | outline: 2px solid $primary; |
| 72 | outline-offset: 2px; |
| 73 | border-radius: 2px; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | .ob-toast-close { |
| 79 | flex: 0 0 auto; |
| 80 | margin: -4px -4px 0 2px; |
| 81 | padding: 4px; |
| 82 | background: none; |
| 83 | border: none; |
| 84 | line-height: 1; |
| 85 | font-size: 16px; |
| 86 | color: $secondary-text; |
| 87 | cursor: pointer; |
| 88 | border-radius: 4px; |
| 89 | |
| 90 | &:hover { |
| 91 | color: $main-text; |
| 92 | } |
| 93 | |
| 94 | &:focus-visible { |
| 95 | outline: 2px solid $primary; |
| 96 | outline-offset: 1px; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | @media (prefers-reduced-motion: reduce) { |
| 101 | .ob-toast { |
| 102 | transition: opacity 0.2s ease; |
| 103 | transform: none; |
| 104 | } |
| 105 | |
| 106 | .ob-toast.show { |
| 107 | transform: none; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | @media (max-width: #{$tablet}) { |
| 112 | .ob-toast { |
| 113 | left: 16px; |
| 114 | right: 16px; |
| 115 | bottom: 16px; |
| 116 | max-width: none; |
| 117 | } |
| 118 | } |
| 119 |