Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

workspaces.toolbar.pcss.css

Styling for Workspaces module's toolbar tab.

File

core/modules/workspaces/css/workspaces.toolbar.pcss.css

View source
  1. /**
  2. * @file
  3. * Styling for Workspaces module's toolbar tab.
  4. */
  5. /* Toolbar tab */
  6. .toolbar .toolbar-bar .workspaces-toolbar-tab {
  7. color: #000;
  8. background-color: #e09600;
  9. }
  10. .toolbar .toolbar-bar .workspaces-toolbar-tab--is-default {
  11. background-color: #81c071;
  12. }
  13. .toolbar-oriented .toolbar-bar .workspaces-toolbar-tab {
  14. float: right; /* LTR */
  15. /**
  16. * Chromium and Webkit do not yet support flow relative logical properties,
  17. * such as float: inline-end. However, PostCSS Logical does not compile this
  18. * value, so we accommodate by not using these.
  19. *
  20. * @see https://caniuse.com/mdn-css_properties_clear_flow_relative_values
  21. * @see https://github.com/csstools/postcss-plugins/issues/632
  22. */
  23. &:dir(rtl) {
  24. float: left;
  25. }
  26. }
  27. @media (min-width: 264px) {
  28. .toolbar:not(.toolbar-oriented) .toolbar-bar .workspaces-toolbar-tab {
  29. float: right; /* LTR */
  30. /**
  31. * Chromium and Webkit do not yet support flow relative logical properties,
  32. * such as float: inline-end. However, PostCSS Logical does not compile this
  33. * value, so we accommodate by not using these.
  34. *
  35. * @see https://caniuse.com/mdn-css_properties_clear_flow_relative_values
  36. * @see https://github.com/csstools/postcss-plugins/issues/632
  37. */
  38. &:dir(rtl) {
  39. float: left;
  40. }
  41. }
  42. }
  43. /* Link within the toolbar tab. */
  44. .toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-item {
  45. width: 100%;
  46. margin: 0;
  47. text-align: start;
  48. color: inherit;
  49. @nest .toolbar-oriented
  50. }
  51. .toolbar .toolbar-icon-workspace::before {
  52. background-image: url("../icons/000000/workspaces.svg");
  53. }
  54. @media all and (max-width: 766px) {
  55. .toolbar-oriented .toolbar-bar .workspaces-toolbar-tab .toolbar-icon-workspace {
  56. width: auto;
  57. max-width: 8em;
  58. }
  59. .toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-icon-workspace {
  60. overflow: hidden;
  61. padding-inline: 2.75em 1.3333em;
  62. white-space: nowrap;
  63. text-indent: 0;
  64. text-overflow: ellipsis;
  65. }
  66. .toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-icon-workspace::before {
  67. inset-inline-start: 0.6667em;
  68. width: 20px;
  69. background-size: 100% auto;
  70. }
  71. }
RSS feed
Powered by Drupal