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.

252 lines
5.5 KiB

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