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.

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