| 1 |
/** |
| 2 |
* Frontend Styles |
| 3 |
*/ |
| 4 |
@import "./variables"; |
| 5 |
|
| 6 |
.ghostkit-pricing-table { |
| 7 |
&-inner { |
| 8 |
display: flex; |
| 9 |
flex-wrap: wrap; |
| 10 |
align-items: var(--gkt-pricing-table__align-items); |
| 11 |
margin-top: calc(-1 * var(--gkt-pricing-table__gap)); |
| 12 |
margin-left: calc(-1 * var(--gkt-pricing-table__gap)); |
| 13 |
} |
| 14 |
|
| 15 |
&-item-wrap { |
| 16 |
flex: 0 0 calc(100% / var(--gkt-pricing-table__columns) - var(--gkt-pricing-table__gap)); |
| 17 |
max-width: calc(100% / var(--gkt-pricing-table__columns) - var(--gkt-pricing-table__gap)); |
| 18 |
margin-top: var(--gkt-pricing-table__gap); |
| 19 |
margin-left: var(--gkt-pricing-table__gap); |
| 20 |
} |
| 21 |
|
| 22 |
// Item. |
| 23 |
&-item { |
| 24 |
position: relative; |
| 25 |
padding: var(--gkt-pricing-table--item__padding-v) var(--gkt-pricing-table--item__padding-h); |
| 26 |
border: var(--gkt-pricing-table--item__border-width) solid var(--gkt-pricing-table--item__border-color); |
| 27 |
border-radius: var(--gkt-pricing-table--item__border-radius); |
| 28 |
|
| 29 |
// Popular Badge. |
| 30 |
&-popular-badge { |
| 31 |
position: absolute; |
| 32 |
top: var(--gkt-pricing-table--popular-badge__top); |
| 33 |
right: calc(-1 * var(--gkt-pricing-table--item__border-width)); |
| 34 |
padding: var(--gkt-pricing-table--popular-badge__padding-v) var(--gkt-pricing-table--popular-badge__padding-h); |
| 35 |
font-size: var(--gkt-pricing-table--popular-badge__font-size); |
| 36 |
color: var(--gkt-pricing-table--popular-badge__color); |
| 37 |
background-color: var(--gkt-pricing-table--popular-badge__background-color); |
| 38 |
} |
| 39 |
|
| 40 |
& &-popular-badge { |
| 41 |
margin-top: 0; |
| 42 |
} |
| 43 |
|
| 44 |
// Title. |
| 45 |
&-title { |
| 46 |
margin: 0; |
| 47 |
font-size: var(--gkt-pricing-table--title__font-size); |
| 48 |
} |
| 49 |
|
| 50 |
// Price. |
| 51 |
&-price { |
| 52 |
position: relative; |
| 53 |
display: flex; |
| 54 |
justify-content: center; |
| 55 |
} |
| 56 |
|
| 57 |
&-price-amount { |
| 58 |
font-size: var(--gkt-pricing-table--price-amount__font-size); |
| 59 |
line-height: var(--gkt-pricing-table--price-amount__line-height); |
| 60 |
} |
| 61 |
|
| 62 |
&-price-currency { |
| 63 |
align-self: flex-start; |
| 64 |
} |
| 65 |
|
| 66 |
&-price-repeat { |
| 67 |
align-self: flex-end; |
| 68 |
font-size: var(--gkt-pricing-table--price-repeat__font-size); |
| 69 |
opacity: var(--gkt-pricing-table--price-repeat__opacity); |
| 70 |
} |
| 71 |
|
| 72 |
// Features. |
| 73 |
&-features { |
| 74 |
position: relative; |
| 75 |
padding: 0; |
| 76 |
margin: 0; |
| 77 |
font-size: var(--gkt-pricing-table--features__font-size); |
| 78 |
list-style: none; |
| 79 |
|
| 80 |
li { |
| 81 |
margin-left: 0; |
| 82 |
list-style: none; |
| 83 |
} |
| 84 |
|
| 85 |
li + li { |
| 86 |
margin-top: var(--gkt-pricing-table--features-items__gap); |
| 87 |
} |
| 88 |
} |
| 89 |
|
| 90 |
// Submit. |
| 91 |
.ghostkit-button-wrapper { |
| 92 |
margin-bottom: 0; |
| 93 |
} |
| 94 |
|
| 95 |
// Elements gap. |
| 96 |
& > * { |
| 97 |
margin-top: var(--gkt-pricing-table--elements__gap); |
| 98 |
|
| 99 |
&:first-child { |
| 100 |
margin-top: 0; |
| 101 |
} |
| 102 |
} |
| 103 |
} |
| 104 |
|
| 105 |
// Count. |
| 106 |
&-items-1 { |
| 107 |
--gkt-pricing-table__columns: 1; |
| 108 |
} |
| 109 |
|
| 110 |
&-items-2 { |
| 111 |
--gkt-pricing-table__columns: 2; |
| 112 |
|
| 113 |
@media screen and (max-width: #{$media-sm}) { |
| 114 |
--gkt-pricing-table__columns: 1; |
| 115 |
} |
| 116 |
} |
| 117 |
|
| 118 |
&-items-3 { |
| 119 |
--gkt-pricing-table__columns: 3; |
| 120 |
|
| 121 |
@media screen and (max-width: #{$media-sm}) { |
| 122 |
--gkt-pricing-table__columns: 1; |
| 123 |
} |
| 124 |
} |
| 125 |
|
| 126 |
&-items-4 { |
| 127 |
--gkt-pricing-table__columns: 4; |
| 128 |
|
| 129 |
@media screen and (max-width: #{$media-sm}) { |
| 130 |
--gkt-pricing-table__columns: 2; |
| 131 |
} |
| 132 |
|
| 133 |
@media screen and (max-width: #{$media-xs}) { |
| 134 |
--gkt-pricing-table__columns: 1; |
| 135 |
} |
| 136 |
} |
| 137 |
|
| 138 |
&-items-5 { |
| 139 |
--gkt-pricing-table__columns: 5; |
| 140 |
|
| 141 |
@media screen and (max-width: #{$media-sm}) { |
| 142 |
--gkt-pricing-table__columns: 2; |
| 143 |
} |
| 144 |
|
| 145 |
@media screen and (max-width: #{$media-xs}) { |
| 146 |
--gkt-pricing-table__columns: 1; |
| 147 |
} |
| 148 |
} |
| 149 |
|
| 150 |
&-items-6 { |
| 151 |
--gkt-pricing-table__columns: 6; |
| 152 |
|
| 153 |
@media screen and (max-width: #{$media-md}) { |
| 154 |
--gkt-pricing-table__columns: 3; |
| 155 |
} |
| 156 |
|
| 157 |
@media screen and (max-width: #{$media-sm}) { |
| 158 |
--gkt-pricing-table__columns: 2; |
| 159 |
} |
| 160 |
|
| 161 |
@media screen and (max-width: #{$media-xs}) { |
| 162 |
--gkt-pricing-table__columns: 1; |
| 163 |
} |
| 164 |
} |
| 165 |
|
| 166 |
// Horizontal align. |
| 167 |
&-align-horizontal-left { |
| 168 |
text-align: left; |
| 169 |
|
| 170 |
.ghostkit-pricing-table-item-price { |
| 171 |
justify-content: flex-start; |
| 172 |
} |
| 173 |
} |
| 174 |
|
| 175 |
&-align-horizontal-center { |
| 176 |
text-align: center; |
| 177 |
|
| 178 |
.ghostkit-pricing-table-item-price { |
| 179 |
justify-content: center; |
| 180 |
} |
| 181 |
} |
| 182 |
|
| 183 |
&-align-horizontal-right { |
| 184 |
text-align: right; |
| 185 |
|
| 186 |
.ghostkit-pricing-table-item-price { |
| 187 |
justify-content: flex-end; |
| 188 |
} |
| 189 |
} |
| 190 |
|
| 191 |
// Vertical align. |
| 192 |
&-align-vertical-start { |
| 193 |
--gkt-pricing-table__align-items: flex-start; |
| 194 |
} |
| 195 |
|
| 196 |
&-align-vertical-center { |
| 197 |
--gkt-pricing-table__align-items: center; |
| 198 |
} |
| 199 |
|
| 200 |
&-align-vertical-end { |
| 201 |
--gkt-pricing-table__align-items: flex-end; |
| 202 |
} |
| 203 |
|
| 204 |
// Gaps. |
| 205 |
@each $name, $size in $grid-gaps { |
| 206 |
&-gap-#{$name} { |
| 207 |
--gkt-pricing-table__gap: #{$size}; |
| 208 |
} |
| 209 |
} |
| 210 |
} |
| 211 |
|