main.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. html,body{
  2. margin:0; padding:0;
  3. background-color: #1A1A1A;
  4. }
  5. $tranche_w:9mm;
  6. $tranche_mr:5mm;
  7. $p_w:227.41mm;
  8. $p_h:207.26mm;
  9. $main_w:2.001*$p_w;
  10. $navh:30mm;
  11. // $mt:1cm;
  12. // $mb:1cm;
  13. // $me:1cm;
  14. // $mi:1cm;
  15. #root{
  16. position: relative;
  17. width:($tranche_w+$tranche_mr+$main_w)*1.001;
  18. height:$p_h+$navh;
  19. margin:0 auto;
  20. letter-spacing:-.25em;
  21. &>*{letter-spacing: normal;}
  22. }
  23. #header{
  24. display: inline-block;
  25. width: $tranche_w; height: $p_h;
  26. margin-right:$tranche_mr;
  27. background-color: black;
  28. background-image: url('../../images/dos.jpg');
  29. background-size: contain;
  30. background-repeat: no-repeat;
  31. h1{
  32. font-size: 1em;
  33. margin: 0 0 15mm 0; padding:0.3em;
  34. position: absolute;
  35. bottom:0; left:0;
  36. transform-origin: 0% 0%;
  37. transform: rotate(270deg);
  38. visibility: hidden;
  39. }
  40. }
  41. #main{
  42. display: inline-block;
  43. width:$main_w;
  44. overflow: hidden;
  45. // background-color: magenta;
  46. #page-left{
  47. float:left;
  48. // padding:$mt $mi $mb $me;
  49. // background-image: url("../../images/pages/01_anan.jpeg");
  50. background-position: right;
  51. }
  52. #page-right{
  53. float: right;
  54. // padding:$mt $me $mb $mi;
  55. // background-image: url("../../images/pages/02_TH.jpeg");
  56. background-position: left;
  57. }
  58. .page{
  59. position: relative;
  60. width:$p_w;
  61. height:$p_h;
  62. background-repeat: no-repeat;
  63. background-size: contain;
  64. .overlay{
  65. position: relative;
  66. width:100%; height:100%;
  67. background-position: center;
  68. background-repeat: no-repeat;
  69. background-size: contain;
  70. z-index: 1;
  71. // img{max-width: 100%;}
  72. }
  73. .maps{
  74. position:absolute;
  75. top:0; left:0;
  76. width:100%; height:100%;
  77. z-index: 2;
  78. .map{
  79. position: absolute;
  80. cursor: pointer;
  81. &[debug="true"]{
  82. background-color: rgba(0, 0, 250, 0.4);
  83. }
  84. }
  85. }
  86. }
  87. }
  88. #navigation{
  89. width:$main_w;
  90. height:$navh;
  91. overflow: hidden;
  92. $ml:$tranche_w + $tranche_mr;
  93. margin:0 0 0 $ml;
  94. padding:0;
  95. background-color: rgba(26, 26, 26, 0.7);
  96. // background-color: green;
  97. text-align: center;
  98. // opacity: 0;
  99. transition: opacity .3s ease-in-out;
  100. // &:hover{opacity: 1;}
  101. }
  102. #pagination{
  103. color:#fff;
  104. font-size: 1em;
  105. padding: 1mm 0;
  106. letter-spacing: -.25em;
  107. &>*{letter-spacing: normal;}
  108. div{
  109. display: inline-block;
  110. width:49.9%;
  111. span.p{
  112. display: inline-block;
  113. vertical-align: middle;
  114. min-width: 3em;
  115. text-align: center;
  116. }
  117. span.l{
  118. cursor: pointer;
  119. line-height: -1em;
  120. &.hidden{visibility: hidden;}
  121. }
  122. &.wrapper-l{
  123. left:0; text-align: right;
  124. // span.p{text-align: left;}
  125. }
  126. &.wrapper-r{
  127. right:0; text-align: left; border-left: 1px solid white;
  128. // span.p{text-align: right;}
  129. }
  130. }
  131. opacity: 0.3;
  132. transition: opacity .3s ease-in-out;
  133. &:hover{opacity: 1;}
  134. }
  135. #railway{
  136. // background-color: blue;
  137. ul{
  138. padding:1mm 0; margin:0;
  139. text-align: justify;
  140. display: flex;
  141. flex-flow: row nowrap;
  142. justify-content: space-between;
  143. li{
  144. // display: inline-block; vertical-align: middle;
  145. // display:
  146. list-style: none;
  147. opacity:0.2;
  148. transition: opacity 0.3s ease-in-out;
  149. &.current, &.active:hover{opacity: 1;}
  150. span{
  151. display: inline-block;
  152. background-color: white;
  153. width:1mm; height:7mm;
  154. // margin-left: 0.5mm;
  155. background-position: center;
  156. background-size: cover;
  157. &.active{
  158. width:7mm; cursor: pointer;
  159. }
  160. &.page-right{
  161. // margin-right: 1mm;
  162. }
  163. }
  164. }
  165. &:hover li{opacity: 1;}
  166. }
  167. }