_notice.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. .notices {
  2. position: relative;
  3. border-radius: .125rem;
  4. color: #fff;
  5. margin: 0 1rem;
  6. padding: .3rem 0.5rem .3rem 2rem;
  7. font-size: 0.95rem;
  8. a {
  9. text-decoration: underline;
  10. }
  11. > table {
  12. table-layout:fixed;
  13. width: 100%;
  14. margin: 10px 0;
  15. border-spacing: 0;
  16. }
  17. &.warning {
  18. border-top: 30px solid #ffca28;
  19. background: #fefaf5;
  20. color: #161209;
  21. &::before {
  22. position: absolute;
  23. content: url("data:image/svg+xml,%0A%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#f57f17' d='M 12 3.0292969 C 11.436813 3.0292969 10.873869 3.2917399 10.558594 3.8164062 L 1.7617188 18.451172 C 1.1134854 19.529186 1.94287 21 3.2011719 21 L 20.796875 21 C 22.054805 21 22.886515 19.529186 22.238281 18.451172 L 13.441406 3.8164062 C 13.126131 3.29174 12.563187 3.0292969 12 3.0292969 z M 12 5.2988281 L 20.236328 19 L 3.7636719 19 L 12 5.2988281 z M 11 9 L 11 14 L 13 14 L 13 9 L 11 9 z M 11 16 L 11 18 L 13 18 L 13 16 L 11 16 z'/%3E%3C/svg%3E");
  24. top: -26.5px;
  25. left: 0.4rem;
  26. height: 100%;
  27. }
  28. &::after {
  29. position: absolute;
  30. content: attr(data-title);
  31. font-family: $title-font;
  32. font-weight: bold;
  33. top: -26.5px;
  34. left: 2rem;
  35. height: 100%;
  36. color: #424242;
  37. }
  38. a {
  39. font-weight: bold;
  40. color: rgba(134, 74, 22, 0.995);
  41. @include themify($themes) {
  42. @include on-event {
  43. color: themed('link-hover');
  44. }
  45. }
  46. }
  47. > table {
  48. thead {
  49. background: #f1b37e;
  50. }
  51. th {
  52. color: rgba(134, 74, 22, 0.995);
  53. }
  54. th, td {
  55. padding: 5px 15px;
  56. border: 1px double rgba(166, 106, 54, 0.45);
  57. }
  58. }
  59. p > code, li > code, td > code, code {
  60. padding: 3px 7px;
  61. color: rgba(150, 90, 38, 0.995) !important;
  62. background-color: darken(#fefaf5, 6%) !important;
  63. }
  64. }
  65. &.error {
  66. border-top: 30px solid #d58181;
  67. background: #fbeded;
  68. color: #161209;
  69. &::before {
  70. position: absolute;
  71. content: url("data:image/svg+xml,%0A%3C%3Fxml version='1.0'%3F%3E%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#b71c1c' d='M 5 3 C 3.895 3 3 3.895 3 5 L 3 19 C 3 20.105 3.895 21 5 21 L 19 21 C 20.105 21 21 20.105 21 19 L 21 5 C 21 3.895 20.105 3 19 3 L 5 3 z M 5 5 L 19 5 L 19 19 L 5 19 L 5 5 z M 8.4101562 7 L 7 8.4101562 L 10.589844 12 L 7 15.589844 L 8.4101562 17 L 12 13.410156 L 15.589844 17 L 17 15.589844 L 13.410156 12 L 17 8.4101562 L 15.589844 7 L 12 10.589844 L 8.4101562 7 z'/%3E%3C/svg%3E");
  72. top: -26.5px;
  73. left: 0.4rem;
  74. height: 100%;
  75. }
  76. &::after {
  77. position: absolute;
  78. content: attr(data-title);
  79. font-family: $title-font;
  80. font-weight: bold;
  81. top: -26.5px;
  82. left: 2rem;
  83. height: 100%;
  84. color: #424242;
  85. }
  86. a {
  87. font-weight: bold;
  88. color: rgba(116, 40, 40, 0.995);
  89. @include themify($themes) {
  90. @include on-event {
  91. color: themed('link-hover');
  92. }
  93. }
  94. }
  95. > table {
  96. thead {
  97. background: #d58181;
  98. }
  99. th {
  100. color: rgba(116, 40, 40, 0.995);
  101. }
  102. th, td {
  103. padding: 5px 15px;
  104. border: 1px double rgba(148, 72, 72, 0.45);
  105. }
  106. }
  107. p > code, li > code, td > code, code {
  108. padding: 3px 7px;
  109. color: rgba(132, 56, 56, 0.995) !important;
  110. background-color: darken(#fbeded, 6%) !important;
  111. }
  112. }
  113. &.info {
  114. border-top: 30px solid #6bb1e0;
  115. background: #e6f3fb;
  116. color: #161209;
  117. &::before {
  118. position: absolute;
  119. content: url("data:image/svg+xml,%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#01579b' d='M 12 2 C 6.4889971 2 2 6.4889971 2 12 C 2 17.511003 6.4889971 22 12 22 C 17.511003 22 22 17.511003 22 12 C 22 6.4889971 17.511003 2 12 2 z M 12 4 C 16.430123 4 20 7.5698774 20 12 C 20 16.430123 16.430123 20 12 20 C 7.5698774 20 4 16.430123 4 12 C 4 7.5698774 7.5698774 4 12 4 z M 11 7 L 11 9 L 13 9 L 13 7 L 11 7 z M 11 11 L 11 17 L 13 17 L 13 11 L 11 11 z'/%3E%3C/svg%3E");
  120. top: -26.5px;
  121. left: 0.4rem;
  122. height: 100%;
  123. }
  124. &::after {
  125. position: absolute;
  126. content: attr(data-title);
  127. font-family: $title-font;
  128. font-weight: bold;
  129. top: -26.5px;
  130. left: 2rem;
  131. height: 100%;
  132. color: #424242;
  133. }
  134. a {
  135. font-weight: bold;
  136. color: rgba(31, 87, 125, 0.995);
  137. @include themify($themes) {
  138. @include on-event {
  139. color: themed('link-hover');
  140. }
  141. }
  142. }
  143. > table {
  144. thead {
  145. background: #6bb1e0;
  146. }
  147. th {
  148. color: rgba(31, 87, 125, 0.995);
  149. }
  150. th, td {
  151. padding: 5px 15px;
  152. border: 1px double rgba(63, 119, 157, 0.45);
  153. }
  154. }
  155. p > code, li > code, td > code, code {
  156. padding: 3px 7px;
  157. color: rgba(47, 103, 141, 0.995) !important;
  158. background-color: darken(#e6f3fb, 6%) !important;
  159. }
  160. }
  161. &.success {
  162. border-top: 30px solid #84c578;
  163. background: #e8f7e6;
  164. color: #161209;
  165. &::before {
  166. position: absolute;
  167. content: url("data:image/svg+xml,%0A%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#1b5e20' d='M 12 2 C 6.4889971 2 2 6.4889971 2 12 C 2 17.511003 6.4889971 22 12 22 C 17.511003 22 22 17.511003 22 12 C 22 6.4889971 17.511003 2 12 2 z M 12 4 C 16.430123 4 20 7.5698774 20 12 C 20 16.430123 16.430123 20 12 20 C 7.5698774 20 4 16.430123 4 12 C 4 7.5698774 7.5698774 4 12 4 z M 16.292969 8.2929688 L 10 14.585938 L 7.7070312 12.292969 L 6.2929688 13.707031 L 10 17.414062 L 17.707031 9.7070312 L 16.292969 8.2929688 z'/%3E%3C/svg%3E");
  168. top: -26.5px;
  169. left: 0.4rem;
  170. height: 100%;
  171. }
  172. &::after {
  173. position: absolute;
  174. content: attr(data-title);
  175. font-family: $title-font;
  176. font-weight: bold;
  177. top: -26.5px;
  178. left: 2rem;
  179. height: 100%;
  180. color: #424242;
  181. }
  182. a {
  183. font-weight: bold;
  184. color: rgba(56, 109, 47, 0.995);
  185. @include themify($themes) {
  186. @include on-event {
  187. color: themed('link-hover');
  188. }
  189. }
  190. }
  191. > table {
  192. thead {
  193. background: #84c578;
  194. }
  195. th {
  196. color: rgba(56, 109, 47, 0.995);
  197. }
  198. th, td {
  199. padding: 5px 15px;
  200. border: 1px double rgba(82, 141, 79, 0.45);
  201. }
  202. }
  203. p > code, li > code, td > code, code {
  204. padding: 3px 7px;
  205. color: rgba(72, 125, 63, 0.995) !important;
  206. background-color: darken(#e8f7e6, 6%) !important;
  207. }
  208. }
  209. }