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.

256 lines
5.2 KiB

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