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.

411 lines
7.3 KiB

10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git
  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.3;
  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(39, 41, 43, 0.15) inset, 0px 0px 0px 0px transparent;
  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 0em 0rem;
  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.15em;
  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. .ui.message.visible,
  121. .ui.header.visible {
  122. display: block !important;
  123. }
  124. .ui.message.hidden,
  125. .ui.header.hidden {
  126. display: none;
  127. }
  128. /*******************************
  129. Variations
  130. *******************************/
  131. /*--------------
  132. Compact
  133. ---------------*/
  134. .ui.compact.message {
  135. display: inline-block;
  136. }
  137. /*--------------
  138. Attached
  139. ---------------*/
  140. .ui.attached.message {
  141. margin-bottom: -1px;
  142. border-radius: 0.2857rem 0.2857rem 0em 0em;
  143. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset;
  144. margin-left: -1px;
  145. margin-right: -1px;
  146. }
  147. .ui.attached + .ui.attached.message:not(.top):not(.bottom) {
  148. margin-top: -1px;
  149. border-radius: 0em;
  150. }
  151. .ui.bottom.attached.message {
  152. margin-top: -1px;
  153. border-radius: 0em 0em 0.2857rem 0.2857rem;
  154. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  155. }
  156. .ui.bottom.attached.message:not(:last-child) {
  157. margin-bottom: 1em;
  158. }
  159. .ui.attached.icon.message {
  160. display: block;
  161. width: auto;
  162. }
  163. /*--------------
  164. Icon
  165. ---------------*/
  166. .ui.icon.message {
  167. display: table;
  168. width: 100%;
  169. }
  170. .ui.icon.message > .icon:not(.close) {
  171. display: table-cell;
  172. width: auto;
  173. vertical-align: middle;
  174. font-size: 3em;
  175. opacity: 0.8;
  176. }
  177. .ui.icon.message > .content {
  178. display: table-cell;
  179. width: 100%;
  180. vertical-align: middle;
  181. }
  182. .ui.icon.message .icon:not(.close) + .content {
  183. padding-left: 1.5rem;
  184. }
  185. .ui.icon.message .circular.icon {
  186. width: 1em;
  187. }
  188. .ui.icon.message .circular.icon + .content {
  189. width: auto;
  190. padding-left: 2em;
  191. }
  192. /*--------------
  193. Floating
  194. ---------------*/
  195. .ui.floating.message {
  196. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.15), 0px 0px 0px 1px rgba(39, 41, 43, 0.15) inset;
  197. }
  198. /*--------------
  199. Colors
  200. ---------------*/
  201. .ui.black.message {
  202. background-color: #1b1c1d;
  203. color: #ffffff;
  204. }
  205. /*--------------
  206. Types
  207. ---------------*/
  208. /* Positive */
  209. .ui.positive.message {
  210. background-color: #eeffe7;
  211. color: #3c763d;
  212. }
  213. .ui.positive.message,
  214. .ui.attached.positive.message {
  215. box-shadow: 0px 0px 0px 1px #b7caa7 inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  216. }
  217. .ui.positive.message .header {
  218. color: #356e36;
  219. }
  220. /* Negative */
  221. .ui.negative.message {
  222. background-color: #fff0f0;
  223. color: #a94442;
  224. }
  225. .ui.negative.message,
  226. .ui.attached.negative.message {
  227. box-shadow: 0px 0px 0px 1px #dbb1b1 inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  228. }
  229. .ui.negative.message .header {
  230. color: #912d2b;
  231. }
  232. /* Info */
  233. .ui.info.message {
  234. background-color: #e9faff;
  235. color: #337b92;
  236. }
  237. .ui.info.message,
  238. .ui.attached.info.message {
  239. box-shadow: 0px 0px 0px 1px #aad6df inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  240. }
  241. .ui.info.message .header {
  242. color: #297187;
  243. }
  244. /* Warning */
  245. .ui.warning.message {
  246. background-color: #fffbe6;
  247. color: #876a38;
  248. }
  249. .ui.warning.message,
  250. .ui.attached.warning.message {
  251. box-shadow: 0px 0px 0px 1px #d9caab inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  252. }
  253. .ui.warning.message .header {
  254. color: #825c01;
  255. }
  256. /* Error */
  257. .ui.error.message {
  258. background-color: #fff0f0;
  259. color: #a94442;
  260. }
  261. .ui.error.message,
  262. .ui.attached.error.message {
  263. box-shadow: 0px 0px 0px 1px #dbb1b1 inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  264. }
  265. .ui.error.message .header {
  266. color: #912d2b;
  267. }
  268. /* Success */
  269. .ui.success.message {
  270. background-color: #eeffe7;
  271. color: #3c763d;
  272. }
  273. .ui.success.message,
  274. .ui.attached.success.message {
  275. box-shadow: 0px 0px 0px 1px #b7caa7 inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  276. }
  277. .ui.success.message .header {
  278. color: #356e36;
  279. }
  280. /* Colors */
  281. .ui.inverted.message,
  282. .ui.black.message {
  283. background-color: #1b1c1d;
  284. color: #ffffff;
  285. }
  286. .ui.blue.message {
  287. background-color: #dff0ff;
  288. color: #3b83c0;
  289. }
  290. .ui.blue.message .header {
  291. color: #3576ac;
  292. }
  293. .ui.green.message {
  294. background-color: #ebffed;
  295. color: #1ebc30;
  296. }
  297. .ui.green.message .header {
  298. color: #1aa62a;
  299. }
  300. .ui.orange.message {
  301. background-color: #ffedde;
  302. color: #e07b53;
  303. }
  304. .ui.orange.message .header {
  305. color: #dc6a3d;
  306. }
  307. .ui.pink.message {
  308. background-color: #ffe3fb;
  309. color: #d9499a;
  310. }
  311. .ui.pink.message .header {
  312. color: #d5348e;
  313. }
  314. .ui.purple.message {
  315. background-color: #eae7ff;
  316. color: #564f8a;
  317. }
  318. .ui.purple.message .header {
  319. color: #4c467a;
  320. }
  321. .ui.red.message {
  322. background-color: #ffe8e6;
  323. color: #d95c5c;
  324. }
  325. .ui.red.message .header {
  326. color: #d44747;
  327. }
  328. .ui.teal.message {
  329. background-color: #e9ffff;
  330. color: #10a3a3;
  331. }
  332. .ui.teal.message .header {
  333. color: #0e8c8c;
  334. }
  335. .ui.yellow.message {
  336. background-color: #fff8db;
  337. color: #b58105;
  338. }
  339. .ui.yellow.message .header {
  340. color: #9c6f04;
  341. }
  342. /*--------------
  343. Sizes
  344. ---------------*/
  345. .ui.small.message {
  346. font-size: 0.9285em;
  347. }
  348. .ui.message {
  349. font-size: 1em;
  350. }
  351. .ui.large.message {
  352. font-size: 1.1428em;
  353. }
  354. .ui.huge.message {
  355. font-size: 1.4285em;
  356. }
  357. .ui.massive.message {
  358. font-size: 1.7142em;
  359. }
  360. /*******************************
  361. Theme Overrides
  362. *******************************/
  363. /*******************************
  364. User Variable Overrides
  365. *******************************/