123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476 |
- /**
- * @class Ext.panel.Panel
- */
- // TODO: setting this probably does not work well, since border-radius is typically
- // reserved for framed-panels - should we remove this?
- $panel-border-radius: dynamic(0);
- /**
- * @var {number}
- * The default border-width of Panels
- */
- $panel-border-width: dynamic(1px);
- /**
- * @var {color}
- * The base color of Panels
- */
- $panel-base-color: dynamic($base-color);
- /**
- * @var {color}
- * The default border-color of Panels
- */
- $panel-border-color: dynamic($panel-base-color);
- /**
- * @var {number}
- * The maximum width a Panel's border can be before resizer handles are embedded
- * into the borders using negative absolute positions.
- *
- * This defaults to 2, so that in the classic theme which uses 1 pixel borders,
- * resize handles are in the content area within the border as they always have
- * been.
- *
- * In the Neptune theme, the handles are embedded into the 5 pixel wide borders
- * of any framed panel.
- */
- $border-width-threshold: dynamic(2);
- // ===============================
- // ========= PANEL BODY ==========
- // ===============================
- /**
- * @var {string}
- * The default border-style of Panels
- */
- $panel-body-border-style: dynamic(solid);
- /**
- * @var {color}
- * The default body background-color of Panels
- */
- $panel-body-background-color: dynamic(#fff);
- /**
- * @var {color}
- * The default color of text inside a Panel's body
- */
- $panel-body-color: dynamic($color);
- /**
- * @var {color}
- * The default border-color of the Panel body
- */
- $panel-body-border-color: dynamic($panel-border-color);
- /**
- * @var {number}
- * The default border-width of the Panel body
- */
- $panel-body-border-width: dynamic(1px);
- /**
- * @var {number}
- * The default font-size of the Panel body
- */
- $panel-body-font-size: dynamic($font-size);
- /**
- * @var {string}
- * The default font-weight of the Panel body
- */
- $panel-body-font-weight: dynamic($font-weight);
- /**
- * @var {string}
- * The default font-family of the Panel body
- */
- $panel-body-font-family: dynamic($font-family);
- /**
- * @var {number}
- * The space between the Panel {@link Ext.panel.Tool Tools}
- */
- $panel-tool-spacing: dynamic(4px);
- /**
- * @var {string}
- * The background sprite to use for Panel {@link Ext.panel.Tool Tools}
- */
- $panel-tool-background-image: dynamic('tools/tool-sprites');
- /**
- * @var {color}
- * The color of the outline around Panel {@link Ext.panel.Tool Tools} when focused
- */
- $panel-tool-focus-outline-color: dynamic($base-color);
- /**
- * @var {string}
- * The outline-style of Panel {@link Ext.panel.Tool Tools} when focused
- */
- $panel-tool-focus-outline-style: dynamic(solid);
- /**
- * @var {number}
- * The outline-width of Panel {@link Ext.panel.Tool Tools} when focused
- */
- $panel-tool-focus-outline-width: dynamic(1px);
- /**
- * @var {number}
- * The outline-offset of Panel {@link Ext.panel.Tool Tools} when focused
- */
- $panel-tool-focus-outline-offset: dynamic(0);
- /**
- * @var {color}
- * The text color of focused Panel tool glyph
- */
- $panel-tool-focus-color: dynamic(null);
- /**
- * @var {color}
- * The background color of focused Panel tool
- */
- $panel-tool-focus-background-color: dynamic(null);
- /**
- * @var {string}
- * The background sprite to use for focused Panel tools
- */
- $panel-tool-focus-background-image: dynamic($panel-tool-background-image);
- /**
- * @var {number}
- * The border-width of Panel Headers
- */
- $panel-header-border-width: dynamic($panel-border-width);
- /**
- * @var {string}
- * The border-style of Panel Headers
- */
- $panel-header-border-style: dynamic(solid);
- /**
- * @var {color}
- * The color of the outline around focused Panel title
- */
- $panel-header-focus-outline-color: dynamic($base-color);
- /**
- * @var {string}
- * The outline style of the focused Panel title
- */
- $panel-header-focus-outline-style: dynamic(solid);
- /**
- * @var {number}
- * The outline width of the focused Panel title
- */
- $panel-header-focus-outline-width: dynamic(1px);
- /**
- * @var {number}
- * The offset for focused Panel title outline
- */
- $panel-header-focus-outline-offset: dynamic(1px);
- /**
- * @var {color}
- * The color of Panel title text when header is focused
- */
- $panel-header-focus-color: dynamic(null);
- /**
- * @var {color}
- * The background color of Panel title text when header is focused
- */
- $panel-header-focus-background-color: dynamic(null);
- /**
- * @var {number/list}
- * The padding of Panel Headers
- */
- $panel-header-padding: dynamic(5px);
- /**
- * @var {number}
- * The font-size of Panel Headers
- */
- $panel-header-font-size: dynamic($font-size);
- /**
- * @var {number}
- * The line-height of Panel Headers
- */
- $panel-header-line-height: dynamic(16px);
- /**
- * @var {string}
- * The font-weight of Panel Headers
- */
- $panel-header-font-weight: dynamic($font-weight-bold);
- /**
- * @var {string}
- * The font-family of Panel Headers
- */
- $panel-header-font-family: dynamic($font-family);
- /**
- * @var {string}
- * The text-transform of Panel Headers
- */
- $panel-header-text-transform: dynamic(none);
- /**
- * @var {number/list}
- * The padding of the Panel Header's text element
- */
- $panel-header-text-padding: dynamic(0);
- /**
- * @var {number/list}
- * The margin of the Panel Header's text element
- */
- $panel-header-text-margin: dynamic(0);
- /**
- * @var {string/list}
- * The background-gradient of the Panel Header. Can be either the name of a predefined
- * gradient or a list of color stops. Used as the `$type` parameter for
- * {@link Global_CSS#background-gradient}.
- */
- $panel-header-background-gradient: dynamic('none');
- /**
- * @var {color}
- * The border-color of the Panel Header
- */
- $panel-header-border-color: dynamic($panel-border-color);
- /**
- * @var {color}
- * The inner border-color of the Panel Header
- */
- $panel-header-inner-border-color: dynamic(#fff);
- /**
- * @var {number}
- * The inner border-width of the Panel Header
- */
- $panel-header-inner-border-width: dynamic(0);
- /**
- * @var {color}
- * The text color of the Panel Header
- */
- $panel-header-color: dynamic($color);
- /**
- * @var {color}
- * The background-color of the Panel Header
- */
- $panel-header-background-color: dynamic($panel-base-color);
- /**
- * @var {number}
- * The width of the Panel Header icon
- */
- $panel-header-icon-width: dynamic(16px);
- /**
- * @var {number}
- * The height of the Panel Header icon
- */
- $panel-header-icon-height: dynamic(16px);
- /**
- * @var {number}
- * The space between the Panel Header icon and text
- */
- $panel-header-icon-spacing: dynamic(4px);
- /**
- * @var {list}
- * The background-position of the Panel Header icon
- */
- $panel-header-icon-background-position: dynamic(center center);
- /**
- * @var {color}
- * The color of the Panel Header glyph icon
- */
- $panel-header-glyph-color: dynamic($panel-header-color);
- /**
- * @var {number}
- * The opacity of the Panel Header glyph icon
- */
- $panel-header-glyph-opacity: dynamic(.5);
- /**
- * @var {boolean}
- * True to adjust the padding of borderless panel headers so that their height is the same
- * as the height of bordered panels. This is helpful when borderless and bordered panels
- * are used side-by-side, as it maintains a consistent vertical alignment.
- */
- $panel-header-noborder-adjust: dynamic(true);
- /**
- * @var {color}
- * The base color of the framed Panels
- */
- $panel-frame-base-color: dynamic($panel-base-color);
- /**
- * @var {number}
- * The border-radius of framed Panels
- */
- $panel-frame-border-radius: dynamic(4px);
- /**
- * @var {number}
- * The border-width of framed Panels
- */
- $panel-frame-border-width: dynamic(1px);
- /**
- * @var {string}
- * The border-style of framed Panels
- */
- $panel-frame-border-style: dynamic(solid);
- /**
- * @var {number}
- * The padding of {@link Ext.panel.Panel#cfg-frame framed} Panels.
- *
- * The padding value must be equal to or greater than value specified in the
- * {@link #$panel-frame-border-radius} variable (or the maximum value if corner values
- * are specified individually).
- * See also: {@link #$panel-ignore-frame-padding}
- */
- $panel-frame-padding: dynamic(4px);
- /**
- * @var {color}
- * The background-color of framed Panels
- */
- $panel-frame-background-color: dynamic(#fff);
- /**
- * @var {color}
- * The border-color of framed Panels
- */
- $panel-frame-border-color: dynamic($panel-border-color);
- /**
- * @var {number}
- * The border-width of the body element of framed Panels
- */
- $panel-frame-body-border-width: dynamic(1px);
- /**
- * @var {number}
- * The border-width of framed Panel Headers
- */
- $panel-frame-header-border-width: dynamic($panel-header-border-width);
- /**
- * @var {color}
- * The inner border-color of framed Panel Headers
- */
- $panel-frame-header-inner-border-color: dynamic(#fff);
- /**
- * @var {number}
- * The inner border-width of framed Panel Headers
- */
- $panel-frame-header-inner-border-width: dynamic(0);
- /**
- * @var {number/list}
- * The padding of framed Panel Headers
- */
- $panel-frame-header-padding: dynamic($panel-header-padding);
- /**
- * @var {number}
- * The opacity of ghost Panels while dragging
- */
- $panel-ghost-opacity: dynamic(0.50);
- /**
- * @var {string}
- * The direction to strech the background-gradient of top docked Headers when slicing images
- * for IE using Sencha Cmd
- */
- $panel-background-stretch-top: dynamic(bottom);
- /**
- * @var {string}
- * The direction to strech the background-gradient of bottom docked Headers when slicing images
- * for IE using Sencha Cmd
- */
- $panel-background-stretch-bottom: dynamic(top);
- /**
- * @var {string}
- * The direction to strech the background-gradient of right docked Headers when slicing images
- * for IE using Sencha Cmd
- */
- $panel-background-stretch-right: dynamic(left);
- /**
- * @var {string}
- * The direction to strech the background-gradient of left docked Headers when slicing images
- * for IE using Sencha Cmd
- */
- $panel-background-stretch-left: dynamic(right);
- /**
- * @var {boolean}
- * True to include neptune style border management rules.
- */
- $panel-include-border-management-rules: dynamic(false);
- /**
- * @var {color}
- * The color to apply to the border that wraps the body and docked items in a framed
- * panel. The presence of the wrap border in a framed panel is controlled by the
- * {@link #border} config. Only applicable when `$panel-include-border-management-rules` is
- * `true`.
- */
- $panel-wrap-border-color: dynamic($panel-border-color);
- /**
- * @var {number}
- * The width to apply to the border that wraps the body and docked items in a framed
- * panel. The presence of the wrap border in a framed panel is controlled by the
- * {@link #border} config. Only applicable when `$panel-include-border-management-rules` is
- * `true`.
- */
- $panel-wrap-border-width: dynamic(1px);
- /**
- * @var {boolean}
- * True to include the "default" panel UI
- */
- $include-panel-default-ui: dynamic($include-default-uis);
- /**
- * @var {boolean}
- * True to include the "default-framed" panel UI
- */
- $include-panel-default-framed-ui: dynamic($include-default-uis);
- /**
- * @var {boolean}
- * True to ignore the frame padding. By default, the frame mixin adds extra padding when
- * border radius is larger than border width. This is intended to prevent the content
- * from colliding with the rounded corners of the frame. Set this to true to prevent
- * the panel frame from adding this extra padding.
- *
- * **Note:** This var is not applicable to IE8 & IE9.
- */
- $panel-ignore-frame-padding: dynamic(false);
- /**
- * Creates a visual theme for a Panel.
- *
- * **Note:** When using `frame: true`, this mixin call creates a UI property with the name and a "-framed" suffix.
- *
- * For example, Panel's UI will be set to "highlight-framed" if `frame:true`.
- *
- * @param {string} $ui
- * The name of the UI being created. Can not included spaces or special punctuation
- * (used in CSS class names).
- *
- * @param {color} [$ui-border-color=$panel-border-color]
- * The border-color of the Panel
- *
- * @param {number} [$ui-border-radius=$panel-border-radius]
- * The border-radius of the Panel
- *
- * @param {number} [$ui-border-width=$panel-border-width]
- * The border-width of the Panel
- *
- * @param {number} [$ui-padding=$panel-padding]
- * The padding of the Panel
- *
- * @param {color} [$ui-header-color=$panel-header-color]
- * The text color of the Header
- *
- * @param {string} [$ui-header-font-family=$panel-header-font-family]
- * The font-family of the Header
- *
- * @param {number} [$ui-header-font-size=$panel-header-font-size]
- * The font-size of the Header
- *
- * @param {string} [$ui-header-font-weight=$panel-header-font-weight]
- * The font-weight of the Header
- *
- * @param {number} [$ui-header-line-height=$panel-header-line-height]
- * The line-height of the Header
- *
- * @param {color} [$ui-header-border-color=$panel-header-border-color]
- * The border-color of the Header
- *
- * @param {number} [$ui-header-border-width=$panel-header-border-width]
- * The border-width of the Header
- *
- * @param {string} [$ui-header-border-style=$panel-header-border-style]
- * The border-style of the Header
- *
- * @param {color} [$ui-header-focus-outline-color=$panel-header-focus-outline-color]
- * The outline color of the Header's focus
- *
- * @param {string} [$ui-header-focus-outline-style=$panel-header-focus-outline-style]
- * The outline style of the Header's focus
- *
- * @param {number} [$ui-header-focus-outline-width=$panel-header-focus-outline-width]
- * The outline width of the Header's focus
- *
- * @param {number} [$ui-header-focus-outline-offset=$panel-header-focus-outline-offset]
- * The outline offset of the Header's focus
- *
- * @param {color} [$ui-header-focus-color=$panel-header-focus-color]
- * The color of the Header's focus
- *
- * @param [$ui-header-focus-background-color=$panel-header-focus-background-color]
- * The background color of the Header's focus
- *
- * @param {color} [$ui-header-background-color=$panel-header-background-color]
- * The background-color of the Header
- *
- * @param {string/list} [$ui-header-background-gradient=$panel-header-background-gradient]
- * The background-gradient of the Header. Can be either the name of a predefined gradient
- * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
- *
- * @param {color} [$ui-header-inner-border-color=$panel-header-inner-border-color]
- * The inner border-color of the Header
- *
- * @param {number} [$ui-header-inner-border-width=$panel-header-inner-border-width]
- * The inner border-width of the Header
- *
- * @param {number/list} [$ui-header-text-padding=$panel-header-text-padding]
- * The padding of the Header's text element
- *
- * @param {number/list} [$ui-header-text-margin=$panel-header-text-margin]
- * The margin of the Header's text element
- *
- * @param {string} [$ui-header-text-transform=$panel-header-text-transform]
- * The text-transform of the Header
- *
- * @param {number/list} [$ui-header-padding=$panel-header-padding]
- * The padding of the Header
- *
- * @param {number} [$ui-header-icon-width=$panel-header-icon-width]
- * The width of the Header icon
- *
- * @param {number} [$ui-header-icon-height=$panel-header-icon-height]
- * The height of the Header icon
- *
- * @param {number} [$ui-header-icon-spacing=$panel-header-icon-spacing]
- * The space between the Header icon and text
- *
- * @param {list} [$ui-header-icon-background-position=$panel-header-icon-background-position]
- * The background-position of the Header icon
- *
- * @param {color} [$ui-header-glyph-color=$panel-header-glyph-color]
- * The color of the Header glyph icon
- *
- * @param {number} [$ui-header-glyph-opacity=$panel-header-glyph-opacity]
- * The opacity of the Header glyph icon
- *
- * @param {number} [$ui-header-noborder-adjust=$panel-header-noborder-adjust]
- * True to adjust the padding of borderless panel headers so that their height is the same
- * as the height of bordered panels. This is helpful when borderless and bordered panels
- * are used side-by-side, as it maintains a consistent vertical alignment.
- *
- * @param {number} [$ui-tool-spacing=$panel-tool-spacing]
- * The space between the Panel {@link Ext.panel.Tool Tools}
- *
- * @param {string} [$ui-tool-background-image=$panel-tool-background-image]
- * The background sprite to use for Panel {@link Ext.panel.Tool Tools}
- *
- * @param {color} [$ui-tool-glyph-color=$tool-glyph-color]
- * The color to use for tool icons when {@link Global_CSS#$enable-font-icons} is `true`.
- *
- * @param {color} [$ui-tool-focus-outline-color=$panel-tool-focus-outline-color]
- * The color of the outline around Panel {@link Ext.panel.Tool Tools} when focused
- *
- * @param {string} [$ui-tool-focus-outline-style=$panel-tool-focus-outline-style]
- * The outline-style of Panel {@link Ext.panel.Tool Tools} when focused
- *
- * @param {number} [$ui-tool-focus-outline-width=$panel-tool-focus-outline-width]
- * The outline-width of Panel {@link Ext.panel.Tool Tools} when focused
- *
- * @param {number} [$ui-tool-focus-outline-offset=$panel-tool-focus-outline-offset]
- * The outline-offset of Panel {@link Ext.panel.Tool Tools} when focused
- *
- * @param {color} [$ui-tool-focus-color]
- * The text color of the focused Panel tool glyph
- *
- * @param {color} [$ui-tool-focus-background-color]
- * The background color of the focused Panel tool
- *
- * @param {string} [$ui-tool-focus-background-image]
- * The sprite to use for focused Panel tools
- *
- * @param {color} [$ui-body-color=$panel-body-color]
- * The color of text inside the Panel body
- *
- * @param {color} [$ui-body-border-color=$panel-body-border-color]
- * The border-color of the Panel body
- *
- * @param {number} [$ui-body-border-width=$panel-body-border-width]
- * The border-width of the Panel body
- *
- * @param {string} [$ui-body-border-style=$panel-body-border-style]
- * The border-style of the Panel body
- *
- * @param {color} [$ui-body-background-color=$panel-body-background-color]
- * The background-color of the Panel body
- *
- * @param {number} [$ui-body-font-size=$panel-body-font-size]
- * The font-size of the Panel body
- *
- * @param {string} [$ui-body-font-weight=$panel-body-font-weight]
- * The font-weight of the Panel body
- *
- * @param {string} [$ui-body-font-family=$panel-body-font-family]
- * The font-family of the Panel body
- *
- * @param {string} [$ui-background-stretch-top=$panel-background-stretch-top]
- * The direction to stretch the background-gradient of top docked Headers when slicing images
- * for IE using Sencha Cmd
- *
- * @param {string} [$ui-background-stretch-bottom=$panel-background-stretch-bottom]
- * The direction to stretch the background-gradient of bottom docked Headers when slicing images
- * for IE using Sencha Cmd
- *
- * @param {string} [$ui-background-stretch-right=$panel-background-stretch-right]
- * The direction to stretch the background-gradient of right docked Headers when slicing images
- * for IE using Sencha Cmd
- *
- * @param {string} [$ui-background-stretch-left=$panel-background-stretch-left]
- * The direction to stretch the background-gradient of left docked Headers when slicing images
- * for IE using Sencha Cmd
- *
- * @param {boolean} [$ui-include-border-management-rules=$panel-include-border-management-rules]
- * True to include neptune style border management rules.
- *
- * @param {color} [$ui-wrap-border-color=$panel-wrap-border-color]
- * The color to apply to the border that wraps the body and docked items in a framed
- * panel. The presence of the wrap border in a framed panel is controlled by the
- * {@link #border} config. Only applicable when `$ui-include-border-management-rules` is
- * `true`.
- *
- * @param {color} [$ui-wrap-border-width=$panel-wrap-border-width]
- * The width to apply to the border that wraps the body and docked items in a framed
- * panel. The presence of the wrap border in a framed panel is controlled by the
- * {@link #border} config. Only applicable when `$ui-include-border-management-rules` is
- * `true`.
- *
- * @param {boolean} [$ui-ignore-frame-padding=$panel-ignore-frame-padding]
- * True to ignore the frame padding. By default, the frame mixin adds extra padding when
- * border radius is larger than border width. This is intended to prevent the content
- * from colliding with the rounded corners of the frame. Set this to true to prevent
- * the panel frame from adding this extra padding.
- *
- * @param {string} $ui-label
- * This is deprecated, please use $ui instead.
- *
- * @member Ext.panel.Panel
- */
- @mixin extjs-panel-ui(
- $ui: null,
- $ui-border-color: $panel-border-color,
- $ui-border-radius: $panel-border-radius,
- $ui-border-width: $panel-border-width,
- $ui-padding: 0,
- $ui-header-color: $panel-header-color,
- $ui-header-font-family: $panel-header-font-family,
- $ui-header-font-size: $panel-header-font-size,
- $ui-header-font-weight: $panel-header-font-weight,
- $ui-header-line-height: $panel-header-line-height,
- $ui-header-border-color: $panel-header-border-color,
- $ui-header-border-width: $panel-header-border-width,
- $ui-header-border-style: $panel-header-border-style,
- $ui-header-focus-outline-color: $panel-header-focus-outline-color,
- $ui-header-focus-outline-style: $panel-header-focus-outline-style,
- $ui-header-focus-outline-width: $panel-header-focus-outline-width,
- $ui-header-focus-outline-offset: $panel-header-focus-outline-offset,
- $ui-header-focus-color: $panel-header-focus-color,
- $ui-header-focus-background-color: $panel-header-focus-background-color,
- $ui-header-background-color: $panel-header-background-color,
- $ui-header-background-gradient: $panel-header-background-gradient,
- $ui-header-inner-border-color: $panel-header-inner-border-color,
- $ui-header-inner-border-width: $panel-header-inner-border-width,
- $ui-header-text-padding: $panel-header-text-padding,
- $ui-header-text-margin: $panel-header-text-margin,
- $ui-header-text-transform: $panel-header-text-transform,
- $ui-header-padding: $panel-header-padding,
- $ui-header-icon-width: $panel-header-icon-width,
- $ui-header-icon-height: $panel-header-icon-height,
- $ui-header-icon-spacing: $panel-header-icon-spacing,
- $ui-header-icon-background-position: $panel-header-icon-background-position,
- $ui-header-glyph-color: $panel-header-glyph-color,
- $ui-header-glyph-opacity: $panel-header-glyph-opacity,
- $ui-header-noborder-adjust: $panel-header-noborder-adjust,
- $ui-tool-spacing: $panel-tool-spacing,
- $ui-tool-background-image: $panel-tool-background-image,
- $ui-tool-glyph-color: $tool-glyph-color,
- $ui-tool-focus-outline-color: $panel-tool-focus-outline-color,
- $ui-tool-focus-outline-style: $panel-tool-focus-outline-style,
- $ui-tool-focus-outline-width: $panel-tool-focus-outline-width,
- $ui-tool-focus-outline-offset: $panel-tool-focus-outline-offset,
- $ui-tool-focus-color: $panel-tool-focus-color,
- $ui-tool-focus-background-color: $panel-tool-focus-background-color,
- $ui-tool-focus-background-image: $panel-tool-focus-background-image,
- $ui-body-color: $panel-body-color,
- $ui-body-border-color: $panel-body-border-color,
- $ui-body-border-width: $panel-body-border-width,
- $ui-body-border-style: $panel-body-border-style,
- $ui-body-background-color: $panel-body-background-color,
- $ui-body-font-size: $panel-body-font-size,
- $ui-body-font-weight: $panel-body-font-weight,
- $ui-body-font-family: $panel-body-font-family,
- $ui-background-stretch-top: $panel-background-stretch-top,
- $ui-background-stretch-bottom: $panel-background-stretch-bottom,
- $ui-background-stretch-right: $panel-background-stretch-right,
- $ui-background-stretch-left: $panel-background-stretch-left,
- // See the docs above
- $ui-include-border-management-rules: $panel-include-border-management-rules,
- $ui-wrap-border-color: null,
- $ui-wrap-border-width: null,
- $ui-ignore-frame-padding: $panel-ignore-frame-padding,
- // deprecated - use $ui instead
- $ui-label: null
- ){
- @if $ui == null {
- @if $ui-label != null {
- @warn '$ui-label is deprecated. Use $ui instead';
- $ui: $ui-label;
- } @else {
- @warn "#{error('$ui is required')}";
- }
- }
- @if is-null($ui-wrap-border-color) {
- @if $ui == 'default-framed' {
- $ui-wrap-border-color: $panel-wrap-border-color;
- } @else {
- $ui-wrap-border-color: $ui-border-color;
- }
- }
- @if is-null($ui-wrap-border-width) {
- @if $ui == 'default-framed' {
- $ui-wrap-border-width: $panel-wrap-border-width;
- } @else {
- $ui-wrap-border-width: $ui-border-width;
- }
- }
- @if is-null($ui-header-inner-border-color) and not is-null($ui-header-background-color) {
- $ui-header-inner-border-color: lighten($ui-header-background-color, 10);
- }
- $ui-header-padding-noborder:
- top($ui-header-padding) + top($ui-header-border-width)
- right($ui-header-padding) + right($ui-header-border-width)
- // don't add bottom border since bottom border always gets removed by dock layout
- bottom($ui-header-padding)
- left($ui-header-padding) + left($ui-header-border-width);
- .#{$prefix}panel-#{$ui} {
- @if not is-null($ui-border-color) {
- border-color: $ui-border-color;
- &.#{$prefix}masked {
- border-color: mix(#fff, $ui-border-color, $loadmask-opacity * 100);
- }
- }
- padding: $ui-padding;
- }
- // header
- .#{$prefix}panel-header-#{$ui} {
- @if not is-null($ui-header-font-size) { font-size: $ui-header-font-size; }
- @if $ui-header-border-width != 0 {
- border: $ui-header-border-width $ui-header-border-style $ui-header-border-color;
- }
- // Non font icon themes allow using glyphs as well
- @if $ui-tool-glyph-color != $tool-glyph-color {
- .#{$prefix}tool-tool-el {
- color: $ui-tool-glyph-color;
- }
- }
- @if not $enable-font-icons {
- .#{$prefix}tool-img {
- @if $ui-tool-background-image != $tool-background-image {
- background-image: theme-background-image($ui-tool-background-image);
- }
- }
- }
- @if is-null($ui-header-background-gradient) {
- // EXTJSIV-8846: partially transparent png images do not display correctly
- // in winXP/IE8 when the image element has a transparent background.
- // to fix this, we give the element the same background-color as the header.
- .#{$prefix}tool-tool-el {
- background-color: $ui-header-background-color;
- }
- }
- }
- .#{$prefix}panel-header-#{$ui}-horizontal {
- padding: $ui-header-padding;
- @if $include-ext-tab-bar {
- .#{$prefix}panel-header-#{$ui}-tab-bar {
- margin-top: -(top($ui-header-padding));
- margin-bottom: -(bottom($ui-header-padding));
- }
- }
- }
- @if $ui-header-noborder-adjust {
- .#{$prefix}panel-header-#{$ui}-horizontal.#{$prefix}header-noborder {
- padding: $ui-header-padding-noborder;
- @if $include-ext-tab-bar {
- .#{$prefix}panel-header-#{$ui}-tab-bar {
- margin-top: -(top($ui-header-padding-noborder));
- margin-bottom: -(bottom($ui-header-padding-noborder));
- }
- }
- }
- }
- .#{$prefix}panel-header-#{$ui}-vertical {
- padding: rotate90($ui-header-padding);
- @if $include-ext-tab-bar {
- .#{$prefix}panel-header-#{$ui}-tab-bar {
- margin-right: -(top($ui-header-padding));
- margin-left: -(bottom($ui-header-padding));
- }
- }
- }
- @if $ui-header-noborder-adjust {
- .#{$prefix}panel-header-#{$ui}-vertical.#{$prefix}header-noborder {
- padding: rotate90($ui-header-padding-noborder);
- @if $include-ext-tab-bar {
- .#{$prefix}panel-header-#{$ui}-tab-bar {
- margin-right: -(top($ui-header-padding-noborder));
- margin-left: -(bottom($ui-header-padding-noborder));
- }
- }
- }
- }
- @if $include-rtl {
- .#{$prefix}rtl.#{$prefix}panel-header-#{$ui}-vertical {
- padding: rotate270($ui-header-padding);
- @if $include-ext-tab-bar {
- .#{$prefix}panel-header-#{$ui}-tab-bar {
- margin-left: -(top($ui-header-padding));
- margin-right: -(bottom($ui-header-padding));
- }
- }
- }
- @if $ui-header-noborder-adjust {
- .#{$prefix}rtl.#{$prefix}panel-header-#{$ui}-vertical.#{$prefix}header-noborder {
- padding: rotate270($ui-header-padding-noborder);
- @if $include-ext-tab-bar {
- .#{$prefix}panel-header-#{$ui}-tab-bar {
- margin-left: -(top($ui-header-padding-noborder));
- margin-right: -(bottom($ui-header-padding-noborder));
- }
- }
- }
- }
- }
- .#{$prefix}panel-header-title-#{$ui} {
- @if not is-null($ui-header-color) { color: $ui-header-color; }
- @if not is-null($ui-header-font-size) { font-size: $ui-header-font-size; }
- @if not is-null($ui-header-font-weight) { font-weight: $ui-header-font-weight; }
- @if not is-null($ui-header-font-family) { font-family: $ui-header-font-family; }
- @if not is-null($ui-header-line-height) { line-height: $ui-header-line-height; }
- @if $ui-header-text-margin != 0 {
- margin: $ui-header-text-margin;
- }
-
- &.#{$prefix}title-focus {
- .#{$prefix}keyboard-mode & {
- @if not is-null($ui-header-focus-color) {
- color: $ui-header-focus-color;
- }
- @if not is-null($ui-header-focus-background-color) {
- background-color: $ui-header-focus-background-color;
- }
- @if not is-null($ui-header-focus-outline-width) {
- @include css-outline(
- $width: $ui-header-focus-outline-width,
- $style: $ui-header-focus-outline-style,
- $color: $ui-header-focus-outline-color,
- $offset: $ui-header-focus-outline-offset
- );
- }
- }
- }
- > {
- .#{$prefix}title-text-#{$ui} {
- text-transform: $ui-header-text-transform;
- padding: $ui-header-text-padding;
- @if $ext-trial {
- &:after {
- font-family: ext-watermark;
- font-size: ($ui-header-line-height + vertical($ui-header-padding)) * 0.75;
- content: 'd';
- position: absolute;
- top: 0;
- right: 0;
- // since IE8 does not support opacity on pseudo elements we simulate it by
- // mixing the text color with the background color
- color: mix($ui-header-color, $ui-header-background-color, 40%);
- }
- @if $include-rtl {
- &.#{$prefix}rtl:after {
- right: auto;
- left: 0;
- }
- }
- }
- @if $ext-beta {
- &:after {
- font-family: ext-watermark;
- font-size: ($ui-header-line-height + vertical($ui-header-padding)) * 0.75;
- content: 'b';
- position: absolute;
- top: 0;
- right: 0;
- // since IE8 does not support opacity on pseudo elements we simulate it by
- // mixing the text color with the background color
- color: mix($ui-header-color, $ui-header-background-color, 40%);
- }
- @if $include-rtl {
- &.#{$prefix}rtl:after {
- right: auto;
- left: 0;
- }
- }
- }
- }
- .#{$prefix}title-icon-wrap-#{$ui} {
- &.#{$prefix}title-icon-top {
- height: $ui-header-icon-height + $ui-header-icon-spacing;
- padding-bottom: $ui-header-icon-spacing;
- }
- &.#{$prefix}title-icon-right {
- width: $ui-header-icon-width + $ui-header-icon-spacing;
- padding-left: $ui-header-icon-spacing;
- @if $include-rtl {
- &.#{$prefix}rtl {
- padding-left: 0;
- padding-right: $ui-header-icon-spacing;
- }
- }
- }
- &.#{$prefix}title-icon-bottom {
- height: $ui-header-icon-height + $ui-header-icon-spacing;
- padding-top: $ui-header-icon-spacing;
- }
- &.#{$prefix}title-icon-left {
- width: $ui-header-icon-width + $ui-header-icon-spacing;
- padding-right: $ui-header-icon-spacing;
- @if $include-rtl {
- &.#{$prefix}rtl {
- padding-right: 0;
- padding-left: $ui-header-icon-spacing;
- }
- }
- }
- > .#{$prefix}title-icon-#{$ui} {
- width: $ui-header-icon-width;
- height: $ui-header-icon-height;
- font-size: $ui-header-icon-height;
- color: $ui-header-glyph-color;
- background-position: $ui-header-icon-background-position;
- &.#{$prefix}title-glyph {
- @if $ui-header-glyph-opacity != 1 {
- // do not use the opacity mixin because we do not want IE's filter version of
- // opacity to be included. We emulate the opacity setting in IE8m by mixing
- // the icon color into the background color. (see below)
- opacity: $ui-header-glyph-opacity;
- }
- // In IE8 and below when a glyph contains partially transparent pixels, we
- // can't apply an opacity filter to the glyph element, because IE8m will render
- // the partially transparent pixels of the glyph as black. To work around this,
- // we emulate the approximate color that the glyph would have if it had opacity
- // applied by mixing the glyph color with the header's background-color.
- @if $include-ie {
- .#{$prefix}ie8 & {
- color: mix($ui-header-glyph-color, $ui-header-background-color, $ui-header-glyph-opacity * 100);
- }
- }
- }
- }
- }
- }
- }
- // body
- .#{$prefix}panel-body-#{$ui} {
- @if not is-null($ui-body-background-color) { background: $ui-body-background-color; }
- @if not is-null($ui-body-border-color) { border-color: $ui-body-border-color; }
- @if not is-null($ui-body-color) { color: $ui-body-color; }
- @if not is-null($ui-body-font-size) { font-size: $ui-body-font-size; }
- @if not is-null($ui-body-font-weight) { font-weight: $ui-body-font-weight; }
- @if not is-null($ui-body-font-family) { font-family: $ui-body-font-family; }
- @if not is-null($ui-body-border-width) {
- border-width: $ui-body-border-width;
- @if not is-null($ui-body-border-style) { border-style: $ui-body-border-style; }
- }
- }
- @if not is-null($ui-border-radius) and $ui-border-radius != 0 {
- @include x-frame(
- $cls: 'panel',
- $ui: '#{$ui}',
- $border-radius: $ui-border-radius,
- $border-width: $ui-border-width,
- $padding: $ui-padding,
- $background-color: $ui-body-background-color,
- $ignore-frame-padding: $ui-ignore-frame-padding
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-top',
- $border-radius: top($ui-border-radius) right($ui-border-radius) 0 0,
- $border-width: top($ui-header-border-width) right($ui-header-border-width) 0 left($ui-header-border-width),
- $padding: $ui-header-padding,
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-stretch: $ui-background-stretch-top
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-right',
- $border-radius: 0 right($ui-border-radius) bottom($ui-border-radius) 0,
- $border-width: top($ui-header-border-width) right($ui-header-border-width) bottom($ui-header-border-width) 0,
- $padding: rotate90($ui-header-padding),
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-direction: right,
- $include-frame-rtl: $include-rtl,
- $background-stretch: $ui-background-stretch-right
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-bottom',
- $border-radius: 0 0 bottom($ui-border-radius) left($ui-border-radius),
- $border-width: 0 right($ui-header-border-width) bottom($ui-header-border-width) left($ui-header-border-width),
- $padding: $ui-header-padding,
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-stretch: $ui-background-stretch-bottom
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-left',
- $border-radius: top($ui-border-radius) 0 0 left($ui-border-radius),
- $border-width: top($ui-header-border-width) 0 bottom($ui-header-border-width) left($ui-header-border-width),
- $padding: rotate90($ui-header-padding),
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-direction: right,
- $include-frame-rtl: $include-rtl,
- $background-stretch: $ui-background-stretch-left
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-collapsed-top',
- $border-radius: top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius),
- $border-width: $ui-header-border-width,
- $padding: $ui-header-padding,
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-stretch: $ui-background-stretch-top
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-collapsed-right',
- $border-radius: top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius),
- $border-width: $ui-header-border-width,
- $padding: rotate90($ui-header-padding),
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-direction: right,
- $include-frame-rtl: $include-rtl,
- $background-stretch: $ui-background-stretch-right
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-collapsed-bottom',
- $border-radius: top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius),
- $border-width: $ui-header-border-width,
- $padding: $ui-header-padding,
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-stretch: $ui-background-stretch-bottom
- );
- @include x-frame(
- $cls: 'panel-header',
- $ui: '#{$ui}-collapsed-left',
- $border-radius: top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius),
- $border-width: $ui-header-border-width,
- $padding: rotate90($ui-header-padding),
- $background-color: $ui-header-background-color,
- $background-gradient: $ui-header-background-gradient,
- $background-direction: right,
- $include-frame-rtl: $include-rtl,
- $background-stretch: $ui-background-stretch-left
- );
- // !important is needed in the following rules to override dock layout's border
- // management rules. the x-panel ancestor selector is used to increase the
- // specificity over the ".#{$prefix}nbr .#{$prefix}#{$cls-ui}" rule produced by
- // x-frame
- .#{$prefix}panel {
- .#{$prefix}panel-header-#{$ui}-top {
- border-bottom-width: bottom($ui-header-border-width) !important;
- }
- .#{$prefix}panel-header-#{$ui}-right {
- border-left-width: bottom($ui-header-border-width) !important;
- }
- .#{$prefix}panel-header-#{$ui}-bottom {
- border-top-width: bottom($ui-header-border-width) !important;
- }
- .#{$prefix}panel-header-#{$ui}-left {
- border-right-width: bottom($ui-header-border-width) !important;
- }
- }
- @if $include-slicer-border-radius {
- .#{$prefix}nbr {
- .#{$prefix}panel-header-#{$ui}-collapsed-top {
- border-bottom-width: 0 !important;
- }
- .#{$prefix}panel-header-#{$ui}-collapsed-right {
- border-left-width: 0 !important;
- }
- .#{$prefix}panel-header-#{$ui}-collapsed-bottom {
- border-top-width: 0 !important;
- }
- .#{$prefix}panel-header-#{$ui}-collapsed-left {
- border-right-width: 0 !important;
- }
- }
- }
- } @else {
- @if not is-null($ui-header-background-color) {
- .#{$prefix}panel-header-#{$ui} {
- @include background-gradient($ui-header-background-color, $ui-header-background-gradient);
- }
- .#{$prefix}panel-header-#{$ui}-vertical {
- @include background-gradient($ui-header-background-color, $ui-header-background-gradient, right);
- }
- @if $include-rtl {
- .#{$prefix}rtl.#{$prefix}panel-header-#{$ui}-vertical {
- @include background-gradient($ui-header-background-color, $ui-header-background-gradient, left);
- }
- }
- }
- // header background images
- $panel-header-ui: 'panel-header-#{$ui}';
- $panel-header-path: 'panel-header/panel-header-#{$ui}';
- @if not is-null($ui-header-background-color) and not is-null($ui-header-background-gradient) {
- @if $include-slicer-gradient {
- .#{$prefix}nlg {
- .#{$prefix}#{$panel-header-ui}-top {
- background: slicer-background-image($panel-header-ui + '-top',
- '#{$panel-header-path}-top-bg');
- }
- .#{$prefix}#{$panel-header-ui}-bottom {
- background: slicer-background-image($panel-header-ui + '-bottom',
- '#{$panel-header-path}-bottom-bg') bottom left;
- }
- .#{$prefix}#{$panel-header-ui}-left {
- background: slicer-background-image($panel-header-ui + '-left',
- '#{$panel-header-path}-left-bg') top left;
- }
- .#{$prefix}#{$panel-header-ui}-right {
- background: slicer-background-image($panel-header-ui + '-right',
- '#{$panel-header-path}-right-bg') top right;
- }
- @if $include-rtl {
- .#{$prefix}rtl {
- &.#{$prefix}#{$panel-header-ui}-left {
- background: slicer-background-image-rtl($panel-header-ui + '-left',
- '#{$panel-header-path}-left-bg-rtl') top right;
- }
- &.#{$prefix}#{$panel-header-ui}-right {
- background: slicer-background-image-rtl($panel-header-ui + '-right',
- '#{$panel-header-path}-right-bg-rtl') top left;
- }
- }
- }
- }
- }
- }
- .#{$prefix}panel {
- // !important is needed here to override dock layout's border management
- // rules. the x-panel ancestor selector is used to increase the specificity
- // over the ".#{$prefix}nbr .#{$prefix}#{$cls-ui}" rule produced by x-frame
- .#{$prefix}panel-header-#{$ui}-collapsed-border-top {
- border-bottom-width: $ui-header-border-width !important;
- }
- .#{$prefix}panel-header-#{$ui}-collapsed-border-right {
- border-left-width: $ui-header-border-width !important;
- }
- .#{$prefix}panel-header-#{$ui}-collapsed-border-bottom {
- border-top-width: $ui-header-border-width !important;
- }
- .#{$prefix}panel-header-#{$ui}-collapsed-border-left {
- border-right-width: $ui-header-border-width !important;
- }
- }
- $stretch: slicer-background-stretch($panel-header-ui + '-top', $ui-background-stretch-top);
- $stretch: slicer-background-stretch($panel-header-ui + '-right', $ui-background-stretch-right);
- $stretch: slicer-background-stretch($panel-header-ui + '-bottom', $ui-background-stretch-bottom);
- $stretch: slicer-background-stretch($panel-header-ui + '-left', $ui-background-stretch-left);
- @include x-slicer($panel-header-ui + '-top');
- @include x-slicer($panel-header-ui + '-bottom');
- @include x-slicer($panel-header-ui + '-left');
- @include x-slicer($panel-header-ui + '-right');
- }
- @if $ui-header-inner-border-width != 0 {
- .#{$prefix}panel-header-#{$ui}-top {
- @include inner-border($ui-header-inner-border-width, $ui-header-inner-border-color);
- }
- .#{$prefix}panel-header-#{$ui}-right {
- @include inner-border(rotate90($ui-header-inner-border-width), $ui-header-inner-border-color);
- }
- .#{$prefix}panel-header-#{$ui}-bottom {
- @include inner-border(rotate180($ui-header-inner-border-width), $ui-header-inner-border-color);
- }
- .#{$prefix}panel-header-#{$ui}-left {
- @include inner-border(rotate270($ui-header-inner-border-width), $ui-header-inner-border-color);
- }
- }
- $ui-tool-margin: 0 0 0 $ui-tool-spacing;
- .#{$prefix}panel-header-#{$ui}-horizontal {
- .#{$prefix}tool-after-title {
- margin: $ui-tool-margin;
- }
- @if $include-rtl {
- .#{$prefix}rtl.#{$prefix}tool-after-title {
- margin: rtl($ui-tool-margin);
- }
- }
- .#{$prefix}tool-before-title {
- margin: rtl($ui-tool-margin);
- }
- @if $include-rtl {
- .#{$prefix}rtl.#{$prefix}tool-before-title {
- margin: $ui-tool-margin;
- }
- }
- }
- .#{$prefix}panel-header-#{$ui}-vertical {
- .#{$prefix}tool-after-title {
- margin: rotate90($ui-tool-margin);
- }
- @if $include-rtl {
- .#{$prefix}rtl.#{$prefix}tool-after-title {
- margin: rotate270(rtl($ui-tool-margin));
- }
- }
- .#{$prefix}tool-before-title {
- margin: rotate90(rtl($ui-tool-margin));
- }
- @if $include-rtl {
- .#{$prefix}rtl.#{$prefix}tool-before-title {
- margin: rotate270($ui-tool-margin);
- }
- }
- }
- .#{$prefix}panel-header-#{$ui} {
- .#{$prefix}tool-focus {
- .#{$prefix}keyboard-mode & {
- .#{$prefix}tool-tool-el {
- @if not is-null($ui-tool-focus-color) {
- color: $ui-tool-focus-color;
- }
- @if not is-null($ui-tool-focus-background-color) {
- background-color: $ui-tool-focus-background-color;
- }
- }
- @if $ui-tool-focus-background-image != $ui-tool-background-image {
- .#{$prefix}tool-img {
- background-image: theme-background-image($ui-tool-focus-background-image);
- }
- }
- @if not is-null($ui-tool-focus-outline-width) {
- @include css-outline(
- $width: $ui-tool-focus-outline-width,
- $style: $ui-tool-focus-outline-style,
- $color: $ui-tool-focus-outline-color,
- $offset: $ui-tool-focus-outline-offset
- );
- }
- }
- }
- }
- @if $include-rtl {
- .#{$prefix}rtl {
- &.#{$prefix}panel-header-#{$ui}-collapsed-border-right {
- border-right-width: $ui-header-border-width !important;
- }
- &.#{$prefix}panel-header-#{$ui}-collapsed-border-left {
- border-left-width: $ui-header-border-width !important;
- }
- }
- }
- // Panel resizing.
- // If there's a border that's wider than the specified threshold (Sencha default is 2) then
- // embed the handles in the borders using -ve position and make resizable windows show overflow.
- // The dock layout should ensure that all constituent elements fit within the element.
- // The only exception is during animated resizing. Overflow inline style is set hidden during animation (AbstractComponent.animate)
- .#{$prefix}panel-#{$ui}-resizable {
- // Panel resize handles are invisible
- .#{$prefix}panel-handle {
- @include opacity(0);
- }
- // If there's a border width, embed the handles in that border
- @if $ui-border-width > $border-width-threshold {
- // Resizable Panel element overflow must be visible for embedded handles to accept mouseovers.
- overflow: visible;
- .#{$prefix}panel-handle-north-br {
- top: -($ui-border-width);
- }
- .#{$prefix}panel-handle-south-br {
- bottom: -($ui-border-width);
- }
- .#{$prefix}panel-handle-east-br {
- right: -($ui-border-width);
- }
- .#{$prefix}panel-handle-west-br {
- left: -($ui-border-width);
- }
- .#{$prefix}panel-handle-northwest-br {
- left: -($ui-border-width);
- top: -($ui-border-width);
- }
- .#{$prefix}panel-handle-northeast-br {
- right: -($ui-border-width);
- top: -($ui-border-width);
- }
- .#{$prefix}panel-handle-southeast-br {
- right: -($ui-border-width);
- bottom: -($ui-border-width);
- }
- .#{$prefix}panel-handle-southwest-br {
- left: -($ui-border-width);
- bottom: -($ui-border-width);
- }
- }
- }
- @if $ui-include-border-management-rules {
- @include border-management(
- $parent-cls: panel-#{$ui},
- $border-width: $ui-wrap-border-width,
- $border-color: $ui-wrap-border-color
- );
- }
- }
|