gitea源码

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .toastify {
  2. color: var(--color-white);
  3. position: fixed;
  4. opacity: 0;
  5. transition: all .2s ease;
  6. z-index: var(--z-index-toast);
  7. border-radius: var(--border-radius);
  8. box-shadow: 0 8px 24px var(--color-shadow);
  9. display: flex;
  10. max-width: 50vw;
  11. min-width: 300px;
  12. padding: 4px;
  13. }
  14. .toastify.on {
  15. opacity: 1;
  16. }
  17. .toast-body {
  18. flex: 1;
  19. padding: 5px 0;
  20. overflow-wrap: anywhere;
  21. }
  22. .toast-close {
  23. border-radius: var(--border-radius);
  24. width: 30px;
  25. height: 30px;
  26. justify-content: center;
  27. }
  28. .toast-icon {
  29. display: inline-flex;
  30. width: 30px;
  31. height: 30px;
  32. align-items: center;
  33. justify-content: center;
  34. }
  35. .toast-duplicate-number::before {
  36. content: "(";
  37. }
  38. .toast-duplicate-number {
  39. display: inline-block;
  40. margin-right: 5px;
  41. user-select: none;
  42. }
  43. .toast-duplicate-number::after {
  44. content: ")";
  45. }
  46. .toast-close:hover {
  47. background: var(--color-hover);
  48. }
  49. .toast-close:active {
  50. background: var(--color-active);
  51. }
  52. .toastify-right {
  53. right: 15px;
  54. }
  55. .toastify-left {
  56. left: 15px;
  57. }
  58. .toastify-top {
  59. top: -150px;
  60. }
  61. .toastify-bottom {
  62. bottom: -150px;
  63. }
  64. .toastify-center {
  65. margin-left: auto;
  66. margin-right: auto;
  67. left: 0;
  68. right: 0;
  69. }
  70. @media (max-width: 360px) {
  71. .toastify-right, .toastify-left {
  72. margin-left: auto;
  73. margin-right: auto;
  74. left: 0;
  75. right: 0;
  76. max-width: fit-content;
  77. }
  78. }