index.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. header {
  2. position: relative;
  3. padding: 0 20px;
  4. font-size: 30px;
  5. line-height: 60px;
  6. color: #fff;
  7. background: #2fc9da;
  8. }
  9. .link-github {
  10. position: absolute;
  11. top: 15px;
  12. right: 20px;
  13. padding: 5px 15px;
  14. font-size: 14px;
  15. line-height: 20px;
  16. color: #333;
  17. background: #fff;
  18. border-radius: 15px;
  19. }
  20. .link-github svg {
  21. margin-right: 5px;
  22. vertical-align: middle;
  23. }
  24. .link-github:hover,
  25. .link-github:active {
  26. background: #eee;
  27. }
  28. #item-container {
  29. position: fixed;
  30. top: 60px;
  31. left: 0;
  32. right: 0;
  33. width: 100%;
  34. bottom: 0;
  35. overflow: auto;
  36. background: #f7f7f7;
  37. }
  38. #item-container li {
  39. padding: 10px 20px;
  40. border-bottom: 1px solid #ccc;
  41. }
  42. #item-container li:last-child {
  43. border-bottom: none;
  44. }
  45. .index-sidebar-container {
  46. position: fixed;
  47. top: 70px;
  48. right: 0;
  49. overflow: visible;
  50. -webkit-user-select: none;
  51. user-select: none;
  52. cursor: default;
  53. z-index: 999;
  54. }
  55. .index-sidebar-container ul {
  56. padding: 0 5px;
  57. list-style: none;
  58. font-size: 13px;
  59. line-height: 1.5;
  60. color: #999;
  61. }
  62. .index-sidebar-container li {
  63. text-align: center;
  64. }
  65. .index-sidebar-container .current-char {
  66. display: none;
  67. position: fixed;
  68. top: 0;
  69. left: 0;
  70. margin-left: -80px;
  71. margin-top: -20px;
  72. height: 40px;
  73. width: 40px;
  74. line-height: 40px;
  75. font-size: 32px;
  76. text-align: center;
  77. color: #999;
  78. }