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

Breadcrumb

  1. Drupal Core 11.1.x

social-bar.css

Social Bar Region .

File

core/themes/olivero/css/layout/social-bar.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. * Social Bar Region
  10. .
  11. */
  12. @media (min-width: 75rem) {
  13. .social-bar {
  14. flex-shrink: 0;
  15. width: var(--content-left);
  16. background-color: var(--color--gray-100);
  17. }
  18. }
  19. .social-bar__inner {
  20. position: relative;
  21. padding-block: var(--sp0-5);
  22. padding-inline-start: var(--sp);
  23. padding-inline-end: var(--sp);
  24. }
  25. @media (min-width: 75rem) {
  26. .social-bar__inner {
  27. position: relative;
  28. width: var(--content-left);
  29. padding-block: var(--sp5);
  30. padding-inline-start: 0;
  31. padding-inline-end: 0;
  32. }
  33. .social-bar__inner.is-fixed {
  34. position: fixed;
  35. inset-block-start: var(--sp6);
  36. inset-inline-start: 0;
  37. height: calc(100vh - var(--sp6));
  38. }
  39. }
  40. .rotate > * {
  41. margin-block-end: var(--sp2);
  42. }
  43. @media (min-width: 75rem) {
  44. .rotate > * {
  45. display: flex;
  46. align-items: center;
  47. margin-block-end: 0;
  48. }
  49. .rotate > *:not(:first-child) {
  50. margin-inline-end: var(--sp2);
  51. }
  52. }
  53. @media (min-width: 75rem) {
  54. .rotate .contextual {
  55. inset-inline: 100% auto;
  56. transform: rotate(90deg); /* LTR */
  57. transform-origin: top left; /* LTR */
  58. }
  59. .rotate .contextual .trigger {
  60. float: left; /* LTR */
  61. /**
  62. * Chromium and Webkit do not yet support flow relative logical properties,
  63. * such as float: inline-end. However, PostCSS Logical does not compile this
  64. * value, so we accommodate by not using these.
  65. *
  66. * @see https://caniuse.com/mdn-css_properties_clear_flow_relative_values
  67. * @see https://github.com/csstools/postcss-plugins/issues/632
  68. */
  69. }
  70. .rotate .contextual .trigger:dir(rtl) {
  71. float: right;
  72. }
  73. }
  74. @media (min-width: 75rem) {
  75. .rotate {
  76. position: absolute;
  77. inset-inline-start: 50%;
  78. display: flex;
  79. flex-direction: row-reverse;
  80. width: 100vh;
  81. transform: rotate(-90deg) translateX(-100%); /* LTR */
  82. transform-origin: left; /* LTR */
  83. }
  84. @supports (width: max-content) {
  85. .rotate {
  86. width: max-content;
  87. }
  88. }
  89. }
  90. @media (min-width: 75rem) {
  91. [dir="rtl"] .rotate {
  92. transform: rotate(90deg) translateX(100%);
  93. transform-origin: right;
  94. }
  95. [dir="rtl"] .rotate .contextual {
  96. transform: rotate(-90deg);
  97. transform-origin: top right;
  98. }
  99. }
RSS feed
Powered by Drupal