Advertisement
EBQ_Will_Meeks

EBQ Pardot Form Layout Code

Dec 19th, 2018
1,317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.44 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <link rel="stylesheet" href="https://use.typekit.net/kww8guo.css">
  5.         <base href="" >
  6.         <meta charset="utf-8"/>
  7.         <meta name="description" content="%%description%%"/>
  8.        
  9.         <title>%%title%%</title>
  10.        
  11.         <style>
  12.        
  13. /**********STEP ONE*********/      
  14. /* Single Line field tweaks */
  15.   form.form input {
  16.       border-top-width: 0px;
  17.       border-left-width:0px;
  18.       border-right-width:0px;
  19.       border-color: #ddd;
  20.       border-bottom-width:1px;
  21.   }
  22. /*Stylizes Dropdown menus */
  23.  
  24. select {
  25.     border-color: #ddd;
  26.     border-top-width: 0px;
  27.     border-right-width: 0px;
  28.     border-left-width: 0px;
  29.     color: #75758b;
  30. }
  31. /* Hides blue highlight around fields */
  32. /input.text {
  33.     user-select: none;
  34.     padding-left: 5px;
  35. }
  36.  
  37. input.text:focus {
  38.     outline: none !important;
  39. }
  40.  
  41. select:focus {
  42.     outline: none !important;
  43. }      
  44. /* Recolors Bottom border to blue with smooth transition */
  45. form.form input.text:focus {
  46.     border-color: #2979f2;
  47.     border-bottom-width: 1px;
  48.     transition-duration: .3s;
  49.     transition-timing-function: ease-in-out;
  50. }      
  51.  
  52. select:focus {
  53.     border-color: #2979f2;
  54. }
  55.  
  56.  
  57. /****** STEP TWO *******/
  58.  
  59. .pd-text label, .pd-select label, .pd-textarea label {
  60.     display:none !important;
  61.    
  62. }
  63.  
  64. /*Hides Required label*/
  65. #pardot-form p.required label, #pardot-form span.required label {
  66. display: none !important;
  67. }
  68.  
  69. /**** STEP THREE ******/
  70. /*Font family & weight */
  71.  p {
  72.  font-family: proxima-nova, sans-serif;
  73.   font-weight: 300;
  74.   }
  75.  
  76. /* Input Text Styles */
  77. body form.form input.text, body form.form select {
  78.     width: 100% !important;
  79.     font-family: proxima-nova, sans-serif;
  80.     font-size: 16PX;
  81. }
  82.  
  83. /***** STEP FOUR *****/
  84. /*Button styling*/
  85. form.form p.submit input {
  86.         border-radius: 5px 5px 5px 5px;
  87.     box-shadow: 0 -3px rgba(0,0,0,0.1) inset;
  88.     color: #FFF;
  89.     font-family: proxima-nova, sans-serif;
  90.     font-weight: 700;
  91.     font-size: 12px;
  92.     letter-spacing: 2px;
  93.     padding: 13px 18px;
  94.     position: relative;
  95.     text-transform: uppercase;
  96.     top: -3px;
  97.     margin-bottom: 10px;
  98.     opacity: 1;
  99.     line-height: 20px;
  100.     display: inline-block;
  101.     border-width: 0px !important;
  102.     background: linear-gradient(125deg,#2979f2,#2979f2);
  103.     padding-left: 60px;
  104.     padding-right: 60px;
  105.     display: table;
  106.     margin: auto;
  107.     margin-top: 50px !important;
  108. }
  109. /*button hover Styling*/
  110. form.form p.submit input:hover {
  111.     background: linear-gradient(125deg,#4a8df4,#4a8df4);
  112.     box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
  113.     -ms-transform: translateY(-3px);
  114.     transform: translateY(-3px);
  115.     -webkit-transform: translateY(-3px);
  116.     transition-duration: .2s;
  117.     transition-timing-function: ease-in-out;
  118. }
  119. /***** STEP 5 (TWEAKS) ****/
  120. /* Inline Label for Checkboxes fix */
  121. form.form p label.inline {
  122.     background: 0;
  123.     display: inline;
  124.     float: none;
  125.     font-weight: normal;
  126.     line-height: 2em;
  127.     margin-right: 10px;
  128.     padding: 0;
  129.     text-align: left;
  130.     vertical-align: baseline
  131. }
  132.  
  133. /* Recolors error text Red */
  134. .errors {
  135.     color: red;
  136. }
  137.  
  138. .error .no-label {
  139. color: red;
  140. }
  141.  
  142. /* Adds margin below fields */
  143. input {
  144.     margin-bottom: 10px;
  145. }
  146.  
  147. /* Adds margin to form fields */
  148. .form-field {
  149.     margin-bottom: 30px;
  150. }
  151.  
  152.  
  153. /******** OPTIONAL 1 ******/
  154. /* Jenna Molby's Two Column CSS */  
  155. body form.form div.form-col-1 {
  156.     float: left !important;
  157.     clear: left; !important;
  158.     width: 49% !important;
  159.     padding-left: 0 !important;
  160.     margin-right: 0 !important;
  161.     margin-left: 0 !important;
  162.     padding-bottom:10px;
  163. }
  164. body form.form div.form-col-2 {
  165.     float: right !important;
  166.     clear: right !important;
  167.     width: 49% !important;
  168.     padding-right: 0 !important;
  169.     padding-left: 0 !important;
  170.     margin-right: 0 !important;
  171.     margin-left: 0 !important;
  172.     padding-bottom:10px;
  173. }
  174. body form.form div.form-col-full {
  175.     width: 100%;
  176.     padding-right: 0 !important;
  177.     padding-left: 0 !important;
  178.     margin-right: 0 !important;
  179.     margin-left: 0 !important;
  180.     padding-bottom:10px;
  181. }
  182. body form.form input.text, body form.form select {
  183.     width: 100% !important;
  184. }
  185. @media only screen and (max-width: 768px) {
  186.     body form.form div.form-col-1 {
  187.         float: none !important;
  188.         width: 100% !important;
  189.         padding-right: 0 !important;
  190.     }
  191.     body form.form div.form-col-2 {
  192.         float: none !important;
  193.         width: 100% !important;
  194.     }
  195. }
  196.  
  197.  
  198. </style>
  199.     </head>
  200.  
  201.  
  202.    
  203.    
  204.     <body>
  205.         %%content%%
  206.     </body>
  207. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement