_pricing-tables.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // Foundation by ZURB
  2. // foundation.zurb.com
  3. // Licensed under MIT Open Source
  4. @import 'global';
  5. //
  6. // @variables
  7. //
  8. $include-html-pricing-classes: $include-html-classes !default;
  9. // We use this to control the border color
  10. $price-table-border: solid 1px $gainsboro !default;
  11. // We use this to control the bottom margin of the pricing table
  12. $price-table-margin-bottom: rem-calc(20) !default;
  13. // We use these to control the title styles
  14. $price-title-bg: $oil !default;
  15. $price-title-padding: rem-calc(15 20) !default;
  16. $price-title-align: center !default;
  17. $price-title-color: $smoke !default;
  18. $price-title-weight: $font-weight-normal !default;
  19. $price-title-size: rem-calc(16) !default;
  20. $price-title-font-family: $body-font-family !default;
  21. // We use these to control the price styles
  22. $price-money-bg: $vapor !default;
  23. $price-money-padding: rem-calc(15 20) !default;
  24. $price-money-align: center !default;
  25. $price-money-color: $oil !default;
  26. $price-money-weight: $font-weight-normal !default;
  27. $price-money-size: rem-calc(32) !default;
  28. $price-money-font-family: $body-font-family !default;
  29. // We use these to control the description styles
  30. $price-bg: $white !default;
  31. $price-desc-color: $monsoon !default;
  32. $price-desc-padding: rem-calc(15) !default;
  33. $price-desc-align: center !default;
  34. $price-desc-font-size: rem-calc(12) !default;
  35. $price-desc-weight: $font-weight-normal !default;
  36. $price-desc-line-height: 1.4 !default;
  37. $price-desc-bottom-border: dotted 1px $gainsboro !default;
  38. // We use these to control the list item styles
  39. $price-item-color: $oil !default;
  40. $price-item-padding: rem-calc(15) !default;
  41. $price-item-align: center !default;
  42. $price-item-font-size: rem-calc(14) !default;
  43. $price-item-weight: $font-weight-normal !default;
  44. $price-item-bottom-border: dotted 1px $gainsboro !default;
  45. // We use these to control the CTA area styles
  46. $price-cta-bg: $white !default;
  47. $price-cta-align: center !default;
  48. $price-cta-padding: rem-calc(20 20 0) !default;
  49. // @mixins
  50. //
  51. // We use this to create the container element for the pricing tables
  52. @mixin pricing-table-container {
  53. border: $price-table-border;
  54. margin-#{$default-float}: 0;
  55. margin-bottom: $price-table-margin-bottom;
  56. & * {
  57. list-style: none;
  58. line-height: 1;
  59. }
  60. }
  61. // @mixins
  62. //
  63. // We use this mixin to create the pricing table title styles
  64. @mixin pricing-table-title {
  65. background-color: $price-title-bg;
  66. color: $price-title-color;
  67. font-family: $price-title-font-family;
  68. font-size: $price-title-size;
  69. font-weight: $price-title-weight;
  70. padding: $price-title-padding;
  71. text-align: $price-title-align;
  72. }
  73. // @mixins
  74. //
  75. // We use this mixin to control the pricing table price styles
  76. @mixin pricing-table-price {
  77. background-color: $price-money-bg;
  78. color: $price-money-color;
  79. font-family: $price-money-font-family;
  80. font-size: $price-money-size;
  81. font-weight: $price-money-weight;
  82. padding: $price-money-padding;
  83. text-align: $price-money-align;
  84. }
  85. // @mixins
  86. //
  87. // We use this mixin to create the description styles for the pricing table
  88. @mixin pricing-table-description {
  89. background-color: $price-bg;
  90. border-bottom: $price-desc-bottom-border;
  91. color: $price-desc-color;
  92. font-size: $price-desc-font-size;
  93. font-weight: $price-desc-weight;
  94. line-height: $price-desc-line-height;
  95. padding: $price-desc-padding;
  96. text-align: $price-desc-align;
  97. }
  98. // @mixins
  99. //
  100. // We use this mixin to style the bullet items in the pricing table
  101. @mixin pricing-table-bullet {
  102. background-color: $price-bg;
  103. border-bottom: $price-item-bottom-border;
  104. color: $price-item-color;
  105. font-size: $price-item-font-size;
  106. font-weight: $price-item-weight;
  107. padding: $price-item-padding;
  108. text-align: $price-item-align;
  109. }
  110. // @mixins
  111. //
  112. // We use this mixin to style the CTA area of the pricing tables
  113. @mixin pricing-table-cta {
  114. background-color: $price-cta-bg;
  115. padding: $price-cta-padding;
  116. text-align: $price-cta-align;
  117. }
  118. @include exports("pricing-table") {
  119. @if $include-html-pricing-classes {
  120. /* Pricing Tables */
  121. .pricing-table {
  122. @include pricing-table-container;
  123. .title { @include pricing-table-title; }
  124. .price { @include pricing-table-price; }
  125. .description { @include pricing-table-description; }
  126. .bullet-item { @include pricing-table-bullet; }
  127. .cta-button { @include pricing-table-cta; }
  128. }
  129. }
  130. }