Advertisement
Guest User

Untitled

a guest
May 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.75 KB | None | 0 0
  1. .product-form {
  2.   @include display-flexbox();
  3.   @include flex-wrap(wrap);
  4.   @include align-items(flex-end);
  5.   width: auto;
  6. }
  7.  
  8. .product-form--payment-button-no-variants {
  9.   max-width: 400px;
  10. }
  11.  
  12. .product-form__item {
  13.   @include flex(1 1 200px);
  14.   margin-bottom: 10px;
  15.   padding: 0 5px;
  16.  
  17.   label {
  18.     display: block;
  19.  
  20.     .product-form--hide-variant-labels & {
  21.       // sass-lint:disable no-important
  22.       position: absolute !important;
  23.       overflow: hidden;
  24.       clip: rect(0 0 0 0);
  25.       height: 1px;
  26.       width: 1px;
  27.       margin: -1px;
  28.       padding: 0;
  29.       border: 0;
  30.     }
  31.   }
  32. }
  33.  
  34. .product-form__item--submit {
  35.   @include flex(1 1 300px);
  36. }
  37.  
  38. .product-form__item--no-variants {
  39.   max-width: 100%;
  40. }
  41.  
  42. .product-form__item--payment-button {
  43.   @include flex-basis(100%);
  44.  
  45.   .product-single--small-image &,
  46.   .product-single--full-image & {
  47.     @include media-query($large-up) {
  48.       display: inline-flex;
  49.       @include flex-direction(row);
  50.       @include align-items(flex-start);
  51.     }
  52.   }
  53.  
  54.   &.product-form__item--no-variants {
  55.     @include flex-direction(column);
  56.     @include align-items(stretch);
  57.   }
  58. }
  59.  
  60. .product-form__variants {
  61.   display: none;
  62.  
  63.   .no-js & {
  64.     display: block;
  65.   }
  66. }
  67.  
  68. .product-form__item--quantity {
  69.   @include flex(0 0 100px);
  70. }
  71.  
  72. .product-form__input {
  73.   display: block;
  74.   width: 100%;
  75. }
  76.  
  77. .product-form__cart-submit {
  78.   display: block;
  79.   width: 100%;
  80.   line-height: 1.4;
  81.   padding-left: 5px;
  82.   padding-right: 5px;
  83.   white-space: normal;
  84.   margin-top: 0px;
  85.   min-height: 44px;
  86.  
  87.   .product-single--small-image &,
  88.   .product-single--full-image & {
  89.     @include flex(50%);
  90.     margin-right: 10px;
  91.   }
  92.  
  93.   .product-form__item--payment-button & {
  94.     margin-top: 10px;
  95.   }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement