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.

463 lines
8.5 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Message
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 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: #F8F8F9;
  19. padding: 1em 1.5em;
  20. line-height: 1.4285em;
  21. color: rgba(0, 0, 0, 0.87);
  22. -webkit-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
  23. transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
  24. border-radius: 0.28571429rem;
  25. box-shadow: 0px 0px 0px 1px rgba(34, 36, 38, 0.22) inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  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: -0.14285em 0em 0rem 0em;
  42. }
  43. /* Default font size */
  44. .ui.message .header:not(.ui) {
  45. font-size: 1.14285714em;
  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 .list:not(.ui) {
  63. text-align: left;
  64. padding: 0em;
  65. opacity: 0.85;
  66. list-style-position: inside;
  67. margin: 0.5em 0em 0em;
  68. }
  69. .ui.message .list:not(.ui):first-child {
  70. margin-top: 0em;
  71. }
  72. .ui.message .list:not(.ui):last-child {
  73. margin-bottom: 0em;
  74. }
  75. .ui.message .list:not(.ui) li {
  76. position: relative;
  77. list-style-type: none;
  78. margin: 0em 0em 0.3em 1em;
  79. padding: 0em;
  80. }
  81. .ui.message .list:not(.ui) li:before {
  82. position: absolute;
  83. content: '•';
  84. left: -1em;
  85. height: 100%;
  86. vertical-align: baseline;
  87. }
  88. .ui.message .list:not(.ui) li:last-child {
  89. margin-bottom: 0em;
  90. }
  91. /* Icon */
  92. .ui.message > .icon {
  93. margin-right: 0.6em;
  94. }
  95. /* Close Icon */
  96. .ui.message > .close.icon {
  97. cursor: pointer;
  98. position: absolute;
  99. margin: 0em;
  100. top: 0.78575em;
  101. right: 0.5em;
  102. opacity: 0.7;
  103. -webkit-transition: opacity 0.1s ease;
  104. transition: opacity 0.1s ease;
  105. }
  106. .ui.message > .close.icon:hover {
  107. opacity: 1;
  108. }
  109. /* First / Last Element */
  110. .ui.message > :first-child {
  111. margin-top: 0em;
  112. }
  113. .ui.message > :last-child {
  114. margin-bottom: 0em;
  115. }
  116. /*******************************
  117. Coupling
  118. *******************************/
  119. .ui.dropdown .menu > .message {
  120. margin: 0px -1px;
  121. }
  122. /*******************************
  123. States
  124. *******************************/
  125. /*--------------
  126. Visible
  127. ---------------*/
  128. .ui.visible.visible.visible.visible.message {
  129. display: block;
  130. }
  131. .ui.icon.visible.visible.visible.visible.message {
  132. display: -webkit-box;
  133. display: -webkit-flex;
  134. display: -ms-flexbox;
  135. display: flex;
  136. }
  137. /*--------------
  138. Hidden
  139. ---------------*/
  140. .ui.hidden.hidden.hidden.hidden.message {
  141. display: none;
  142. }
  143. /*******************************
  144. Variations
  145. *******************************/
  146. /*--------------
  147. Compact
  148. ---------------*/
  149. .ui.compact.message {
  150. display: inline-block;
  151. }
  152. /*--------------
  153. Attached
  154. ---------------*/
  155. .ui.attached.message {
  156. margin-bottom: -1px;
  157. border-radius: 0.28571429rem 0.28571429rem 0em 0em;
  158. box-shadow: 0em 0em 0em 1px rgba(34, 36, 38, 0.15) inset;
  159. margin-left: -1px;
  160. margin-right: -1px;
  161. }
  162. .ui.attached + .ui.attached.message:not(.top):not(.bottom) {
  163. margin-top: -1px;
  164. border-radius: 0em;
  165. }
  166. .ui.bottom.attached.message {
  167. margin-top: -1px;
  168. border-radius: 0em 0em 0.28571429rem 0.28571429rem;
  169. box-shadow: 0em 0em 0em 1px rgba(34, 36, 38, 0.15) inset, 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
  170. }
  171. .ui.bottom.attached.message:not(:last-child) {
  172. margin-bottom: 1em;
  173. }
  174. .ui.attached.icon.message {
  175. width: auto;
  176. }
  177. /*--------------
  178. Icon
  179. ---------------*/
  180. .ui.icon.message {
  181. display: -webkit-box;
  182. display: -webkit-flex;
  183. display: -ms-flexbox;
  184. display: flex;
  185. width: 100%;
  186. -webkit-box-align: center;
  187. -webkit-align-items: center;
  188. -ms-flex-align: center;
  189. align-items: center;
  190. }
  191. .ui.icon.message > .icon:not(.close) {
  192. display: block;
  193. -webkit-box-flex: 0;
  194. -webkit-flex: 0 0 auto;
  195. -ms-flex: 0 0 auto;
  196. flex: 0 0 auto;
  197. width: auto;
  198. line-height: 1;
  199. vertical-align: middle;
  200. font-size: 3em;
  201. opacity: 0.8;
  202. }
  203. .ui.icon.message > .content {
  204. display: block;
  205. -webkit-box-flex: 1;
  206. -webkit-flex: 1 1 auto;
  207. -ms-flex: 1 1 auto;
  208. flex: 1 1 auto;
  209. vertical-align: middle;
  210. }
  211. .ui.icon.message .icon:not(.close) + .content {
  212. padding-left: 0rem;
  213. }
  214. .ui.icon.message .circular.icon {
  215. width: 1em;
  216. }
  217. /*--------------
  218. Floating
  219. ---------------*/
  220. .ui.floating.message {
  221. box-shadow: 0px 0px 0px 1px rgba(34, 36, 38, 0.22) inset, 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);
  222. }
  223. /*--------------
  224. Colors
  225. ---------------*/
  226. .ui.black.message {
  227. background-color: #1B1C1D;
  228. color: rgba(255, 255, 255, 0.9);
  229. }
  230. /*--------------
  231. Types
  232. ---------------*/
  233. /* Positive */
  234. .ui.positive.message {
  235. background-color: #FCFFF5;
  236. color: #2C662D;
  237. }
  238. .ui.positive.message,
  239. .ui.attached.positive.message {
  240. box-shadow: 0px 0px 0px 1px #A3C293 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  241. }
  242. .ui.positive.message .header {
  243. color: #1A531B;
  244. }
  245. /* Negative */
  246. .ui.negative.message {
  247. background-color: #FFF6F6;
  248. color: #9F3A38;
  249. }
  250. .ui.negative.message,
  251. .ui.attached.negative.message {
  252. box-shadow: 0px 0px 0px 1px #E0B4B4 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  253. }
  254. .ui.negative.message .header {
  255. color: #912D2B;
  256. }
  257. /* Info */
  258. .ui.info.message {
  259. background-color: #F8FFFF;
  260. color: #276F86;
  261. }
  262. .ui.info.message,
  263. .ui.attached.info.message {
  264. box-shadow: 0px 0px 0px 1px #A9D5DE inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  265. }
  266. .ui.info.message .header {
  267. color: #0E566C;
  268. }
  269. /* Warning */
  270. .ui.warning.message {
  271. background-color: #FFFAF3;
  272. color: #573A08;
  273. }
  274. .ui.warning.message,
  275. .ui.attached.warning.message {
  276. box-shadow: 0px 0px 0px 1px #C9BA9B inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  277. }
  278. .ui.warning.message .header {
  279. color: #794B02;
  280. }
  281. /* Error */
  282. .ui.error.message {
  283. background-color: #FFF6F6;
  284. color: #9F3A38;
  285. }
  286. .ui.error.message,
  287. .ui.attached.error.message {
  288. box-shadow: 0px 0px 0px 1px #E0B4B4 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  289. }
  290. .ui.error.message .header {
  291. color: #912D2B;
  292. }
  293. /* Success */
  294. .ui.success.message {
  295. background-color: #FCFFF5;
  296. color: #2C662D;
  297. }
  298. .ui.success.message,
  299. .ui.attached.success.message {
  300. box-shadow: 0px 0px 0px 1px #A3C293 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0);
  301. }
  302. .ui.success.message .header {
  303. color: #1A531B;
  304. }
  305. /* Colors */
  306. .ui.inverted.message,
  307. .ui.black.message {
  308. background-color: #1B1C1D;
  309. color: rgba(255, 255, 255, 0.9);
  310. }
  311. .ui.red.message {
  312. background-color: #FFE8E6;
  313. color: #DB2828;
  314. }
  315. .ui.red.message .header {
  316. color: #c82121;
  317. }
  318. .ui.orange.message {
  319. background-color: #FFEDDE;
  320. color: #F2711C;
  321. }
  322. .ui.orange.message .header {
  323. color: #e7640d;
  324. }
  325. .ui.yellow.message {
  326. background-color: #FFF8DB;
  327. color: #B58105;
  328. }
  329. .ui.yellow.message .header {
  330. color: #9c6f04;
  331. }
  332. .ui.olive.message {
  333. background-color: #FBFDEF;
  334. color: #8ABC1E;
  335. }
  336. .ui.olive.message .header {
  337. color: #7aa61a;
  338. }
  339. .ui.green.message {
  340. background-color: #E5F9E7;
  341. color: #1EBC30;
  342. }
  343. .ui.green.message .header {
  344. color: #1aa62a;
  345. }
  346. .ui.teal.message {
  347. background-color: #E1F7F7;
  348. color: #10A3A3;
  349. }
  350. .ui.teal.message .header {
  351. color: #0e8c8c;
  352. }
  353. .ui.blue.message {
  354. background-color: #DFF0FF;
  355. color: #2185D0;
  356. }
  357. .ui.blue.message .header {
  358. color: #1e77ba;
  359. }
  360. .ui.violet.message {
  361. background-color: #EAE7FF;
  362. color: #6435C9;
  363. }
  364. .ui.violet.message .header {
  365. color: #5a30b5;
  366. }
  367. .ui.purple.message {
  368. background-color: #F6E7FF;
  369. color: #A333C8;
  370. }
  371. .ui.purple.message .header {
  372. color: #922eb4;
  373. }
  374. .ui.pink.message {
  375. background-color: #FFE3FB;
  376. color: #E03997;
  377. }
  378. .ui.pink.message .header {
  379. color: #dd238b;
  380. }
  381. .ui.brown.message {
  382. background-color: #F1E2D3;
  383. color: #A5673F;
  384. }
  385. .ui.brown.message .header {
  386. color: #935b38;
  387. }
  388. /*--------------
  389. Sizes
  390. ---------------*/
  391. .ui.small.message {
  392. font-size: 0.92857143em;
  393. }
  394. .ui.message {
  395. font-size: 1em;
  396. }
  397. .ui.large.message {
  398. font-size: 1.14285714em;
  399. }
  400. .ui.huge.message {
  401. font-size: 1.42857143em;
  402. }
  403. .ui.massive.message {
  404. font-size: 1.71428571em;
  405. }
  406. /*******************************
  407. Theme Overrides
  408. *******************************/
  409. /*******************************
  410. User Variable Overrides
  411. *******************************/