123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921 |
- //----------------------------------------------------------------
- // 1. Variables for quick setting
- //----------------------------------------------------------------
- // Default state variables
- @theme-default-margin: 8px;
- @theme-default-padding: 8px;
- @theme-default-font-size: 14px;
- @theme-default-font-family: Helvetica;
- @theme-default-font-weight: normal;
- @theme-default-text-shadow: none;
- @theme-default-color: #131313; // numerical color value
- @theme-default-border-color: #B5BCC7; // numerical color value
- @theme-default-border-radius: 5px;
- @theme-default-background-color: lighten(@theme-default-border-color, 20%);
- // Highlighting state variables
- @theme-highlight-font-size: 18px;
- @theme-highlight-font-family: @theme-default-font-family;
- @theme-highlight-font-weight: bold;
- @theme-highlight-text-shadow: rgba(0,0,0,0.2) 0px 1px 2px;
- @theme-highlight-color: #000000; // numerical color value
- @theme-highlight-border-color: #769DC0; // numerical color value
- @theme-highlight-background-color: #5CB0FF; // numerical color value
- //----------------------------------------------------------------
- // 2. Variables for typical style setting
- //----------------------------------------------------------------
- // Color
- @theme-heading-color: @theme-default-color;
- @theme-heading-border-color: @theme-highlight-border-color;
- @theme-heading-background-color: @theme-highlight-background-color;
- @theme-dom-button-background-color: @theme-highlight-background-color;
- @theme-tabbar-color: @theme-default-color;
- @theme-round-rect-border-color: @theme-default-border-color;
- @theme-round-rect-background-color: #FFFFFF;
- @theme-round-rect-box-shadow: 5px 5px 5px @theme-round-rect-border-color;
- @theme-category-color: @theme-highlight-color;
- @theme-list-item-color: @theme-default-color;
- @theme-list-item-border-color: @theme-default-border-color;
- @theme-list-item-background-color: #FFFFFF;
- @theme-ui-widget-color: @theme-default-color;
- @theme-ui-widget-selected-color: @theme-highlight-color;
- @theme-ui-widget-border-color: @theme-default-border-color;
- @theme-ui-widget-selected-border-color: @theme-highlight-border-color;
- @theme-ui-widget-background-color: @theme-highlight-background-color;
- @theme-ui-widget-selected-background-color: darken(@theme-ui-widget-background-color, 30%);
- @theme-ui-widget-checked-background-color: darken(@theme-ui-widget-background-color, 20%);
- @theme-ui-widget-disabled-background-color: lighten(@theme-ui-widget-background-color, 10%);
- // Font
- @theme-heading-font-size: @theme-highlight-font-size;
- @theme-heading-font-family: @theme-highlight-font-family;
- @theme-heading-font-weight: @theme-default-font-weight;
- @theme-heading-text-shadow: @theme-highlight-text-shadow;
- @theme-tabbar-font-size: @theme-default-font-size - 3;
- @theme-tabbar-font-family: @theme-default-font-family;
- @theme-tabbar-font-weight: @theme-default-font-weight;
- @theme-category-font-size: @theme-highlight-font-size;
- @theme-category-font-family: @theme-highlight-font-family;
- @theme-category-font-weight: @theme-default-font-weight;
- @theme-category-text-shadow: @theme-highlight-text-shadow;
- @theme-list-item-font-size: @theme-highlight-font-size;
- @theme-list-item-font-family: @theme-default-font-family;
- @theme-list-item-font-weight: @theme-default-font-weight;
- @theme-list-item-text-shadow: none;
- @theme-ui-widget-font-size: @theme-default-font-size;
- @theme-ui-widget-font-family: @theme-default-font-family;
- @theme-ui-widget-font-weight: @theme-default-font-weight;
- @theme-ui-widget-text-shadow: none;
- // Size
- @theme-heading-height: 40px;
- @theme-tabbar-height: 50px;
- @theme-category-height: 30px;
- @theme-list-item-height: 50px;
- @theme-icon-item-height: 65px;
- @theme-icon-item-width: 65px;
- @theme-ui-widget-height: 30px;
- @theme-ui-widget-width: 90px;
- @theme-ui-widget-border-radius: 2px; // square style
- //@theme-ui-widget-border-radius: @theme-default-border-radius; // round style
- //@theme-ui-widget-border-radius: @theme-ui-widget-height * 0.5; // oval style
- // background-image gradation
- ._background-image-gradient-mask-heading () {
- @delta: 1% / @theme-heading-height * 100;
- // claro gradation
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 1)), color-stop(@delta * 1, rgba(255, 255, 255, 1)), color-stop(@delta * 1, rgba(255, 255, 255, 0.14)), color-stop(@delta * 2, rgba(255, 255, 255, 0.14)), color-stop(@delta * 2, rgba(255, 255, 255, 0.52)), color-stop(@delta * 3, rgba(255, 255, 255, 0.52)), color-stop(@delta * 3, rgba(255, 255, 255, 0.68)), color-stop(@delta * 4, rgba(255, 255, 255, 0.68)), color-stop(1, rgba(255, 255, 255, 0)));
- }
- ._background-image-gradient-mask-ui-widget () {
- @delta: 1% / @theme-ui-widget-height * 100;
- // claro gradation
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 1)), color-stop(@delta * 1, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0.6)), color-stop(1, rgba(255, 255, 255, 0.3)));
- }
- ._background-image-gradient-mask-ui-widget-r () { // for .mblArrowButtonHead-styles
- @delta: 1% / @theme-ui-widget-height * 100;
- // claro gradation
- background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0, rgba(255, 255, 255, 1)), color-stop(@delta * 1, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0.6)), color-stop(1, rgba(255, 255, 255, 0.3)));
- }
- // dojox.mobile fixed variables
- @mbl-dom-button-size: 29px;
- @mbl-switch-height: 27px;
- // Application's customizable variables
- @appl-list-item-icon-size: 29px; // size of ListItemIcon
- //----------------------------------------------------------------
- // 3. Variables for dojox.mobile Widgets
- //----------------------------------------------------------------
- //----------------------------------------------------------------
- // common.less
- //----------------------------------------------------------------
- // .mobile body
- .mobile-body-styles () {
- background-color: @theme-default-background-color;
- font-family: @theme-default-font-family;
- font-size: @theme-default-font-size;
- }
- // .mblView
- .mblView-styles () {
- color: @theme-default-color;
- }
- // .mblColorBlue
- .mblColorBlue-styles () {
- background-color: #366EDF;
- ._background-image-gradient-mask-ui-widget;
- }
- // .mblColorDefault
- .mblColorDefault-styles () {
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- &.mblDomButton {
- background-color: @theme-dom-button-background-color;
- }
- }
- // .mblColorDefaultSel
- .mblColorDefaultSel-styles () {
- background-color: @theme-ui-widget-selected-background-color;
- &.mblDomButton {
- background-color: @theme-ui-widget-selected-background-color;
- }
- }
- //----------------------------------------------------------------
- // Heading.less
- //----------------------------------------------------------------
- @_heading-inner-margin: (@theme-heading-height - @theme-ui-widget-height) * 0.5;
- .mblHeading-styles () {
- padding: 0;
- height: @theme-heading-height;
- background-color: @theme-heading-background-color;
- ._background-image-gradient-mask-heading();
- border-bottom: 1px solid @theme-heading-border-color;
- color: @theme-heading-color;
- font-size: @theme-heading-font-size;
- font-family: @theme-heading-font-family;
- font-weight: @theme-heading-font-weight;
- text-shadow: @theme-heading-text-shadow;
- text-align: center;
- line-height: @theme-heading-height + 2;
- }
- .mblArrowButton-styles () {
- height: @theme-ui-widget-height;
- margin: 0px @theme-default-margin;
- }
- .mblArrowButtonHead-styles () {
- top: @_heading-inner-margin;
- left: @_heading-inner-margin + @theme-ui-widget-height * 0.4; // = 0.5 * 0.9
- width: @theme-ui-widget-height * 0.7;
- height: @theme-ui-widget-height * 0.7;
- border: 1px solid @theme-ui-widget-border-color;
- -webkit-transform-origin: left top;
- -webkit-transform: scale(0.9,0.99) rotate(45deg);
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget-r;
- }
- .mblArrowButtonHeadChrome-styles () {
- border-style: inset;
- }
- .mblArrowButtonBody-styles () {
- top: @_heading-inner-margin;
- left: @_heading-inner-margin + @theme-ui-widget-height * 0.4;
- padding: 0px 10px 0px 3px;
- height: @theme-ui-widget-height;
- border-width: 1px 1px 1px 0px;
- border-style: inset;
- border-color: @theme-ui-widget-border-color;
- font-size: @theme-ui-widget-font-size;
- font-family: @theme-ui-widget-font-family;
- font-weight: @theme-ui-widget-font-weight;
- text-shadow: @theme-ui-widget-text-shadow;
- color: @theme-ui-widget-color;
- line-height: @theme-ui-widget-height;
- -webkit-border-top-right-radius: @theme-ui-widget-border-radius;
- -webkit-border-bottom-right-radius: @theme-ui-widget-border-radius;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- }
- .mblArrowButtonSelected-styles () {
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblArrowButtonHeadSelected-styles () {
- }
- .mblArrowButtonBodySelected-styles () {
- }
- //----------------------------------------------------------------
- // ToolBarButton.less
- //----------------------------------------------------------------
- .mblToolBarButton-styles () {
- margin: @theme-default-margin;
- height: @theme-ui-widget-height;
- border: 1px inset @theme-ui-widget-border-color;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- font-size: @theme-ui-widget-font-size;
- font-family: @theme-ui-widget-font-family;
- font-weight: @theme-ui-widget-font-weight;
- text-shadow: @theme-ui-widget-text-shadow;
- color: @theme-ui-widget-color;
- line-height: @theme-ui-widget-height;
- text-align: center;
- &.mblArrowButtonText {
- margin: ((@theme-heading-height + 2 - @theme-ui-widget-height) * 0.5) @theme-default-margin;
- }
- }
- .mblToolBarButtonDomButton-styles () {
- }
- .mblToolBarButtonIcon-styles () {
- top: 2px;
- }
- //----------------------------------------------------------------
- // RoundRect.less
- //----------------------------------------------------------------
- .mblRoundRect-styles () {
- margin: @theme-default-margin @theme-default-margin (@theme-default-margin * 1.5);
- padding: @theme-default-padding;
- border: 1px solid @theme-round-rect-border-color;
- -webkit-border-radius: @theme-default-border-radius;
- background-color: @theme-round-rect-background-color;
- font-size: @theme-list-item-font-size;
- font-family: @theme-list-item-font-family;
- font-weight: @theme-list-item-font-weight;
- text-shadow: @theme-list-item-text-shadow;
- }
- .mblRoundRectShadowBox-styles () {
- -webkit-box-shadow: @theme-round-rect-box-shadow;
- }
- //----------------------------------------------------------------
- // EdgeToEdgeCategory.less
- //----------------------------------------------------------------
- .mblEdgeToEdgeCategory-styles () {
- margin: 0;
- padding: 0 @theme-default-padding;
- height: @theme-category-height;
- border-bottom: 1px solid @theme-default-border-color;
- background-color: @theme-highlight-background-color;
- ._background-image-gradient-mask-heading();
- font-size: @theme-category-font-size;
- font-family: @theme-category-font-family;
- font-weight: @theme-category-font-weight;
- text-shadow: @theme-category-text-shadow;
- color: @theme-category-color;
- line-height: @theme-category-height + 2;
- }
- //----------------------------------------------------------------
- // RoundRectCategory.less
- //----------------------------------------------------------------
- .mblRoundRectCategory-styles () {
- margin: 0;
- padding: @theme-default-margin @theme-default-margin 0;
- font-size: @theme-category-font-size;
- font-family: @theme-category-font-family;
- font-weight: @theme-category-font-weight;
- text-shadow: @theme-category-text-shadow;
- color: @theme-category-color;
- line-height: @theme-category-height;
- }
- //----------------------------------------------------------------
- // RoundRectList.less
- //----------------------------------------------------------------
- .mblRoundRectList-styles () {
- margin: @theme-default-margin @theme-default-margin (@theme-default-margin * 1.5);
- padding: 0;
- border: 1px solid @theme-default-border-color;
- -webkit-border-radius: @theme-default-border-radius;
- background-color: @theme-list-item-background-color;
- -webkit-box-shadow: @theme-round-rect-box-shadow;
- }
- .mblRoundRectList-withCategory-styles () {
- }
- .mblRoundRectList-FirstListItem-styles () {
- -webkit-border-top-left-radius: @theme-default-border-radius;
- -webkit-border-top-right-radius: @theme-default-border-radius;
- }
- .mblRoundRectList-withCategory-FirstListItem-styles () {
- }
- .mblRoundRectList-LastListItem-styles () {
- border-bottom-width: 0px;
- -webkit-border-bottom-left-radius: @theme-default-border-radius;
- -webkit-border-bottom-right-radius: @theme-default-border-radius;
- }
- //----------------------------------------------------------------
- // EdgeToEdgeList.less
- //----------------------------------------------------------------
- .mblEdgeToEdgeList-styles () {
- margin: 0;
- padding: 0;
- background-color: @theme-list-item-background-color;
- }
- .mblEdgeToEdgeList-LastListItem-styles () {
- border-bottom-color: @theme-list-item-border-color;
- }
- //----------------------------------------------------------------
- // ListItem.less
- //----------------------------------------------------------------
- .mblListItem-styles () {
- padding: 0 0 0 @theme-default-margin;
- height: @theme-list-item-height;
- border-bottom: 1px solid @theme-list-item-border-color;
- font-size: @theme-list-item-font-size;
- font-family: @theme-list-item-font-family;
- font-weight: @theme-list-item-font-weight;
- text-shadow: @theme-list-item-text-shadow;
- color: @theme-list-item-color;
- line-height: @theme-list-item-height;
- }
- .mblListItem-mblVariableHeight-styles () {
- padding: 11px 0px 10px 6px;
- line-height: normal;
- }
- .mblListItem-mblListItemAnchor-styles () {
- background-position: 9px 7px;
- text-decoration: none;
- padding-right: 7px;
- }
- .mblItemSelected-styles () {
- background-color: @theme-highlight-background-color;
- ._background-image-gradient-mask-ui-widget;
- }
- .mblItemSelected-mblListItemAnchor-styles () {
- color: @theme-highlight-color;
- }
- .mblItemSelected-mblDomButton-Div-styles () {
- border-color: white;
- }
- .mblItemSelected-mblListItemSubText-styles () {
- }
- .mblListItemTextBoxSelected-styles () {
- background-color: @theme-highlight-background-color;
- }
- .mblListItemChecked-styles () {
- color: @theme-highlight-color;
- }
- .mblListItemIcon-styles () {
- margin-top: (@theme-list-item-height - @appl-list-item-icon-size) * 0.5;
- margin-right: 11px;
- }
- .mblListItemSpriteIcon-styles () {
- margin-top: (@theme-list-item-height - @appl-list-item-icon-size) * 0.5;
- margin-left: 8px;
- }
- .mblListItemRightIcon-styles () {
- margin-top: (@theme-list-item-height - @appl-list-item-icon-size) * 0.5;
- }
- .mblListItemRightText-styles () {
- color: @theme-default-color;
- margin: ((@theme-list-item-height - (@theme-list-item-font-size + 4)) * 0.5) 4px 0 0;
- }
- .mblListItemTextBox-styles () {
- }
- .mblListItemAnchorNoIcon-mblListItemTextBox-styles () {
- }
- .mblListItemSubText-styles () {
- }
- //----------------------------------------------------------------
- // Switch.less
- //----------------------------------------------------------------
- .mblItemSwitch-styles () {
- top: (@theme-list-item-height - @mbl-switch-height + 1) * 0.5;
- }
- .mblSwitchBg-styles () {
- border-color: @theme-ui-widget-border-color;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- ._background-image-gradient-mask-ui-widget;
- }
- .mblSwitchBgLeft-styles () {
- background-color: @theme-ui-widget-checked-background-color;
- color: @theme-ui-widget-color;
- }
- .mblSwitchBgRight-styles () {
- background-color: @theme-ui-widget-disabled-background-color;
- }
- .mblSwitchKnob-styles () {
- border-color: darken(@theme-ui-widget-border-color, 20%);
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- }
- //----------------------------------------------------------------
- // Button.less
- //----------------------------------------------------------------
- .mblButton-styles () {
- padding: 0 @theme-default-padding;
- height: @theme-ui-widget-height;
- border: 1px outset @theme-ui-widget-border-color;
- color: @theme-ui-widget-color;
- font-size: @theme-ui-widget-font-size;
- font-family: @theme-ui-widget-font-family;
- font-weight: @theme-ui-widget-font-weight;
- line-height: @theme-ui-widget-height;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- }
- .mblButton-mblBlueButton-styles () {
- color: @theme-ui-widget-color;
- background-color: #0000FF;
- }
- .mblButton-mblBlueButtonSelected-styles () {
- color: @theme-ui-widget-selected-color;
- border-color: @theme-ui-widget-selected-border-color;
- background-color: darken(#0000FF, 30%);
- }
- .mblButton-mblRedButton-styles () {
- color: @theme-ui-widget-color;
- background-color: #FF0000;
- }
- .mblButton-mblRedButtonSelected-styles () {
- color: @theme-ui-widget-selected-color;
- border-color: @theme-ui-widget-selected-border-color;
- background-color: darken(#FF0000, 30%);
- }
- .mblButtonSelected-styles () {
- color: @theme-ui-widget-selected-color;
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblButtonDisabled-styles () {
- color: grey;
- border-color: grey;
- background-color: @theme-ui-widget-disabled-background-color;
- }
- //----------------------------------------------------------------
- // CheckBox.less
- //----------------------------------------------------------------
- .mblCheckBox-styles () {
- margin: -0.5em 3px 0.3em 4px;
- width: 1em;
- height: 1em;
- font-size: @theme-highlight-font-size;
- border: 1px outset @theme-ui-widget-border-color;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- -webkit-transform: translateY(0.45em);
- }
- .mblCheckBoxSelected-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblCheckBoxChecked-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-checked-background-color;
- }
- .mblCheckBoxChecked-after-styles () {
- content: "";
- width: 0.3em;
- height: 0.6em;
- position: absolute;
- top: 0;
- left: 0.3em;
- border-color: @theme-ui-widget-selected-color;
- border-width: 0.15em;
- border-style: none solid solid none;
- -webkit-transform: rotate(45deg);
- -webkit-transform-origin: 50% 50%;
- }
- .mblCheckBoxChecked-mblCheckBoxSelected-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblCheckBoxChecked-mblCheckBoxSelected-after-styles () {
- border-color: @theme-ui-widget-selected-color;
- }
- //----------------------------------------------------------------
- // ComboBox.less
- //----------------------------------------------------------------
- .dijitPopup-styles () {
- -webkit-box-shadow: 0px 0px 50px black;
- -webkit-border-radius: @theme-default-border-radius;
- }
- .mblComboBoxMenu-styles () {
- border: 1px solid black;
- background-color: @theme-default-background-color;
- -webkit-border-radius: @theme-default-border-radius;
- }
- .mblComboBoxMenuItem-styles () {
- text-align: left;
- padding: .1em .2em;
- color: @theme-default-color;
- border-width: 1px 0 1px 0;
- border-style: solid;
- border-color: @theme-default-background-color;
- }
- .mblComboBoxMenuItemSelected-styles () {
- color: @theme-highlight-color;
- background-color: @theme-highlight-background-color;
- ._background-image-gradient-mask-ui-widget;
- }
- .mblComboBoxMenuPreviousButton-styles () {
- font-style: italic;
- overflow: hidden;
- }
- //----------------------------------------------------------------
- // IconContainer.less
- //----------------------------------------------------------------
- .mblIconContainer-styles () {
- margin: @theme-default-margin 0 @theme-default-margin @theme-default-margin;
- padding: @theme-default-padding 0 @theme-default-padding;
- background-color: @theme-default-background-color;
- }
- //----------------------------------------------------------------
- // IconItem.less
- //----------------------------------------------------------------
- .mblIconItemTerminator-styles () {
- height: @theme-default-margin;
- }
- .mblIconItemSub-styles () {
- margin-left: -@theme-default-margin;
- background-color: white;
- color: @theme-default-color;
- }
- .mblIconArea-styles () {
- height: @theme-icon-item-height + @theme-default-font-size + @theme-default-margin;
- width: @theme-icon-item-width + @theme-default-margin;
- text-align: center;
- font-family: @theme-default-font-family;
- font-weight: @theme-default-font-weight;
- font-size: @theme-default-font-size;
- }
- .mblContent-styles () {
- padding-bottom: @theme-default-margin;
- }
- .mblIconContentHeading-styles () {
- margin-top: 0px;
- padding-left: @mbl-dom-button-size + @theme-default-margin;
- height: @mbl-dom-button-size - 4;
- border-top: 1px solid lighten(@theme-heading-border-color, 30%);
- border-bottom: 1px solid @theme-heading-border-color;
- background-color: @theme-heading-background-color;
- ._background-image-gradient-mask-heading();
- color: @theme-heading-color;
- font-size: @theme-default-font-size;
- font-family: @theme-heading-font-family;
- font-weight: @theme-heading-font-weight;
- text-shadow: @theme-heading-text-shadow;
- line-height: @mbl-dom-button-size - 3;
- }
- //----------------------------------------------------------------
- // RadioButton.less
- //----------------------------------------------------------------
- .mblRadioButton-styles () {
- margin: -0.5em 3px 0.3em 4px;
- width: 1em;
- height: 1em;
- font-size: @theme-highlight-font-size;
- border: 1px outset @theme-ui-widget-border-color;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: 0.5em;
- -webkit-transform: translateY(0.45em);
- }
- .mblRadioButtonChecked-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-checked-background-color;
- }
- .mblRadioButtonChecked-after-styles () {
- content: "";
- width: 0.3em;
- height: 0.6em;
- top: 0;
- left: 0.25em;
- border-color: @theme-ui-widget-selected-color;
- border-width: 0.15em;
- border-style: none solid solid none;
- -webkit-transform: rotate(45deg);
- -webkit-transform-origin: 50% 50%;
- }
- .mblRadioButtonChecked-Selected-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblRadioButtonChecked-Selected-after-styles () {
- border-color: @theme-ui-widget-selected-color;
- }
- //----------------------------------------------------------------
- // Slider.less
- //----------------------------------------------------------------
- .mblSlider-styles () {
- margin: 15px; /* 1/2 handle width for hanging off the ends of the bar */
- border: 1px outset @theme-ui-widget-border-color;
- background-color: @theme-ui-widget-disabled-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- }
- .mblSliderProgressBar-styles () {
- -webkit-border-radius: @theme-ui-widget-border-radius;
- background-color: @theme-ui-widget-selected-background-color;
- ._background-image-gradient-mask-ui-widget;
- }
- .mblSliderHandle-styles () {
- margin: -10px 0 0 -10px;
- width: 18px;
- height: 18px;
- border: 1px outset @theme-ui-widget-border-color;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- }
- //----------------------------------------------------------------
- // TabBar.less
- //----------------------------------------------------------------
- .mblTabBar-styles () {
- margin: 0;
- padding: 0;
- height: @theme-tabbar-height;
- background-color: @theme-heading-background-color;
- ._background-image-gradient-mask-ui-widget;
- border-bottom: 1px solid @theme-heading-border-color;
- color: @theme-heading-color;
- text-align: center;
- }
- .mblTabBar-TabBarButton-styles () {
- padding: ((@theme-tabbar-height - @mbl-dom-button-size - @theme-tabbar-font-size) * 0.5) 0;
- }
- .mblTabBar-TabBarButton-Selected-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- }
- .mblTabBarButtonDiv-styles () {
- height: @mbl-dom-button-size;
- width: @mbl-dom-button-size;
- }
- .mblTabBarButtonIcon-styles () {
- left: 0;
- top: 0;
- }
- .mblTabBarButtonTextBox-styles () {
- color: @theme-tabbar-color;
- font-family: @theme-tabbar-font-family;
- font-size: @theme-tabbar-font-size;
- font-weight: @theme-tabbar-font-weight;
- }
- .mblTabBarNoIcons-TabBarButtonTextBox-styles () {
- line-height: @theme-tabbar-height - @theme-tabbar-font-size;
- font-size: @theme-tabbar-font-size + 6;
- }
- .mblTabButton-styles () {
- width: @theme-ui-widget-width;
- height: @theme-ui-widget-height;
- border-width: 1px 1px 1px 0px;
- border-style: inset;
- border-color: @theme-default-border-color;
- border-right-color: @theme-ui-widget-border-color;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- font-family: @theme-default-font-family;
- font-size: @theme-default-font-size;
- font-weight: @theme-default-font-weight;
- color: @theme-default-color;
- text-align: center;
- line-height: @theme-ui-widget-height;
- }
- .mblTabButton-TabBarButtonAnchor-styles () {
- height: @theme-ui-widget-height;
- }
- .mblTabBarTop-TabButton-TabBarButtonDiv-styles () {
- display: none;
- }
- .mblTabBarHead-TabButton-TabBarButtonDiv-styles () {
- }
- .mblTabButton-FirstTabButtom-styles () {
- -webkit-border-top-left-radius: @theme-ui-widget-border-radius;
- -webkit-border-bottom-left-radius: @theme-ui-widget-border-radius;
- border-left-width: 1px;
- }
- .mblTabButton-LastTabButton-styles () {
- -webkit-border-top-right-radius: @theme-ui-widget-border-radius;
- -webkit-border-bottom-right-radius: @theme-ui-widget-border-radius;
- border-right-color: @theme-ui-widget-border-color;
- }
- .mblTabButton-img-styles () {
- }
- .mblTabBarButtonTextBoxSelected-styles () {
- color: @theme-ui-widget-selected-color;
- }
- .mblTabButtonSelected-styles () {
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblTabButtonHighlighted-styles () {
- background-color: @theme-ui-widget-checked-background-color;
- }
- .mblTabButtonImgDiv-styles () {
- display: none;
- }
- .mblTabPanelHeader-styles () {
- margin: 0;
- padding: 0;
- height: @theme-heading-height;
- background-color: @theme-heading-background-color;
- ._background-image-gradient-mask-heading();
- border-bottom: 1px solid @theme-heading-border-color;
- color: @theme-heading-color;
- font-size: @theme-heading-font-size;
- font-family: @theme-heading-font-family;
- font-weight: @theme-heading-font-weight;
- text-shadow: @theme-heading-text-shadow;
- text-align: center;
- line-height: @theme-heading-height + 2;
- }
- .mblTabPanelHeader-TabButton-styles () {
- margin-top: (@theme-heading-height - @theme-ui-widget-height - 2) * 0.5;
- }
- .mblTabPanelHeader-TabButtonSelected-styles () {
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblTabPanelHeader-TabButtonDomButton-styles () {
- width: 43px;
- }
- .mblTabPanelHeader-TabButtonDomButtonClass-styles () {
- left: 8px;
- }
- .mblTabPanelHeader-DomButton-styles () {
- }
- .mblTabPanelHeader-inHeading-styles () {
- }
- .mblTabPanelHeader-TabButton-inHeading-styles () {
- margin-top: (@theme-heading-height - @theme-ui-widget-height) * 0.5;
- }
- .mblTabPanelHeader-TabButton-FirstTabButtom-inHeading-styles () {
- -webkit-border-top-left-radius: @theme-ui-widget-border-radius;
- -webkit-border-bottom-left-radius: @theme-ui-widget-border-radius;
- border-left-width: 1px;
- }
- .mblTabPanelHeader-TabButton-LastTabButtom-inHeading-styles () {
- -webkit-border-top-right-radius: @theme-ui-widget-border-radius;
- -webkit-border-bottom-right-radius: @theme-ui-widget-border-radius;
- }
- .mblTabPanelHeader-TabButtonSelected-inHeading-styles () {
- }
- //----------------------------------------------------------------
- // TextArea.less
- //----------------------------------------------------------------
- .mblTextArea-styles () {
- padding: 4px 1px;
- border: @theme-default-border-color 1px inset;
- font-family: @theme-default-font-family;
- font-size: @theme-default-font-size;
- -webkit-border-radius: @theme-default-border-radius;
- }
- .mblExpandingTextArea-styles () {
- margin: 2px;
- }
- //----------------------------------------------------------------
- // TextBox.less
- //----------------------------------------------------------------
- .mblTextBox-styles () {
- height: @theme-ui-widget-height;
- border: @theme-default-border-color 1px inset;
- font-family: @theme-default-font-family;
- font-size: @theme-default-font-size;
- -webkit-border-radius: @theme-default-border-radius;
- }
- //----------------------------------------------------------------
- // ToggleButton.less
- //----------------------------------------------------------------
- .mblToggleButton-styles () {
- padding: 0 @theme-default-padding 0 (@theme-default-padding + 15px);
- height: @theme-ui-widget-height;
- border: 1px outset @theme-ui-widget-border-color;
- -webkit-border-radius: @theme-ui-widget-border-radius;
- background-color: @theme-ui-widget-background-color;
- ._background-image-gradient-mask-ui-widget;
- font-family: @theme-ui-widget-font-family;
- font-weight: @theme-ui-widget-font-weight;
- line-height: @theme-ui-widget-height;
- color: @theme-ui-widget-color;
- line-height: @theme-ui-widget-height;
- }
- .mblToggleButtonSelected-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblToggleButtonChecked-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-checked-background-color;
- }
- .mblToggleButtonChecked-after-styles () {
- content: "";
- top: (@theme-ui-widget-height - 15) * 0.5;
- left: 7px;
- width: 5px;
- height: 10px;
- border-color: @theme-ui-widget-selected-color;
- border-width: 0.15em;
- border-style: none solid solid none;
- -webkit-transform: rotate(45deg) skew(10deg);
- -webkit-transform-origin: 50% 50%;
- }
- .mblToggleButtonCheckedSelected-styles () {
- border-color: @theme-ui-widget-selected-border-color;
- background-color: @theme-ui-widget-selected-background-color;
- }
- .mblToggleButtonCheckedSelected-after-styles () {
- border-color: @theme-ui-widget-selected-color;
- }
- .mblToggleButtonDisabled-styles () {
- color: grey;
- border-color: grey;
- background-color: @theme-ui-widget-disabled-background-color;
- }
- // Overlay.less
- .mblOverlay-styles () {
- background-color: @theme-default-background-color;
- ._background-image-gradient-mask-ui-widget;
- }
- // Tooltip.less
- .mblTooltip-styles () {
- padding: @theme-default-padding;
- border: @theme-heading-border-color 1px solid;
- background-color: @theme-heading-background-color;
- ._background-image-gradient-mask-ui-widget;
- -webkit-border-radius: @theme-default-border-radius;
- opacity: .97;
- }
- .mblTooltipBubble-styles () {
- background-color: @theme-heading-background-color;
- background-image: none;
- }
- .mblTooltipInnerArrow-Bubble-Above-styles () {
- border-bottom-color: @theme-heading-background-color;
- }
- .mblTooltipInnerArrow-Bubble-Below-styles () {
- border-top-color: @theme-heading-background-color;
- }
- .mblTooltipInnerArrow-Bubble-After-styles () {
- border-left-color: @theme-heading-background-color;
- }
- .mblTooltipInnerArrow-Bubble-Before-styles () {
- border-right-color: @theme-heading-background-color;
- }
- .mblTooltipArrow-styles () {
- border: 11px solid transparent;
- }
- .mblTooltipArrow-Before-styles () {
- border-left-width: 0;
- border-right-color: @theme-heading-border-color;
- }
- .mblTooltipArrow-After-styles () {
- border-right-width: 0;
- border-left-color: @theme-heading-border-color;
- }
- .mblTooltipArrow-Above-styles () {
- border-top-width: 0;
- border-bottom-color: @theme-heading-border-color;
- }
- .mblTooltipArrow-Below-styles () {
- border-bottom-width: 0;
- border-top-color: @theme-heading-border-color;
- }
- .mblTooltipInnerArrow-Before-styles () {
- border-left-width: 0;
- border-right-color: @theme-heading-background-color * 0.2 + #ffffff * 0.8;
- }
- .mblTooltipInnerArrow-After-styles () {
- border-right-width: 0;
- border-left-color: @theme-heading-background-color * 0.2 + #ffffff * 0.8;
- }
- .mblTooltipInnerArrow-Above-styles () {
- border-top-width: 0;
- border-bottom-color: @theme-heading-background-color * 0.0 + #ffffff * 1.0;
- }
- .mblTooltipInnerArrow-Below-styles () {
- border-bottom-width: 0;
- border-top-color: @theme-heading-background-color * 0.5 + #ffffff * 0.5;
- }
- .mblTooltip-Heading-styles () {
- border-top: 1px solid transparent;
- border-bottom: 1px solid transparent;
- background-color: transparent;
- background-image: none;
- }
- .mblTooltip-Heading-ToolbarButton-styles () {
- }
|