main.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. z-index: 3;
  81. cursor: pointer;
  82. &[debug="true"]{
  83. background-color: rgba(0, 0, 250, 0.4);
  84. }
  85. }
  86. .repere{
  87. position: absolute;
  88. cursor: pointer;
  89. background-size: contain;
  90. background-repeat: no-repeat;
  91. background-position: center;
  92. z-index: 2;
  93. }
  94. }
  95. }
  96. }
  97. #navigation{
  98. width:$main_w;
  99. height:$navh;
  100. overflow: hidden;
  101. $ml:$tranche_w + $tranche_mr;
  102. margin:0 0 0 $ml;
  103. padding:0;
  104. background-color: rgba(26, 26, 26, 0.7);
  105. // background-color: green;
  106. text-align: center;
  107. // opacity: 0;
  108. transition: opacity .3s ease-in-out;
  109. // &:hover{opacity: 1;}
  110. }
  111. #pagination{
  112. color:#fff;
  113. font-size: 1em;
  114. padding: 1mm 0;
  115. letter-spacing: -.25em;
  116. &>*{letter-spacing: normal;}
  117. div{
  118. display: inline-block;
  119. width:49.9%;
  120. span.p{
  121. display: inline-block;
  122. vertical-align: middle;
  123. min-width: 3em;
  124. text-align: center;
  125. }
  126. span.l{
  127. cursor: pointer;
  128. line-height: -1em;
  129. &.hidden{visibility: hidden;}
  130. }
  131. &.wrapper-l{
  132. left:0; text-align: right;
  133. // span.p{text-align: left;}
  134. }
  135. &.wrapper-r{
  136. right:0; text-align: left; border-left: 1px solid white;
  137. // span.p{text-align: right;}
  138. }
  139. }
  140. opacity: 0.3;
  141. transition: opacity .3s ease-in-out;
  142. &:hover{opacity: 1;}
  143. }
  144. #railway{
  145. // background-color: blue;
  146. ul{
  147. padding:1mm 0; margin:0;
  148. text-align: justify;
  149. display: flex;
  150. flex-flow: row nowrap;
  151. justify-content: space-between;
  152. li{
  153. // display: inline-block; vertical-align: middle;
  154. // display:
  155. list-style: none;
  156. opacity:0.2;
  157. transition: opacity 0.3s ease-in-out;
  158. &.current, &.active:hover{opacity: 1;}
  159. span{
  160. display: inline-block;
  161. background-color: white;
  162. width:1mm; height:7mm;
  163. // margin-left: 0.5mm;
  164. background-position: center;
  165. background-size: cover;
  166. &.active{
  167. width:7mm; cursor: pointer;
  168. }
  169. &.page-right{
  170. // margin-right: 1mm;
  171. }
  172. }
  173. }
  174. &:hover li{opacity: 1;}
  175. }
  176. }