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.

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