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.

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