SidePanelButton.php.style.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /* fix h1 baseline (from reset.css) */
  2. .p5-side_panel__header h1 {
  3. margin: 0;
  4. padding: 0;
  5. border: 0;
  6. font-size: 100%;
  7. font: inherit;
  8. vertical-align: baseline;
  9. }
  10. /* fix panel__close if button */
  11. .p5-side_panel__close {
  12. border: 0;
  13. padding: 0;
  14. background: #0000;
  15. cursor: pointer;
  16. outline: none;
  17. }
  18. /* --------------------------------
  19. Slide In Panel - by CodyHouse.co
  20. -------------------------------- */
  21. .p5-side_panel {
  22. position: fixed;
  23. top: 0;
  24. left: 0;
  25. height: 100%;
  26. width: 100%;
  27. visibility: hidden;
  28. -webkit-transition: visibility 0s 0.6s;
  29. transition: visibility 0s 0.6s;
  30. }
  31. .p5-side_panel::after {
  32. /* overlay layer */
  33. content: '';
  34. position: absolute;
  35. top: 0;
  36. left: 0;
  37. width: 100%;
  38. height: 100%;
  39. background: transparent;
  40. cursor: pointer;
  41. -webkit-transition: background 0.3s 0.3s;
  42. transition: background 0.3s 0.3s;
  43. }
  44. .p5-side_panel.p5-side_panel--is-visible {
  45. visibility: visible;
  46. -webkit-transition: visibility 0s 0s;
  47. transition: visibility 0s 0s;
  48. }
  49. .p5-side_panel.p5-side_panel--is-visible::after {
  50. background: rgba(0, 0, 0, 0.6);
  51. -webkit-transition: background 0.3s 0s;
  52. transition: background 0.3s 0s;
  53. }
  54. .p5-side_panel__header {
  55. position: fixed;
  56. width: 90%;
  57. height: 50px;
  58. line-height: 50px;
  59. /* background: rgba(255, 255, 255, 0.96); */
  60. background-color: #f5f5f5;
  61. background-color: #f5f5f5f5;
  62. background-color: #eeeeee;
  63. background-color: #eeeeeef5;
  64. /* border-bottom: 1px solid #ddd; */
  65. z-index: 2;
  66. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  67. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  68. -webkit-transition: -webkit-transform 0.3s 0s;
  69. transition: -webkit-transform 0.3s 0s;
  70. transition: transform 0.3s 0s;
  71. transition: transform 0.3s 0s, -webkit-transform 0.3s 0s;
  72. -webkit-transform: translateY(-50px);
  73. -ms-transform: translateY(-50px);
  74. transform: translateY(-50px);
  75. }
  76. .p5-side_panel__header h1 {
  77. color: #000;
  78. font-weight: bold;
  79. font-size: 16px;
  80. padding-left: 5%;
  81. }
  82. .p5-side_panel--from-right .p5-side_panel__header {
  83. right: 0;
  84. }
  85. .p5-side_panel--from-left .p5-side_panel__header {
  86. left: 0;
  87. }
  88. .p5-side_panel--is-visible .p5-side_panel__header {
  89. -webkit-transition: -webkit-transform 0.3s 0.3s;
  90. transition: -webkit-transform 0.3s 0.3s;
  91. transition: transform 0.3s 0.3s;
  92. transition: transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
  93. -webkit-transform: translateY(0px);
  94. -ms-transform: translateY(0px);
  95. transform: translateY(0px);
  96. }
  97. @media only screen and (min-width: 768px) {
  98. .p5-side_panel__header {
  99. width: 70%;
  100. }
  101. }
  102. @media only screen and (min-width: 1170px) {
  103. .p5-side_panel__header {
  104. width: 50%;
  105. }
  106. }
  107. .p5-side_panel__close {
  108. position: absolute;
  109. top: 0;
  110. right: 0;
  111. height: 100%;
  112. width: 60px;
  113. /* image replacement */
  114. display: inline-block;
  115. overflow: hidden;
  116. text-indent: 100%;
  117. white-space: nowrap;
  118. }
  119. .p5-side_panel__close::before,
  120. .p5-side_panel__close::after {
  121. /* close icon created in CSS */
  122. content: '';
  123. position: absolute;
  124. top: 22px;
  125. left: 20px;
  126. height: 3px;
  127. width: 20px;
  128. background-color: #424f5c;
  129. /* this fixes a bug where pseudo elements are slighty off position */
  130. -webkit-backface-visibility: hidden;
  131. backface-visibility: hidden;
  132. }
  133. .p5-side_panel__close::before {
  134. -webkit-transform: rotate(45deg);
  135. -ms-transform: rotate(45deg);
  136. transform: rotate(45deg);
  137. }
  138. .p5-side_panel__close::after {
  139. -webkit-transform: rotate(-45deg);
  140. -ms-transform: rotate(-45deg);
  141. transform: rotate(-45deg);
  142. }
  143. .p5-side_panel__close:hover {
  144. background-color: #424f5c;
  145. }
  146. .p5-side_panel__close:hover::before,
  147. .p5-side_panel__close:hover::after {
  148. background-color: #fff;
  149. }
  150. .p5-side_panel__container {
  151. position: fixed;
  152. width: 90%;
  153. height: 100%;
  154. top: 0;
  155. background: #fff;
  156. z-index: 1;
  157. -webkit-transition: -webkit-transform 0.3s 0.3s;
  158. transition: -webkit-transform 0.3s 0.3s;
  159. transition: transform 0.3s 0.3s;
  160. transition: transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
  161. }
  162. .p5-side_panel--from-right .p5-side_panel__container {
  163. right: 0;
  164. -webkit-transform: translate3d(100%, 0, 0);
  165. transform: translate3d(100%, 0, 0);
  166. }
  167. .p5-side_panel--from-left .p5-side_panel__container {
  168. left: 0;
  169. -webkit-transform: translate3d(-100%, 0, 0);
  170. transform: translate3d(-100%, 0, 0);
  171. }
  172. .p5-side_panel--is-visible .p5-side_panel__container {
  173. -webkit-transform: translate3d(0, 0, 0);
  174. transform: translate3d(0, 0, 0);
  175. -webkit-transition-delay: 0s;
  176. transition-delay: 0s;
  177. }
  178. @media only screen and (min-width: 768px) {
  179. .p5-side_panel__container {
  180. width: 70%;
  181. }
  182. }
  183. @media only screen and (min-width: 1170px) {
  184. .p5-side_panel__container {
  185. width: 50%;
  186. }
  187. }
  188. .p5-side_panel__content {
  189. position: absolute;
  190. top: 0;
  191. left: 0;
  192. width: 100%;
  193. height: 100%;
  194. padding: 70px 5%;
  195. overflow: auto;
  196. /* smooth scrolling on touch devices */
  197. -webkit-overflow-scrolling: touch;
  198. }
  199. .p5-side_panel__content p {
  200. /* font-size: 1.4rem; */
  201. color: #424f5c;
  202. line-height: 1.4;
  203. margin: 0 0 2em 0;
  204. }
  205. /* @media only screen and (min-width: 768px) {
  206. .p5-side_panel__content p {
  207. font-size: 1.6rem;
  208. line-height: 1.6;
  209. }
  210. } */