reader.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @media (orientation: landscape) {
  2. .hidden-landscape {
  3. display: none;
  4. }
  5. }
  6. @media (orientation: portrait) {
  7. .hidden-portrait {
  8. display: none;
  9. }
  10. }
  11. .splash {
  12. z-index: 999;
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. width: 100%;
  17. height: 100%;
  18. background: white;
  19. font-size: 21px;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. }
  24. #reader {
  25. position: absolute;
  26. top: 0;
  27. bottom: 0;
  28. left: 0;
  29. right: 0;
  30. display: flex;
  31. justify-content: center;
  32. overflow: hidden;
  33. }
  34. #reader.fit-width {
  35. overflow-y: auto;
  36. }
  37. #reader.fit-width .right-page,
  38. #reader.single-column .right-page {
  39. display: none ! important;
  40. }
  41. #reader.flip-columns .right-page {
  42. order: -1;
  43. }
  44. #reader.single-column img {
  45. margin: auto;
  46. }
  47. #reader.fit-width img {
  48. max-width: 100%;
  49. width: auto;
  50. margin: auto;
  51. }
  52. #reader.fit-size:not(.single-column) img.limit-width {
  53. max-width: 50%;
  54. }
  55. #reader.fit-size img {
  56. max-width: 100%;
  57. max-height: 100%;
  58. margin-top: auto;
  59. margin-bottom: auto;
  60. width: auto;
  61. height: auto;
  62. }
  63. #left, #right {
  64. position: absolute;
  65. top: 0px;
  66. bottom: 0px;
  67. width: 64px;
  68. z-index: 10;
  69. cursor: pointer;
  70. opacity: 0.2;
  71. display: flex;
  72. flex-direction: column;
  73. .top, .bottom {
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. }
  78. .top {
  79. height : 25%;
  80. }
  81. .bottom {
  82. height : 75%;
  83. }
  84. .separator {
  85. margin : 0 24px;
  86. border-top-style: solid;
  87. border-top-width: 1px;
  88. border-top-color: #555;
  89. justify-self: center;
  90. }
  91. }
  92. #left {
  93. left: 0;
  94. }
  95. #right {
  96. right: 0;
  97. }
  98. ::-webkit-scrollbar {
  99. width: 4px;
  100. }
  101. ::-webkit-scrollbar-thumb {
  102. background-color: #337ab7;
  103. }
  104. ::-webkit-scrollbar-track {
  105. background-color: #eee;
  106. }
  107. body.dark {
  108. .splash, #reader {
  109. background : #333;
  110. }
  111. }