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.

421 lines
7.5 KiB

9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Message
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Message
  13. *******************************/
  14. .ui.message {
  15. position: relative;
  16. min-height: 1em;
  17. margin: 1em 0em;
  18. background: #efefef;
  19. padding: 1em 1.5em;
  20. line-height: 1.4285em;
  21. color: rgba(0, 0, 0, 0.8);
  22. -webkit-transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  23. transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  24. border-radius: 0.2857rem;
  25. box-shadow: 0px 0px 0px 1px rgba(34, 36, 38, 0.15) inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  26. }
  27. .ui.message:first-child {
  28. margin-top: 0em;
  29. }
  30. .ui.message:last-child {
  31. margin-bottom: 0em;
  32. }
  33. /*--------------
  34. Content
  35. ---------------*/
  36. /* Header */
  37. .ui.message .header {
  38. display: block;
  39. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  40. font-weight: bold;
  41. margin: 0em 0em 0.5rem 0em;
  42. }
  43. /* Default font size */
  44. .ui.message .header:not(.ui) {
  45. font-size: 1.1em;
  46. }
  47. /* Paragraph */
  48. .ui.message p {
  49. opacity: 0.85;
  50. margin: 0.75em 0em;
  51. }
  52. .ui.message p:first-child {
  53. margin-top: 0em;
  54. }
  55. .ui.message p:last-child {
  56. margin-bottom: 0em;
  57. }
  58. .ui.message .header + p {
  59. margin-top: 0.25em;
  60. }
  61. /* List */
  62. .ui.message ul.list {
  63. opacity: 0.85;
  64. list-style-position: inside;
  65. margin: 0.5em 0em 0em;
  66. padding: 0em;
  67. }
  68. .ui.message ul.list:first-child {
  69. margin-top: 0em;
  70. }
  71. .ui.message ul.list:last-child {
  72. margin-bottom: 0em;
  73. }
  74. .ui.message ul.list li {
  75. position: relative;
  76. list-style-type: none;
  77. margin: 0em 0em 0.3em 1em;
  78. padding: 0em;
  79. }
  80. .ui.message ul.list li:before {
  81. position: absolute;
  82. content: '•';
  83. left: -1em;
  84. height: 100%;
  85. vertical-align: baseline;
  86. }
  87. .ui.message ul.list li:last-child {
  88. margin-bottom: 0em;
  89. }
  90. /* Icon */
  91. .ui.message > .icon {
  92. margin-right: 0.6em;
  93. }
  94. /* Close Icon */
  95. .ui.message > .close.icon {
  96. cursor: pointer;
  97. position: absolute;
  98. margin: 0em;
  99. top: 1.21425em;
  100. right: 0.5em;
  101. opacity: 0.7;
  102. -webkit-transition: opacity 0.1s linear
  103. ;
  104. transition: opacity 0.1s linear
  105. ;
  106. }
  107. .ui.message > .close.icon:hover {
  108. opacity: 1;
  109. }
  110. /* First / Last Element */
  111. .ui.message > :first-child {
  112. margin-top: 0em;
  113. }
  114. .ui.message > :last-child {
  115. margin-bottom: 0em;
  116. }
  117. /*******************************
  118. States
  119. *******************************/
  120. /*--------------
  121. Visible
  122. ---------------*/
  123. .ui.visible.visible.visible.visible.message {
  124. display: block;
  125. }
  126. .ui.icon.visible.visible.visible.visible.message {
  127. display: table;
  128. }
  129. /*--------------
  130. Hidden
  131. ---------------*/
  132. .ui.hidden.hidden.hidden.hidden.message {
  133. display: none;
  134. }
  135. /*******************************
  136. Variations
  137. *******************************/
  138. /*--------------
  139. Compact
  140. ---------------*/
  141. .ui.compact.message {
  142. display: inline-block;
  143. }
  144. /*--------------
  145. Attached
  146. ---------------*/
  147. .ui.attached.message {
  148. margin-bottom: -1px;
  149. border-radius: 0.2857rem 0.2857rem 0em 0em;
  150. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset;
  151. margin-left: -1px;
  152. margin-right: -1px;
  153. }
  154. .ui.attached + .ui.attached.message:not(.top):not(.bottom) {
  155. margin-top: -1px;
  156. border-radius: 0em;
  157. }
  158. .ui.bottom.attached.message {
  159. margin-top: -1px;
  160. border-radius: 0em 0em 0.2857rem 0.2857rem;
  161. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  162. }
  163. .ui.bottom.attached.message:not(:last-child) {
  164. margin-bottom: 1em;
  165. }
  166. .ui.attached.icon.message {
  167. display: block;
  168. width: auto;
  169. }
  170. /*--------------
  171. Icon
  172. ---------------*/
  173. .ui.icon.message {
  174. display: table;
  175. width: 100%;
  176. }
  177. .ui.icon.message > .icon:not(.close) {
  178. display: table-cell;
  179. width: auto;
  180. vertical-align: middle;
  181. font-size: 3em;
  182. opacity: 0.8;
  183. }
  184. .ui.icon.message > .content {
  185. display: table-cell;
  186. width: 100%;
  187. vertical-align: middle;
  188. }
  189. .ui.icon.message .icon:not(.close) + .content {
  190. padding-left: 1.5rem;
  191. }
  192. .ui.icon.message .circular.icon {
  193. width: 1em;
  194. }
  195. .ui.icon.message .circular.icon + .content {
  196. width: auto;
  197. padding-left: 2em;
  198. }
  199. /*--------------
  200. Floating
  201. ---------------*/
  202. .ui.floating.message {
  203. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.15), 0px 0px 0px 1px rgba(34, 36, 38, 0.15) inset;
  204. }
  205. /*--------------
  206. Colors
  207. ---------------*/
  208. .ui.black.message {
  209. background-color: #1b1c1d;
  210. color: #ffffff;
  211. }
  212. /*--------------
  213. Types
  214. ---------------*/
  215. /* Positive */
  216. .ui.positive.message {
  217. background-color: #eeffe7;
  218. color: #3c763d;
  219. }
  220. .ui.positive.message,
  221. .ui.attached.positive.message {
  222. box-shadow: 0px 0px 0px 1px #b7caa7 inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  223. }
  224. .ui.positive.message .header {
  225. color: #356e36;
  226. }
  227. /* Negative */
  228. .ui.negative.message {
  229. background-color: #fff0f0;
  230. color: #a94442;
  231. }
  232. .ui.negative.message,
  233. .ui.attached.negative.message {
  234. box-shadow: 0px 0px 0px 1px #dbb1b1 inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  235. }
  236. .ui.negative.message .header {
  237. color: #912d2b;
  238. }
  239. /* Info */
  240. .ui.info.message {
  241. background-color: #e9faff;
  242. color: #337b92;
  243. }
  244. .ui.info.message,
  245. .ui.attached.info.message {
  246. box-shadow: 0px 0px 0px 1px #aad6df inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  247. }
  248. .ui.info.message .header {
  249. color: #297187;
  250. }
  251. /* Warning */
  252. .ui.warning.message {
  253. background-color: #fffbe6;
  254. color: #876a38;
  255. }
  256. .ui.warning.message,
  257. .ui.attached.warning.message {
  258. box-shadow: 0px 0px 0px 1px #d9caab inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  259. }
  260. .ui.warning.message .header {
  261. color: #825c01;
  262. }
  263. /* Error */
  264. .ui.error.message {
  265. background-color: #fff0f0;
  266. color: #a94442;
  267. }
  268. .ui.error.message,
  269. .ui.attached.error.message {
  270. box-shadow: 0px 0px 0px 1px #dbb1b1 inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  271. }
  272. .ui.error.message .header {
  273. color: #912d2b;
  274. }
  275. /* Success */
  276. .ui.success.message {
  277. background-color: #eeffe7;
  278. color: #3c763d;
  279. }
  280. .ui.success.message,
  281. .ui.attached.success.message {
  282. box-shadow: 0px 0px 0px 1px #b7caa7 inset, 0px 1px 2px rgba(0, 0, 0, 0.1);
  283. }
  284. .ui.success.message .header {
  285. color: #356e36;
  286. }
  287. /* Colors */
  288. .ui.inverted.message,
  289. .ui.black.message {
  290. background-color: #1b1c1d;
  291. color: #ffffff;
  292. }
  293. .ui.blue.message {
  294. background-color: #dff0ff;
  295. color: #3b83c0;
  296. }
  297. .ui.blue.message .header {
  298. color: #3576ac;
  299. }
  300. .ui.green.message {
  301. background-color: #ebffed;
  302. color: #1ebc30;
  303. }
  304. .ui.green.message .header {
  305. color: #1aa62a;
  306. }
  307. .ui.orange.message {
  308. background-color: #ffedde;
  309. color: #e07b53;
  310. }
  311. .ui.orange.message .header {
  312. color: #dc6a3d;
  313. }
  314. .ui.pink.message {
  315. background-color: #ffe3fb;
  316. color: #d9499a;
  317. }
  318. .ui.pink.message .header {
  319. color: #d5348e;
  320. }
  321. .ui.purple.message {
  322. background-color: #eae7ff;
  323. color: #564f8a;
  324. }
  325. .ui.purple.message .header {
  326. color: #4c467a;
  327. }
  328. .ui.red.message {
  329. background-color: #ffe8e6;
  330. color: #d95c5c;
  331. }
  332. .ui.red.message .header {
  333. color: #d44747;
  334. }
  335. .ui.teal.message {
  336. background-color: #e9ffff;
  337. color: #10a3a3;
  338. }
  339. .ui.teal.message .header {
  340. color: #0e8c8c;
  341. }
  342. .ui.yellow.message {
  343. background-color: #fff8db;
  344. color: #b58105;
  345. }
  346. .ui.yellow.message .header {
  347. color: #9c6f04;
  348. }
  349. /*--------------
  350. Sizes
  351. ---------------*/
  352. .ui.small.message {
  353. font-size: 0.92857143em;
  354. }
  355. .ui.message {
  356. font-size: 1em;
  357. }
  358. .ui.large.message {
  359. font-size: 1.14285714em;
  360. }
  361. .ui.huge.message {
  362. font-size: 1.42857143em;
  363. }
  364. .ui.massive.message {
  365. font-size: 1.71428571em;
  366. }
  367. /*******************************
  368. Theme Overrides
  369. *******************************/
  370. /*******************************
  371. User Variable Overrides
  372. *******************************/