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

Breadcrumb

  1. Drupal Core 11.1.x

workspaces.toolbar.css

Styling for Workspaces module's toolbar tab.

File

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

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styling for Workspaces module's toolbar tab.
  10. */
  11. /* Toolbar tab */
  12. .toolbar .toolbar-bar .workspaces-toolbar-tab {
  13. color: #000;
  14. background-color: #e09600;
  15. }
  16. .toolbar .toolbar-bar .workspaces-toolbar-tab--is-default {
  17. background-color: #81c071;
  18. }
  19. .toolbar-oriented .toolbar-bar .workspaces-toolbar-tab {
  20. float: right; /* LTR */
  21. /**
  22. * Chromium and Webkit do not yet support flow relative logical properties,
  23. * such as float: inline-end. However, PostCSS Logical does not compile this
  24. * value, so we accommodate by not using these.
  25. *
  26. * @see https://caniuse.com/mdn-css_properties_clear_flow_relative_values
  27. * @see https://github.com/csstools/postcss-plugins/issues/632
  28. */
  29. }
  30. .toolbar-oriented .toolbar-bar .workspaces-toolbar-tab:dir(rtl) {
  31. float: left;
  32. }
  33. @media (min-width: 16.5rem) {
  34. .toolbar:not(.toolbar-oriented) .toolbar-bar .workspaces-toolbar-tab {
  35. float: right; /* LTR */
  36. /**
  37. * Chromium and Webkit do not yet support flow relative logical properties,
  38. * such as float: inline-end. However, PostCSS Logical does not compile this
  39. * value, so we accommodate by not using these.
  40. *
  41. * @see https://caniuse.com/mdn-css_properties_clear_flow_relative_values
  42. * @see https://github.com/csstools/postcss-plugins/issues/632
  43. */
  44. }
  45. .toolbar:not(.toolbar-oriented) .toolbar-bar .workspaces-toolbar-tab:dir(rtl) {
  46. float: left;
  47. }
  48. }
  49. /* Link within the toolbar tab. */
  50. .toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-item {
  51. width: 100%;
  52. margin: 0;
  53. text-align: start;
  54. color: inherit;
  55. }
  56. .toolbar-oriented :is(.toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-item) {
  57. width: auto;
  58. text-align: initial;
  59. }
  60. .toolbar .toolbar-icon-workspace::before {
  61. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e %3cpath d='M14,12 L16,12 L16,0 L4,0 L4,2 L14,2 L14,12 Z M0,4 L12,4 L12,16 L0,16 L0,4 Z'/%3e%3c/svg%3e");
  62. }
  63. @media all and (max-width: 47.875rem) {
  64. .toolbar-oriented .toolbar-bar .workspaces-toolbar-tab .toolbar-icon-workspace {
  65. width: auto;
  66. max-width: 8em;
  67. }
  68. .toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-icon-workspace {
  69. overflow: hidden;
  70. padding-inline: 2.75em 1.3333em;
  71. white-space: nowrap;
  72. text-indent: 0;
  73. text-overflow: ellipsis;
  74. }
  75. .toolbar .toolbar-bar .workspaces-toolbar-tab .toolbar-icon-workspace::before {
  76. inset-inline-start: 0.6667em;
  77. width: 1.25rem;
  78. background-size: 100% auto;
  79. }
  80. }
RSS feed
Powered by Drupal