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.

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