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.

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