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.

447 lines
7.9 KiB

11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Header
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  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. margin-right: (@iconMargin / 2);
  56. vertical-align: baseline;
  57. }
  58. .ui.header .content {
  59. display: inline-block;
  60. vertical-align: @contentAlignment;
  61. }
  62. /* Positioning */
  63. .ui.header:first-child {
  64. margin-top: 0em;
  65. }
  66. .ui.header:last-child {
  67. margin-bottom: 0em;
  68. }
  69. .ui.header + p {
  70. margin-top: @precedingParagraphMargin;
  71. }
  72. /*--------------
  73. Page Heading
  74. ---------------*/
  75. h1.ui.header {
  76. min-height: 1rem;
  77. font-size: @h1;
  78. }
  79. h2.ui.header {
  80. font-size: @h2;
  81. }
  82. h3.ui.header {
  83. font-size: @h3;
  84. }
  85. h4.ui.header {
  86. font-size: @h4;
  87. }
  88. h5.ui.header {
  89. font-size: @h5;
  90. }
  91. /*--------------
  92. Content Heading
  93. ---------------*/
  94. .ui.tiny.header {
  95. font-size: @tiny;
  96. }
  97. .ui.small.header {
  98. font-size: @small;
  99. }
  100. .ui.medium.header {
  101. font-size: @medium;
  102. }
  103. .ui.large.header {
  104. font-size: @large;
  105. }
  106. .ui.huge.header {
  107. min-height: 1em;
  108. font-size: @huge;
  109. }
  110. /*--------------
  111. Loose Coupling
  112. ---------------*/
  113. .ui.header .ui.label {
  114. vertical-align: middle;
  115. }
  116. /*******************************
  117. Types
  118. *******************************/
  119. /*-------------------
  120. Icon
  121. --------------------*/
  122. .ui.icon.header {
  123. display: inline-block;
  124. text-align: center;
  125. }
  126. .ui.icon.header .icon {
  127. float: none;
  128. display: block;
  129. font-size: @iconHeaderSize;
  130. margin: 0em auto @iconHeaderMargin;
  131. opacity: @iconHeaderOpacity;
  132. padding: 0em;
  133. }
  134. .ui.icon.header .content {
  135. display: block;
  136. }
  137. .ui.icon.header .circular.icon {
  138. font-size: @circularHeaderIconSize;
  139. }
  140. .ui.icon.header .square.icon {
  141. font-size: @squareHeaderIconSize;
  142. }
  143. .ui.block.icon.header .icon {
  144. margin-bottom: 0em;
  145. }
  146. .ui.icon.header.aligned {
  147. margin-left: auto;
  148. margin-right: auto;
  149. display: block;
  150. }
  151. /*******************************
  152. States
  153. *******************************/
  154. .ui.disabled.header {
  155. opacity: @disabledOpacity;
  156. }
  157. /*******************************
  158. Variations
  159. *******************************/
  160. /*-------------------
  161. Colors
  162. --------------------*/
  163. .ui.black.header {
  164. color: @black !important;
  165. }
  166. .ui.blue.header {
  167. color: @blue !important;
  168. }
  169. .ui.green.header {
  170. color: @green !important;
  171. }
  172. .ui.orange.header {
  173. color: @orange !important;
  174. }
  175. .ui.pink.header {
  176. color: @pink !important;
  177. }
  178. .ui.purple.header {
  179. color: @purple !important;
  180. }
  181. .ui.red.header {
  182. color: @red !important;
  183. }
  184. .ui.teal.header {
  185. color: @teal !important;
  186. }
  187. .ui.yellow.header {
  188. color: @yellow !important;
  189. }
  190. .ui.black.dividing.header {
  191. border-bottom: @dividedColoredBorderWidth solid @black;
  192. }
  193. .ui.blue.dividing.header {
  194. border-bottom: @dividedColoredBorderWidth solid @blue;
  195. }
  196. .ui.green.dividing.header {
  197. border-bottom: @dividedColoredBorderWidth solid @green;
  198. }
  199. .ui.orange.dividing.header {
  200. border-bottom: @dividedColoredBorderWidth solid @orange;
  201. }
  202. .ui.pink.dividing.header {
  203. border-bottom: @dividedColoredBorderWidth solid @pink;
  204. }
  205. .ui.purple.dividing.header {
  206. border-bottom: @dividedColoredBorderWidth solid @purple;
  207. }
  208. .ui.red.dividing.header {
  209. border-bottom: @dividedColoredBorderWidth solid @red;
  210. }
  211. .ui.teal.dividing.header {
  212. border-bottom: @dividedColoredBorderWidth solid @teal;
  213. }
  214. .ui.yellow.dividing.header {
  215. border-bottom: @dividedColoredBorderWidth solid @yellow;
  216. }
  217. /*-------------------
  218. Inverted
  219. --------------------*/
  220. .ui.inverted.header {
  221. color: @invertedColor;
  222. }
  223. .ui.inverted.header .sub.header {
  224. color: @invertedSubHeaderColor;
  225. }
  226. /*-------------------
  227. Inverted Colors
  228. --------------------*/
  229. .ui.inverted.black.header {
  230. color: @darkGrey !important;
  231. }
  232. .ui.inverted.blue.header {
  233. color: @lightBlue !important;
  234. }
  235. .ui.inverted.green.header {
  236. color: @lightGreen !important;
  237. }
  238. .ui.inverted.orange.header {
  239. color: @lightOrange !important;
  240. }
  241. .ui.inverted.pink.header {
  242. color: @lightPink !important;
  243. }
  244. .ui.inverted.purple.header {
  245. color: @lightPurple !important;
  246. }
  247. .ui.inverted.red.header {
  248. color: @lightRed !important;
  249. }
  250. .ui.inverted.teal.header {
  251. color: @lightTeal !important;
  252. }
  253. .ui.inverted.yellow.header {
  254. color: @lightYellow !important;
  255. }
  256. .ui.inverted.block.header {
  257. border-bottom: none;
  258. }
  259. /*-------------------
  260. Aligned
  261. --------------------*/
  262. .ui.left.aligned.header {
  263. text-align: left;
  264. }
  265. .ui.right.aligned.header {
  266. text-align: right;
  267. }
  268. .ui.centered.header,
  269. .ui.center.aligned.header {
  270. text-align: center;
  271. }
  272. .ui.justified.header {
  273. text-align: justify;
  274. }
  275. .ui.justified.header:after {
  276. display: inline-block;
  277. content: '';
  278. width: 100%;
  279. }
  280. /*-------------------
  281. Floated
  282. --------------------*/
  283. .ui.floated.header,
  284. .ui.left.floated.header {
  285. float: left;
  286. margin-top: 0em;
  287. margin-right: @floatedMargin;
  288. }
  289. .ui.right.floated.header {
  290. float: right;
  291. margin-top: 0em;
  292. margin-left: @floatedMargin;
  293. }
  294. /*-------------------
  295. Fittted
  296. --------------------*/
  297. .ui.fitted.header {
  298. padding: 0em;
  299. }
  300. /*-------------------
  301. Dividing
  302. --------------------*/
  303. .ui.dividing.header {
  304. padding-bottom: @dividedBorderPadding;
  305. border-bottom: @dividedBorder;
  306. }
  307. .ui.dividing.header .sub.header {
  308. padding-bottom: @dividedSubHeaderPadding;
  309. }
  310. .ui.dividing.header .icon {
  311. margin-bottom: @dividedIconPadding;
  312. }
  313. .ui.inverted.dividing.header {
  314. border-bottom-color: @invertedDividedBorderColor;
  315. }
  316. /*-------------------
  317. Block
  318. --------------------*/
  319. .ui.block.header {
  320. background: @blockBackground;
  321. padding: @blockVerticalPadding @blockHorizontalPadding;
  322. box-shadow: @blockBoxShadow;
  323. border: @blockBorder;
  324. border-radius: @blockBorderRadius;
  325. }
  326. .ui.tiny.block.header {
  327. font-size: @tinyBlock;
  328. }
  329. .ui.small.block.header {
  330. font-size: @smallBlock;
  331. }
  332. .ui.block.header {
  333. font-size: @mediumBlock;
  334. }
  335. .ui.large.block.header {
  336. font-size: @largeBlock;
  337. }
  338. .ui.huge.block.header {
  339. font-size: @hugeBlock;
  340. }
  341. /*-------------------
  342. Attached
  343. --------------------*/
  344. .ui.attached.header {
  345. background: @attachedBackground;
  346. margin: 0em;
  347. padding: @attachedVerticalPadding @attachedHorizontalPadding;
  348. box-shadow: @attachedBoxShadow;
  349. border: @attachedBorder;
  350. margin-left: @attachedOffset;
  351. margin-right: @attachedOffset;
  352. }
  353. .ui.attached:not(.top):not(.bottom) {
  354. margin-top: 0em;
  355. margin-bottom: 0em;
  356. border-top: none;
  357. border-bottom: none;
  358. }
  359. .ui.top.attached.header {
  360. margin-bottom: 0em;
  361. border-bottom: none;
  362. border-radius: @attachedBorderRadius @attachedBorderRadius 0em 0em;
  363. }
  364. .ui.bottom.attached.header {
  365. margin-top: 0em;
  366. border-top: none;
  367. border-radius: 0em 0em @attachedBorderRadius @attachedBorderRadius;
  368. }
  369. .ui.tiny.attached.header {
  370. font-size: @tinyAttached;
  371. }
  372. .ui.small.attached.header {
  373. font-size: @smallAttached;
  374. }
  375. .ui.attached.header {
  376. font-size: @mediumAttached;
  377. }
  378. .ui.large.attached.header {
  379. font-size: @largeAttached;
  380. }
  381. .ui.huge.attached.header {
  382. font-size: @hugeAttached;
  383. }
  384. /*-------------------
  385. Sizing
  386. --------------------*/
  387. .ui.header {
  388. font-size: @medium;
  389. }
  390. .loadUIOverrides();