titlepage.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /* --------------------------------------------- animated burger menu --- */
  2. /* from https://www.cssscript.com/morphing-side-menu-with-pure-css-css3/ */
  3. .menu {
  4. position:fixed;
  5. /* position: absolute; */
  6. top: 0;
  7. left: 0;
  8. z-index: 1000;
  9. height: 70px;
  10. width: 70px;
  11. overflow: hidden;
  12. pointer-events: none;
  13. -webkit-user-select: none;
  14. -moz-user-select: none;
  15. -ms-user-select: none;
  16. user-select: none;
  17. }
  18. .menu * {
  19. -webkit-backface-visibility: hidden;
  20. backface-visibility: hidden;
  21. }
  22. #menuTrigger:checked ~ .menu { pointer-events: auto; }
  23. #menuTrigger:checked ~ .menu h3 {
  24. -webkit-transform: translate3d(0, 0, 0);
  25. transform: translate3d(0, 0, 0);
  26. -webkit-transition-delay: 0.2s;
  27. transition-delay: 0.2s;
  28. }
  29. #menuTrigger:checked ~ header>.site-branding p {
  30. color: green !important;
  31. display: flex !important;
  32. }
  33. .menu ~ header {
  34. display: none !important;
  35. }
  36. #menuTrigger:checked ~ header {
  37. display: flex !important;
  38. }
  39. #menuTrigger:checked ~ #masthead {
  40. -webkit-transform: translate3d(0, 0, 0);
  41. transform: translate3d(0, 0, 0);
  42. -webkit-transition-delay: 0.2s;
  43. transition-delay: 0.2s;
  44. }
  45. .menu .trigger {
  46. position: absolute;
  47. z-index: 0;
  48. top: 10px;
  49. left: 10px;
  50. height: 56px;
  51. width: 56px;
  52. border-radius: 100%;
  53. cursor: pointer;
  54. pointer-events: auto;
  55. -webkit-transition: all 0.4s ease-in-out;
  56. transition: all 0.4s ease-in-out;
  57. -webkit-transition-property: -webkit-transform, box-shadow;
  58. transition-property: transform, box-shadow;
  59. -webkit-transform: translate3d(0, 0, 0);
  60. transform: translate3d(0, 0, 0);
  61. box-shadow: 0 0 0 0px #424242;
  62. }
  63. .menu .trigger:before {
  64. content: '';
  65. position: absolute;
  66. top: 0;
  67. left: 0;
  68. height: 100%;
  69. width: 100%;
  70. border-radius: inherit;
  71. overflow: hidden;
  72. -webkit-transform: translate3d(0, 0, 0);
  73. transform: translate3d(0, 0, 0);
  74. -webkit-transition: box-shadow 0.2s 0.4s ease-in-out;
  75. transition: box-shadow 0.2s 0.4s ease-in-out;
  76. box-shadow: 0 0 0 28px #424242 inset, 0 0 0 28px #FF5722 inset;
  77. }
  78. #menuTrigger:checked ~ .menu .trigger {
  79. /* -webkit-transform: translate3d(94px, 0, 0); */
  80. /* transform: translate3d(94px, 0, 0); */
  81. /* box-shadow: 0 0 0 370px #424242; */
  82. }
  83. #menuTrigger:checked ~ .menu .trigger:before {
  84. -webkit-transition-delay: 0s;
  85. transition-delay: 0s;
  86. box-shadow: 0 0 0 0 #424242 inset, 0 0 0 28px #FF5722 inset;
  87. }
  88. #menuTrigger:checked ~ .menu .trigger .line:nth-child(1) {
  89. -webkit-transform: translateY(0) translate3d(-50%, -50%, 0);
  90. transform: translateY(0) translate3d(-50%, -50%, 0);
  91. }
  92. #menuTrigger:checked ~ .menu .trigger .line:nth-child(3) {
  93. -webkit-transform: translateY(0) translate3d(-50%, -50%, 0);
  94. transform: translateY(0) translate3d(-50%, -50%, 0);
  95. }
  96. .menu .trigger .line {
  97. position: absolute;
  98. top: 50%;
  99. left: 50%;
  100. background: white;
  101. height: 2px;
  102. width: 18.66667px;
  103. -webkit-transform: translate3d(-50%, -50%, 0);
  104. transform: translate3d(-50%, -50%, 0);
  105. -webkit-transition: -webkit-transform 0.4s ease-in-out;
  106. transition: transform 0.4s ease-in-out;
  107. }
  108. .menu .trigger .line:nth-child(1) {
  109. -webkit-transform: translateY(-5px) translate3d(-50%, -50%, 0);
  110. transform: translateY(-5px) translate3d(-50%, -50%, 0);
  111. }
  112. .menu .trigger .line:nth-child(3) {
  113. -webkit-transform: translateY(5px) translate3d(-50%, -50%, 0);
  114. transform: translateY(5px) translate3d(-50%, -50%, 0);
  115. }
  116. #menuTrigger {
  117. position: fixed;
  118. top: 0;
  119. left: -60px;
  120. }
  121. /* ----------------------------------------- end animated burger menu --- */
  122. /* ------------------------------------------------------ hide footer --- */
  123. .site-info {
  124. display: none !important;
  125. }
  126. /* -------------------------------------------------- full size image --- */
  127. * {
  128. margin: 0;
  129. padding: 0;
  130. }
  131. .imgbox {
  132. display: grid;
  133. height: 100%;
  134. /* -webkit-animation: sk-bouncedelay 3s infinite ease-in-out both;
  135. animation: sk-bouncedelay 3s infinite ease-in-out both; */
  136. }
  137. .center-fit {
  138. max-width: 100%;
  139. max-height: 100vh;
  140. /* max-width: 99%;
  141. max-height: 99vh; */
  142. margin: auto;
  143. }
  144. @media all and (device-width: 768px) and (device-height: 1024px) {
  145. .imgbox {
  146. /* height: 100vh; */
  147. height: 100%;
  148. display: flex;
  149. /* background-color: red; */
  150. }
  151. .center-fit {
  152. position: relative;
  153. display:block;
  154. /* top: 50%;
  155. left: 50%;
  156. transform: translate(-50%, -50%); */
  157. ;
  158. }