main.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. html,body{
  2. margin:0; padding:0;
  3. background-color: #1A1A1A;
  4. }
  5. $debug:false;
  6. $tranchew:15mm;
  7. $pw:227.41mm;
  8. $ph:207.26mm;
  9. $mt:1cm;
  10. $mb:1cm;
  11. $me:1cm;
  12. $mi:1cm;
  13. #root{
  14. height:$ph;
  15. margin:0 auto;
  16. position: relative;
  17. width:$tranchew+5+2.001*$pw;
  18. }
  19. #header{
  20. display: absolute;
  21. top: 0; left:0;
  22. width: $tranchew; height: 100%;
  23. background-color: white;
  24. h1{
  25. margin: 0; padding:0.3em;
  26. position: absolute;
  27. bottom:0; left:0;
  28. transform-origin: 0% 0%;
  29. transform: rotate(270deg);
  30. }
  31. }
  32. #main{
  33. position: absolute;
  34. top:0; right:0;
  35. width:2.001*$pw;
  36. #page-left{
  37. float:left;
  38. // padding:$mt $mi $mb $me;
  39. // background-image: url("../../images/pages/01_anan.jpeg");
  40. background-position: right;
  41. }
  42. #page-right{
  43. float: right;
  44. // padding:$mt $me $mb $mi;
  45. // background-image: url("../../images/pages/02_TH.jpeg");
  46. background-position: left;
  47. }
  48. .page{
  49. position: relative;
  50. @if $debug {
  51. background-color: green;
  52. }
  53. width:$pw;
  54. height:$ph;
  55. background-repeat: no-repeat;
  56. background-size: contain;
  57. .overlay{
  58. position: relative;
  59. width:100%; height:100%;
  60. background-position: center;
  61. background-repeat: no-repeat;
  62. background-size: contain;
  63. z-index: 1;
  64. @if $debug {
  65. border: 1px solid blue;
  66. }
  67. // img{max-width: 100%;}
  68. }
  69. .maps{
  70. position:absolute;
  71. top:0; left:0;
  72. width:100%; height:100%;
  73. z-index: 2;
  74. .map{
  75. position: absolute;
  76. background-color: rgba(50, 50, 50, 0.8);
  77. cursor: pointer;
  78. }
  79. }
  80. &.page-6 .overlay{
  81. background-image: url("../../images/vectos/04_chance-RB.svg")
  82. }
  83. }
  84. #navigation{
  85. position:absolute; z-index: 3;
  86. bottom:0; width:100%; // height:2cm;
  87. padding:2mm 0;
  88. background-color: rgba(26, 26, 26, 0.7);
  89. overflow: hidden;
  90. text-align: center;
  91. opacity: 0;
  92. transition: opacity .3s ease-in-out;
  93. &:hover{opacity: 1;}
  94. }
  95. #pagination{
  96. color:#fff;
  97. font-size: 1em;
  98. padding: 0 0 2mm 0;
  99. div{
  100. display: inline-block;
  101. width:49%;
  102. &.wrapper-l{left:0; text-align: left;}
  103. &.wrapper-r{right:0; text-align: right;}
  104. span.p{
  105. }
  106. span.l{
  107. cursor: pointer;
  108. line-height: -1;
  109. }
  110. }
  111. }
  112. #railway{
  113. ul{
  114. padding:1mm; margin:0;
  115. li{
  116. display: inline-block; vertical-align: middle;
  117. background-color: white;
  118. width:1mm; height:7mm;
  119. margin-left: 0.5mm;
  120. background-position: center;
  121. background-size: cover;
  122. &.active{
  123. width:7mm; cursor: pointer;
  124. }
  125. &.page-right{
  126. margin-right: 1mm;
  127. }
  128. opacity:0.2;
  129. transition: opacity 0.3s ease-in-out;
  130. &.current, &.active:hover{opacity: 1;}
  131. }
  132. &:hover li{opacity: 1;}
  133. }
  134. }
  135. }