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.

306 lines
5.0 KiB

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. 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.attached + .ui.attached.message:not(.top):not(.bottom) {
  136. margin-top: -1px;
  137. border-radius: 0em;
  138. }
  139. .ui.bottom.attached.message {
  140. margin-top: -1px;
  141. border-radius: 0em 0em 0.325em 0.325em;
  142. }
  143. .ui.bottom.attached.message:not(:last-child) {
  144. margin-bottom: 1em;
  145. }
  146. .ui.attached.icon.message {
  147. display: block;
  148. width: auto;
  149. }
  150. /*--------------
  151. Icon
  152. ---------------*/
  153. .ui.icon.message {
  154. display: table;
  155. width: 100%;
  156. }
  157. .ui.icon.message > .icon:not(.close) {
  158. display: table-cell;
  159. vertical-align: middle;
  160. font-size: 3.8em;
  161. opacity: 0.5;
  162. }
  163. .ui.icon.message > .icon + .content {
  164. padding-right: 1em;
  165. }
  166. .ui.icon.message > .content {
  167. display: table-cell;
  168. vertical-align: middle;
  169. }
  170. /*--------------
  171. Inverted
  172. ---------------*/
  173. .ui.inverted.message {
  174. background-color: rgba(255, 255, 255, 0.05);
  175. color: rgba(255, 255, 255, 0.95);
  176. }
  177. /*--------------
  178. Floating
  179. ---------------*/
  180. .ui.floating.message {
  181. -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset;
  182. box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset;
  183. }
  184. /*--------------
  185. Colors
  186. ---------------*/
  187. .ui.black.message {
  188. background-color: #333333;
  189. color: rgba(255, 255, 255, 0.95);
  190. }
  191. /*--------------
  192. Types
  193. ---------------*/
  194. .ui.blue.message,
  195. .ui.info.message {
  196. background-color: #E6F4F9;
  197. color: #4D8796;
  198. }
  199. /* Green Text Block */
  200. .ui.green.message {
  201. background-color: #DEFCD5;
  202. color: #52A954;
  203. }
  204. /* Yellow Text Block */
  205. .ui.yellow.message,
  206. .ui.warning.message {
  207. background-color: #F6F3D5;
  208. color: #96904D;
  209. }
  210. /* Red Text Block */
  211. .ui.red.message {
  212. background-color: #F1D7D7;
  213. color: #A95252;
  214. }
  215. /* Success Text Block */
  216. .ui.success.message,
  217. .ui.positive.message {
  218. background-color: #DEFCD5;
  219. color: #52A954;
  220. }
  221. /* Error Text Block */
  222. .ui.error.message,
  223. .ui.negative.message {
  224. background-color: #F1D7D7;
  225. color: #A95252;
  226. }
  227. /*--------------
  228. Sizes
  229. ---------------*/
  230. .ui.small.message {
  231. font-size: 0.875em;
  232. }
  233. .ui.message {
  234. font-size: 1em;
  235. }
  236. .ui.large.message {
  237. font-size: 1.125em;
  238. }
  239. .ui.huge.message {
  240. font-size: 1.5em;
  241. }
  242. .ui.massive.message {
  243. font-size: 2em;
  244. }