main.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. #railway{
  85. position:absolute;
  86. bottom:0; width:100%; // height:2cm;
  87. background-color: rgba(0, 0, 0, 0.7);
  88. overflow: hidden;
  89. text-align: center;
  90. ul{
  91. padding:1mm;
  92. li{
  93. display: inline-block; vertical-align: middle;
  94. background-color: white;
  95. width:1mm; height:7mm;
  96. margin-left: 0.5mm;
  97. background-position: center;
  98. background-size: cover;
  99. &.active{
  100. width:7mm;
  101. }
  102. &.page-right{
  103. margin-right: 1mm;
  104. }
  105. }
  106. }
  107. }
  108. }