123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- /**
- * @class Ext.panel.Title
- */
- /**
- * Creates a visual theme for a Panel Title.
- *
- * @param {string} $ui
- * The name of the UI being created. Can not included spaces or special punctuation
- * (used in CSS class names).
- *
- * @param {String} [$xtype=paneltitle] (protected) The {@link Ext.Class#xtype} to use
- * in CSS selectors. For use by UI mixins of derived classes.
- *
- * @param {color} $color
- * Panel Title text color
- *
- * @param {string/number} $font-weight
- * Panel Title font-weight
- *
- * @param {number} $font-size
- * Panel Title font-size
- *
- * @param {number} $font-size-big
- * Panel Title font-size in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $line-height
- * Panel Title line-height
- *
- * @param {number} $line-height-big
- * Panel Title line-height in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {string} $font-family
- * Panel Title font-family
- *
- * @param {number/list} $padding
- * Panel Title padding
- *
- * @param {number/list} $padding-big
- * Panel Title padding in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number/list} $opacity
- * Panel Title opacity
- *
- * @param {color} $icon-color
- * Panel Title icon color.
- *
- * @param {number} $icon-size
- * Panel Title icon size
- *
- * @param {number} $icon-size-big
- * Panel Title icon size in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $icon-font-size
- * Panel Title icon font-size. Used for configuring the size of font icons
- *
- * @param {number} $icon-font-size-big
- * Panel Title icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $icon-horizontal-spacing
- * The space between the Panel Title icon and text when the icon is horizontally aligned
- *
- * @param {number} $icon-horizontal-spacing-big
- * The space between the Panel Title icon and text when the icon is horizontally aligned
- * in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $icon-vertical-spacing
- * The space between the Panel Title icon and text when the icon is vertically aligned
- *
- * @param {number} $icon-vertical-spacing-big
- * The space between the Panel Title icon and text when the icon is vertically aligned
- * in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $icon-opacity
- * Panel Title icon opacity
- *
- * @private
- */
- @mixin paneltitle-ui(
- $ui: null,
- $xtype: paneltitle,
- $color: null,
- $font-weight: null,
- $font-size: null,
- $font-size-big: null,
- $line-height: null,
- $line-height-big: null,
- $font-family: null,
- $padding: null,
- $padding-big: null,
- $opacity: null,
- $icon-color: null,
- $icon-size: null,
- $icon-size-big: null,
- $icon-font-size: null,
- $icon-font-size-big: null,
- $icon-horizontal-spacing: null,
- $icon-horizontal-spacing-big: null,
- $icon-vertical-spacing: null,
- $icon-vertical-spacing-big: null,
- $icon-opacity: null
- ) {
- $ui-suffix: ui-suffix($ui);
- @if $icon-font-size == null {
- $icon-font-size: $icon-size;
- }
- @if $icon-font-size-big == null {
- $icon-font-size-big: $icon-size-big;
- }
- @if $icon-color == null {
- $icon-color: $color;
- }
- .#{$prefix}#{$xtype}#{$ui-suffix} {
- color: $color;
- @include font($font-weight, $font-size, $line-height, $font-family);
- padding: $padding;
- @if $enable-big {
- .#{$prefix}big & {
- padding: $padding-big;
- font-size: $font-size-big;
- line-height: $line-height-big;
- }
- }
- .#{$prefix}icon-el {
- opacity: $icon-opacity;
- @include icon(
- $color: $icon-color,
- $size: $icon-size,
- $size-big: $icon-size-big,
- $font-size: $icon-font-size,
- $font-size-big: $icon-font-size-big
- );
- }
- .#{$prefix}text-el {
- opacity: $opacity;
- }
- &.#{$prefix}horizontal {
- &.#{$prefix}icon-align-top .#{$prefix}icon-el {
- margin-bottom: $icon-vertical-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-bottom: $icon-vertical-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-right .#{$prefix}icon-el {
- margin-left: $icon-horizontal-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-left: $icon-horizontal-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-bottom .#{$prefix}icon-el {
- margin-top: $icon-vertical-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-top: $icon-vertical-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-left .#{$prefix}icon-el {
- margin-right: $icon-horizontal-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-right: $icon-horizontal-spacing-big;
- }
- }
- }
- }
- &.#{$prefix}rotate-90 {
- padding: rotate90($padding);
- @if $enable-big {
- .#{$prefix}big & {
- padding: rotate90($padding-big);
- }
- }
- &.#{$prefix}icon-align-top .#{$prefix}icon-el {
- margin-left: $icon-vertical-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-left: $icon-vertical-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-right .#{$prefix}icon-el {
- margin-top: $icon-horizontal-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-top: $icon-horizontal-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-bottom .#{$prefix}icon-el {
- margin-right: $icon-vertical-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-right: $icon-vertical-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-left .#{$prefix}icon-el {
- margin-bottom: $icon-horizontal-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-bottom: $icon-horizontal-spacing-big;
- }
- }
- }
- }
- &.#{$prefix}rotate-270 {
- padding: rotate270($padding);
- @if $enable-big {
- .#{$prefix}big & {
- padding: rotate270($padding-big);
- }
- }
- &.#{$prefix}icon-align-top .#{$prefix}icon-el {
- margin-right: $icon-vertical-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-right: $icon-vertical-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-right .#{$prefix}icon-el {
- margin-bottom: $icon-horizontal-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-bottom: $icon-horizontal-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-bottom .#{$prefix}icon-el {
- margin-left: $icon-vertical-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-left: $icon-vertical-spacing-big;
- }
- }
- }
- &.#{$prefix}icon-align-left .#{$prefix}icon-el {
- margin-top: $icon-horizontal-spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin-top: $icon-horizontal-spacing-big;
- }
- }
- }
- }
- &.#{$prefix}vertical .#{$prefix}text-el {
- // fixes disappearing text bug on rotated titles in firefox
- width: $line-height;
- @if $enable-big {
- .#{$prefix}big & {
- width: $line-height-big;
- }
- }
- }
- }
- }
|