You are here

social-bar.css in Drupal 10

Same filename and directory in other branches
  1. 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. /*
  13. * Media query breakpoints.
  14. * Processed by postcss/postcss-custom-media.
  15. */
  16. /* Navigation related breakpoints */
  17. /* Grid related breakpoints */
  18. /* Grid shifts from 6 to 14 columns. */
  19. /* Width of the entire grid maxes out. */
  20. @media (min-width: 75rem) {
  21. .social-bar {
  22. flex-shrink: 0;
  23. width: var(--content-left);
  24. background-color: var(--color--gray-100)
  25. }
  26. }
  27. [dir="ltr"] .social-bar__inner {
  28. padding-left: var(--sp)
  29. }
  30. [dir="rtl"] .social-bar__inner {
  31. padding-right: var(--sp)
  32. }
  33. [dir="ltr"] .social-bar__inner {
  34. padding-right: var(--sp)
  35. }
  36. [dir="rtl"] .social-bar__inner {
  37. padding-left: var(--sp)
  38. }
  39. .social-bar__inner {
  40. position: relative;
  41. padding-top: var(--sp0-5);
  42. padding-bottom: var(--sp0-5)
  43. }
  44. @media (min-width: 75rem) {
  45. [dir="ltr"] .social-bar__inner {
  46. padding-left: 0
  47. }
  48. [dir="rtl"] .social-bar__inner {
  49. padding-right: 0
  50. }
  51. [dir="ltr"] .social-bar__inner {
  52. padding-right: 0
  53. }
  54. [dir="rtl"] .social-bar__inner {
  55. padding-left: 0
  56. }
  57. .social-bar__inner {
  58. position: relative;
  59. width: var(--content-left);
  60. padding-top: calc(5 * var(--sp));
  61. padding-bottom: calc(5 * var(--sp))
  62. }
  63. [dir="ltr"] .social-bar__inner.is-fixed {
  64. left: 0
  65. }
  66. [dir="rtl"] .social-bar__inner.is-fixed {
  67. right: 0
  68. }
  69. .social-bar__inner.is-fixed {
  70. position: fixed;
  71. top: var(--sp6);
  72. height: calc(100vh - 6 * var(--sp));
  73. }
  74. }
  75. .rotate > * {
  76. margin-bottom: var(--sp2)
  77. }
  78. @media (min-width: 75rem) {
  79. .rotate > * {
  80. display: flex;
  81. align-items: center;
  82. margin-bottom: 0
  83. }
  84. [dir="ltr"] .rotate > *:not(:first-child) {
  85. margin-right: var(--sp2)
  86. }
  87. [dir="rtl"] .rotate > *:not(:first-child) {
  88. margin-left: var(--sp2)
  89. }
  90. }
  91. @media (min-width: 75rem) {
  92. [dir="ltr"] .rotate .contextual {
  93. left: 100%;
  94. right: auto
  95. }
  96. [dir="rtl"] .rotate .contextual {
  97. right: 100%;
  98. left: auto
  99. }
  100. .rotate .contextual {
  101. transform: rotate(90deg); /* LTR */
  102. transform-origin: top left /* LTR */
  103. }
  104. [dir="ltr"] .rotate .contextual .trigger {
  105. float: left
  106. }
  107. [dir="rtl"] .rotate .contextual .trigger {
  108. float: right
  109. }
  110. }
  111. @media (min-width: 75rem) {
  112. [dir="ltr"] .rotate {
  113. left: 50%
  114. }
  115. [dir="rtl"] .rotate {
  116. right: 50%
  117. }
  118. .rotate {
  119. position: absolute;
  120. display: flex;
  121. flex-direction: row-reverse;
  122. width: 100vh;
  123. transform: rotate(-90deg) translateX(-100%); /* LTR */
  124. transform-origin: left /* LTR */
  125. }
  126. @supports (width: max-content) {
  127. .rotate {
  128. width: max-content
  129. }
  130. }
  131. }
  132. @media (min-width: 75rem) {
  133. [dir="rtl"] .rotate {
  134. transform: rotate(90deg) translateX(100%);
  135. transform-origin: right
  136. }
  137. [dir="rtl"] .rotate .contextual {
  138. transform: rotate(-90deg);
  139. transform-origin: top right;
  140. }
  141. }