indexterms.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /**
  2. * Styles for Index page.
  3. */
  4. /* Indexterms page */
  5. .wh-letters {
  6. display: flex;
  7. flex-direction: row;
  8. justify-content: center;
  9. align-items: stretch;
  10. align-content: stretch;
  11. flex-wrap: wrap;
  12. background-color: #f2f2f2;
  13. }
  14. ul.wh-letters li{
  15. line-height: 2.5em;
  16. font-size:1.5em;
  17. vertical-align:middle;
  18. max-width: 3em;
  19. padding-left:0;
  20. }
  21. .wh-letters li a{
  22. padding: 0 .3em;
  23. }
  24. .wh-letters li::after{
  25. content: " | ";
  26. color: #a9a9a9
  27. }
  28. .wh-letters li:last-child::after{
  29. content: "";
  30. }
  31. .wh_index_terms li, .wh_index_terms ul{
  32. padding-left: 10px;
  33. list-style: none;
  34. }
  35. .wh_index_terms li.wh_term{
  36. line-height: 1.5em;
  37. }
  38. a.wh_term_target{
  39. padding-left:5px;
  40. vertical-align: super;
  41. font-size: .8em;
  42. }
  43. .wh_index_terms .wh_first_letter{
  44. text-indent: 0;
  45. list-style: none;
  46. font-size: 2em;
  47. font-weight: bold;
  48. display: inline-block;
  49. border-bottom: 1px solid;
  50. width: 100%;
  51. margin: .4em 0 .2em;
  52. }
  53. /**
  54. * Index page. Set multi-column layout.
  55. */
  56. .wh_term_group > ul {
  57. column-count: auto;
  58. column-width: 20em;
  59. column-gap: 1em;
  60. column-rule: none;
  61. }
  62. /**
  63. * Try to avoid column break between an index group and its first child.
  64. */
  65. .wh_term .wh_term{
  66. break-inside:avoid;
  67. }
  68. @media screen{
  69. @-moz-document url-prefix() {
  70. .wh_term .wh_term{
  71. display: table
  72. }
  73. }
  74. }
  75. .wh_term > ul > .wh_term:first-child {
  76. break-before: avoid-column;
  77. -webkit-column-break-before: avoid;
  78. }