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.

408 lines
7.3 KiB

11 years ago
  1. /*
  2. * # Semantic - Header
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'element';
  15. @element : 'header';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Header
  19. *******************************/
  20. /* Standard */
  21. .ui.header {
  22. border: none;
  23. font-family: @headerFont;
  24. margin: @topMargin 0em @bottomMargin;
  25. padding: @verticalPadding @horizontalPadding;
  26. font-weight: @fontWeight;
  27. line-height: @lineHeight;
  28. text-transform: @textTransform;
  29. color: @textColor;
  30. }
  31. .ui.header .sub.header {
  32. font-size: @subHeaderFontSize;
  33. font-weight: normal;
  34. margin: 0em;
  35. padding: 0em;
  36. line-height: @subHeaderLineHeight;
  37. color: @subHeaderColor;
  38. }
  39. /* Icon and Content Together */
  40. .ui.header > .icon {
  41. display: table-cell;
  42. font-size: @iconSize;
  43. padding-top: @iconOffset;
  44. vertical-align: @iconAlignment;
  45. padding-right: (@iconMargin / 2);
  46. }
  47. .ui.header > .icon + .content {
  48. padding-left: (@iconMargin / 2);
  49. display: table-cell;
  50. }
  51. /* Only One */
  52. .ui.header .icon:only-child {
  53. display: inline-block;
  54. padding: 0em;
  55. vertical-align: middle;
  56. }
  57. .ui.header .content {
  58. display: inline-block;
  59. vertical-align: @contentAlignment;
  60. }
  61. /* Positioning */
  62. .ui.header:first-child {
  63. margin-top: 0em;
  64. }
  65. .ui.header:last-child {
  66. margin-bottom: 0em;
  67. }
  68. .ui.header + p {
  69. margin-top: @precedingParagraphMargin;
  70. }
  71. /*--------------
  72. Page Heading
  73. ---------------*/
  74. h1.ui.header {
  75. min-height: 1rem;
  76. font-size: @h1;
  77. }
  78. h2.ui.header {
  79. font-size: @h2;
  80. }
  81. h3.ui.header {
  82. font-size: @h3;
  83. }
  84. h4.ui.header {
  85. font-size: @h4;
  86. }
  87. h5.ui.header {
  88. font-size: @h5;
  89. }
  90. /*--------------
  91. Content Heading
  92. ---------------*/
  93. .ui.tiny.header {
  94. font-size: @tiny;
  95. }
  96. .ui.small.header {
  97. font-size: @small;
  98. }
  99. .ui.medium.header {
  100. font-size: @medium;
  101. }
  102. .ui.large.header {
  103. font-size: @large;
  104. }
  105. .ui.huge.header {
  106. min-height: 1em;
  107. font-size: @huge;
  108. }
  109. /*--------------
  110. Loose Coupling
  111. ---------------*/
  112. .ui.header .ui.label {
  113. vertical-align: middle;
  114. }
  115. /*******************************
  116. Types
  117. *******************************/
  118. /*-------------------
  119. Icon
  120. --------------------*/
  121. .ui.icon.header {
  122. display: inline-block;
  123. text-align: center;
  124. }
  125. .ui.icon.header .icon {
  126. float: none;
  127. display: block;
  128. font-size: @iconHeaderSize;
  129. margin: 0em auto @iconHeaderMargin;
  130. opacity: @iconHeaderOpacity;
  131. padding: 0em;
  132. }
  133. .ui.icon.header .content {
  134. display: block;
  135. }
  136. .ui.icon.header .circular.icon {
  137. font-size: @circularHeaderIconSize;
  138. }
  139. .ui.icon.header .square.icon {
  140. font-size: @squareHeaderIconSize;
  141. }
  142. .ui.block.icon.header .icon {
  143. margin-bottom: 0em;
  144. }
  145. .ui.icon.header.aligned {
  146. margin-left: auto;
  147. margin-right: auto;
  148. display: block;
  149. }
  150. /*******************************
  151. States
  152. *******************************/
  153. .ui.disabled.header {
  154. opacity: @disabledOpacity;
  155. }
  156. /*******************************
  157. Variations
  158. *******************************/
  159. /*-------------------
  160. Colors
  161. --------------------*/
  162. .ui.black.header {
  163. color: @black !important;
  164. }
  165. .ui.blue.header {
  166. color: @blue !important;
  167. }
  168. .ui.green.header {
  169. color: @green !important;
  170. }
  171. .ui.orange.header {
  172. color: @orange !important;
  173. }
  174. .ui.pink.header {
  175. color: @pink !important;
  176. }
  177. .ui.purple.header {
  178. color: @purple !important;
  179. }
  180. .ui.red.header {
  181. color: @red !important;
  182. }
  183. .ui.teal.header {
  184. color: @teal !important;
  185. }
  186. .ui.yellow.header {
  187. color: @yellow !important;
  188. }
  189. .ui.black.dividing.header {
  190. border-bottom: @dividedColoredBorderWidth solid @black;
  191. }
  192. .ui.blue.dividing.header {
  193. border-bottom: @dividedColoredBorderWidth solid @blue;
  194. }
  195. .ui.green.dividing.header {
  196. border-bottom: @dividedColoredBorderWidth solid @green;
  197. }
  198. .ui.orange.dividing.header {
  199. border-bottom: @dividedColoredBorderWidth solid @orange;
  200. }
  201. .ui.pink.dividing.header {
  202. border-bottom: @dividedColoredBorderWidth solid @pink;
  203. }
  204. .ui.purple.dividing.header {
  205. border-bottom: @dividedColoredBorderWidth solid @purple;
  206. }
  207. .ui.red.dividing.header {
  208. border-bottom: @dividedColoredBorderWidth solid @red;
  209. }
  210. .ui.teal.dividing.header {
  211. border-bottom: @dividedColoredBorderWidth solid @teal;
  212. }
  213. .ui.yellow.dividing.header {
  214. border-bottom: @dividedColoredBorderWidth solid @yellow;
  215. }
  216. /*-------------------
  217. Inverted
  218. --------------------*/
  219. .ui.inverted.header {
  220. color: @invertedColor;
  221. }
  222. .ui.inverted.header .sub.header {
  223. color: @invertedSubHeaderColor;
  224. }
  225. /*-------------------
  226. Inverted Colors
  227. --------------------*/
  228. .ui.inverted.black.header {
  229. background-color: @black !important;
  230. color: @white !important;
  231. }
  232. .ui.inverted.blue.header {
  233. background-color: @blue !important;
  234. color: @white !important;
  235. }
  236. .ui.inverted.green.header {
  237. background-color: @green !important;
  238. color: @white !important;
  239. }
  240. .ui.inverted.orange.header {
  241. background-color: @orange !important;
  242. color: @white !important;
  243. }
  244. .ui.inverted.pink.header {
  245. background-color: @pink !important;
  246. color: @white !important;
  247. }
  248. .ui.inverted.purple.header {
  249. background-color: @purple !important;
  250. color: @white !important;
  251. }
  252. .ui.inverted.red.header {
  253. background-color: @red !important;
  254. color: @white !important;
  255. }
  256. .ui.inverted.teal.header {
  257. background-color: @teal !important;
  258. color: @white !important;
  259. }
  260. .ui.inverted.yellow.header {
  261. background-color: @yellow !important;
  262. color: @white !important;
  263. }
  264. .ui.inverted.block.header {
  265. border-bottom: none;
  266. }
  267. /*-------------------
  268. Aligned
  269. --------------------*/
  270. .ui.left.aligned.header {
  271. text-align: left;
  272. }
  273. .ui.right.aligned.header {
  274. text-align: right;
  275. }
  276. .ui.centered.header,
  277. .ui.center.aligned.header {
  278. text-align: center;
  279. }
  280. .ui.justified.header {
  281. text-align: justify;
  282. }
  283. .ui.justified.header:after {
  284. display: inline-block;
  285. content: '';
  286. width: 100%;
  287. }
  288. /*-------------------
  289. Floated
  290. --------------------*/
  291. .ui.floated.header,
  292. .ui.left.floated.header {
  293. float: left;
  294. margin-top: 0em;
  295. margin-right: @floatedMargin;
  296. }
  297. .ui.right.floated.header {
  298. float: right;
  299. margin-top: 0em;
  300. margin-left: @floatedMargin;
  301. }
  302. /*-------------------
  303. Fittted
  304. --------------------*/
  305. .ui.fitted.header {
  306. padding: 0em;
  307. }
  308. /*-------------------
  309. Dividing
  310. --------------------*/
  311. .ui.dividing.header {
  312. padding-bottom: @dividedBorderPadding;
  313. border-bottom: @dividedBorder;
  314. }
  315. .ui.dividing.header .sub.header {
  316. padding-bottom: @dividedSubHeaderPadding;
  317. }
  318. .ui.dividing.header .icon {
  319. margin-bottom: @dividedIconPadding;
  320. }
  321. /*-------------------
  322. Block
  323. --------------------*/
  324. .ui.block.header {
  325. background: @blockBackground;
  326. padding: @blockVerticalPadding @blockHorizontalPadding;
  327. }
  328. /*-------------------
  329. Attached
  330. --------------------*/
  331. .ui.attached.header {
  332. background: @attachedBackground;
  333. margin: 0em;
  334. padding: @attachedVerticalPadding @attachedVerticalPadding;
  335. box-shadow: @attachedBoxShadow;
  336. }
  337. .ui.attached:not(.top, .bottom) {
  338. margin: 0em;
  339. }
  340. .ui.top.attached.header {
  341. margin-bottom: 0em;
  342. border-radius: @attachedBorderRadius @attachedBorderRadius 0em 0em;
  343. }
  344. .ui.bottom.attached.header {
  345. margin-top: 0em;
  346. border-radius: 0em 0em @attachedBorderRadius @attachedBorderRadius;
  347. }
  348. /*-------------------
  349. Sizing
  350. --------------------*/
  351. .ui.header {
  352. font-size: @medium;
  353. }
  354. .loadUIOverrides();