Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. /**
  2. * Button
  3. */
  4.  
  5. .mktoButton {
  6. background: #1d4873 !important;
  7. -moz-appearance: none: !important;
  8. -webkit-appearance: none !important;
  9. border-radius: 100px !important;
  10. border: 0 !important;
  11. display: inline-block !important;
  12. cursor: pointer !important;
  13. color: #ffffff !important;
  14. font-family: Arial !important;
  15. font-size: 16px !important;
  16. font-weight: bold !important;
  17. padding: 15px 55px !important;
  18. margin-top: 15px !important;
  19. text-decoration: none !important;
  20. text-transform: uppercase !important;
  21. text-shadow: 0px 0px 0px !important;
  22. }
  23. .mktoButton:hover {
  24. background-color: #1d4873 !important;
  25. }
  26. .mktoButton:active {
  27. position: relative !important;
  28. top: 1px !important;
  29. }
  30. /**
  31. * Steve Tweaks
  32. */
  33. form {
  34. margin-bottom: 0 !important;
  35. }
  36. .mktoForm {
  37. font-family: 'Montserrat', sans-serif !important;
  38. padding: 0 !important;
  39. }
  40. .mktoButtonRow {
  41. display: inherit !important;
  42. text-align: center !important;
  43. }
  44. span.mktoButtonWrap {
  45. margin-left: 0 !important;
  46. }
  47. .mktoForm .mktoLabel {
  48. display: none !important;
  49. }
  50. .mktoForm input, .mktoForm textarea, .mktoForm select {
  51. border: 0 !important;
  52. padding: 12px 15px !important;
  53. height: auto !important;
  54. }
  55. .mktoForm *, .mktoForm *::before, .mktoForm *::after {
  56. box-sizing: border-box;
  57. }
  58. /**
  59. * Set all relevant form elements to have 100% width
  60. */
  61.  
  62. .mktoForm, .mktoForm .mktoField, .mktoForm .mktoHtmlText, .mktoForm .mktoFormCol, .mktoForm .mktoFieldWrap, .mktoForm .mktoCheckboxList, .mktoForm .mktoRadioList {
  63. width: 100% !important;
  64. }
  65. /**
  66. * Hide default gutter and offset elements in Marketo Forms
  67. */
  68.  
  69. .mktoForm .mktoOffset, .mktoForm .mktoGutter {
  70. display: none;
  71. }
  72. /**
  73. * Vertical form row spacing, optional
  74. */
  75.  
  76. .mktoForm .mktoFieldDescriptor {
  77. margin-bottom: 10px;
  78. }
  79.  
  80. /**
  81. * This is a progressive enhancement for all browsers that support
  82. * flexbox (IE10+). Other browser will just show the form fields in
  83. * one column opposed to multiple columns.
  84. *
  85. * 1. Breakpoint: One column -> Multiple columns
  86. * 2. Column gutter width
  87. */
  88.  
  89. @media (min-width: 740px) { /* [1] */
  90. .mktoForm .mktoFormRow {
  91. display: -webkit-box;
  92. display: -ms-flexbox;
  93. display: flex;
  94. margin-right: -10px; /* [2] */
  95. }
  96. .mktoForm .mktoFormRow .mktoFormCol {
  97. min-width: 0;
  98. padding-right: 10px; /* [2] */
  99. }
  100. }
  101. /*
  102. * As we removed all default styling, we have to show the asterix and
  103. * checkboxes/radio button in the same line than labels
  104. */
  105.  
  106. .mktoForm .mktoAsterix, .mktoForm .mktoCheckboxList input, .mktoForm .mktoRadioList input {
  107. display: inline-block;
  108. width: auto !important;
  109. }
  110. /**
  111. * As textboxes are always 100% wide, there's no need to resize them horizontally
  112. */
  113.  
  114. .mktoForm textarea.mktoField {
  115. resize: vertical !important; /* [1] */
  116. }
  117. /*------------------------------------*\
  118. #CUSTOM-STYLES
  119. \*------------------------------------*/
  120.  
  121. /**
  122. * Visually hide the input elements by moving them outside the visible area.
  123. */
  124.  
  125. .mktoForm .mktoCheckboxList > input, .mktoForm .mktoRadioList > input {
  126. position: absolute;
  127. left: -9999px;
  128. }
  129. /**
  130. * 1. Fake checkboxes/radio buttons will be positioned relatively to this element.
  131. * 2. Adjust padding to your needs. Please note that the left padding needs to be
  132. * higher to leave space for the custom checkbox.
  133. */
  134.  
  135. .mktoForm .mktoCheckboxList > label, .mktoForm .mktoRadioList > label {
  136. position: relative; /* [1] */
  137. padding: 0 0 5px 33px; /* [2] */
  138. }
  139. /**
  140. * Fake checkboxes to allow custom styling. These styles are for unchecked checkboxes
  141. * or radio button.
  142. */
  143.  
  144. .mktoForm .mktoCheckboxList label::before, .mktoForm .mktoRadioList label::before {
  145. position: absolute;
  146. top: 0;
  147. left: 0;
  148. width: 18px;
  149. height: 18px;
  150. background: lightgray;
  151. border: 2px solid lightgray;
  152. content: "";
  153. }
  154. /**
  155. * Styling for the checked state of checkboxes and radio buttons.
  156. */
  157.  
  158. .mktoForm .mktoCheckboxList input:checked + label::before, .mktoForm .mktoRadioList input:checked + label::before {
  159. background-color: red;
  160. }
  161. /**
  162. * Style radio buttons slightly differently.
  163. */
  164.  
  165. .mktoForm .mktoRadioList label::before {
  166. border-radius: 50%;
  167. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement