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.

331 lines
5.4 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic - Message
  3. * http://github.com/jlukic/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: 18px;
  17. margin: 1em 0em;
  18. height: auto;
  19. background-color: #EFEFEF;
  20. padding: 1em;
  21. line-height: 1.33;
  22. color: rgba(0, 0, 0, 0.6);
  23. -webkit-transition:
  24. opacity 0.1s ease,
  25. color 0.1s ease,
  26. background 0.1s ease,
  27. -webkit-box-shadow 0.1s ease;
  28. -moz-transition:
  29. opacity 0.1s ease,
  30. color 0.1s ease,
  31. background 0.1s ease,
  32. box-shadow 0.1s ease
  33. ;
  34. transition:
  35. opacity 0.1s ease,
  36. color 0.1s ease,
  37. background 0.1s ease,
  38. box-shadow 0.1s ease
  39. ;
  40. -webkit-box-sizing: border-box;
  41. -moz-box-sizing: border-box;
  42. -ms-box-sizing: border-box;
  43. box-sizing: border-box;
  44. border-radius: 0.325em 0.325em 0.325em 0.325em;
  45. }
  46. .ui.message:first-child {
  47. margin-top: 0em;
  48. }
  49. .ui.message:last-child {
  50. margin-bottom: 0em;
  51. }
  52. /*--------------
  53. Content
  54. ---------------*/
  55. /* block with headers */
  56. .ui.message .header {
  57. margin: 0em;
  58. font-size: 1.33em;
  59. font-weight: bold;
  60. }
  61. /* block with paragraphs */
  62. .ui.message p {
  63. opacity: 0.85;
  64. margin: 1em 0em;
  65. }
  66. .ui.message p:first-child {
  67. margin-top: 0em;
  68. }
  69. .ui.message p:last-child {
  70. margin-bottom: 0em;
  71. }
  72. .ui.message .header + p {
  73. margin-top: 0.3em;
  74. }
  75. .ui.message > :first-child {
  76. margin-top: 0em;
  77. }
  78. .ui.message > :last-child {
  79. margin-bottom: 0em;
  80. }
  81. /* block with child list */
  82. .ui.message ul.list {
  83. opacity: 0.85;
  84. list-style-position: inside;
  85. margin: 0.2em 0em;
  86. padding: 0em;
  87. }
  88. .ui.message ul.list li {
  89. position: relative;
  90. list-style-type: none;
  91. margin: 0em 0em 0.3em 1em;
  92. padding: 0em;
  93. }
  94. .ui.message ul.list li:before {
  95. position: absolute;
  96. content: '\2022';
  97. top: -0.05em;
  98. left: -0.8em;
  99. height: 100%;
  100. vertical-align: baseline;
  101. opacity: 0.5;
  102. }
  103. .ui.message ul.list li:first-child {
  104. margin-top: 0em;
  105. }
  106. /* dismissable block */
  107. .ui.message > .close.icon {
  108. cursor: pointer;
  109. position: absolute;
  110. right: 0em;
  111. top: 0em;
  112. width: 2.5em;
  113. height: 2.5em;
  114. opacity: 0.7;
  115. padding: 0.75em 0em 0em 0.75em;
  116. z-index: 2;
  117. -webkit-transition:
  118. opacity 0.1s linear
  119. ;
  120. -moz-transition:
  121. opacity 0.1s linear
  122. ;
  123. transition:
  124. opacity 0.1s linear
  125. ;
  126. z-index: 10;
  127. }
  128. .ui.message > .close.icon:hover {
  129. opacity: 1;
  130. }
  131. /*******************************
  132. States
  133. *******************************/
  134. .ui.message.visible {
  135. display: block !important;
  136. }
  137. .ui.icon.message.animating,
  138. .ui.icon.message.visible {
  139. display: table !important;
  140. }
  141. .ui.message.hidden {
  142. display: none !important;
  143. }
  144. /*******************************
  145. Variations
  146. *******************************/
  147. /*--------------
  148. Compact
  149. ---------------*/
  150. .ui.compact.message {
  151. display: inline-block;
  152. }
  153. /*--------------
  154. Attached
  155. ---------------*/
  156. .ui.attached.message {
  157. margin-left: -1px;
  158. margin-right: -1px;
  159. margin-bottom: -1px;
  160. border-radius: 0.325em 0.325em 0em 0em;
  161. -webkit-box-shadow:
  162. 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset
  163. ;
  164. box-shadow:
  165. 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset
  166. ;
  167. }
  168. .ui.attached + .ui.attached.message:not(.top):not(.bottom) {
  169. margin-top: -1px;
  170. border-radius: 0em;
  171. }
  172. .ui.bottom.attached.message {
  173. margin-top: -1px;
  174. border-radius: 0em 0em 0.325em 0.325em;
  175. }
  176. .ui.bottom.attached.message:not(:last-child) {
  177. margin-bottom: 1em;
  178. }
  179. .ui.attached.icon.message {
  180. display: block;
  181. width: auto;
  182. }
  183. /*--------------
  184. Icon
  185. ---------------*/
  186. .ui.icon.message {
  187. display: table;
  188. width: 100%;
  189. }
  190. .ui.icon.message > .icon:not(.close) {
  191. display: table-cell;
  192. vertical-align: middle;
  193. font-size: 3.8em;
  194. opacity: 0.5;
  195. }
  196. .ui.icon.message > .icon + .content {
  197. padding-left: 1em;
  198. }
  199. .ui.icon.message > .content {
  200. display: table-cell;
  201. vertical-align: middle;
  202. }
  203. /*--------------
  204. Inverted
  205. ---------------*/
  206. .ui.inverted.message {
  207. background-color: rgba(255, 255, 255, 0.05);
  208. color: rgba(255, 255, 255, 0.95);
  209. }
  210. /*--------------
  211. Floating
  212. ---------------*/
  213. .ui.floating.message {
  214. -webkit-box-shadow:
  215. 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
  216. 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset
  217. ;
  218. box-shadow:
  219. 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
  220. 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset
  221. ;
  222. }
  223. /*--------------
  224. Colors
  225. ---------------*/
  226. .ui.black.message {
  227. background-color: #333333;
  228. color: rgba(255, 255, 255, 0.95);
  229. }
  230. /*--------------
  231. Types
  232. ---------------*/
  233. .ui.blue.message,
  234. .ui.info.message {
  235. background-color: #E6F4F9;
  236. color: #4D8796;
  237. }
  238. /* Green Text Block */
  239. .ui.green.message {
  240. background-color: #DEFCD5;
  241. color: #52A954;
  242. }
  243. /* Yellow Text Block */
  244. .ui.yellow.message,
  245. .ui.warning.message {
  246. background-color: #F6F3D5;
  247. color: #96904D;
  248. }
  249. /* Red Text Block */
  250. .ui.red.message {
  251. background-color: #F1D7D7;
  252. color: #A95252;
  253. }
  254. /* Success Text Block */
  255. .ui.success.message,
  256. .ui.positive.message {
  257. background-color: #DEFCD5;
  258. color: #52A954;
  259. }
  260. /* Error Text Block */
  261. .ui.error.message,
  262. .ui.negative.message {
  263. background-color: #F1D7D7;
  264. color: #A95252;
  265. }
  266. /*--------------
  267. Sizes
  268. ---------------*/
  269. .ui.small.message {
  270. font-size: 0.875em;
  271. }
  272. .ui.message {
  273. font-size: 1em;
  274. }
  275. .ui.large.message {
  276. font-size: 1.125em;
  277. }
  278. .ui.huge.message {
  279. font-size: 1.5em;
  280. }
  281. .ui.massive.message {
  282. font-size: 2em;
  283. }