message.css 9.0 KB

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