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.

292 lines
4.7 KiB

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