alertify.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .alertify-logs > * {
  2. padding: 12px 24px;
  3. color: #fff;
  4. border-radius: 0.286rem;
  5. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); }
  6. .alertify-logs > *, .alertify-logs > *.default {
  7. background: rgba(0, 0, 0, 0.8); }
  8. .alertify-logs > *.error {
  9. background: #ff4c52; }
  10. .alertify-logs > *.success {
  11. background: #11c26d; }
  12. .alertify {
  13. position: fixed;
  14. top: 0;
  15. right: 0;
  16. bottom: 0;
  17. left: 0;
  18. z-index: 1700;
  19. width: 100%;
  20. height: 100%;
  21. background-color: rgba(0, 0, 0, 0.3); }
  22. .alertify.hide {
  23. pointer-events: none;
  24. opacity: 0; }
  25. .alertify, .alertify.show, .alertify.hide {
  26. box-sizing: border-box;
  27. transition: all 0.33s cubic-bezier(0.25, 0.8, 0.25, 1); }
  28. .alertify, .alertify * {
  29. box-sizing: border-box; }
  30. .alertify .dialog {
  31. padding: 12px; }
  32. .alertify .dialog, .alertify .alert {
  33. position: relative;
  34. top: 50%;
  35. width: 100%;
  36. margin: 0 auto;
  37. -webkit-transform: translateY(-50%);
  38. transform: translateY(-50%); }
  39. .alertify .dialog > *, .alertify .alert > * {
  40. width: 400px;
  41. max-width: 95%;
  42. padding: 12px;
  43. margin: 0 auto;
  44. text-align: center;
  45. background: #fff;
  46. border-radius: 0.286rem;
  47. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  48. box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.14), 0 4px 5px 0 rgba(0, 0, 0, 0.098), 0 1px 10px 0 rgba(0, 0, 0, 0.084); }
  49. .alertify .dialog .msg, .alertify .alert .msg {
  50. padding: 12px;
  51. margin: 0;
  52. margin-bottom: 12px;
  53. text-align: left; }
  54. .alertify .dialog input, .alertify .alert input {
  55. width: 100%;
  56. height: 2.573rem;
  57. padding: 0.429rem 1rem;
  58. margin-bottom: 15px;
  59. font-size: 1rem;
  60. line-height: 1.57142857;
  61. color: #76838f;
  62. background-color: #fff;
  63. background-image: none;
  64. border: 1px solid #e4eaec;
  65. border-radius: 0.215rem;
  66. box-shadow: none;
  67. transition: box-shadow .25s linear, border .25s linear, color .25s linear, background-color .25s linear; }
  68. .alertify .dialog input.focus, .alertify .dialog input:focus, .alertify .alert input.focus, .alertify .alert input:focus {
  69. border-color: #3e8ef7;
  70. box-shadow: none; }
  71. .alertify .dialog nav, .alertify .alert nav {
  72. text-align: right; }
  73. .alertify .dialog nav .btn, .alertify .alert nav .btn {
  74. margin: 4px 5px; }
  75. .alertify-logs {
  76. position: fixed;
  77. right: 16px;
  78. bottom: 16px;
  79. z-index: 1699; }
  80. .alertify-logs > * {
  81. position: relative;
  82. box-sizing: border-box;
  83. float: right;
  84. margin-top: 10px;
  85. clear: both;
  86. transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  87. -webkit-transform: translate3d(0, 0, 0);
  88. transform: translate3d(0, 0, 0);
  89. -webkit-backface-visibility: hidden;
  90. backface-visibility: hidden;
  91. -webkit-perspective: 1000;
  92. perspective: 1000; }
  93. .alertify-logs > *.show {
  94. right: 0;
  95. opacity: 1; }
  96. .alertify-logs > *, .alertify-logs > *.hide {
  97. right: -100%;
  98. opacity: 0; }