variables.less 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. //----------------------------------------------------------------
  2. // 1. Variables for quick setting
  3. //----------------------------------------------------------------
  4. // Default state variables
  5. @theme-default-margin: 8px;
  6. @theme-default-padding: 8px;
  7. @theme-default-font-size: 14px;
  8. @theme-default-font-family: Helvetica;
  9. @theme-default-font-weight: normal;
  10. @theme-default-text-shadow: none;
  11. @theme-default-color: #131313; // numerical color value
  12. @theme-default-border-color: #B5BCC7; // numerical color value
  13. @theme-default-border-radius: 5px;
  14. @theme-default-background-color: lighten(@theme-default-border-color, 20%);
  15. // Highlighting state variables
  16. @theme-highlight-font-size: 18px;
  17. @theme-highlight-font-family: @theme-default-font-family;
  18. @theme-highlight-font-weight: bold;
  19. @theme-highlight-text-shadow: rgba(0,0,0,0.2) 0px 1px 2px;
  20. @theme-highlight-color: #000000; // numerical color value
  21. @theme-highlight-border-color: #769DC0; // numerical color value
  22. @theme-highlight-background-color: #5CB0FF; // numerical color value
  23. //----------------------------------------------------------------
  24. // 2. Variables for typical style setting
  25. //----------------------------------------------------------------
  26. // Color
  27. @theme-heading-color: @theme-default-color;
  28. @theme-heading-border-color: @theme-highlight-border-color;
  29. @theme-heading-background-color: @theme-highlight-background-color;
  30. @theme-dom-button-background-color: @theme-highlight-background-color;
  31. @theme-tabbar-color: @theme-default-color;
  32. @theme-round-rect-border-color: @theme-default-border-color;
  33. @theme-round-rect-background-color: #FFFFFF;
  34. @theme-round-rect-box-shadow: 5px 5px 5px @theme-round-rect-border-color;
  35. @theme-category-color: @theme-highlight-color;
  36. @theme-list-item-color: @theme-default-color;
  37. @theme-list-item-border-color: @theme-default-border-color;
  38. @theme-list-item-background-color: #FFFFFF;
  39. @theme-ui-widget-color: @theme-default-color;
  40. @theme-ui-widget-selected-color: @theme-highlight-color;
  41. @theme-ui-widget-border-color: @theme-default-border-color;
  42. @theme-ui-widget-selected-border-color: @theme-highlight-border-color;
  43. @theme-ui-widget-background-color: @theme-highlight-background-color;
  44. @theme-ui-widget-selected-background-color: darken(@theme-ui-widget-background-color, 30%);
  45. @theme-ui-widget-checked-background-color: darken(@theme-ui-widget-background-color, 20%);
  46. @theme-ui-widget-disabled-background-color: lighten(@theme-ui-widget-background-color, 10%);
  47. // Font
  48. @theme-heading-font-size: @theme-highlight-font-size;
  49. @theme-heading-font-family: @theme-highlight-font-family;
  50. @theme-heading-font-weight: @theme-default-font-weight;
  51. @theme-heading-text-shadow: @theme-highlight-text-shadow;
  52. @theme-tabbar-font-size: @theme-default-font-size - 3;
  53. @theme-tabbar-font-family: @theme-default-font-family;
  54. @theme-tabbar-font-weight: @theme-default-font-weight;
  55. @theme-category-font-size: @theme-highlight-font-size;
  56. @theme-category-font-family: @theme-highlight-font-family;
  57. @theme-category-font-weight: @theme-default-font-weight;
  58. @theme-category-text-shadow: @theme-highlight-text-shadow;
  59. @theme-list-item-font-size: @theme-highlight-font-size;
  60. @theme-list-item-font-family: @theme-default-font-family;
  61. @theme-list-item-font-weight: @theme-default-font-weight;
  62. @theme-list-item-text-shadow: none;
  63. @theme-ui-widget-font-size: @theme-default-font-size;
  64. @theme-ui-widget-font-family: @theme-default-font-family;
  65. @theme-ui-widget-font-weight: @theme-default-font-weight;
  66. @theme-ui-widget-text-shadow: none;
  67. // Size
  68. @theme-heading-height: 40px;
  69. @theme-tabbar-height: 50px;
  70. @theme-category-height: 30px;
  71. @theme-list-item-height: 50px;
  72. @theme-icon-item-height: 65px;
  73. @theme-icon-item-width: 65px;
  74. @theme-ui-widget-height: 30px;
  75. @theme-ui-widget-width: 90px;
  76. @theme-ui-widget-border-radius: 2px; // square style
  77. //@theme-ui-widget-border-radius: @theme-default-border-radius; // round style
  78. //@theme-ui-widget-border-radius: @theme-ui-widget-height * 0.5; // oval style
  79. // background-image gradation
  80. ._background-image-gradient-mask-heading () {
  81. @delta: 1% / @theme-heading-height * 100;
  82. // claro gradation
  83. 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)));
  84. }
  85. ._background-image-gradient-mask-ui-widget () {
  86. @delta: 1% / @theme-ui-widget-height * 100;
  87. // claro gradation
  88. 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)));
  89. }
  90. ._background-image-gradient-mask-ui-widget-r () { // for .mblArrowButtonHead-styles
  91. @delta: 1% / @theme-ui-widget-height * 100;
  92. // claro gradation
  93. 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)));
  94. }
  95. // dojox.mobile fixed variables
  96. @mbl-dom-button-size: 29px;
  97. @mbl-switch-height: 27px;
  98. // Application's customizable variables
  99. @appl-list-item-icon-size: 29px; // size of ListItemIcon
  100. //----------------------------------------------------------------
  101. // 3. Variables for dojox.mobile Widgets
  102. //----------------------------------------------------------------
  103. //----------------------------------------------------------------
  104. // common.less
  105. //----------------------------------------------------------------
  106. // .mobile body
  107. .mobile-body-styles () {
  108. background-color: @theme-default-background-color;
  109. font-family: @theme-default-font-family;
  110. font-size: @theme-default-font-size;
  111. }
  112. // .mblView
  113. .mblView-styles () {
  114. color: @theme-default-color;
  115. }
  116. // .mblColorBlue
  117. .mblColorBlue-styles () {
  118. background-color: #366EDF;
  119. ._background-image-gradient-mask-ui-widget;
  120. }
  121. // .mblColorDefault
  122. .mblColorDefault-styles () {
  123. background-color: @theme-ui-widget-background-color;
  124. ._background-image-gradient-mask-ui-widget;
  125. &.mblDomButton {
  126. background-color: @theme-dom-button-background-color;
  127. }
  128. }
  129. // .mblColorDefaultSel
  130. .mblColorDefaultSel-styles () {
  131. background-color: @theme-ui-widget-selected-background-color;
  132. &.mblDomButton {
  133. background-color: @theme-ui-widget-selected-background-color;
  134. }
  135. }
  136. //----------------------------------------------------------------
  137. // Heading.less
  138. //----------------------------------------------------------------
  139. @_heading-inner-margin: (@theme-heading-height - @theme-ui-widget-height) * 0.5;
  140. .mblHeading-styles () {
  141. padding: 0;
  142. height: @theme-heading-height;
  143. background-color: @theme-heading-background-color;
  144. ._background-image-gradient-mask-heading();
  145. border-bottom: 1px solid @theme-heading-border-color;
  146. color: @theme-heading-color;
  147. font-size: @theme-heading-font-size;
  148. font-family: @theme-heading-font-family;
  149. font-weight: @theme-heading-font-weight;
  150. text-shadow: @theme-heading-text-shadow;
  151. text-align: center;
  152. line-height: @theme-heading-height + 2;
  153. }
  154. .mblArrowButton-styles () {
  155. height: @theme-ui-widget-height;
  156. margin: 0px @theme-default-margin;
  157. }
  158. .mblArrowButtonHead-styles () {
  159. top: @_heading-inner-margin;
  160. left: @_heading-inner-margin + @theme-ui-widget-height * 0.4; // = 0.5 * 0.9
  161. width: @theme-ui-widget-height * 0.7;
  162. height: @theme-ui-widget-height * 0.7;
  163. border: 1px solid @theme-ui-widget-border-color;
  164. -webkit-transform-origin: left top;
  165. -webkit-transform: scale(0.9,0.99) rotate(45deg);
  166. background-color: @theme-ui-widget-background-color;
  167. ._background-image-gradient-mask-ui-widget-r;
  168. }
  169. .mblArrowButtonHeadChrome-styles () {
  170. border-style: inset;
  171. }
  172. .mblArrowButtonBody-styles () {
  173. top: @_heading-inner-margin;
  174. left: @_heading-inner-margin + @theme-ui-widget-height * 0.4;
  175. padding: 0px 10px 0px 3px;
  176. height: @theme-ui-widget-height;
  177. border-width: 1px 1px 1px 0px;
  178. border-style: inset;
  179. border-color: @theme-ui-widget-border-color;
  180. font-size: @theme-ui-widget-font-size;
  181. font-family: @theme-ui-widget-font-family;
  182. font-weight: @theme-ui-widget-font-weight;
  183. text-shadow: @theme-ui-widget-text-shadow;
  184. color: @theme-ui-widget-color;
  185. line-height: @theme-ui-widget-height;
  186. -webkit-border-top-right-radius: @theme-ui-widget-border-radius;
  187. -webkit-border-bottom-right-radius: @theme-ui-widget-border-radius;
  188. background-color: @theme-ui-widget-background-color;
  189. ._background-image-gradient-mask-ui-widget;
  190. }
  191. .mblArrowButtonSelected-styles () {
  192. background-color: @theme-ui-widget-selected-background-color;
  193. }
  194. .mblArrowButtonHeadSelected-styles () {
  195. }
  196. .mblArrowButtonBodySelected-styles () {
  197. }
  198. //----------------------------------------------------------------
  199. // ToolBarButton.less
  200. //----------------------------------------------------------------
  201. .mblToolBarButton-styles () {
  202. margin: @theme-default-margin;
  203. height: @theme-ui-widget-height;
  204. border: 1px inset @theme-ui-widget-border-color;
  205. -webkit-border-radius: @theme-ui-widget-border-radius;
  206. font-size: @theme-ui-widget-font-size;
  207. font-family: @theme-ui-widget-font-family;
  208. font-weight: @theme-ui-widget-font-weight;
  209. text-shadow: @theme-ui-widget-text-shadow;
  210. color: @theme-ui-widget-color;
  211. line-height: @theme-ui-widget-height;
  212. text-align: center;
  213. &.mblArrowButtonText {
  214. margin: ((@theme-heading-height + 2 - @theme-ui-widget-height) * 0.5) @theme-default-margin;
  215. }
  216. }
  217. .mblToolBarButtonDomButton-styles () {
  218. }
  219. .mblToolBarButtonIcon-styles () {
  220. top: 2px;
  221. }
  222. //----------------------------------------------------------------
  223. // RoundRect.less
  224. //----------------------------------------------------------------
  225. .mblRoundRect-styles () {
  226. margin: @theme-default-margin @theme-default-margin (@theme-default-margin * 1.5);
  227. padding: @theme-default-padding;
  228. border: 1px solid @theme-round-rect-border-color;
  229. -webkit-border-radius: @theme-default-border-radius;
  230. background-color: @theme-round-rect-background-color;
  231. font-size: @theme-list-item-font-size;
  232. font-family: @theme-list-item-font-family;
  233. font-weight: @theme-list-item-font-weight;
  234. text-shadow: @theme-list-item-text-shadow;
  235. }
  236. .mblRoundRectShadowBox-styles () {
  237. -webkit-box-shadow: @theme-round-rect-box-shadow;
  238. }
  239. //----------------------------------------------------------------
  240. // EdgeToEdgeCategory.less
  241. //----------------------------------------------------------------
  242. .mblEdgeToEdgeCategory-styles () {
  243. margin: 0;
  244. padding: 0 @theme-default-padding;
  245. height: @theme-category-height;
  246. border-bottom: 1px solid @theme-default-border-color;
  247. background-color: @theme-highlight-background-color;
  248. ._background-image-gradient-mask-heading();
  249. font-size: @theme-category-font-size;
  250. font-family: @theme-category-font-family;
  251. font-weight: @theme-category-font-weight;
  252. text-shadow: @theme-category-text-shadow;
  253. color: @theme-category-color;
  254. line-height: @theme-category-height + 2;
  255. }
  256. //----------------------------------------------------------------
  257. // RoundRectCategory.less
  258. //----------------------------------------------------------------
  259. .mblRoundRectCategory-styles () {
  260. margin: 0;
  261. padding: @theme-default-margin @theme-default-margin 0;
  262. font-size: @theme-category-font-size;
  263. font-family: @theme-category-font-family;
  264. font-weight: @theme-category-font-weight;
  265. text-shadow: @theme-category-text-shadow;
  266. color: @theme-category-color;
  267. line-height: @theme-category-height;
  268. }
  269. //----------------------------------------------------------------
  270. // RoundRectList.less
  271. //----------------------------------------------------------------
  272. .mblRoundRectList-styles () {
  273. margin: @theme-default-margin @theme-default-margin (@theme-default-margin * 1.5);
  274. padding: 0;
  275. border: 1px solid @theme-default-border-color;
  276. -webkit-border-radius: @theme-default-border-radius;
  277. background-color: @theme-list-item-background-color;
  278. -webkit-box-shadow: @theme-round-rect-box-shadow;
  279. }
  280. .mblRoundRectList-withCategory-styles () {
  281. }
  282. .mblRoundRectList-FirstListItem-styles () {
  283. -webkit-border-top-left-radius: @theme-default-border-radius;
  284. -webkit-border-top-right-radius: @theme-default-border-radius;
  285. }
  286. .mblRoundRectList-withCategory-FirstListItem-styles () {
  287. }
  288. .mblRoundRectList-LastListItem-styles () {
  289. border-bottom-width: 0px;
  290. -webkit-border-bottom-left-radius: @theme-default-border-radius;
  291. -webkit-border-bottom-right-radius: @theme-default-border-radius;
  292. }
  293. //----------------------------------------------------------------
  294. // EdgeToEdgeList.less
  295. //----------------------------------------------------------------
  296. .mblEdgeToEdgeList-styles () {
  297. margin: 0;
  298. padding: 0;
  299. background-color: @theme-list-item-background-color;
  300. }
  301. .mblEdgeToEdgeList-LastListItem-styles () {
  302. border-bottom-color: @theme-list-item-border-color;
  303. }
  304. //----------------------------------------------------------------
  305. // ListItem.less
  306. //----------------------------------------------------------------
  307. .mblListItem-styles () {
  308. padding: 0 0 0 @theme-default-margin;
  309. height: @theme-list-item-height;
  310. border-bottom: 1px solid @theme-list-item-border-color;
  311. font-size: @theme-list-item-font-size;
  312. font-family: @theme-list-item-font-family;
  313. font-weight: @theme-list-item-font-weight;
  314. text-shadow: @theme-list-item-text-shadow;
  315. color: @theme-list-item-color;
  316. line-height: @theme-list-item-height;
  317. }
  318. .mblListItem-mblVariableHeight-styles () {
  319. padding: 11px 0px 10px 6px;
  320. line-height: normal;
  321. }
  322. .mblListItem-mblListItemAnchor-styles () {
  323. background-position: 9px 7px;
  324. text-decoration: none;
  325. padding-right: 7px;
  326. }
  327. .mblItemSelected-styles () {
  328. background-color: @theme-highlight-background-color;
  329. ._background-image-gradient-mask-ui-widget;
  330. }
  331. .mblItemSelected-mblListItemAnchor-styles () {
  332. color: @theme-highlight-color;
  333. }
  334. .mblItemSelected-mblDomButton-Div-styles () {
  335. border-color: white;
  336. }
  337. .mblItemSelected-mblListItemSubText-styles () {
  338. }
  339. .mblListItemTextBoxSelected-styles () {
  340. background-color: @theme-highlight-background-color;
  341. }
  342. .mblListItemChecked-styles () {
  343. color: @theme-highlight-color;
  344. }
  345. .mblListItemIcon-styles () {
  346. margin-top: (@theme-list-item-height - @appl-list-item-icon-size) * 0.5;
  347. margin-right: 11px;
  348. }
  349. .mblListItemSpriteIcon-styles () {
  350. margin-top: (@theme-list-item-height - @appl-list-item-icon-size) * 0.5;
  351. margin-left: 8px;
  352. }
  353. .mblListItemRightIcon-styles () {
  354. margin-top: (@theme-list-item-height - @appl-list-item-icon-size) * 0.5;
  355. }
  356. .mblListItemRightText-styles () {
  357. color: @theme-default-color;
  358. margin: ((@theme-list-item-height - (@theme-list-item-font-size + 4)) * 0.5) 4px 0 0;
  359. }
  360. .mblListItemTextBox-styles () {
  361. }
  362. .mblListItemAnchorNoIcon-mblListItemTextBox-styles () {
  363. }
  364. .mblListItemSubText-styles () {
  365. }
  366. //----------------------------------------------------------------
  367. // Switch.less
  368. //----------------------------------------------------------------
  369. .mblItemSwitch-styles () {
  370. top: (@theme-list-item-height - @mbl-switch-height + 1) * 0.5;
  371. }
  372. .mblSwitchBg-styles () {
  373. border-color: @theme-ui-widget-border-color;
  374. -webkit-border-radius: @theme-ui-widget-border-radius;
  375. ._background-image-gradient-mask-ui-widget;
  376. }
  377. .mblSwitchBgLeft-styles () {
  378. background-color: @theme-ui-widget-checked-background-color;
  379. color: @theme-ui-widget-color;
  380. }
  381. .mblSwitchBgRight-styles () {
  382. background-color: @theme-ui-widget-disabled-background-color;
  383. }
  384. .mblSwitchKnob-styles () {
  385. border-color: darken(@theme-ui-widget-border-color, 20%);
  386. background-color: @theme-ui-widget-background-color;
  387. ._background-image-gradient-mask-ui-widget;
  388. -webkit-border-radius: @theme-ui-widget-border-radius;
  389. }
  390. //----------------------------------------------------------------
  391. // Button.less
  392. //----------------------------------------------------------------
  393. .mblButton-styles () {
  394. padding: 0 @theme-default-padding;
  395. height: @theme-ui-widget-height;
  396. border: 1px outset @theme-ui-widget-border-color;
  397. color: @theme-ui-widget-color;
  398. font-size: @theme-ui-widget-font-size;
  399. font-family: @theme-ui-widget-font-family;
  400. font-weight: @theme-ui-widget-font-weight;
  401. line-height: @theme-ui-widget-height;
  402. background-color: @theme-ui-widget-background-color;
  403. ._background-image-gradient-mask-ui-widget;
  404. -webkit-border-radius: @theme-ui-widget-border-radius;
  405. }
  406. .mblButton-mblBlueButton-styles () {
  407. color: @theme-ui-widget-color;
  408. background-color: #0000FF;
  409. }
  410. .mblButton-mblBlueButtonSelected-styles () {
  411. color: @theme-ui-widget-selected-color;
  412. border-color: @theme-ui-widget-selected-border-color;
  413. background-color: darken(#0000FF, 30%);
  414. }
  415. .mblButton-mblRedButton-styles () {
  416. color: @theme-ui-widget-color;
  417. background-color: #FF0000;
  418. }
  419. .mblButton-mblRedButtonSelected-styles () {
  420. color: @theme-ui-widget-selected-color;
  421. border-color: @theme-ui-widget-selected-border-color;
  422. background-color: darken(#FF0000, 30%);
  423. }
  424. .mblButtonSelected-styles () {
  425. color: @theme-ui-widget-selected-color;
  426. border-color: @theme-ui-widget-selected-border-color;
  427. background-color: @theme-ui-widget-selected-background-color;
  428. }
  429. .mblButtonDisabled-styles () {
  430. color: grey;
  431. border-color: grey;
  432. background-color: @theme-ui-widget-disabled-background-color;
  433. }
  434. //----------------------------------------------------------------
  435. // CheckBox.less
  436. //----------------------------------------------------------------
  437. .mblCheckBox-styles () {
  438. margin: -0.5em 3px 0.3em 4px;
  439. width: 1em;
  440. height: 1em;
  441. font-size: @theme-highlight-font-size;
  442. border: 1px outset @theme-ui-widget-border-color;
  443. background-color: @theme-ui-widget-background-color;
  444. ._background-image-gradient-mask-ui-widget;
  445. -webkit-border-radius: @theme-ui-widget-border-radius;
  446. -webkit-transform: translateY(0.45em);
  447. }
  448. .mblCheckBoxSelected-styles () {
  449. border-color: @theme-ui-widget-selected-border-color;
  450. background-color: @theme-ui-widget-selected-background-color;
  451. }
  452. .mblCheckBoxChecked-styles () {
  453. border-color: @theme-ui-widget-selected-border-color;
  454. background-color: @theme-ui-widget-checked-background-color;
  455. }
  456. .mblCheckBoxChecked-after-styles () {
  457. content: "";
  458. width: 0.3em;
  459. height: 0.6em;
  460. position: absolute;
  461. top: 0;
  462. left: 0.3em;
  463. border-color: @theme-ui-widget-selected-color;
  464. border-width: 0.15em;
  465. border-style: none solid solid none;
  466. -webkit-transform: rotate(45deg);
  467. -webkit-transform-origin: 50% 50%;
  468. }
  469. .mblCheckBoxChecked-mblCheckBoxSelected-styles () {
  470. border-color: @theme-ui-widget-selected-border-color;
  471. background-color: @theme-ui-widget-selected-background-color;
  472. }
  473. .mblCheckBoxChecked-mblCheckBoxSelected-after-styles () {
  474. border-color: @theme-ui-widget-selected-color;
  475. }
  476. //----------------------------------------------------------------
  477. // ComboBox.less
  478. //----------------------------------------------------------------
  479. .dijitPopup-styles () {
  480. -webkit-box-shadow: 0px 0px 50px black;
  481. -webkit-border-radius: @theme-default-border-radius;
  482. }
  483. .mblComboBoxMenu-styles () {
  484. border: 1px solid black;
  485. background-color: @theme-default-background-color;
  486. -webkit-border-radius: @theme-default-border-radius;
  487. }
  488. .mblComboBoxMenuItem-styles () {
  489. text-align: left;
  490. padding: .1em .2em;
  491. color: @theme-default-color;
  492. border-width: 1px 0 1px 0;
  493. border-style: solid;
  494. border-color: @theme-default-background-color;
  495. }
  496. .mblComboBoxMenuItemSelected-styles () {
  497. color: @theme-highlight-color;
  498. background-color: @theme-highlight-background-color;
  499. ._background-image-gradient-mask-ui-widget;
  500. }
  501. .mblComboBoxMenuPreviousButton-styles () {
  502. font-style: italic;
  503. overflow: hidden;
  504. }
  505. //----------------------------------------------------------------
  506. // IconContainer.less
  507. //----------------------------------------------------------------
  508. .mblIconContainer-styles () {
  509. margin: @theme-default-margin 0 @theme-default-margin @theme-default-margin;
  510. padding: @theme-default-padding 0 @theme-default-padding;
  511. background-color: @theme-default-background-color;
  512. }
  513. //----------------------------------------------------------------
  514. // IconItem.less
  515. //----------------------------------------------------------------
  516. .mblIconItemTerminator-styles () {
  517. height: @theme-default-margin;
  518. }
  519. .mblIconItemSub-styles () {
  520. margin-left: -@theme-default-margin;
  521. background-color: white;
  522. color: @theme-default-color;
  523. }
  524. .mblIconArea-styles () {
  525. height: @theme-icon-item-height + @theme-default-font-size + @theme-default-margin;
  526. width: @theme-icon-item-width + @theme-default-margin;
  527. text-align: center;
  528. font-family: @theme-default-font-family;
  529. font-weight: @theme-default-font-weight;
  530. font-size: @theme-default-font-size;
  531. }
  532. .mblContent-styles () {
  533. padding-bottom: @theme-default-margin;
  534. }
  535. .mblIconContentHeading-styles () {
  536. margin-top: 0px;
  537. padding-left: @mbl-dom-button-size + @theme-default-margin;
  538. height: @mbl-dom-button-size - 4;
  539. border-top: 1px solid lighten(@theme-heading-border-color, 30%);
  540. border-bottom: 1px solid @theme-heading-border-color;
  541. background-color: @theme-heading-background-color;
  542. ._background-image-gradient-mask-heading();
  543. color: @theme-heading-color;
  544. font-size: @theme-default-font-size;
  545. font-family: @theme-heading-font-family;
  546. font-weight: @theme-heading-font-weight;
  547. text-shadow: @theme-heading-text-shadow;
  548. line-height: @mbl-dom-button-size - 3;
  549. }
  550. //----------------------------------------------------------------
  551. // RadioButton.less
  552. //----------------------------------------------------------------
  553. .mblRadioButton-styles () {
  554. margin: -0.5em 3px 0.3em 4px;
  555. width: 1em;
  556. height: 1em;
  557. font-size: @theme-highlight-font-size;
  558. border: 1px outset @theme-ui-widget-border-color;
  559. background-color: @theme-ui-widget-background-color;
  560. ._background-image-gradient-mask-ui-widget;
  561. -webkit-border-radius: 0.5em;
  562. -webkit-transform: translateY(0.45em);
  563. }
  564. .mblRadioButtonChecked-styles () {
  565. border-color: @theme-ui-widget-selected-border-color;
  566. background-color: @theme-ui-widget-checked-background-color;
  567. }
  568. .mblRadioButtonChecked-after-styles () {
  569. content: "";
  570. width: 0.3em;
  571. height: 0.6em;
  572. top: 0;
  573. left: 0.25em;
  574. border-color: @theme-ui-widget-selected-color;
  575. border-width: 0.15em;
  576. border-style: none solid solid none;
  577. -webkit-transform: rotate(45deg);
  578. -webkit-transform-origin: 50% 50%;
  579. }
  580. .mblRadioButtonChecked-Selected-styles () {
  581. border-color: @theme-ui-widget-selected-border-color;
  582. background-color: @theme-ui-widget-selected-background-color;
  583. }
  584. .mblRadioButtonChecked-Selected-after-styles () {
  585. border-color: @theme-ui-widget-selected-color;
  586. }
  587. //----------------------------------------------------------------
  588. // Slider.less
  589. //----------------------------------------------------------------
  590. .mblSlider-styles () {
  591. margin: 15px; /* 1/2 handle width for hanging off the ends of the bar */
  592. border: 1px outset @theme-ui-widget-border-color;
  593. background-color: @theme-ui-widget-disabled-background-color;
  594. ._background-image-gradient-mask-ui-widget;
  595. -webkit-border-radius: @theme-ui-widget-border-radius;
  596. }
  597. .mblSliderProgressBar-styles () {
  598. -webkit-border-radius: @theme-ui-widget-border-radius;
  599. background-color: @theme-ui-widget-selected-background-color;
  600. ._background-image-gradient-mask-ui-widget;
  601. }
  602. .mblSliderHandle-styles () {
  603. margin: -10px 0 0 -10px;
  604. width: 18px;
  605. height: 18px;
  606. border: 1px outset @theme-ui-widget-border-color;
  607. background-color: @theme-ui-widget-background-color;
  608. ._background-image-gradient-mask-ui-widget;
  609. -webkit-border-radius: @theme-ui-widget-border-radius;
  610. }
  611. //----------------------------------------------------------------
  612. // TabBar.less
  613. //----------------------------------------------------------------
  614. .mblTabBar-styles () {
  615. margin: 0;
  616. padding: 0;
  617. height: @theme-tabbar-height;
  618. background-color: @theme-heading-background-color;
  619. ._background-image-gradient-mask-ui-widget;
  620. border-bottom: 1px solid @theme-heading-border-color;
  621. color: @theme-heading-color;
  622. text-align: center;
  623. }
  624. .mblTabBar-TabBarButton-styles () {
  625. padding: ((@theme-tabbar-height - @mbl-dom-button-size - @theme-tabbar-font-size) * 0.5) 0;
  626. }
  627. .mblTabBar-TabBarButton-Selected-styles () {
  628. border-color: @theme-ui-widget-selected-border-color;
  629. background-color: @theme-ui-widget-selected-background-color;
  630. ._background-image-gradient-mask-ui-widget;
  631. -webkit-border-radius: @theme-ui-widget-border-radius;
  632. }
  633. .mblTabBarButtonDiv-styles () {
  634. height: @mbl-dom-button-size;
  635. width: @mbl-dom-button-size;
  636. }
  637. .mblTabBarButtonIcon-styles () {
  638. left: 0;
  639. top: 0;
  640. }
  641. .mblTabBarButtonTextBox-styles () {
  642. color: @theme-tabbar-color;
  643. font-family: @theme-tabbar-font-family;
  644. font-size: @theme-tabbar-font-size;
  645. font-weight: @theme-tabbar-font-weight;
  646. }
  647. .mblTabBarNoIcons-TabBarButtonTextBox-styles () {
  648. line-height: @theme-tabbar-height - @theme-tabbar-font-size;
  649. font-size: @theme-tabbar-font-size + 6;
  650. }
  651. .mblTabButton-styles () {
  652. width: @theme-ui-widget-width;
  653. height: @theme-ui-widget-height;
  654. border-width: 1px 1px 1px 0px;
  655. border-style: inset;
  656. border-color: @theme-default-border-color;
  657. border-right-color: @theme-ui-widget-border-color;
  658. background-color: @theme-ui-widget-background-color;
  659. ._background-image-gradient-mask-ui-widget;
  660. font-family: @theme-default-font-family;
  661. font-size: @theme-default-font-size;
  662. font-weight: @theme-default-font-weight;
  663. color: @theme-default-color;
  664. text-align: center;
  665. line-height: @theme-ui-widget-height;
  666. }
  667. .mblTabButton-TabBarButtonAnchor-styles () {
  668. height: @theme-ui-widget-height;
  669. }
  670. .mblTabBarTop-TabButton-TabBarButtonDiv-styles () {
  671. display: none;
  672. }
  673. .mblTabBarHead-TabButton-TabBarButtonDiv-styles () {
  674. }
  675. .mblTabButton-FirstTabButtom-styles () {
  676. -webkit-border-top-left-radius: @theme-ui-widget-border-radius;
  677. -webkit-border-bottom-left-radius: @theme-ui-widget-border-radius;
  678. border-left-width: 1px;
  679. }
  680. .mblTabButton-LastTabButton-styles () {
  681. -webkit-border-top-right-radius: @theme-ui-widget-border-radius;
  682. -webkit-border-bottom-right-radius: @theme-ui-widget-border-radius;
  683. border-right-color: @theme-ui-widget-border-color;
  684. }
  685. .mblTabButton-img-styles () {
  686. }
  687. .mblTabBarButtonTextBoxSelected-styles () {
  688. color: @theme-ui-widget-selected-color;
  689. }
  690. .mblTabButtonSelected-styles () {
  691. background-color: @theme-ui-widget-selected-background-color;
  692. }
  693. .mblTabButtonHighlighted-styles () {
  694. background-color: @theme-ui-widget-checked-background-color;
  695. }
  696. .mblTabButtonImgDiv-styles () {
  697. display: none;
  698. }
  699. .mblTabPanelHeader-styles () {
  700. margin: 0;
  701. padding: 0;
  702. height: @theme-heading-height;
  703. background-color: @theme-heading-background-color;
  704. ._background-image-gradient-mask-heading();
  705. border-bottom: 1px solid @theme-heading-border-color;
  706. color: @theme-heading-color;
  707. font-size: @theme-heading-font-size;
  708. font-family: @theme-heading-font-family;
  709. font-weight: @theme-heading-font-weight;
  710. text-shadow: @theme-heading-text-shadow;
  711. text-align: center;
  712. line-height: @theme-heading-height + 2;
  713. }
  714. .mblTabPanelHeader-TabButton-styles () {
  715. margin-top: (@theme-heading-height - @theme-ui-widget-height - 2) * 0.5;
  716. }
  717. .mblTabPanelHeader-TabButtonSelected-styles () {
  718. background-color: @theme-ui-widget-selected-background-color;
  719. }
  720. .mblTabPanelHeader-TabButtonDomButton-styles () {
  721. width: 43px;
  722. }
  723. .mblTabPanelHeader-TabButtonDomButtonClass-styles () {
  724. left: 8px;
  725. }
  726. .mblTabPanelHeader-DomButton-styles () {
  727. }
  728. .mblTabPanelHeader-inHeading-styles () {
  729. }
  730. .mblTabPanelHeader-TabButton-inHeading-styles () {
  731. margin-top: (@theme-heading-height - @theme-ui-widget-height) * 0.5;
  732. }
  733. .mblTabPanelHeader-TabButton-FirstTabButtom-inHeading-styles () {
  734. -webkit-border-top-left-radius: @theme-ui-widget-border-radius;
  735. -webkit-border-bottom-left-radius: @theme-ui-widget-border-radius;
  736. border-left-width: 1px;
  737. }
  738. .mblTabPanelHeader-TabButton-LastTabButtom-inHeading-styles () {
  739. -webkit-border-top-right-radius: @theme-ui-widget-border-radius;
  740. -webkit-border-bottom-right-radius: @theme-ui-widget-border-radius;
  741. }
  742. .mblTabPanelHeader-TabButtonSelected-inHeading-styles () {
  743. }
  744. //----------------------------------------------------------------
  745. // TextArea.less
  746. //----------------------------------------------------------------
  747. .mblTextArea-styles () {
  748. padding: 4px 1px;
  749. border: @theme-default-border-color 1px inset;
  750. font-family: @theme-default-font-family;
  751. font-size: @theme-default-font-size;
  752. -webkit-border-radius: @theme-default-border-radius;
  753. }
  754. .mblExpandingTextArea-styles () {
  755. margin: 2px;
  756. }
  757. //----------------------------------------------------------------
  758. // TextBox.less
  759. //----------------------------------------------------------------
  760. .mblTextBox-styles () {
  761. height: @theme-ui-widget-height;
  762. border: @theme-default-border-color 1px inset;
  763. font-family: @theme-default-font-family;
  764. font-size: @theme-default-font-size;
  765. -webkit-border-radius: @theme-default-border-radius;
  766. }
  767. //----------------------------------------------------------------
  768. // ToggleButton.less
  769. //----------------------------------------------------------------
  770. .mblToggleButton-styles () {
  771. padding: 0 @theme-default-padding 0 (@theme-default-padding + 15px);
  772. height: @theme-ui-widget-height;
  773. border: 1px outset @theme-ui-widget-border-color;
  774. -webkit-border-radius: @theme-ui-widget-border-radius;
  775. background-color: @theme-ui-widget-background-color;
  776. ._background-image-gradient-mask-ui-widget;
  777. font-family: @theme-ui-widget-font-family;
  778. font-weight: @theme-ui-widget-font-weight;
  779. line-height: @theme-ui-widget-height;
  780. color: @theme-ui-widget-color;
  781. line-height: @theme-ui-widget-height;
  782. }
  783. .mblToggleButtonSelected-styles () {
  784. border-color: @theme-ui-widget-selected-border-color;
  785. background-color: @theme-ui-widget-selected-background-color;
  786. }
  787. .mblToggleButtonChecked-styles () {
  788. border-color: @theme-ui-widget-selected-border-color;
  789. background-color: @theme-ui-widget-checked-background-color;
  790. }
  791. .mblToggleButtonChecked-after-styles () {
  792. content: "";
  793. top: (@theme-ui-widget-height - 15) * 0.5;
  794. left: 7px;
  795. width: 5px;
  796. height: 10px;
  797. border-color: @theme-ui-widget-selected-color;
  798. border-width: 0.15em;
  799. border-style: none solid solid none;
  800. -webkit-transform: rotate(45deg) skew(10deg);
  801. -webkit-transform-origin: 50% 50%;
  802. }
  803. .mblToggleButtonCheckedSelected-styles () {
  804. border-color: @theme-ui-widget-selected-border-color;
  805. background-color: @theme-ui-widget-selected-background-color;
  806. }
  807. .mblToggleButtonCheckedSelected-after-styles () {
  808. border-color: @theme-ui-widget-selected-color;
  809. }
  810. .mblToggleButtonDisabled-styles () {
  811. color: grey;
  812. border-color: grey;
  813. background-color: @theme-ui-widget-disabled-background-color;
  814. }
  815. // Overlay.less
  816. .mblOverlay-styles () {
  817. background-color: @theme-default-background-color;
  818. ._background-image-gradient-mask-ui-widget;
  819. }
  820. // Tooltip.less
  821. .mblTooltip-styles () {
  822. padding: @theme-default-padding;
  823. border: @theme-heading-border-color 1px solid;
  824. background-color: @theme-heading-background-color;
  825. ._background-image-gradient-mask-ui-widget;
  826. -webkit-border-radius: @theme-default-border-radius;
  827. opacity: .97;
  828. }
  829. .mblTooltipBubble-styles () {
  830. background-color: @theme-heading-background-color;
  831. background-image: none;
  832. }
  833. .mblTooltipInnerArrow-Bubble-Above-styles () {
  834. border-bottom-color: @theme-heading-background-color;
  835. }
  836. .mblTooltipInnerArrow-Bubble-Below-styles () {
  837. border-top-color: @theme-heading-background-color;
  838. }
  839. .mblTooltipInnerArrow-Bubble-After-styles () {
  840. border-left-color: @theme-heading-background-color;
  841. }
  842. .mblTooltipInnerArrow-Bubble-Before-styles () {
  843. border-right-color: @theme-heading-background-color;
  844. }
  845. .mblTooltipArrow-styles () {
  846. border: 11px solid transparent;
  847. }
  848. .mblTooltipArrow-Before-styles () {
  849. border-left-width: 0;
  850. border-right-color: @theme-heading-border-color;
  851. }
  852. .mblTooltipArrow-After-styles () {
  853. border-right-width: 0;
  854. border-left-color: @theme-heading-border-color;
  855. }
  856. .mblTooltipArrow-Above-styles () {
  857. border-top-width: 0;
  858. border-bottom-color: @theme-heading-border-color;
  859. }
  860. .mblTooltipArrow-Below-styles () {
  861. border-bottom-width: 0;
  862. border-top-color: @theme-heading-border-color;
  863. }
  864. .mblTooltipInnerArrow-Before-styles () {
  865. border-left-width: 0;
  866. border-right-color: @theme-heading-background-color * 0.2 + #ffffff * 0.8;
  867. }
  868. .mblTooltipInnerArrow-After-styles () {
  869. border-right-width: 0;
  870. border-left-color: @theme-heading-background-color * 0.2 + #ffffff * 0.8;
  871. }
  872. .mblTooltipInnerArrow-Above-styles () {
  873. border-top-width: 0;
  874. border-bottom-color: @theme-heading-background-color * 0.0 + #ffffff * 1.0;
  875. }
  876. .mblTooltipInnerArrow-Below-styles () {
  877. border-bottom-width: 0;
  878. border-top-color: @theme-heading-background-color * 0.5 + #ffffff * 0.5;
  879. }
  880. .mblTooltip-Heading-styles () {
  881. border-top: 1px solid transparent;
  882. border-bottom: 1px solid transparent;
  883. background-color: transparent;
  884. background-image: none;
  885. }
  886. .mblTooltip-Heading-ToolbarButton-styles () {
  887. }