|
1 | | -#signature-pad{padding-top:250px;margin:auto}.m-signature-pad{position:relative;font-size:10px;width:100%;height:300px;border:1px solid #e8e8e8;background-color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.27),0 0 40px rgba(0,0,0,.08) inset;border-radius:4px}.m-signature-pad:after,.m-signature-pad:before{position:absolute;z-index:-1;content:"";width:40%;height:10px;left:20px;bottom:10px;background:0 0;-webkit-transform:skew(-3deg) rotate(-3deg);-moz-transform:skew(-3deg) rotate(-3deg);-ms-transform:skew(-3deg) rotate(-3deg);-o-transform:skew(-3deg) rotate(-3deg);transform:skew(-3deg) rotate(-3deg);box-shadow:0 8px 12px rgba(0,0,0,.4)}.m-signature-pad:after{left:auto;right:20px;-webkit-transform:skew(3deg) rotate(3deg);-moz-transform:skew(3deg) rotate(3deg);-ms-transform:skew(3deg) rotate(3deg);-o-transform:skew(3deg) rotate(3deg);transform:skew(3deg) rotate(3deg)}.m-signature-pad--body{position:absolute;top:20px;bottom:60px;border:1px solid #f4f4f4;background-color:#fff}.m-signature-pad--body canvas{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:4px;box-shadow:0 0 5px rgba(0,0,0,.02) inset}.m-signature-pad--footer{position:absolute;left:20px;right:20px;bottom:20px;height:40px}.m-signature-pad--footer .description{color:#c3c3c3;text-align:center;font-size:1.2em;margin-top:1.8em}.m-signature-pad--footer .button{position:absolute;bottom:0}.m-signature-pad--footer .button.clear{left:0}.m-signature-pad--footer .button.save{right:0}@media screen and (max-width:1024px){.m-signature-pad{top:0;left:0;right:0;bottom:0;width:auto;height:auto;min-width:250px;min-height:140px;margin:5%}}@media screen and (min-device-width:768px) and (max-device-width:1024px){.m-signature-pad{margin:10%}}@media screen and (max-height:320px){.m-signature-pad--body{left:0;right:0;top:0;bottom:32px}.m-signature-pad--footer{left:20px;right:20px;bottom:4px;height:28px}.m-signature-pad--footer .description{font-size:1em;margin-top:1em}} |
| 1 | + |
| 2 | +#signature-pad { |
| 3 | + padding-top: 250px; |
| 4 | + margin: auto; |
| 5 | +} |
| 6 | +.m-signature-pad { |
| 7 | + |
| 8 | + position: relative; |
| 9 | + font-size: 10px; |
| 10 | + width: 100%; |
| 11 | + height: 300px; |
| 12 | + border: 1px solid #e8e8e8; |
| 13 | + background-color: #fff; |
| 14 | + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset; |
| 15 | + border-radius: 4px; |
| 16 | +} |
| 17 | + |
| 18 | +.m-signature-pad:before, .m-signature-pad:after { |
| 19 | + position: absolute; |
| 20 | + z-index: -1; |
| 21 | + content: ""; |
| 22 | + width: 40%; |
| 23 | + height: 10px; |
| 24 | + left: 20px; |
| 25 | + bottom: 10px; |
| 26 | + background: transparent; |
| 27 | + -webkit-transform: skew(-3deg) rotate(-3deg); |
| 28 | + -moz-transform: skew(-3deg) rotate(-3deg); |
| 29 | + -ms-transform: skew(-3deg) rotate(-3deg); |
| 30 | + -o-transform: skew(-3deg) rotate(-3deg); |
| 31 | + transform: skew(-3deg) rotate(-3deg); |
| 32 | + box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4); |
| 33 | +} |
| 34 | + |
| 35 | +.m-signature-pad:after { |
| 36 | + left: auto; |
| 37 | + right: 20px; |
| 38 | + -webkit-transform: skew(3deg) rotate(3deg); |
| 39 | + -moz-transform: skew(3deg) rotate(3deg); |
| 40 | + -ms-transform: skew(3deg) rotate(3deg); |
| 41 | + -o-transform: skew(3deg) rotate(3deg); |
| 42 | + transform: skew(3deg) rotate(3deg); |
| 43 | +} |
| 44 | + |
| 45 | +.m-signature-pad--body { |
| 46 | + position: absolute; |
| 47 | + top: 20px; |
| 48 | + bottom: 60px; |
| 49 | + border: 1px solid #f4f4f4; |
| 50 | + background-color: white; |
| 51 | +} |
| 52 | + |
| 53 | +.m-signature-pad--body |
| 54 | + canvas { |
| 55 | + position: absolute; |
| 56 | + left: 0; |
| 57 | + top: 0; |
| 58 | + width: 100%; |
| 59 | + height: 100%; |
| 60 | + border-radius: 4px; |
| 61 | + box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset; |
| 62 | + } |
| 63 | + |
| 64 | +.m-signature-pad--footer { |
| 65 | + position: absolute; |
| 66 | + left: 20px; |
| 67 | + right: 20px; |
| 68 | + bottom: 20px; |
| 69 | + height: 40px; |
| 70 | +} |
| 71 | + |
| 72 | +.m-signature-pad--footer |
| 73 | + .description { |
| 74 | + color: #C3C3C3; |
| 75 | + text-align: center; |
| 76 | + font-size: 1.2em; |
| 77 | + margin-top: 1.8em; |
| 78 | + } |
| 79 | + |
| 80 | +.m-signature-pad--footer |
| 81 | + .button { |
| 82 | + position: absolute; |
| 83 | + bottom: 0; |
| 84 | + } |
| 85 | + |
| 86 | +.m-signature-pad--footer |
| 87 | + .button.clear { |
| 88 | + left: 0; |
| 89 | + } |
| 90 | + |
| 91 | +.m-signature-pad--footer |
| 92 | + .button.save { |
| 93 | + right: 0; |
| 94 | + } |
| 95 | + |
| 96 | +@media screen and (max-width: 1024px) { |
| 97 | + .m-signature-pad { |
| 98 | + top: 0; |
| 99 | + left: 0; |
| 100 | + right: 0; |
| 101 | + bottom: 0; |
| 102 | + width: auto; |
| 103 | + height: auto; |
| 104 | + min-width: 250px; |
| 105 | + min-height: 140px; |
| 106 | + margin: 5%; |
| 107 | + } |
| 108 | + |
| 109 | +} |
| 110 | + |
| 111 | +@media screen and (min-device-width: 768px) and (max-device-width: 1024px) { |
| 112 | + .m-signature-pad { |
| 113 | + margin: 10%; |
| 114 | + } |
| 115 | +} |
| 116 | + |
| 117 | +@media screen and (max-height: 320px) { |
| 118 | + .m-signature-pad--body { |
| 119 | + left: 0; |
| 120 | + right: 0; |
| 121 | + top: 0; |
| 122 | + bottom: 32px; |
| 123 | + } |
| 124 | + .m-signature-pad--footer { |
| 125 | + left: 20px; |
| 126 | + right: 20px; |
| 127 | + bottom: 4px; |
| 128 | + height: 28px; |
| 129 | + } |
| 130 | + .m-signature-pad--footer |
| 131 | + .description { |
| 132 | + font-size: 1em; |
| 133 | + margin-top: 1em; |
| 134 | + } |
| 135 | +} |
0 commit comments