book.css

Same filename in this branch
  1. 9 core/themes/bartik/css/components/book.css
Same filename and directory in other branches
  1. 7.x modules/book/book.css
  2. 8.9.x core/themes/bartik/css/components/book.css
  3. 10 core/themes/olivero/css/components/book.css
  4. 11.x core/themes/olivero/css/components/book.css

Book module styling.

File

core/themes/olivero/css/components/book.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. * Book module styling.
  10. */
  11. [dir="ltr"] .book-pager {
  12. margin-left: 0;
  13. }
  14. [dir="rtl"] .book-pager {
  15. margin-right: 0;
  16. }
  17. [dir="ltr"] .book-pager {
  18. margin-right: 0;
  19. }
  20. [dir="rtl"] .book-pager {
  21. margin-left: 0;
  22. }
  23. [dir="ltr"] .book-pager {
  24. padding-left: 0;
  25. }
  26. [dir="rtl"] .book-pager {
  27. padding-right: 0;
  28. }
  29. [dir="ltr"] .book-pager {
  30. padding-right: 0;
  31. }
  32. [dir="rtl"] .book-pager {
  33. padding-left: 0;
  34. }
  35. .book-pager {
  36. display: flex;
  37. flex-wrap: wrap;
  38. margin-top: 0 1.125rem;
  39. padding-top: 0;
  40. padding-bottom: 1.125rem;
  41. list-style: none;
  42. border-bottom: solid 1px #0d77b5;
  43. }
  44. .book-pager__item {
  45. display: inline-block;
  46. }
  47. @media (min-width: 31.25rem) {
  48. .book-pager__item {
  49. flex: 0 0 33.33%;
  50. }
  51. }
  52. @media (min-width: 31.25rem) {
  53. .book-pager__item--center {
  54. text-align: center;
  55. }
  56. }
  57. @media (min-width: 31.25rem) {
  58. [dir="ltr"] .book-pager__item--next {
  59. margin-left: auto;
  60. }
  61. [dir="rtl"] .book-pager__item--next {
  62. margin-right: auto;
  63. }
  64. [dir="ltr"] .book-pager__item--next {
  65. text-align: right;
  66. }
  67. [dir="rtl"] .book-pager__item--next {
  68. text-align: left;
  69. }
  70. }
  71. .book-pager__link {
  72. display: inline-flex;
  73. align-items: center;
  74. text-decoration: none;
  75. color: #0d77b5;
  76. font-family: Lora, georgia, serif;
  77. font-size: 1.125rem;
  78. font-weight: 600;
  79. }
  80. [dir="ltr"] .book-pager__link--previous:before {
  81. margin-right: 0.25em;
  82. }
  83. [dir="rtl"] .book-pager__link--previous:before {
  84. margin-left: 0.25em;
  85. }
  86. [dir="ltr"] .book-pager__link--previous:before {
  87. border-left: solid 0.1875rem currentColor;
  88. }
  89. [dir="rtl"] .book-pager__link--previous:before {
  90. border-right: solid 0.1875rem currentColor;
  91. }
  92. .book-pager__link--previous:before {
  93. display: block;
  94. width: 0.5625rem;
  95. height: 0.5625rem;
  96. content: "";
  97. transform: rotate(-45deg);
  98. border-top: solid 0.1875rem currentColor;
  99. }
  100. [dir="ltr"] .book-pager__link--next:after {
  101. margin-left: 0.25em;
  102. }
  103. [dir="rtl"] .book-pager__link--next:after {
  104. margin-right: 0.25em;
  105. }
  106. [dir="ltr"] .book-pager__link--next:after {
  107. border-left: solid 0.1875rem currentColor;
  108. }
  109. [dir="rtl"] .book-pager__link--next:after {
  110. border-right: solid 0.1875rem currentColor;
  111. }
  112. .book-pager__link--next:after {
  113. display: block;
  114. width: 0.5625rem;
  115. height: 0.5625rem;
  116. content: "";
  117. transform: rotate(135deg);
  118. border-top: solid 0.1875rem currentColor;
  119. }
  120. [dir="ltr"] .book-navigation__menu {
  121. margin-left: 0;
  122. }
  123. [dir="rtl"] .book-navigation__menu {
  124. margin-right: 0;
  125. }
  126. [dir="ltr"] .book-navigation__menu {
  127. margin-right: 0;
  128. }
  129. [dir="rtl"] .book-navigation__menu {
  130. margin-left: 0;
  131. }
  132. [dir="ltr"] .book-navigation__menu {
  133. padding-left: 0;
  134. }
  135. [dir="rtl"] .book-navigation__menu {
  136. padding-right: 0;
  137. }
  138. [dir="ltr"] .book-navigation__menu {
  139. padding-right: 0;
  140. }
  141. [dir="rtl"] .book-navigation__menu {
  142. padding-left: 0;
  143. }
  144. .book-navigation__menu {
  145. margin-top: 2.25rem;
  146. margin-bottom: 2.25rem;
  147. padding-top: 0;
  148. padding-bottom: 0;
  149. list-style: none;
  150. }
  151. [dir="ltr"] .book-navigation__item {
  152. padding-left: 0;
  153. }
  154. [dir="rtl"] .book-navigation__item {
  155. padding-right: 0;
  156. }
  157. [dir="ltr"] .book-navigation__item {
  158. padding-right: 0;
  159. }
  160. [dir="rtl"] .book-navigation__item {
  161. padding-left: 0;
  162. }
  163. .book-navigation__item {
  164. margin-top: 0;
  165. margin-bottom: 0;
  166. padding-top: 0;
  167. padding-bottom: 0;
  168. list-style: none;
  169. }
  170. [dir="rtl"] .book-pager__link--previous:before {
  171. transform: rotate(45deg);
  172. }
  173. [dir="rtl"] .book-pager__link--next:after {
  174. transform: rotate(-135deg);
  175. }

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