123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845 |
- /**
- * @class Ext.Tool
- */
- /**
- * @var {color}
- * Tool color
- */
- $tool-color: dynamic($neutral-dark-color);
- /**
- * @var {number}
- * Tool color when hovered
- */
- $tool-hovered-color: dynamic(null);
- /**
- * @var {number}
- * Tool color when pressed
- */
- $tool-pressed-color: dynamic(null);
- /**
- * @var {number}
- * Tool color when disabled
- */
- $tool-disabled-color: dynamic(null);
- /**
- * @var {color}
- * Tool background-color
- */
- $tool-background-color: dynamic(null);
- /**
- * @var {number}
- * Tool background-color when hovered
- */
- $tool-hovered-background-color: dynamic(null);
- /**
- * @var {number}
- * Tool background-color when pressed
- */
- $tool-pressed-background-color: dynamic(null);
- /**
- * @var {number}
- * Tool background-color when disabled
- */
- $tool-disabled-background-color: dynamic(null);
- /**
- * @var {number}
- * Tool opacity
- */
- $tool-opacity: dynamic(null);
- /**
- * @var {number}
- * Tool opacity when hovered
- */
- $tool-hovered-opacity: dynamic(.8);
- /**
- * @var {number}
- * Tool opacity when pressed
- */
- $tool-pressed-opacity: dynamic(.6);
- /**
- * @var {number}
- * Tool opacity when disabled
- */
- $tool-disabled-opacity: dynamic(.3);
- /**
- * @var {number}
- * Tool border radius
- */
- $tool-border-radius: dynamic(null);
- /**
- * @var {number}
- * Tool border radius in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-border-radius-big: dynamic(null);
- /**
- * @var {number}
- * Tool icon size
- */
- $tool-size: dynamic(16px);
- /**
- * @var {number}
- * Tool icon size in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-size-big: dynamic(24px);
- /**
- * @var {number}
- * Tool width
- */
- $tool-width: dynamic(null);
- /**
- * @var {number}
- * Tool width in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-width-big: dynamic(null);
- /**
- * @var {number}
- * Tool height
- */
- $tool-height: dynamic(null);
- /**
- * @var {number}
- * Tool height in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-height-big: dynamic(null);
- /**
- * @var {number}
- * Tool margin
- */
- $tool-margin: dynamic(null);
- /**
- * @var {number}
- * Tool margin in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-margin-big: dynamic(null);
- /**
- * @var {number}
- * Tool font-size
- */
- $tool-font-size: dynamic(null);
- /**
- * @var {number}
- * Tool font-size in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-font-size-big: dynamic(null);
- /**
- * @var {number}
- * The space between Tools
- */
- $tool-spacing: dynamic(6px);
- /**
- * @var {number}
- * The space between Tools in the {@link Global_CSS#$enable-big big} sizing scheme
- */
- $tool-spacing-big: dynamic(8px);
- /**
- * @var {string}
- * Tool cursor
- */
- $tool-cursor: dynamic(pointer);
- /**
- * @var {string}
- * Tool cursor when disabled
- */
- $tool-disabled-cursor: dynamic(default);
- /**
- * @var {number}
- * Tool outline width when focused
- */
- $tool-focused-outline-width: dynamic(1px);
- /**
- * @var {string}
- * Tool outline style when focused
- */
- $tool-focused-outline-style: dynamic(solid);
- /**
- * @var {color}
- * Tool outline color when focused
- */
- $tool-focused-outline-color: dynamic($base-color);
- /**
- * @var {number}
- * Tool outline offset when focused
- */
- $tool-focused-outline-offset: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `itemheader` tool UI used for tools in a list item header
- */
- $tool-itemheader-ui: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `rowheader` tool UI used for tools in a grid row header
- * @ui tool-ui
- */
- $tool-rowheader-ui: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `listitem` tool UI used for tools in a list item
- */
- $tool-listitem-ui: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `gridcell` tool UI used for tools in a grid cell
- */
- $tool-gridcell-ui: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `gridcolumn` tool UI used for tools in a grid column header
- */
- $tool-gridcolumn-ui: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `boxscroller` tool UI used for tools in any container using box scroller
- * @ui tool-ui
- */
- $tool-boxscroller-ui: dynamic((
- width: 24px,
- height: 24px,
- width-big: 32px,
- height-big: 32px
- ));
- /**
- * @var {Map}
- * Parameters for the `boxscroller` tool UI used for tools in toolbar using box scroller
- * @ui tool-ui
- */
- $tool-boxscroller-toolbar-ui: dynamic((
- color: #fff,
- opacity: .5,
- hovered-opacity: .6,
- pressed-opacity: .7
- ));
- /**
- * @var {Map}
- * Parameters for the `boxscroller` tool UI used for tools in a menu using box scroller
- * @ui tool-ui
- */
- $tool-boxscroller-menu-ui: dynamic(null);
- /**
- * @var {Map}
- * Parameters for the `boxscroller` tool UI used for tools in a tabbar using box scroller
- * @ui tool-ui
- */
- $tool-boxscroller-tabbar-ui: dynamic((
- color: #fff,
- opacity: .5,
- hovered-opacity: .6,
- pressed-opacity: .7
- ));
- /**
- * Creates a visual theme for a tool.
- *
- * @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=tool] (protected) The {@link Ext.Class#xtype} to use
- * in CSS selectors. For use by UI mixins of derived classes.
- *
- * @param {color} $color
- * The color of tool icon
- *
- * @param {number} $hovered-color
- * Tool color when hovered
- *
- * @param {number} $pressed-color
- * Tool color when pressed
- *
- * @param {number} $disabled-color
- * Tool color when disabled
- *
- * @param {color} $background-color
- * The background color of tool icon
- *
- * @param {number} $hovered-background-color
- * Tool background color when hovered
- *
- * @param {number} $pressed-background-color
- * Tool background color when pressed
- *
- * @param {number} $disabled-background-color
- * Tool background-color when disabled
- *
- * @param {number} $opacity
- * Tool opacity
- *
- * @param {number} $hovered-opacity
- * Tool opacity when hovered
- *
- * @param {number} $pressed-opacity
- * Tool opacity when pressed
- *
- * @param {number} $disabled-opacity
- * Tool opacity when disabled
- *
- * @param {number} $border-radius
- * Tool border radius
- *
- * @param {number} $border-radius-big
- * Tool border radius in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $size
- * Tool icon size
- *
- * @param {number} $size-big
- * Tool icon size in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $width
- * Tool width
- *
- * @param {number} $width-big in the {@link Global_CSS#$enable-big big} sizing scheme
- * Tool width-big
- *
- * @param {number} $height
- * Tool height
- *
- * @param {number} $height-big in the {@link Global_CSS#$enable-big big} sizing scheme
- * Tool height-big
- *
- * @param {number} $margin
- * Tool margin
- *
- * @param {number} $margin-big in the {@link Global_CSS#$enable-big big} sizing scheme
- * Tool margin-big
- *
- * @param {number} $font-size
- * Tool icon font-size
- *
- * @param {number} $font-size-big
- * Tool icon font-size in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {number} $spacing
- * The space between Tools
- *
- * @param {number} $spacing-big
- * The space between Tools in the {@link Global_CSS#$enable-big big} sizing scheme
- *
- * @param {string} $cursor
- * Tool cursor
- *
- * @param {string} $disabled-cursor
- * Tool cursor when disabled
- *
- * @param {number} $focused-outline-width
- * Tool outline width when focused
- *
- * @param {string} $focused-outline-style
- * Tool outline style when focused
- *
- * @param {color} $focused-outline-color
- * Tool outline color when focused
- *
- * @param {number} $focused-outline-offset
- * Tool outline offset when focused
- */
- @mixin tool-ui(
- $ui: null,
- $xtype: tool,
- $color: null,
- $hovered-color: null,
- $pressed-color: null,
- $disabled-color: null,
- $background-color: null,
- $hovered-background-color: null,
- $pressed-background-color: null,
- $disabled-background-color: null,
- $opacity: null,
- $hovered-opacity: null,
- $pressed-opacity: null,
- $disabled-opacity: null,
- $border-radius: null,
- $border-radius-big: null,
- $size: null,
- $size-big: null,
- $width: null,
- $width-big: null,
- $height: null,
- $height-big: null,
- $margin: null,
- $margin-big: null,
- $font-size: null,
- $font-size-big: null,
- $spacing: null,
- $spacing-big: null,
- $cursor: null,
- $disabled-cursor: null,
- $focused-outline-width: null,
- $focused-outline-style: null,
- $focused-outline-color: null,
- $focused-outline-offset: null
- ) {
- $ui-suffix: ui-suffix($ui);
- .#{$prefix}#{$xtype}#{$ui-suffix} {
- width: $width;
- height: $height;
- margin: $margin;
- cursor: $cursor;
- border-radius: $border-radius;
- @if $enable-big {
- .#{$prefix}big & {
- width: $width-big;
- height: $height-big;
- margin: $margin-big;
- border-radius: $border-radius-big;
- }
- }
- .#{$prefix}icon-el {
- background-color: $background-color;
- opacity: $opacity;
- @include icon(
- $color: $color,
- $size: $size,
- $size-big: $size-big,
- $font-size: $font-size,
- $font-size-big: $font-size-big
- );
- }
- @if $spacing != null {
- &.#{$prefix}start {
- margin: 0 $spacing 0 0;
- @if $enable-big {
- .#{$prefix}big & {
- margin: 0 $spacing-big 0 0;
- }
- }
- .#{$prefix}reverse > & {
- margin: 0 0 0 $spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin: 0 0 0 $spacing-big;
- }
- }
- }
- .#{$prefix}vertical > & {
- margin: 0 0 $spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin: 0 0 $spacing-big;
- }
- }
- }
- .#{$prefix}vertical.#{$prefix}reverse > & {
- margin: $spacing 0 0;
- @if $enable-big {
- .#{$prefix}big & {
- margin: $spacing-big 0 0;
- }
- }
- }
- }
- &.#{$prefix}end {
- margin: 0 0 0 $spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin: 0 0 0 $spacing-big;
- }
- }
- .#{$prefix}reverse > & {
- margin: 0 $spacing 0 0;
- @if $enable-big {
- .#{$prefix}big & {
- margin: 0 $spacing-big 0 0;
- }
- }
- }
- .#{$prefix}vertical > & {
- margin: $spacing 0 0;
- @if $enable-big {
- .#{$prefix}big & {
- margin: $spacing-big 0 0;
- }
- }
- }
- .#{$prefix}vertical.#{$prefix}reverse > & {
- margin: 0 0 $spacing;
- @if $enable-big {
- .#{$prefix}big & {
- margin: 0 0 $spacing-big;
- }
- }
- }
- }
- }
- &.#{$prefix}hovered {
- color: $hovered-color;
- background-color: $hovered-background-color;
- .#{$prefix}icon-el {
- opacity: $hovered-opacity;
- }
- }
- &.#{$prefix}pressed {
- color: $pressed-color;
- background-color: $pressed-background-color;
- .#{$prefix}icon-el {
- opacity: $pressed-opacity;
- }
- }
- &.#{$prefix}focused {
- .#{$prefix}keyboard-mode & {
- @include outline($focused-outline-width, $focused-outline-style, $focused-outline-color, $focused-outline-offset);
- }
- }
- &.#{$prefix}disabled {
- cursor: $disabled-cursor;
- }
- // Passive (purely decorative) Tools are set disabled, but they must not
- // *appear* disabled.
- &.#{$prefix}disabled:not(.#{$prefix}passive) {
- color: $disabled-color;
- background-color: $disabled-background-color;
- .#{$prefix}icon-el {
- opacity: $disabled-opacity;
- }
- }
- }
- }
- // ----------------------------------------------------------------
- // Global variables that do not affect the UI
- // ----------------------------------------------------------------
- //# fashion replaces $panel-tool-close-icon
- /**
- * @var {string/list}
- * The "close" tool icon
- */
- $tool-close-icon: dynamic($fa-var-close $font-icon-font-family);
- /**
- * @var {string/list}
- * The "disclosure" tool icon
- */
- $tool-disclosure-icon: dynamic($fa-var-arrow-circle-right $font-icon-font-family);
- //# fashion replaces $panel-tool-minimize-icon
- /**
- * @var {string/list}
- * The "minimize" tool icon
- */
- $tool-minimize-icon: dynamic($ext-var-minimize ExtJS);
- //# fashion replaces $panel-tool-maximize-icon
- /**
- * @var {string/list}
- * The "maximize" tool icon
- */
- $tool-maximize-icon: dynamic($fa-var-expand $font-icon-font-family);
- //# fashion replaces $panel-tool-restore-icon
- /**
- * @var {string/list}
- * The "restore" tool icon
- */
- $tool-restore-icon: dynamic($fa-var-compress $font-icon-font-family);
- //# fashion replaces $panel-tool-toggle-up-icon
- /**
- * @var {string/list}
- * The up "toggle" tool icon
- */
- $tool-toggle-up-icon: dynamic($fa-var-chevron-up $font-icon-font-family);
- //# fashion replaces $panel-tool-toggle-down-icon
- /**
- * @var {string/list}
- * The down "toggle" tool icon
- */
- $tool-toggle-down-icon: dynamic($fa-var-chevron-down $font-icon-font-family);
- //# fashion replaces $panel-tool-gear-icon
- /**
- * @var {string/list}
- * The "gear" tool icon
- */
- $tool-gear-icon: dynamic($fa-var-cog $font-icon-font-family);
- //# fashion replaces $panel-tool-prev-icon
- /**
- * @var {string/list}
- * The "prev" tool icon
- */
- $tool-prev-icon: dynamic($fa-var-chevron-left $font-icon-font-family);
- //# fashion replaces $panel-tool-next-icon
- /**
- * @var {string/list}
- * The "next" tool icon
- */
- $tool-next-icon: dynamic($fa-var-chevron-right $font-icon-font-family);
- //# fashion replaces $panel-tool-pin-icon
- /**
- * @var {string/list}
- * The "pin" tool icon
- */
- $tool-pin-icon: dynamic($fa-var-thumb-tack $font-icon-font-family);
- //# fashion replaces $panel-tool-unpin-icon
- /**
- * @var {string/list}
- * The "unpin" tool icon
- */
- $tool-unpin-icon: dynamic($ext-var-unpin ExtJS);
- //# fashion replaces $panel-tool-right-icon
- /**
- * @var {string/list}
- * The "right" tool icon
- */
- $tool-right-icon: dynamic($fa-var-caret-right $font-icon-font-family);
- //# fashion replaces $panel-tool-left-icon
- /**
- * @var {string/list}
- * The "left" tool icon
- */
- $tool-left-icon: dynamic($fa-var-caret-left $font-icon-font-family);
- //# fashion replaces $panel-tool-down-icon
- /**
- * @var {string/list}
- * The "down" tool icon
- */
- $tool-down-icon: dynamic($fa-var-caret-down $font-icon-font-family);
- //# fashion replaces $panel-tool-up-icon
- /**
- * @var {string/list}
- * The "up" tool icon
- */
- $tool-up-icon: dynamic($fa-var-caret-up $font-icon-font-family);
- //# fashion replaces $panel-tool-refresh-icon
- /**
- * @var {string/list}
- * The "refresh" tool icon
- */
- $tool-refresh-icon: dynamic($fa-var-refresh $font-icon-font-family);
- //# fashion replaces $panel-tool-plus-icon
- /**
- * @var {string/list}
- * The "plus" tool icon
- */
- $tool-plus-icon: dynamic($fa-var-plus $font-icon-font-family);
- //# fashion replaces $panel-tool-menu-icon
- /**
- * @var {string/list}
- * The "menu" tool icon
- */
- $tool-menu-icon: dynamic($fa-var-bars $font-icon-font-family);
- //# fashion replaces $panel-tool-minus-icon
- /**
- * @var {string/list}
- * The "minus" tool icon
- */
- $tool-minus-icon: dynamic($fa-var-minus $font-icon-font-family);
- //# fashion replaces $panel-tool-search-icon
- /**
- * @var {string/list}
- * The "search" tool icon
- */
- $tool-search-icon: dynamic($fa-var-search $font-icon-font-family);
- //# fashion replaces $panel-tool-save-icon
- /**
- * @var {string/list}
- * The "save" tool icon
- */
- $tool-save-icon: dynamic($fa-var-check $font-icon-font-family);
- //# fashion replaces $panel-tool-help-icon
- /**
- * @var {string/list}
- * The "help" tool icon
- */
- $tool-help-icon: dynamic($fa-var-question $font-icon-font-family);
- //# fashion replaces $panel-tool-print-icon
- /**
- * @var {string/list}
- * The "print" tool icon
- */
- $tool-print-icon: dynamic($fa-var-print $font-icon-font-family);
- //# fashion replaces $panel-tool-expand-icon
- /**
- * @var {string/list}
- * The "expand" tool icon
- */
- $tool-expand-icon: dynamic($ext-var-expand ExtJS);
- //# fashion replaces $panel-tool-collapse-icon
- /**
- * @var {string/list}
- * The "collapse" tool icon
- */
- $tool-collapse-icon: dynamic($ext-var-collapse ExtJS);
- //# fashion replaces $panel-tool-resize-icon
- /**
- * @var {string/list}
- * The "resize" tool icon
- */
- $tool-resize-icon: dynamic($fa-var-arrows-h $font-icon-font-family);
- //# fashion replaces $panel-tool-move-icon
- /**
- * @var {string/list}
- * The "move" tool icon
- */
- $tool-move-icon: dynamic($fa-var-arrows $font-icon-font-family);
- //# fashion replaces $panel-tool-expand-bottom-icon
- /**
- * @var {string/list}
- * The downward "expand" tool icon
- */
- $tool-expand-bottom-icon: dynamic($fa-var-caret-down $font-icon-font-family);
- //# fashion replaces $panel-tool-collapse-bottom-icon
- /**
- * @var {string/list}
- * The downward "collapse" tool icon
- */
- $tool-collapse-bottom-icon: dynamic($fa-var-caret-down $font-icon-font-family);
- //# fashion replaces $panel-tool-expand-top-icon
- /**
- * @var {string/list}
- * The upward "expand" tool icon
- */
- $tool-expand-top-icon: dynamic($fa-var-caret-up $font-icon-font-family);
- //# fashion replaces $panel-tool-collapse-top-icon
- /**
- * @var {string/list}
- * The upward "collapse" tool icon
- */
- $tool-collapse-top-icon: dynamic($fa-var-caret-up $font-icon-font-family);
- //# fashion replaces $panel-tool-expand-left-icon
- /**
- * @var {string/list}
- * The left "expand" tool icon
- */
- $tool-expand-left-icon: dynamic($fa-var-caret-left $font-icon-font-family);
- //# fashion replaces $panel-tool-collapse-left-icon
- /**
- * @var {string/list}
- * The left "collapse" tool icon
- */
- $tool-collapse-left-icon: dynamic($fa-var-caret-left $font-icon-font-family);
- //# fashion replaces $panel-tool-expand-right-icon
- /**
- * @var {string/list}
- * The right "expand" tool icon
- */
- $tool-expand-right-icon: dynamic($fa-var-caret-right $font-icon-font-family);
- //# fashion replaces $panel-tool-collapse-right-icon
- /**
- * @var {string/list}
- * The right "collapse" tool icon
- */
- $tool-collapse-right-icon: dynamic($fa-var-caret-right $font-icon-font-family);
- /**
- * @var {string/list}
- * The scroll up tool icon used by box scroller
- */
- $tool-scroll-up-icon: dynamic($fa-var-chevron-up $font-icon-font-family);
- /**
- * @var {string/list}
- * The scroll down tool icon used by box scroller
- */
- $tool-scroll-down-icon: dynamic($fa-var-chevron-down $font-icon-font-family);
- /**
- * @var {string/list}
- * The scroll left tool icon used by box scroller
- */
- $tool-scroll-left-icon: dynamic($fa-var-chevron-left $font-icon-font-family);
- /**
- * @var {string/list}
- * The scroll right tool icon used by box scroller
- */
- $tool-scroll-right-icon: dynamic($fa-var-chevron-right $font-icon-font-family);
|