social-bar.css

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

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