subscription.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. /**
  2. * MAIN CONTENT
  3. */
  4. #subscription-dashboard-root {
  5. .hover-highlight {
  6. &:hover,
  7. &:focus {
  8. background-color: var(--neutral-10);
  9. }
  10. }
  11. li.row-link {
  12. display: flex;
  13. border: 0;
  14. padding: 0;
  15. a {
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. padding: var(--spacing-02) 0;
  20. text-decoration: none;
  21. color: var(--neutral-90);
  22. width: 100%;
  23. &:hover {
  24. background-color: var(--neutral-10);
  25. }
  26. }
  27. }
  28. }
  29. /**
  30. * MODALS
  31. */
  32. .group-subscription-modal {
  33. .circle {
  34. font-size: var(--font-size-06);
  35. border-radius: 50%;
  36. background-color: var(--green-70);
  37. color: white;
  38. white-space: nowrap;
  39. height: 180px;
  40. width: 180px;
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: center;
  44. align-items: center;
  45. gap: var(--spacing-02);
  46. font-weight: bold;
  47. .small {
  48. opacity: 0.85;
  49. }
  50. .circle-subtext {
  51. font-size: var(--font-size-03);
  52. }
  53. }
  54. .legend-as-label {
  55. font-size: var(--font-size-02);
  56. font-weight: 600;
  57. color: var(--content-secondary);
  58. margin-bottom: 0;
  59. }
  60. .educational-discount-badge {
  61. height: 50px;
  62. p {
  63. display: inline-block;
  64. font-weight: bold;
  65. padding-left: var(--spacing-02);
  66. padding-right: var(--spacing-02);
  67. }
  68. .applied {
  69. background-color: rgba($green-70, 0.1);
  70. color: var(--green-70);
  71. }
  72. .ineligible {
  73. background-color: var(--neutral-10);
  74. }
  75. }
  76. }
  77. #change-plan {
  78. table {
  79. @include media-breakpoint-up(lg) {
  80. th:last-child,
  81. td:last-child {
  82. width: 1%; // will expand to fit the content
  83. }
  84. }
  85. @include media-breakpoint-down(lg) {
  86. display: block;
  87. thead {
  88. display: none;
  89. }
  90. tbody,
  91. td,
  92. tr {
  93. display: inline-block;
  94. padding-top: 0;
  95. padding-bottom: 0;
  96. text-align: center;
  97. width: 100%;
  98. }
  99. td:first-child {
  100. padding-top: var(--spacing-07);
  101. }
  102. td:last-child {
  103. padding-top: var(--spacing-03);
  104. padding-bottom: var(--spacing-07);
  105. }
  106. tr {
  107. border-bottom: 1px solid var(--bs-border-color);
  108. td,
  109. th {
  110. border: 0 !important;
  111. }
  112. }
  113. tr:last-child {
  114. border-bottom: 0;
  115. }
  116. }
  117. }
  118. }
  119. .payment-container {
  120. padding-top: var(--spacing-08);
  121. display: flex;
  122. gap: var(--spacing-10);
  123. justify-content: center;
  124. @include media-breakpoint-down(lg) {
  125. flex-direction: column;
  126. align-items: center;
  127. }
  128. .payment-review-panel {
  129. width: 339px;
  130. height: 100%;
  131. @include media-breakpoint-down(lg) {
  132. width: 100%;
  133. }
  134. h4 {
  135. color: var(--neutral-70);
  136. font-weight: 600;
  137. @include heading-sm;
  138. }
  139. .price-feature-description {
  140. color: var(--neutral-70);
  141. font-weight: 400;
  142. @include body-base;
  143. h4 {
  144. margin-bottom: var(--spacing-06);
  145. }
  146. .features-list {
  147. margin-top: var(--spacing-08);
  148. }
  149. .price-summary {
  150. .price-summary-line {
  151. display: flex;
  152. justify-content: space-between;
  153. .price-summary-line-width {
  154. width: 70%;
  155. }
  156. }
  157. p {
  158. margin: unset;
  159. }
  160. .price-nowrap {
  161. white-space: nowrap;
  162. }
  163. .price-summary-total-line {
  164. margin-top: var(--spacing-06);
  165. .price-summary-due {
  166. color: var(--green-50);
  167. }
  168. }
  169. }
  170. .price-cancel-anytime {
  171. @include body-xs;
  172. }
  173. .trial-coupon-summary {
  174. padding-top: var(--spacing-08);
  175. .trial-coupon-summary-list-container {
  176. padding-left: 0;
  177. li {
  178. display: flex;
  179. color: var(--neutral-90);
  180. align-items: center;
  181. justify-content: flex-start;
  182. margin-bottom: var(--spacing-04);
  183. gap: var(--spacing-05);
  184. @include body-sm;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. .payment-checkout {
  191. padding: var(--spacing-08);
  192. width: 408px;
  193. @include media-breakpoint-down(lg) {
  194. width: 100%;
  195. }
  196. @include media-breakpoint-down(xs) {
  197. padding-left: 0;
  198. padding-right: 0;
  199. }
  200. .address-line-1-tooltip {
  201. font-size: var(--font-size-03);
  202. }
  203. h1 {
  204. @include heading-md;
  205. margin-bottom: var(--spacing-08);
  206. }
  207. .student-disclaimer {
  208. @include body-sm;
  209. }
  210. .paypal-disclaimer {
  211. @include body-sm;
  212. margin: var(--spacing-05) 0 0 0;
  213. }
  214. .form-group {
  215. &:not(.payment-method-toggle) {
  216. margin-bottom: var(--spacing-05);
  217. }
  218. &.address-1 {
  219. margin-bottom: var(--spacing-04);
  220. }
  221. }
  222. .form-check {
  223. margin-bottom: 0; // override bootstrap5 default margin-bottom of 0.125rem
  224. }
  225. .checkout-form-submit {
  226. margin-top: var(--spacing-08);
  227. }
  228. }
  229. }
  230. .group-heading {
  231. display: flex;
  232. align-items: center;
  233. gap: var(--spacing-04);
  234. margin-bottom: var(--spacing-06);
  235. h2 {
  236. @include heading-lg;
  237. margin: 0;
  238. word-break: break-all;
  239. }
  240. .btn-ghost {
  241. --bs-btn-bg: transparent;
  242. }
  243. }
  244. .change-currency {
  245. margin-top: var(--spacing-02);
  246. .dropdown-item:not(:first-child) {
  247. margin-top: var(--spacing-02);
  248. }
  249. }
  250. .change-currency-toggle {
  251. padding-left: 0;
  252. padding-bottom: 0;
  253. text-decoration: underline;
  254. color: var(--content-secondary);
  255. &:hover,
  256. &:focus,
  257. &:active {
  258. // !important is unfortunately necessary to override btn:first-child:active
  259. color: var(--content-secondary) !important;
  260. }
  261. &:not(:hover) {
  262. text-decoration: underline;
  263. }
  264. // Hide the dropdown caret, BS5 react-bootstrap does not have a prop for this
  265. &::after {
  266. display: none;
  267. }
  268. @include body-xs;
  269. }
  270. .change-currency-dropdown-selected-icon {
  271. position: absolute;
  272. right: 10px;
  273. top: var(--bs-dropdown-item-padding-y);
  274. }
  275. .payment-method-toggle {
  276. .form-check {
  277. &:first-of-type {
  278. margin-bottom: var(--spacing-05);
  279. }
  280. label {
  281. margin-bottom: 0; // override .website-redesign default
  282. }
  283. }
  284. .payment-method-logos {
  285. display: inline-block;
  286. margin-left: var(--spacing-05);
  287. img:not(:last-child) {
  288. margin-right: var(--spacing-04);
  289. }
  290. }
  291. }
  292. .address2-button {
  293. text-decoration: none;
  294. margin-bottom: var(--spacing-05);
  295. padding: 0;
  296. :hover {
  297. text-decoration: underline;
  298. }
  299. .button-content {
  300. justify-content: flex-start;
  301. color: var(--link-web);
  302. }
  303. }
  304. .three-d-secure-container {
  305. > .three-d-secure-recurly-container {
  306. height: 400px;
  307. }
  308. }
  309. .group-subscription-upgrade-features {
  310. .material-symbols {
  311. @include body-sm;
  312. vertical-align: top;
  313. }
  314. .per-user-price {
  315. @include heading-lg;
  316. color: var(--content-primary);
  317. }
  318. .per-user-price-text {
  319. @include body-xs;
  320. }
  321. .feature-list-item {
  322. @include body-sm;
  323. }
  324. }
  325. .group-subscription-upgrade-card {
  326. .title {
  327. @include body-lg;
  328. }
  329. }
  330. .pricing-warning-heading {
  331. @include body-base;
  332. font-weight: 600;
  333. }
  334. .not-student-switch {
  335. font-size: var(--font-size-02);
  336. margin-left: var(--spacing-08);
  337. label {
  338. font-weight: normal;
  339. }
  340. button {
  341. margin: 0 0 0 var(--spacing-03);
  342. padding: 0;
  343. color: var(--link-web);
  344. font-size: var(--font-size-02);
  345. vertical-align: inherit;
  346. .button-content {
  347. color: var(--link-web);
  348. }
  349. }
  350. }