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.

355 lines
6.0 KiB

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