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.

336 lines
5.6 KiB

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