toolbar.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  1. /**
  2. * IBM Confidential
  3. * OCO Source Materials
  4. * IBM Business Platform: Dashboard
  5. * (C) Copyright IBM Corp. 2018, 2020
  6. * The source code for this program is not published or otherwise divested of its trade secrets,
  7. * irrespective of what has been deposited with the U.S. Copyright Office
  8. **/
  9. @import "../lib/@ba-ui-toolkit/essentials/colors/colors";
  10. .betaPopover {
  11. display: inline-block;
  12. @include theming(background-color, ui-01);
  13. @include theming(color, text-01);
  14. border-radius: 0;
  15. border: 1px solid;
  16. @include theming(border-color, ui-03);
  17. padding: 10px;
  18. max-width: 100%;
  19. z-index: 2060;
  20. .betaLink {
  21. @include theming(color, link-01);
  22. text-decoration: underline;
  23. cursor: pointer;
  24. padding: 0;
  25. display: inline;
  26. }
  27. }
  28. .actionToolbarPopover.text {
  29. margin-left: 0px;
  30. &[dir="rtl"] {
  31. margin-left: auto;
  32. margin-right: 0px;
  33. }
  34. }
  35. .actionToolbarPopover {
  36. display: inline-block;
  37. @include theming(background-color, ui-01);
  38. border-radius: 0;
  39. border: 1px solid;
  40. @include theming(border-color, ui-03);
  41. padding: 0;
  42. max-width: 100%;
  43. z-index: $popoverZIndex;
  44. .flyout-content-container {
  45. padding: 0;
  46. }
  47. .toolbar {
  48. padding: 0;
  49. }
  50. .toolbar.odtWidget {
  51. z-index: 1;
  52. }
  53. .separator {
  54. margin: 0 5px;
  55. border-top: 1px solid;
  56. @include theming(border-top-color, ui-03);
  57. }
  58. .labels {
  59. .labelsTitle {
  60. padding-bottom: 3px;
  61. margin: 5px 0;
  62. &.borderBottom {
  63. border-bottom: 1px solid;
  64. @include theming(border-top-color, ui-03);
  65. }
  66. }
  67. @include theming(color, text-02);
  68. padding: 5px 10px;
  69. font-size: $body-size-s;
  70. min-width:250px;
  71. .labelEntry {
  72. display: flex;
  73. margin-top: 5px;
  74. &.borderBottom {
  75. border-bottom: 1px solid;
  76. @include theming(border-bottom-color, ui-03);
  77. padding-bottom: 5px;
  78. }
  79. * {
  80. flex-grow: 1;
  81. }
  82. .labelName {
  83. font-weight: $fw-regular;
  84. font-style: normal;
  85. padding-right:10px;
  86. }
  87. .labelValue {
  88. font-weight: $fw-medium;
  89. font-style: normal;
  90. text-align: right;
  91. &[dir="rtl"] {
  92. text-align: left;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. .actionToolbarPopover.vertical.popover {
  99. margin: 25px 0 0 0;
  100. .toolbar, .reactToolbar .ba-common-toolbar {
  101. flex-direction: column;
  102. }
  103. }
  104. .actionToolbarPopover.horizontal.popover {
  105. margin: -10px 0 0 35px;
  106. &[dir="rtl"] {
  107. margin: -10px 35px 0 0px;
  108. }
  109. }
  110. .actionToolbarPopover.popover {
  111. min-width: 0;
  112. }
  113. .actionToolbarPopover .popover-content {
  114. padding: 0;
  115. overflow: visible;
  116. }
  117. .actionToolbarPopover.bottom .arrow {
  118. @include theming(border-bottom-color, ui-03);
  119. }
  120. .actionToolbarPopover.top .arrow {
  121. @include theming(border-top-color, ui-03);
  122. margin-top: auto;
  123. }
  124. .actionToolbarPopover.left .arrow {
  125. @include theming(border-left-color, ui-03);
  126. }
  127. .actionToolbarPopover.right .arrow {
  128. @include theming(border-right-color, ui-03);
  129. }
  130. .actionToolbarPopover.bottom .arrow:after {
  131. @include theming(border-top-color, ui-01);
  132. }
  133. .actionToolbarPopover.top .arrow:after {
  134. @include theming(border-top-color, ui-01);
  135. }
  136. .actionToolbarPopover.left .arrow:after {
  137. @include theming(border-left-color, ui-01);
  138. }
  139. .actionToolbarPopover.right .arrow:after {
  140. @include theming(border-right-color, ui-01);
  141. left: 11px;
  142. }
  143. .reactToolbar {
  144. flex-grow: 1;
  145. .ba-common-toolbar {
  146. display: flex;
  147. .ba-common-toolbar__item {
  148. flex-grow: 1;
  149. min-width: 34px;
  150. min-height: 34px;
  151. }
  152. }
  153. }
  154. .toolbar {
  155. display: flex;
  156. padding: 0 0 1px 0;
  157. @include theming(background-color, ui-01);
  158. &.dockedToolbar {
  159. padding: 0;
  160. flex-wrap: wrap;
  161. .toolbarItem, .ba-common-toolbar__item {
  162. flex-grow: 0;
  163. }
  164. .ba-common-button.is-variant_frameless {
  165. padding: 0 12px;
  166. .ba-common-colorpicker__colorbar {
  167. left: 13px;
  168. }
  169. }
  170. > div {
  171. min-width: 40px;
  172. min-height: 40px;
  173. .ba-common-toolbar > div:not(:last-child) {
  174. border-right: 1px solid;
  175. @include theming(border-right-color, ui-01);
  176. min-width: 41px;
  177. }
  178. }
  179. .toolbarIcon {
  180. &.toolbarItem:not(:last-child) {
  181. border-right: 1px solid;
  182. @include theming(border-right-color, ui-01);
  183. }
  184. button {
  185. min-width: 40px !important;
  186. min-height: 40px !important;
  187. }
  188. }
  189. }
  190. .toolbarItem .ba-common-button.is-focus {
  191. outline: none;
  192. }
  193. .toolbarItem {
  194. flex: 1;
  195. margin: 0 0 0 0;
  196. &.toolbarItemToggled {
  197. > button > svg.svgIcon {
  198. @include theming(fill, icon-01);
  199. }
  200. }
  201. .toolbarButtonToggle {
  202. > svg.ba-common-svgIcon {
  203. @include theming(fill, icon-01);
  204. }
  205. }
  206. .selected {
  207. @include theming(background-color, selected-ui);
  208. @include theming(color, icon-01);
  209. }
  210. .disabled,
  211. .disabled:hover {
  212. cursor: auto;
  213. @include theming(color, icon-03);
  214. }
  215. button {
  216. outline: none;
  217. border: 1px solid transparent;
  218. &:focus {
  219. @include theming(border-color, focus);
  220. }
  221. }
  222. .ba-common-toolbar__item:hover {
  223. @include theming(background-color, hover-ui);
  224. }
  225. }
  226. >div {
  227. min-width: 34px;
  228. min-height: 34px;
  229. display: inline-block;
  230. cursor: default;
  231. transition: all 0.1s linear;
  232. }
  233. .toolbarIcon {
  234. .buttonWithText {
  235. svg {
  236. vertical-align: middle !important;
  237. }
  238. padding-right: 8px;
  239. padding-left: 8px;
  240. button, span {
  241. width: auto;
  242. }
  243. @include theming(color, text-01);
  244. font-weight: 400;
  245. .ba-common-button__label{
  246. padding-right: 8px; // overriding toolkit 24px padding
  247. }
  248. }
  249. button {
  250. outline: none;
  251. border: 1px solid transparent;
  252. background-color: transparent;
  253. min-width: 32px;
  254. min-height: 32px;
  255. line-height: 32px;
  256. @include theming(color, icon-02);
  257. position: relative;
  258. &[class^="wfg_"]:before,
  259. &[class*=" wfg_"]:before,
  260. >span[class^="webfont"]:before {
  261. font-size: $body-size;
  262. }
  263. >svg{
  264. vertical-align: middle !important;
  265. &.svgIcon {
  266. width: 16px;
  267. height: 16px;
  268. @include theming(fill, icon-01);
  269. .highcontrast & {
  270. @include theming(fill, icon-03);
  271. @media screen and (-ms-high-contrast:black-on-white) {
  272. @include theming(fill, icon-01);
  273. }
  274. }
  275. }
  276. }
  277. }
  278. button.iconWithText {
  279. &[class^="wfg_"]:before,
  280. &[class*=" wfg_"]:before,
  281. >span[class^="webfont"]:before {
  282. font-size: 18px;
  283. padding-right: 3px;
  284. &[dir="rtl"] {
  285. padding-right: 0px;
  286. padding-left: 3px;
  287. }
  288. }
  289. >svg.svgIcon {
  290. width: 18px;
  291. height: 18px;
  292. }
  293. }
  294. button:not([disabled]):hover {
  295. >svg.svgIcon {
  296. @include theming(fill, icon-01);
  297. }
  298. }
  299. button,
  300. span {
  301. display: inline-block;
  302. height: 100%;
  303. width: 100%;
  304. padding: 0;
  305. }
  306. }
  307. .dropDownContainer {
  308. padding: 0;
  309. border: none;
  310. cursor: default;
  311. }
  312. }
  313. // hide the canvas action button labels in smaller screen
  314. @media only screen and (max-width: 1024px) {
  315. .toolbar .toolbarIcon {
  316. .buttonWithText {
  317. .ba-common-button__label{
  318. display: none;
  319. }
  320. }
  321. }
  322. }
  323. html.chrome.ios7 .toolbar .toolbarIcon>button {
  324. &[class^="wfg_"]:before,
  325. &[class*=" wfg_"]:before,
  326. >span[class^="webfont"]:before {
  327. margin-top: 6px;
  328. }
  329. &.iconWithText {
  330. &[class^="wfg_"]:before,
  331. &[class*=" wfg_"]:before,
  332. >span[class^="webfont"]:before {
  333. margin-top: 0;
  334. }
  335. }
  336. }
  337. .popoverDialogContainer {
  338. font-weight: $fw-regular;
  339. font-style: normal;
  340. @include theming(color, interactive-02);
  341. min-width: 200px;
  342. }
  343. .toolbarPopoverContent,
  344. .popoverDialogContainer {
  345. h1.caption {
  346. line-height: 48px;
  347. height: 45px;
  348. overflow: hidden;
  349. cursor: default;
  350. text-align: center;
  351. margin: 0;
  352. white-space: nowrap;
  353. text-overflow: ellipsis;
  354. &.child:hover {
  355. @include theming(background-color, hover-ui);
  356. cursor: pointer;
  357. }
  358. .wfg_leftarrow {
  359. padding: 0 3px;
  360. margin: 0 -15px;
  361. }
  362. }
  363. }
  364. .nextView .viewCaption .wfg_leftarrow {
  365. float: left;
  366. &[dir="rtl"] {
  367. float: right;
  368. }
  369. }
  370. .popover-content {
  371. h1.caption {
  372. font-weight: $fw-regular;
  373. font-style: normal;
  374. font-size: $body-size-s;
  375. @include theming(color, text-02);
  376. padding: 0 20px;
  377. outline: 0;
  378. line-height: 48px;
  379. height: 45px;
  380. overflow: hidden;
  381. cursor: default;
  382. text-align: center;
  383. margin: 0;
  384. white-space: nowrap;
  385. text-overflow: ellipsis;
  386. &.child:hover {
  387. @include theming(background-color, hover-ui);
  388. cursor: pointer;
  389. }
  390. border-bottom: 1px solid;
  391. @include theming(border-bottom-color, ui-03);
  392. }
  393. .content {
  394. overflow-y: hidden;
  395. .selectionList {
  396. @include theming(color, text-02);
  397. }
  398. .selectItems {
  399. overflow-y: auto;
  400. overflow-x: hidden;
  401. text-align: left;
  402. max-height: 40vmin;
  403. min-width: 140px;
  404. &[dir="rtl"] {
  405. text-align: right;
  406. }
  407. .itemLoading,
  408. .itemNotAvailable,
  409. .itemRow {
  410. display: flex;
  411. flex-direction: row;
  412. width: 100%;
  413. cursor: pointer;
  414. line-height: 44px;
  415. padding-right: 14px;
  416. @include theming(color, text-02);
  417. &[dir="rtl"] {
  418. padding-right: 0px;
  419. padding-left: 14px;
  420. }
  421. border-bottom: 1px solid;
  422. @include theming(border-bottom-color, ui-03);
  423. &:first-child {
  424. border-top: none;
  425. }
  426. &.itemRowContent {
  427. border-bottom: none;
  428. padding-left: 14px;
  429. &[dir="rtl"] {
  430. padding-left: 0px;
  431. padding-right: 14px;
  432. }
  433. }
  434. &:hover {
  435. @include theming(background-color, ui-background);
  436. }
  437. .check {
  438. min-width: 52px;
  439. @include theming(color, interactive-01);
  440. // checkmark icon size
  441. font-size: 18px;
  442. text-align: center;
  443. }
  444. .text {
  445. text-align: left;
  446. white-space: nowrap;
  447. width: 100%;
  448. &[dir="rtl"] {
  449. text-align: right;
  450. }
  451. }
  452. .text.bold {
  453. font-weight: $fw-bold;
  454. }
  455. .itemLoading,
  456. .itemNotAvailable {
  457. padding: 10px 50px;
  458. cursor: default;
  459. }
  460. }
  461. }
  462. }
  463. }
  464. .toolbarPopoverContent .authoringToolbar .content {
  465. .multipleColumnNav {
  466. display: inline-flex;
  467. flex-direction: column;
  468. flex-wrap: nowrap;
  469. .itemRow {
  470. display: inline-flex;
  471. flex-direction: row;
  472. flex-wrap: nowrap;
  473. border-bottom-width: 1px;
  474. border-bottom-style: solid;
  475. @include theming(border-bottom-color, ui-03);
  476. .text {
  477. line-height: 48px;
  478. height: 45px;
  479. width: 157px;
  480. text-overflow: ellipsis;
  481. overflow: hidden;
  482. white-space: nowrap;
  483. display: inline-block;
  484. text-align: center;
  485. margin: 0;
  486. order: 1;
  487. border-bottom-width: 0px;
  488. cursor: pointer;
  489. }
  490. .rightArrow {
  491. order: 2;
  492. cursor: pointer;
  493. .wfg_rightarrow {
  494. @include theming(color, icon-01);
  495. float: right;
  496. -ms-transform: rotate(0deg);
  497. -webkit-transform: rotate(0deg);
  498. transform: rotate(0deg);
  499. padding: 15px 8px 0px 8px;
  500. }
  501. }
  502. }
  503. }
  504. }
  505. .popover-content .staticNextViewCaption {
  506. text-align: left;
  507. padding-left: 8px;
  508. font-size: 14px;
  509. @include theming(color, text-02);
  510. }
  511. .toolbarPopoverContent .authoringToolbar .content>.filterGroupNav {
  512. display: flex;
  513. flex-direction: row;
  514. flex-wrap: nowrap;
  515. justify-content: flex-start;
  516. min-width: 240px;
  517. .filterGroupColumn {
  518. flex-grow: 1;
  519. flex-shrink: 1;
  520. flex-basis: auto;
  521. margin: 1px;
  522. order: 1;
  523. .text {
  524. line-height: 48px;
  525. height: 45px;
  526. overflow: hidden;
  527. text-align: center;
  528. margin: auto;
  529. white-space: nowrap;
  530. text-overflow: ellipsis;
  531. border-bottom-width: 0px;
  532. cursor: pointer;
  533. }
  534. }
  535. .filterGroupColumn:focus {
  536. @include theming(border-color, focus);
  537. }
  538. }
  539. .glass .toolbarIcon>button {
  540. &:disabled {
  541. cursor: auto;
  542. opacity: 0.5;
  543. }
  544. }
  545. .navigationBar {
  546. display: inline-flex;
  547. flex-direction: row;
  548. flex-wrap: nowrap;
  549. border-bottom-width: 1px;
  550. border-bottom-style: solid;
  551. @include theming(border-bottom-color, ui-03);
  552. width: 100%;
  553. h1.caption {
  554. line-height: 48px;
  555. height: 45px;
  556. width: 100%;
  557. overflow: hidden;
  558. white-space: nowrap;
  559. display: inline-block;
  560. cursor: default;
  561. text-align: center;
  562. margin: 0;
  563. text-overflow: ellipsis;
  564. order: 2;
  565. border-bottom-width: 0px;
  566. }
  567. .leftArrow {
  568. order: 1;
  569. .wfg_leftarrow {
  570. color: $blue50;
  571. float: left;
  572. padding: 15px 8px 0px 8px;
  573. padding-right: 12px !important;
  574. width: 7px;
  575. &[dir="rtl"] {
  576. padding-right: 0px !important;
  577. padding-left: 12px !important;
  578. }
  579. }
  580. }
  581. .leftArrow.disabled {
  582. opacity: 1;
  583. .wfg_leftarrow {
  584. @include theming(color, disabled-02);
  585. }
  586. }
  587. .rightArrow {
  588. order: 3;
  589. .wfg_rightarrow {
  590. color: $blue50;
  591. float: right;
  592. -ms-transform: rotate(0deg);
  593. -webkit-transform: rotate(0deg);
  594. transform: rotate(0deg);
  595. padding: 15px 8px 0px 8px;
  596. }
  597. }
  598. .rightArrow.disabled {
  599. opacity: 1;
  600. .wfg_rightarrow {
  601. @include theming(color, disabled-02);
  602. }
  603. }
  604. }
  605. .toolbarTextPopoverContent {
  606. .toolbar {
  607. display: flex;
  608. flex-direction: column;
  609. padding: 0 0 1px 0;
  610. @include theming(background-color, ui-01);
  611. align-items: flex-start;
  612. .toolbarItem {
  613. flex: 1;
  614. width: 200px;
  615. height: 40px;
  616. text-overflow: ellipsis;
  617. margin: 0 0 0 0;
  618. >button {
  619. padding-left: 16px !important;
  620. padding-right: 16px !important;
  621. overflow: hidden;
  622. white-space: nowrap;
  623. text-overflow: ellipsis;
  624. display: inline-block !important;
  625. text-align: left;
  626. &[dir="rtl"] {
  627. text-align: right;
  628. }
  629. }
  630. &:hover {
  631. @include theming(background-color, hover-ui);
  632. color: initial;
  633. }
  634. &:active {
  635. border-left: 4px solid;
  636. @include theming(border-left-color, interactive-01);
  637. &[dir="rtl"] {
  638. border-left: none;
  639. border-right: 4px solid;
  640. @include theming(border-right-color, interactive-01);
  641. }
  642. }
  643. &.deleteAction,
  644. &.deleteFilterAction {
  645. border-top: 1px solid;
  646. @include theming(border-top-color, ui-03);
  647. }
  648. &.selected {
  649. @include theming(background-color, ui-01);
  650. @include theming(background-color, interactive-01);
  651. }
  652. &.disabled,
  653. &.disabled:hover {
  654. cursor: auto;
  655. @include theming(color, disabled-02);
  656. }
  657. }
  658. >div {
  659. min-width: 34px;
  660. min-height: 34px;
  661. display: inline-block;
  662. cursor: default;
  663. transition: all 0.1s linear;
  664. }
  665. .toolbarIcon {
  666. >button {
  667. background-color: transparent;
  668. min-width: 32px;
  669. min-height: 32px;
  670. line-height: 32px;
  671. color: $grey60;
  672. &[class^="wfg_"]:before,
  673. &[class*=" wfg_"]:before,
  674. >span[class^="webfont"]:before {
  675. font-size: $body-size;
  676. }
  677. >svg.svgIcon {
  678. width: 16px;
  679. height: 16px;
  680. @include theming(fill, icon-01);
  681. }
  682. }
  683. >button.iconWithText {
  684. &[class^="wfg_"]:before,
  685. &[class*=" wfg_"]:before,
  686. >span[class^="webfont"]:before {
  687. font-size: 18px;
  688. padding-right: 3px;
  689. &[dir="rtl"] {
  690. padding-right: 0px;
  691. padding-left: 3px;
  692. }
  693. }
  694. >svg.svgIcon {
  695. width: 18px;
  696. height: 18px;
  697. }
  698. }
  699. &:not(.disabled):not(.selected)>button:not([disabled]):hover>svg.svgIcon {
  700. @include theming(fill, icon-01);
  701. }
  702. &:focus {
  703. @include theming(border-color, focus);
  704. }
  705. >button,
  706. >span {
  707. display: flex;
  708. height: 100%;
  709. width: 100%;
  710. padding: 0;
  711. }
  712. }
  713. .dropDownContainer {
  714. padding: 0;
  715. border: none;
  716. cursor: default;
  717. }
  718. }
  719. }
  720. html.chrome.ios7 .toolbar .toolbarIcon>button {
  721. &[class^="wfg_"]:before,
  722. &[class*=" wfg_"]:before,
  723. >span[class^="webfont"]:before {
  724. margin-top: 6px;
  725. }
  726. &.iconWithText {
  727. &[class^="wfg_"]:before,
  728. &[class*=" wfg_"]:before,
  729. >span[class^="webfont"]:before {
  730. margin-top: 0;
  731. }
  732. }
  733. }
  734. .actionToolbarPopover .labelsAsActionToolBar{
  735. padding-bottom: 5px;
  736. }
  737. .actionToolbarPopover .ba-common-link{
  738. padding: 5px 10px;
  739. margin: 5px 0;
  740. }
  741. .textToolbarContainer .ba-common-toolbar {
  742. margin: 0px;
  743. .ba-common-toolbar__item {
  744. margin-bottom: 0px;
  745. }
  746. .ba-common-button {
  747. &.is-focus:not(.is-disabled), &:focus:not(.is-disabled) {
  748. outline: 1px solid;
  749. @include theming(outline-color, ui-03);
  750. }
  751. &.is-variant_frame:not(.is-disabled).is-intent_selection {
  752. &:focus, &:focus.is-hover, &:focus:hover:not(.is-tap), &:active:not(.is-tap) {
  753. @include theming(outline-color, ui-03);
  754. }
  755. }
  756. }
  757. }
  758. .textOnlyToolBar, .reactToolbar .ba-common-toolbar.textOnlyToolBar {
  759. display: inline-block;
  760. vertical-align: middle;
  761. }
  762. .labels.textOnlyToolBar {
  763. border-right: 1px solid;
  764. @include theming(border-right-color, ui-03);
  765. }