Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

toast.css 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. :root {
  2. }
  3. /*~
  4. name: Toast
  5. category: Toast
  6. markup: |
  7. <div class="toast">
  8. <div class="toast__message">Message Message Message Message Message Message</div>
  9. <button class="toast__button">ACTION</button>
  10. </div>
  11. */
  12. .toast {
  13. @apply(--reset-font);
  14. position: absolute;
  15. z-index: 2;
  16. left: 8px;
  17. right: 8px;
  18. bottom: 0;
  19. margin: 8px 0;
  20. border-radius: 8px;
  21. background-color: var(--toast-background-color);
  22. display: flex;
  23. min-height: 48px;
  24. line-height: 1.5;
  25. box-sizing: border-box;
  26. padding: 16px 16px;
  27. }
  28. .toast__message {
  29. font-size: 14px;
  30. color: var(--toast-text-color);
  31. flex-grow: 1;
  32. text-align: left;
  33. margin: 0 16px 0 0;
  34. white-space: normal;
  35. }
  36. .toast__button {
  37. font-size: 14px;
  38. color: var(--toast-button-text-color);
  39. flex-grow: 0;
  40. appearance: none;
  41. border: none;
  42. background-color: transparent;
  43. cursor: default;
  44. text-transform: uppercase;
  45. }
  46. .toast__button:focus {
  47. outline: none;
  48. }
  49. .toast__button:active {
  50. opacity: 0.4;
  51. }
  52. /*~
  53. name: Material Toast
  54. category: Toast
  55. markup: |
  56. <div class="toast toast--material">
  57. <div class="toast__message toast--material__message">Message Message Message Message Message Message</div>
  58. <button class="toast__button toast--material__button">ACTION</button>
  59. </div>
  60. */
  61. .toast--material {
  62. left: 0;
  63. right: 0;
  64. bottom: 0;
  65. margin: 0;
  66. background-color: var(--material-toast-background-color);
  67. border-radius: 0;
  68. padding: 16px 24px;
  69. }
  70. .toast--material__message {
  71. @apply(--material-font);
  72. margin: 0 24px 0 0;
  73. }
  74. .toast--material__button {
  75. @apply(--material-font);
  76. color: var(--material-toast-button-text-color);
  77. }