_notice.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .notice-widget {
  2. position: absolute;
  3. right: 20px;
  4. top: 20px;
  5. padding: 5px 15px;
  6. border-radius: 4px;
  7. background: fadeOut(lighten(@tab-hover, 20%), 20%);
  8. transition: all ease .2s;
  9. opacity: 0;
  10. color: white;
  11. z-index: 101;
  12. transform: translate3d(0, -50px, 0);
  13. p {
  14. margin: 5px 0;
  15. font-size: 12px;
  16. }
  17. &.show {
  18. transform: translate3d(0, 0, 0);
  19. opacity: 1;
  20. }
  21. &.warn {
  22. background: white url(../images/kmcat_warn.png) 8px 10px no-repeat;
  23. color: rgb(255, 146, 0);
  24. box-shadow: none;
  25. padding-left: 35px;
  26. border: 1px solid #FFB200;
  27. }
  28. }
  29. #content-wrapper .error-dialog {
  30. border-radius: 4px;
  31. .fui-dialog-head {
  32. background: #DC0000;
  33. height: 40px;
  34. line-height: 40px;
  35. padding: 0 15px;
  36. .fui-close-button {
  37. top: 10px;
  38. }
  39. }
  40. .fui-dialog-body {
  41. .error-content {
  42. background: url(../images/kmcat_sad.png) no-repeat;
  43. padding-left: 80px;
  44. h3 {
  45. font-size: 16px;
  46. font-weight: normal;
  47. margin: 0;
  48. }
  49. p {
  50. margin: 10px 0;
  51. height: auto;
  52. }
  53. min-height: 80px;
  54. }
  55. .error-detail {
  56. position: relative;
  57. a.expander {
  58. display: block;
  59. &:before {
  60. .triangle-left(#333, 5px, 10px);
  61. display: inline-block;
  62. margin-right: 3px;
  63. }
  64. margin: 8px 0;
  65. cursor: pointer;
  66. &:hover {
  67. text-decoration: underline;
  68. }
  69. }
  70. &.expanded {
  71. .error-detail-wrapper {
  72. display: block;
  73. overflow: hidden;
  74. }
  75. a.expander:before {
  76. .triangle-top(#333, 10px, 5px);
  77. margin-right: 3px;
  78. top: 3px;
  79. position: relative;
  80. display: inline-block;
  81. }
  82. }
  83. &:before {
  84. display: block;
  85. content: '反馈详细信息有助于开发人员定位问题';
  86. position: absolute;
  87. top: 8px;
  88. right: 0;
  89. font-size: 12px;
  90. color: #AAA;
  91. }
  92. .error-detail-wrapper {
  93. display: none;
  94. textarea {
  95. box-sizing: border-box;
  96. width: 100%;
  97. height: 200px;
  98. border: 1px solid #EEE;
  99. background: #fcfcfc;
  100. outline: none;
  101. padding: 6px;
  102. color: #666;
  103. }
  104. .copy-and-feedback {
  105. float: right;
  106. margin-top: 10px;
  107. }
  108. }
  109. }
  110. }
  111. .fui-dialog-foot {
  112. position: static;
  113. padding: 5px 20px;
  114. .fui-button.fui-xdialog-ok-btn {
  115. background: #dc0000;
  116. margin: 10px 0;
  117. &:hover {
  118. background: #FF7F7F;
  119. }
  120. }
  121. .fui-button.fui-xdialog-cancel-btn {
  122. display: none;
  123. }
  124. }
  125. }