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.

407 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. padding: 0em;
  131. }
  132. .ui.icon.header .content {
  133. display: block;
  134. }
  135. .ui.icon.header .circular.icon {
  136. font-size: @circularHeaderIconSize;
  137. }
  138. .ui.icon.header .square.icon {
  139. font-size: @squareHeaderIconSize;
  140. }
  141. .ui.block.icon.header .icon {
  142. margin-bottom: 0em;
  143. }
  144. .ui.icon.header.aligned {
  145. margin-left: auto;
  146. margin-right: auto;
  147. display: block;
  148. }
  149. /*******************************
  150. States
  151. *******************************/
  152. .ui.disabled.header {
  153. opacity: @disabledOpacity;
  154. }
  155. /*******************************
  156. Variations
  157. *******************************/
  158. /*-------------------
  159. Colors
  160. --------------------*/
  161. .ui.black.header {
  162. color: @black !important;
  163. }
  164. .ui.blue.header {
  165. color: @blue !important;
  166. }
  167. .ui.green.header {
  168. color: @green !important;
  169. }
  170. .ui.orange.header {
  171. color: @orange !important;
  172. }
  173. .ui.pink.header {
  174. color: @pink !important;
  175. }
  176. .ui.purple.header {
  177. color: @purple !important;
  178. }
  179. .ui.red.header {
  180. color: @red !important;
  181. }
  182. .ui.teal.header {
  183. color: @teal !important;
  184. }
  185. .ui.yellow.header {
  186. color: @yellow !important;
  187. }
  188. .ui.black.dividing.header {
  189. border-bottom: @dividedColoredBorderWidth solid @black;
  190. }
  191. .ui.blue.dividing.header {
  192. border-bottom: @dividedColoredBorderWidth solid @blue;
  193. }
  194. .ui.green.dividing.header {
  195. border-bottom: @dividedColoredBorderWidth solid @green;
  196. }
  197. .ui.orange.dividing.header {
  198. border-bottom: @dividedColoredBorderWidth solid @orange;
  199. }
  200. .ui.pink.dividing.header {
  201. border-bottom: @dividedColoredBorderWidth solid @pink;
  202. }
  203. .ui.purple.dividing.header {
  204. border-bottom: @dividedColoredBorderWidth solid @purple;
  205. }
  206. .ui.red.dividing.header {
  207. border-bottom: @dividedColoredBorderWidth solid @red;
  208. }
  209. .ui.teal.dividing.header {
  210. border-bottom: @dividedColoredBorderWidth solid @teal;
  211. }
  212. .ui.yellow.dividing.header {
  213. border-bottom: @dividedColoredBorderWidth solid @yellow;
  214. }
  215. /*-------------------
  216. Inverted
  217. --------------------*/
  218. .ui.inverted.header {
  219. color: @invertedColor;
  220. }
  221. .ui.inverted.header .sub.header {
  222. color: @invertedSubHeaderColor;
  223. }
  224. /*-------------------
  225. Inverted Colors
  226. --------------------*/
  227. .ui.inverted.black.header {
  228. background-color: @black !important;
  229. color: @white !important;
  230. }
  231. .ui.inverted.blue.header {
  232. background-color: @blue !important;
  233. color: @white !important;
  234. }
  235. .ui.inverted.green.header {
  236. background-color: @green !important;
  237. color: @white !important;
  238. }
  239. .ui.inverted.orange.header {
  240. background-color: @orange !important;
  241. color: @white !important;
  242. }
  243. .ui.inverted.pink.header {
  244. background-color: @pink !important;
  245. color: @white !important;
  246. }
  247. .ui.inverted.purple.header {
  248. background-color: @purple !important;
  249. color: @white !important;
  250. }
  251. .ui.inverted.red.header {
  252. background-color: @red !important;
  253. color: @white !important;
  254. }
  255. .ui.inverted.teal.header {
  256. background-color: @teal !important;
  257. color: @white !important;
  258. }
  259. .ui.inverted.yellow.header {
  260. background-color: @yellow !important;
  261. color: @white !important;
  262. }
  263. .ui.inverted.block.header {
  264. border-bottom: none;
  265. }
  266. /*-------------------
  267. Aligned
  268. --------------------*/
  269. .ui.left.aligned.header {
  270. text-align: left;
  271. }
  272. .ui.right.aligned.header {
  273. text-align: right;
  274. }
  275. .ui.centered.header,
  276. .ui.center.aligned.header {
  277. text-align: center;
  278. }
  279. .ui.justified.header {
  280. text-align: justify;
  281. }
  282. .ui.justified.header:after {
  283. display: inline-block;
  284. content: '';
  285. width: 100%;
  286. }
  287. /*-------------------
  288. Floated
  289. --------------------*/
  290. .ui.floated.header,
  291. .ui.left.floated.header {
  292. float: left;
  293. margin-top: 0em;
  294. margin-right: @floatedMargin;
  295. }
  296. .ui.right.floated.header {
  297. float: right;
  298. margin-top: 0em;
  299. margin-left: @floatedMargin;
  300. }
  301. /*-------------------
  302. Fittted
  303. --------------------*/
  304. .ui.fitted.header {
  305. padding: 0em;
  306. }
  307. /*-------------------
  308. Dividing
  309. --------------------*/
  310. .ui.dividing.header {
  311. padding-bottom: @dividedBorderPadding;
  312. border-bottom: @dividedBorder;
  313. }
  314. .ui.dividing.header .sub.header {
  315. padding-bottom: @dividedSubHeaderPadding;
  316. }
  317. .ui.dividing.header .icon {
  318. margin-bottom: @dividedIconPadding;
  319. }
  320. /*-------------------
  321. Block
  322. --------------------*/
  323. .ui.block.header {
  324. background: @blockBackground;
  325. padding: @blockVerticalPadding @blockHorizontalPadding;
  326. }
  327. /*-------------------
  328. Attached
  329. --------------------*/
  330. .ui.attached.header {
  331. background: @attachedBackground;
  332. margin: 0em;
  333. padding: @attachedVerticalPadding @attachedVerticalPadding;
  334. box-shadow: @attachedBoxShadow;
  335. }
  336. .ui.attached:not(.top, .bottom) {
  337. margin: 0em;
  338. }
  339. .ui.top.attached.header {
  340. margin-bottom: 0em;
  341. border-radius: @attachedBorderRadius @attachedBorderRadius 0em 0em;
  342. }
  343. .ui.bottom.attached.header {
  344. margin-top: 0em;
  345. border-radius: 0em 0em @attachedBorderRadius @attachedBorderRadius;
  346. }
  347. /*-------------------
  348. Sizing
  349. --------------------*/
  350. .ui.header {
  351. font-size: @medium;
  352. }
  353. .loadUIOverrides();