custom.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. .onPageNav ul li,
  2. .onPageNav ul ul li {
  3. padding-bottom: 0; /* moved to ul ul, ul a, ul ul a */
  4. }
  5. .onPageNav ul ul {
  6. padding-top: 1.5px;
  7. padding-bottom: 6.5px;
  8. }
  9. .onPageNav ul a {
  10. display: block;
  11. padding: 4px;
  12. }
  13. .onPageNav ul ul a {
  14. padding: 2.5px;
  15. }
  16. .onPageNav a.active {
  17. background-color: rgba(27, 31, 35, 0.05);
  18. font-weight: bold;
  19. }
  20. .fixedHeaderContainer header img {
  21. height: 80%;
  22. }
  23. .nav-footer .logo {
  24. display: block;
  25. margin: 1em auto;
  26. width: 175px;
  27. }
  28. .nav-footer .copyright {
  29. line-height: 1.5;
  30. }
  31. .nav-footer .copyright a {
  32. color: rgba(255, 255, 255, 0.6);
  33. }
  34. .nav-footer .copyright a:hover,
  35. .nav-footer .copyright a:focus {
  36. color: white;
  37. text-decoration: none;
  38. }
  39. .showcaseSection .logos .imgbox {
  40. width: 168px; /* 128px for img + 20*2 for padding */
  41. height: 168px; /* 128px for img + 20*2 for padding */
  42. position: relative;
  43. }
  44. @media only screen and (max-width: 735px) {
  45. .showcaseSection .logos .imgbox {
  46. width: 104px; /* 64px for img + 20*2 for padding */
  47. height: 104px; /* 64px for img + 20*2 for padding */
  48. position: relative;
  49. }
  50. }
  51. .showcaseSection .logos .imgbox img {
  52. position: absolute;
  53. left: 0;
  54. top: 0;
  55. bottom: 0;
  56. margin: auto;
  57. }
  58. /* Add special CSS for supported.md rendered on mobile */
  59. @media screen and (max-width: 480px) {
  60. /* We have two styles for very narrow screens.
  61. * We apply the hopscotch style to headless tables. It breaks
  62. * tables down so that each cell acts like a <div>
  63. *
  64. * We apply a card style to tables with headings. This converts
  65. * each cell into its own row, with a heading to its left.
  66. */
  67. .katex-cards table td {
  68. display: block;
  69. border: none;
  70. border-bottom: 1px solid #eee;
  71. position: relative;
  72. padding-left: 50%;
  73. }
  74. .katex-hopscotch table td {
  75. display: inline-block;
  76. background: #fff;
  77. }
  78. .katex-hopscotch table tr {
  79. border: none;
  80. background: #fff;
  81. }
  82. .katex-cards table,
  83. .katex-cards thead,
  84. .katex-cards tbody,
  85. .katex-cards th {
  86. display: block;
  87. }
  88. /* Hide table headers (but not display: none;, for accessibility) */
  89. .katex-cards thead tr {
  90. display: block;
  91. position: absolute;
  92. top: -9999px;
  93. left: -9999px;
  94. }
  95. .katex-cards td:nth-of-type(1),
  96. .katex-cards td:nth-of-type(2) { background-color: #fff; }
  97. .katex-cards td:nth-of-type(3),
  98. .katex-cards td:nth-of-type(4) { background-color: #f6f8fa; }
  99. .katex-cards table td:nth-child(even) { border-bottom: 1px solid #ccc; }
  100. .katex-cards td::before {
  101. /* Now like a table header */
  102. position: absolute;
  103. /* Top/left values mimic padding */
  104. top: 6px;
  105. left: 6px;
  106. width: 45%;
  107. padding-right: 10px;
  108. white-space: nowrap;
  109. }
  110. /*
  111. Label the data
  112. */
  113. #spacing-tbl td:nth-of-type(1)::before,
  114. #spacing-tbl td:nth-of-type(3)::before { content: "Function:"; }
  115. #spacing-tbl td:nth-of-type(2)::before,
  116. #spacing-tbl td:nth-of-type(4)::before { content: "Produces:"; }
  117. #math-alpha td:nth-of-type(1)::before,
  118. #math-alpha td:nth-of-type(3)::before { content: "Item:"; }
  119. #math-alpha td:nth-of-type(2)::before,
  120. #math-alpha td:nth-of-type(4)::before { content: "Range:"; }
  121. #environments td:nth-of-type(1)::before,
  122. #environments td:nth-of-type(3)::before { content: "Environment:"; }
  123. #environments td:nth-of-type(2)::before,
  124. #environments td:nth-of-type(4)::before { content: "From code:"; }
  125. #unit-tbl td:nth-of-type(1)::before,
  126. #unit-tbl td:nth-of-type(3)::before { content: "Unit:"; }
  127. #unit-tbl td:nth-of-type(2)::before,
  128. #unit-tbl td:nth-of-type(4)::before { content: "Value:"; }
  129. #unit-blocks td:nth-of-type(2)::before { content: "textstyle:"; }
  130. #unit-blocks td:nth-of-type(3)::before { content: "scriptscript:"; }
  131. #unit-blocks td:nth-of-type(4)::before { content: "huge:"; }
  132. #unit-blocks td { background-color: #fff; }
  133. }
  134. /* stylelint-disable block-no-empty */
  135. @media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
  136. }
  137. @media only screen and (min-width: 1024px) {
  138. }
  139. @media only screen and (max-width: 1023px) {
  140. }
  141. @media only screen and (min-width: 1400px) {
  142. }
  143. @media only screen and (min-width: 1500px) {
  144. }