You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toast.css 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @charset "UTF-8";
  2. /**
  3. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  4. *
  5. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  6. *
  7. * @license GNU AGPL version 3 or any later version
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. /**
  24. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  25. *
  26. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  27. *
  28. * @license GNU AGPL version 3 or any later version
  29. *
  30. * This program is free software: you can redistribute it and/or modify
  31. * it under the terms of the GNU Affero General Public License as
  32. * published by the Free Software Foundation, either version 3 of the
  33. * License, or (at your option) any later version.
  34. *
  35. * This program is distributed in the hope that it will be useful,
  36. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  37. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  38. * GNU Affero General Public License for more details.
  39. *
  40. * You should have received a copy of the GNU Affero General Public License
  41. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  42. *
  43. */
  44. /**
  45. * @see core/src/icons.js
  46. */
  47. /**
  48. * SVG COLOR API
  49. *
  50. * @param string $icon the icon filename
  51. * @param string $dir the icon folder within /core/img if $core or app name
  52. * @param string $color the desired color in hexadecimal
  53. * @param int $version the version of the file
  54. * @param bool [$core] search icon in core
  55. *
  56. * @returns A background image with the url to the set to the requested icon.
  57. */
  58. .toastify.toast {
  59. min-width: 200px;
  60. background: none;
  61. background-color: var(--color-main-background);
  62. color: var(--color-main-text);
  63. box-shadow: 0 0 6px 0 var(--color-box-shadow);
  64. padding: 12px;
  65. padding-right: 34px;
  66. margin-top: 45px;
  67. position: fixed;
  68. z-index: 9000;
  69. border-radius: var(--border-radius);
  70. }
  71. .toastify.toast .toast-close {
  72. position: absolute;
  73. top: 0;
  74. right: 0;
  75. width: 38px;
  76. opacity: 0.4;
  77. padding: 12px;
  78. /* $dir is the app name, so we add this to the icon var to avoid conflicts between apps */
  79. background-image: var(--icon-close-dark);
  80. background-position: center;
  81. background-repeat: no-repeat;
  82. text-indent: 200%;
  83. white-space: nowrap;
  84. overflow: hidden;
  85. }
  86. .toastify.toast .toast-close:hover, .toastify.toast .toast-close:focus, .toastify.toast .toast-close:active {
  87. cursor: pointer;
  88. opacity: 1;
  89. }
  90. .toastify.toastify-top {
  91. right: 10px;
  92. }
  93. .toast-error {
  94. border-left: 3px solid var(--color-error);
  95. }
  96. .toast-info {
  97. border-left: 3px solid var(--color-primary);
  98. }
  99. .toast-warning {
  100. border-left: 3px solid var(--color-warning);
  101. }
  102. .toast-success {
  103. border-left: 3px solid var(--color-success);
  104. }
  105. /*# sourceMappingURL=toast.css.map */