123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- /* fix h1 baseline (from reset.css) */
- .p5-side_panel__header h1 {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
- }
- /* fix panel__close if button */
- .p5-side_panel__close {
- border: 0;
- padding: 0;
- background: #0000;
- cursor: pointer;
- outline: none;
- }
- /* --------------------------------
- Slide In Panel - by CodyHouse.co
- -------------------------------- */
- .p5-side_panel {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- visibility: hidden;
- -webkit-transition: visibility 0s 0.6s;
- transition: visibility 0s 0.6s;
- }
- .p5-side_panel::after {
- /* overlay layer */
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: transparent;
- cursor: pointer;
- -webkit-transition: background 0.3s 0.3s;
- transition: background 0.3s 0.3s;
- }
- .p5-side_panel.p5-side_panel--is-visible {
- visibility: visible;
- -webkit-transition: visibility 0s 0s;
- transition: visibility 0s 0s;
- }
- .p5-side_panel.p5-side_panel--is-visible::after {
- background: rgba(0, 0, 0, 0.6);
- -webkit-transition: background 0.3s 0s;
- transition: background 0.3s 0s;
- }
- .p5-side_panel__header {
- position: fixed;
- width: 90%;
- height: 50px;
- line-height: 50px;
- /* background: rgba(255, 255, 255, 0.96); */
- background-color: #f5f5f5;
- background-color: #f5f5f5f5;
- background-color: #eeeeee;
- background-color: #eeeeeef5;
- /* border-bottom: 1px solid #ddd; */
- z-index: 2;
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
- -webkit-transition: -webkit-transform 0.3s 0s;
- transition: -webkit-transform 0.3s 0s;
- transition: transform 0.3s 0s;
- transition: transform 0.3s 0s, -webkit-transform 0.3s 0s;
- -webkit-transform: translateY(-50px);
- -ms-transform: translateY(-50px);
- transform: translateY(-50px);
- }
- .p5-side_panel__header h1 {
- color: #000;
- font-weight: bold;
- font-size: 16px;
- padding-left: 5%;
- }
- .p5-side_panel--from-right .p5-side_panel__header {
- right: 0;
- }
- .p5-side_panel--from-left .p5-side_panel__header {
- left: 0;
- }
- .p5-side_panel--is-visible .p5-side_panel__header {
- -webkit-transition: -webkit-transform 0.3s 0.3s;
- transition: -webkit-transform 0.3s 0.3s;
- transition: transform 0.3s 0.3s;
- transition: transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px);
- }
- @media only screen and (min-width: 768px) {
- .p5-side_panel__header {
- width: 70%;
- }
- }
- @media only screen and (min-width: 1170px) {
- .p5-side_panel__header {
- width: 50%;
- }
- }
- .p5-side_panel__close {
- position: absolute;
- top: 0;
- right: 0;
- height: 100%;
- width: 60px;
- /* image replacement */
- display: inline-block;
- overflow: hidden;
- text-indent: 100%;
- white-space: nowrap;
- }
- .p5-side_panel__close::before,
- .p5-side_panel__close::after {
- /* close icon created in CSS */
- content: '';
- position: absolute;
- top: 22px;
- left: 20px;
- height: 3px;
- width: 20px;
- background-color: #424f5c;
- /* this fixes a bug where pseudo elements are slighty off position */
- -webkit-backface-visibility: hidden;
- backface-visibility: hidden;
- }
- .p5-side_panel__close::before {
- -webkit-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- transform: rotate(45deg);
- }
- .p5-side_panel__close::after {
- -webkit-transform: rotate(-45deg);
- -ms-transform: rotate(-45deg);
- transform: rotate(-45deg);
- }
- .p5-side_panel__close:hover {
- background-color: #424f5c;
- }
- .p5-side_panel__close:hover::before,
- .p5-side_panel__close:hover::after {
- background-color: #fff;
- }
- .p5-side_panel__container {
- position: fixed;
- width: 90%;
- height: 100%;
- top: 0;
- background: #fff;
- z-index: 1;
- -webkit-transition: -webkit-transform 0.3s 0.3s;
- transition: -webkit-transform 0.3s 0.3s;
- transition: transform 0.3s 0.3s;
- transition: transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
- }
- .p5-side_panel--from-right .p5-side_panel__container {
- right: 0;
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0);
- }
- .p5-side_panel--from-left .p5-side_panel__container {
- left: 0;
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
- }
- .p5-side_panel--is-visible .p5-side_panel__container {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- -webkit-transition-delay: 0s;
- transition-delay: 0s;
- }
- @media only screen and (min-width: 768px) {
- .p5-side_panel__container {
- width: 70%;
- }
- }
- @media only screen and (min-width: 1170px) {
- .p5-side_panel__container {
- width: 50%;
- }
- }
- .p5-side_panel__content {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- padding: 70px 5%;
- overflow: auto;
- /* smooth scrolling on touch devices */
- -webkit-overflow-scrolling: touch;
- }
- .p5-side_panel__content p {
- /* font-size: 1.4rem; */
- color: #424f5c;
- line-height: 1.4;
- margin: 0 0 2em 0;
- }
- /* @media only screen and (min-width: 768px) {
- .p5-side_panel__content p {
- font-size: 1.6rem;
- line-height: 1.6;
- }
- } */
|