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.

398 lines
7.2 KiB

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