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.

249 lines
5.1 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. top: 1em;
  97. left: 0.5em;
  98. opacity: 0.7;
  99. -webkit-transition: opacity 0.1s linear
  100. ;
  101. -moz-transition: opacity 0.1s linear
  102. ;
  103. transition: opacity 0.1s linear
  104. ;
  105. }
  106. .ui.message > .close.icon:hover {
  107. opacity: 1;
  108. }
  109. /*******************************
  110. States
  111. *******************************/
  112. .ui.message.visible,
  113. .ui.header.visible {
  114. display: block !important;
  115. }
  116. .ui.message.hidden,
  117. .ui.header.hidden {
  118. display: none;
  119. }
  120. /*******************************
  121. Variations
  122. *******************************/
  123. /*--------------
  124. Compact
  125. ---------------*/
  126. .ui.compact.message {
  127. display: inline-block;
  128. }
  129. /*--------------
  130. Attached
  131. ---------------*/
  132. .ui.attached.message {
  133. margin-right: -1px;
  134. margin-left: -1px;
  135. margin-bottom: -1px;
  136. border-radius: 0.325em 0.325em 0em 0em;
  137. -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset;
  138. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.1) inset;
  139. }
  140. .ui.attached + .ui.attached.message:not(.top):not(.bottom) {
  141. margin-top: -1px;
  142. border-radius: 0em;
  143. }
  144. .ui.bottom.attached.message {
  145. margin-top: -1px;
  146. border-radius: 0em 0em 0.325em 0.325em;
  147. }
  148. .ui.bottom.attached.message:not(:last-child) {
  149. margin-bottom: 1em;
  150. }
  151. .ui.attached.icon.message {
  152. display: block;
  153. width: auto;
  154. }
  155. /*--------------
  156. Icon
  157. ---------------*/
  158. .ui.icon.message {
  159. display: table;
  160. width: 100%;
  161. }
  162. .ui.icon.message > .icon:not(.close) {
  163. display: table-cell;
  164. vertical-align: middle;
  165. font-size: 3.8em;
  166. opacity: 0.5;
  167. }
  168. .ui.icon.message > .icon + .content {
  169. padding-right: 1em;
  170. }
  171. .ui.icon.message > .content {
  172. display: table-cell;
  173. vertical-align: middle;
  174. }
  175. /*--------------
  176. Inverted
  177. ---------------*/
  178. .ui.inverted.message {
  179. background-color: rgba(255, 255, 255, 0.05);
  180. color: rgba(255, 255, 255, 0.95);
  181. }
  182. /*--------------
  183. Floating
  184. ---------------*/
  185. .ui.floating.message {
  186. -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset;
  187. box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset;
  188. }
  189. /*--------------
  190. Colors
  191. ---------------*/
  192. .ui.black.message {
  193. background-color: #333333;
  194. color: rgba(255, 255, 255, 0.95);
  195. }
  196. /*--------------
  197. Types
  198. ---------------*/
  199. .ui.blue.message,
  200. .ui.info.message {
  201. background-color: #E6F4F9;
  202. color: #4D8796;
  203. }
  204. /* Green Text Block */
  205. .ui.green.message {
  206. background-color: #DEFCD5;
  207. color: #52A954;
  208. }
  209. /* Yellow Text Block */
  210. .ui.yellow.message,
  211. .ui.warning.message {
  212. background-color: #F6F3D5;
  213. color: #96904D;
  214. }
  215. /* Red Text Block */
  216. .ui.red.message {
  217. background-color: #F1D7D7;
  218. color: #A95252;
  219. }
  220. /* Success Text Block */
  221. .ui.success.message,
  222. .ui.positive.message {
  223. background-color: #DEFCD5;
  224. color: #52A954;
  225. }
  226. /* Error Text Block */
  227. .ui.error.message,
  228. .ui.negative.message {
  229. background-color: #F1D7D7;
  230. color: #A95252;
  231. }
  232. /*--------------
  233. Sizes
  234. ---------------*/
  235. .ui.small.message {
  236. font-size: 0.875em;
  237. }
  238. .ui.message {
  239. font-size: 1em;
  240. }
  241. .ui.large.message {
  242. font-size: 1.125em;
  243. }
  244. .ui.huge.message {
  245. font-size: 1.5em;
  246. }
  247. .ui.massive.message {
  248. font-size: 2em;
  249. }