/* * # Semantic - Header * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Theme *******************************/ @type : 'element'; @element : 'header'; @import '../../semantic.config'; /******************************* Header *******************************/ /* Standard */ .ui.header { border: none; font-family: @headerFont; margin: @topMargin 0em @bottomMargin; padding: @verticalPadding @horizontalPadding; font-weight: @fontWeight; line-height: @lineHeight; text-transform: @textTransform; color: @textColor; } .ui.header .sub.header { font-size: @subHeaderFontSize; font-weight: normal; margin: 0em; padding: 0em; line-height: @subHeaderLineHeight; color: @subHeaderColor; } /* Icon and Content Together */ .ui.header > .icon { display: table-cell; font-size: @iconSize; padding-top: @iconOffset; vertical-align: @iconAlignment; padding-right: (@iconMargin / 2); } .ui.header > .icon + .content { padding-left: (@iconMargin / 2); display: table-cell; } /* Only One */ .ui.header .icon:only-child { display: inline-block; padding: 0em; vertical-align: middle; } .ui.header .content { display: inline-block; vertical-align: @contentAlignment; } /* Positioning */ .ui.header:first-child { margin-top: 0em; } .ui.header:last-child { margin-bottom: 0em; } .ui.header + p { margin-top: @precedingParagraphMargin; } /*-------------- Page Heading ---------------*/ h1.ui.header { min-height: 1rem; font-size: @h1; } h2.ui.header { font-size: @h2; } h3.ui.header { font-size: @h3; } h4.ui.header { font-size: @h4; } h5.ui.header { font-size: @h5; } /*-------------- Content Heading ---------------*/ .ui.tiny.header { font-size: @tiny; } .ui.small.header { font-size: @small; } .ui.medium.header { font-size: @medium; } .ui.large.header { font-size: @large; } .ui.huge.header { min-height: 1em; font-size: @huge; } /******************************* Types *******************************/ /*------------------- Icon --------------------*/ .ui.icon.header { display: inline-block; text-align: center; } .ui.icon.header .icon { float: none; display: block; font-size: @iconHeaderSize; margin: 0em auto @iconHeaderMargin; padding: 0em; } .ui.icon.header .content { display: block; } .ui.icon.header .circular.icon { font-size: @circularHeaderIconSize; } .ui.icon.header .square.icon { font-size: @squareHeaderIconSize; } .ui.block.icon.header .icon { margin-bottom: 0em; } .ui.icon.header.aligned { margin-left: auto; margin-right: auto; display: block; } /******************************* States *******************************/ .ui.disabled.header { opacity: @disabledOpacity; } /******************************* Variations *******************************/ /*------------------- Colors --------------------*/ .ui.black.header { color: @black !important; } .ui.blue.header { color: @blue !important; } .ui.green.header { color: @green !important; } .ui.orange.header { color: @orange !important; } .ui.pink.header { color: @pink !important; } .ui.purple.header { color: @purple !important; } .ui.red.header { color: @red !important; } .ui.teal.header { color: @teal !important; } .ui.yellow.header { color: @yellow !important; } .ui.black.dividing.header { border-bottom: @dividedColoredBorderWidth solid @black; } .ui.blue.dividing.header { border-bottom: @dividedColoredBorderWidth solid @blue; } .ui.green.dividing.header { border-bottom: @dividedColoredBorderWidth solid @green; } .ui.orange.dividing.header { border-bottom: @dividedColoredBorderWidth solid @orange; } .ui.pink.dividing.header { border-bottom: @dividedColoredBorderWidth solid @pink; } .ui.purple.dividing.header { border-bottom: @dividedColoredBorderWidth solid @purple; } .ui.red.dividing.header { border-bottom: @dividedColoredBorderWidth solid @red; } .ui.teal.dividing.header { border-bottom: @dividedColoredBorderWidth solid @teal; } .ui.yellow.dividing.header { border-bottom: @dividedColoredBorderWidth solid @yellow; } /*------------------- Inverted --------------------*/ .ui.inverted.header { color: @invertedColor; } .ui.inverted.header .sub.header { color: @invertedSubHeaderColor; } /*------------------- Inverted Colors --------------------*/ .ui.inverted.black.header { background-color: @white !important; color: @black !important; } .ui.inverted.blue.header { background-color: @white !important; color: @blue !important; } .ui.inverted.green.header { background-color: @white !important; color: @green !important; } .ui.inverted.orange.header { background-color: @white !important; color: @orange !important; } .ui.inverted.pink.header { background-color: @white !important; color: @pink !important; } .ui.inverted.purple.header { background-color: @white !important; color: @purple !important; } .ui.inverted.red.header { background-color: @white !important; color: @red !important; } .ui.inverted.teal.header { background-color: @white !important; color: @teal !important; } .ui.inverted.yellow.header { background-color: @white !important; color: @yellow !important; } .ui.inverted.block.header { border-bottom: none; } /*------------------- Aligned --------------------*/ .ui.left.aligned.header { text-align: left; } .ui.right.aligned.header { text-align: right; } .ui.centered.header, .ui.center.aligned.header { text-align: center; } .ui.justified.header { text-align: justify; } .ui.justified.header:after { display: inline-block; content: ''; width: 100%; } /*------------------- Floated --------------------*/ .ui.floated.header, .ui.left.floated.header { float: left; margin-top: 0em; margin-right: @floatedMargin; } .ui.right.floated.header { float: right; margin-top: 0em; margin-left: @floatedMargin; } /*------------------- Fittted --------------------*/ .ui.fitted.header { padding: 0em; } /*------------------- Dividing --------------------*/ .ui.dividing.header { padding-bottom: @dividedBorderPadding; border-bottom: @dividedBorder; } .ui.dividing.header .sub.header { padding-bottom: @dividedSubHeaderPadding; } .ui.dividing.header .icon { margin-bottom: @dividedIconPadding; } /*------------------- Block --------------------*/ .ui.block.header { background: @blockBackground; padding: @blockVerticalPadding @blockHorizontalPadding; } /*------------------- Attached --------------------*/ .ui.attached.header { background: @attachedBackground; margin: 0em; padding: @attachedVerticalPadding @attachedVerticalPadding; box-shadow: @attachedBoxShadow; } .ui.attached:not(.top, .bottom) { margin: 0em; } .ui.top.attached.header { margin-bottom: 0em; border-radius: @attachedBorderRadius @attachedBorderRadius 0em 0em; } .ui.bottom.attached.header { margin-top: 0em; border-radius: 0em 0em @attachedBorderRadius @attachedBorderRadius; } /*------------------- Sizing --------------------*/ .ui.header { font-size: @medium; } .loadUIOverrides();