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.

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