tableselect.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/tableselect.pcss.css
  2. 8.9.x core/themes/claro/css/components/tableselect.pcss.css
  3. 10 core/themes/claro/css/components/tableselect.pcss.css

Table select styles for Claro.

See also

tableselect.js

File

core/themes/claro/css/components/tableselect.pcss.css

View source
  1. /**
  2. * @file
  3. * Table select styles for Claro.
  4. *
  5. * @see tableselect.js
  6. */
  7. td.checkbox,
  8. th.checkbox {
  9. text-align: center;
  10. }
  11. tr.selected td {
  12. background-color: var(--color-bgblue-active);
  13. }
  14. .views-bulk-actions {
  15. position: relative;
  16. display: flex;
  17. flex: 1;
  18. flex-wrap: wrap;
  19. padding: var(--space-m) 2rem;
  20. color: var(--color-white);
  21. border: var(--details-border-size) solid var(--details-border-color);
  22. border-radius: 4px;
  23. background-color: var(--color-text);
  24. &[data-drupal-sticky-vbo="true"] {
  25. position: sticky;
  26. z-index: calc(var(--dropbutton-widget-z-index) + 1);
  27. bottom: var(--drupal-displace-offset-bottom, 0);
  28. animation: fade-in-bottom 320ms 1 forwards;
  29. border-bottom-right-radius: 0;
  30. border-bottom-left-radius: 0;
  31. }
  32. &.views-form__header--bypass-animation {
  33. animation: none;
  34. }
  35. }
  36. @supports (position: sticky) {
  37. .views-bulk-actions[data-drupal-sticky-vbo="true"] {
  38. position: sticky;
  39. }
  40. }
  41. @keyframes fade-in-bottom {
  42. 0% {
  43. transform: translateY(100%);
  44. }
  45. 100% {
  46. transform: translateY(0);
  47. }
  48. }
  49. .views-bulk-actions__item {
  50. align-self: center;
  51. margin-block: 0 var(--space-s);
  52. margin-inline: 0 var(--space-l);
  53. &:last-of-type {
  54. margin-inline-end: 0;
  55. }
  56. & .form-element {
  57. &:hover {
  58. border: var(--input-border-size) solid var(--input-border-color);
  59. box-shadow: none;
  60. }
  61. }
  62. & .button--primary:not(:disabled, .is-disabled) {
  63. background: var(--color-blue-400);
  64. &:hover {
  65. background: var(--color-blue-500);
  66. }
  67. }
  68. & .form-item__label {
  69. display: inline;
  70. padding-inline-end: var(--space-xs);
  71. &::after {
  72. content: ":";
  73. }
  74. }
  75. & .form-element--type-select {
  76. min-height: 2rem;
  77. padding-block: calc(0.5rem - 1px);
  78. padding-inline: calc(1rem - 1px) calc(2.25rem - 1px);
  79. font-size: var(--font-size-xs);
  80. line-height: 1rem;
  81. }
  82. & input,
  83. & .button {
  84. margin-block: 0;
  85. }
  86. }
  87. .views-bulk-actions__item--status {
  88. width: 100%;
  89. white-space: nowrap;
  90. font-size: var(--font-size-xs);
  91. font-weight: bold;
  92. }
  93. .views-field__skip-to-bulk-actions {
  94. display: block;
  95. white-space: nowrap;
  96. font-size: var(--font-size-xs);
  97. }
  98. @media screen and (min-width: 61rem) {
  99. .views-bulk-actions {
  100. flex-wrap: nowrap;
  101. }
  102. .views-bulk-actions__item {
  103. margin-bottom: 0;
  104. }
  105. .views-bulk-actions__item--status {
  106. width: auto;
  107. }
  108. }
  109. .ui-autocomplete {
  110. z-index: 501;
  111. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.