You are here

commerce_braintree_hostedfields.css in Commerce Braintree 7.2

/* Commerce Braintree Hosted Fields -- Default Styles */
.braintree-form {
  overflow: hidden;
  margin: 1rem 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.braintree-form #edit-commerce-payment-payment-details-braintree-number,
.braintree-form #edit-commerce-payment-payment-details-braintree-cvv {
  width: auto;
}

.braintree-form .payment-details-method-title,
.braintree-form .paypal-method-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.braintree-form .form-item {
  margin-bottom: .5rem;
}

.braintree-form #edit-commerce-payment-payment-details-braintree-cc,
.braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
.braintree-form #edit-payment-details-braintree-cc,
.braintree-form #edit-payment-details-braintree-paypal,
.braintree-form #edit-cc,
.braintree-form #edit-paypal {
  padding: 1rem 0;
}

.braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
.braintree-form #edit-payment-details-braintree-paypal,
.braintree-form #edit-paypal{
  border-top: 1px solid #ececec;
}

.braintree-form #edit-commerce-payment-payment-details-braintree-cc-expiration .form-type-item,
.braintree-form #edit-payment-details-braintree-cc-expiration .form-type-item,
.braintree-form #edit-expiration .form-type-item {
  padding: 0;
}

.braintree-form .commerce-month-year-divider {
  display: none;
}

.braintree-hosted-field {
  height: 1.2em;
  border: 1px solid #D6D2C4;
  padding: 5px;
  background: #FFF;
  box-sizing: content-box;
  width: auto;
}

.braintree-hosted-fields-focused {
  border-color: #777;
}

.braintree-hosted-fields-invalid {
  border-color: red;
}

.braintree-hosted-fields-valid {
  border-color: limegreen;
}

/* Commerce Braintree Hosted Fields -- Responsive Styles */
@media only screen and (min-width: 768px) {
  .braintree-form {
    display: flex;
  }

  .braintree-form #edit-commerce-payment-payment-details-braintree-cc,
  .braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
  .braintree-form #edit-payment-details-braintree-cc,
  .braintree-form #edit-payment-details-braintree-paypal,
  .braintree-form #edit-cc,
  .braintree-form #edit-paypal {
    border: none;
    width: calc(50% - 1rem - 1px);
    display: block;
    float: left;
  }

  .braintree-form #edit-commerce-payment-payment-details-braintree-cc,
  .braintree-form #edit-payment-details-braintree-cc,
  .braintree-form #edit-cc {
    padding-right: 1rem;
  }

  .braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
  .braintree-form #edit-payment-details-braintree-paypal,
  .braintree-form #edit-paypal {
    padding-left: 1rem;
    border-left: 1px solid #ececec;
  }

  .braintree-form #edit-commerce-payment-payment-details-braintree-cc-expiration,
  .braintree-form #edit-payment-details-braintree-cc-expiration,
  .braintree-form #edit-expiration {
    display: flex;
  }

  .braintree-form #edit-commerce-payment-payment-details-braintree-cc-expiration .form-type-item,
  .braintree-form #edit-payment-details-braintree-cc-expiration .form-type-item,
  .braintree-form #edit-expiration .form-type-item {
    flex-grow: 2;
  }

  .braintree-form .commerce-month-year-divider {
    display: block;
    margin: auto 1rem .5rem 1rem;
    width: .75rem;
    text-align: center;
    line-height: 1.2em;
    height: 1.2em;
    padding: 5px 0;
  }
}

File

modules/commerce_braintree_hostedfields/css/commerce_braintree_hostedfields.css
View source
  1. /* Commerce Braintree Hosted Fields -- Default Styles */
  2. .braintree-form {
  3. overflow: hidden;
  4. margin: 1rem 0;
  5. border-top: 1px solid #ececec;
  6. border-bottom: 1px solid #ececec;
  7. }
  8. .braintree-form #edit-commerce-payment-payment-details-braintree-number,
  9. .braintree-form #edit-commerce-payment-payment-details-braintree-cvv {
  10. width: auto;
  11. }
  12. .braintree-form .payment-details-method-title,
  13. .braintree-form .paypal-method-title {
  14. font-size: 1.25rem;
  15. margin-bottom: 1rem;
  16. font-weight: bold;
  17. }
  18. .braintree-form .form-item {
  19. margin-bottom: .5rem;
  20. }
  21. .braintree-form #edit-commerce-payment-payment-details-braintree-cc,
  22. .braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
  23. .braintree-form #edit-payment-details-braintree-cc,
  24. .braintree-form #edit-payment-details-braintree-paypal,
  25. .braintree-form #edit-cc,
  26. .braintree-form #edit-paypal {
  27. padding: 1rem 0;
  28. }
  29. .braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
  30. .braintree-form #edit-payment-details-braintree-paypal,
  31. .braintree-form #edit-paypal{
  32. border-top: 1px solid #ececec;
  33. }
  34. .braintree-form #edit-commerce-payment-payment-details-braintree-cc-expiration .form-type-item,
  35. .braintree-form #edit-payment-details-braintree-cc-expiration .form-type-item,
  36. .braintree-form #edit-expiration .form-type-item {
  37. padding: 0;
  38. }
  39. .braintree-form .commerce-month-year-divider {
  40. display: none;
  41. }
  42. .braintree-hosted-field {
  43. height: 1.2em;
  44. border: 1px solid #D6D2C4;
  45. padding: 5px;
  46. background: #FFF;
  47. box-sizing: content-box;
  48. width: auto;
  49. }
  50. .braintree-hosted-fields-focused {
  51. border-color: #777;
  52. }
  53. .braintree-hosted-fields-invalid {
  54. border-color: red;
  55. }
  56. .braintree-hosted-fields-valid {
  57. border-color: limegreen;
  58. }
  59. /* Commerce Braintree Hosted Fields -- Responsive Styles */
  60. @media only screen and (min-width: 768px) {
  61. .braintree-form {
  62. display: flex;
  63. }
  64. .braintree-form #edit-commerce-payment-payment-details-braintree-cc,
  65. .braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
  66. .braintree-form #edit-payment-details-braintree-cc,
  67. .braintree-form #edit-payment-details-braintree-paypal,
  68. .braintree-form #edit-cc,
  69. .braintree-form #edit-paypal {
  70. border: none;
  71. width: calc(50% - 1rem - 1px);
  72. display: block;
  73. float: left;
  74. }
  75. .braintree-form #edit-commerce-payment-payment-details-braintree-cc,
  76. .braintree-form #edit-payment-details-braintree-cc,
  77. .braintree-form #edit-cc {
  78. padding-right: 1rem;
  79. }
  80. .braintree-form #edit-commerce-payment-payment-details-braintree-paypal,
  81. .braintree-form #edit-payment-details-braintree-paypal,
  82. .braintree-form #edit-paypal {
  83. padding-left: 1rem;
  84. border-left: 1px solid #ececec;
  85. }
  86. .braintree-form #edit-commerce-payment-payment-details-braintree-cc-expiration,
  87. .braintree-form #edit-payment-details-braintree-cc-expiration,
  88. .braintree-form #edit-expiration {
  89. display: flex;
  90. }
  91. .braintree-form #edit-commerce-payment-payment-details-braintree-cc-expiration .form-type-item,
  92. .braintree-form #edit-payment-details-braintree-cc-expiration .form-type-item,
  93. .braintree-form #edit-expiration .form-type-item {
  94. flex-grow: 2;
  95. }
  96. .braintree-form .commerce-month-year-divider {
  97. display: block;
  98. margin: auto 1rem .5rem 1rem;
  99. width: .75rem;
  100. text-align: center;
  101. line-height: 1.2em;
  102. height: 1.2em;
  103. padding: 5px 0;
  104. }
  105. }