style.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html {
  6. height: 100%;
  7. overflow: hidden;
  8. }
  9. body {
  10. width: 100%;
  11. height: 100%;
  12. background: url(../img/1.png) 75% center no-repeat;
  13. background-size: 92% 90%;
  14. }
  15. h1 {
  16. text-align: center;
  17. }
  18. .scene {
  19. width: 45%;
  20. height: 90%;
  21. margin: 4% 0% 0% 52%;
  22. perspective: 1000px;
  23. }
  24. .book {
  25. position: relative;
  26. width: 100%;
  27. height: 100%;
  28. transform-style: preserve-3d;
  29. }
  30. .page {
  31. cursor: pointer;
  32. position: absolute;
  33. color: black;
  34. width: 100%;
  35. height: 100%;
  36. transition: 1.5s transform;
  37. transform-style: preserve-3d;
  38. transform-origin: left center;
  39. }
  40. /* new */
  41. .front,
  42. .back {
  43. position: absolute;
  44. width: 85%;
  45. height: 85%;
  46. top: 3%;
  47. right: 5%;
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. justify-content: center;
  52. box-sizing: border-box;
  53. backface-visibility: hidden;
  54. background-color: #FFFFFF;
  55. }
  56. .back {
  57. transform: rotateY(180deg);
  58. }
  59. .back>img {
  60. width: 100%;
  61. margin-bottom: 1%;
  62. }
  63. .back>span {
  64. display: inline-block;
  65. width: 100%;
  66. height: 6%;
  67. text-align: center;
  68. line-height: 100%;
  69. white-space: nowrap;
  70. text-overflow: ellipsis;
  71. overflow: hidden;
  72. font-size: 18px;
  73. background: url(../img/kk.png) top center no-repeat;
  74. background-size: auto 100%;
  75. }
  76. /* new */
  77. .front>img {
  78. width: 100%;
  79. margin-bottom: 1%;
  80. }
  81. .front>span {
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. width: 100%;
  86. height: 10%;
  87. white-space: nowrap;
  88. text-overflow: ellipsis;
  89. overflow: hidden;
  90. font-size: 18px;
  91. background: url(../img/kk.png) top center no-repeat;
  92. background-size: auto 100%;
  93. }
  94. .page.active {
  95. z-index: 1;
  96. }
  97. .page.flipped {
  98. transform: rotateY(-180deg);
  99. }
  100. .page.flipped:last-of-type {
  101. z-index: 1;
  102. }
  103. p {
  104. margin: 0 0 0.1em;
  105. text-indent: 1em;
  106. }
  107. .qr {
  108. margin: 50px auto;
  109. max-width: 50%;
  110. }
  111. .qr img {
  112. display: block;
  113. }
  114. /* iPads (portrait) ----------- */
  115. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  116. .scene {
  117. width: 90%;
  118. height: 90%;
  119. margin: 5%;
  120. }
  121. }