plans.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. .plans {
  2. p {
  3. color: @gray-dark;
  4. margin-bottom: @line-height-computed;
  5. }
  6. .best-value {
  7. color: @brand-secondary;
  8. line-height: @line-height-computed;
  9. text-transform: capitalize;
  10. }
  11. blockquote {
  12. footer {
  13. /* accessibility fix */
  14. color: @gray-med;
  15. }
  16. }
  17. .btn-header {
  18. font-family: @font-family-sans-serif;
  19. margin-left: 10px;
  20. margin-top: -10px;
  21. text-shadow: 0 0 0;
  22. }
  23. .card .btn {
  24. white-space: normal;
  25. }
  26. .card.features {
  27. margin-top: @line-height-computed;
  28. i {
  29. color: @red;
  30. }
  31. p {
  32. margin: 0;
  33. }
  34. }
  35. .btn-header {
  36. font-family: @font-family-sans-serif;
  37. margin-left: 10px;
  38. margin-top: -10px;
  39. text-shadow: 0 0 0;
  40. }
  41. .card .btn {
  42. white-space: normal;
  43. }
  44. .card-group {
  45. .card-highlighted {
  46. padding-top: @line-height-computed * 2;
  47. padding-bottom: @line-height-computed * 2;
  48. }
  49. }
  50. .card-first,
  51. .card-last {
  52. background: @plans-non-highlighted;
  53. }
  54. .card-highlighted {
  55. border: @border-width-base solid @border-color-base;
  56. padding-top: 10px !important;
  57. .best-value {
  58. margin-bottom: 15px;
  59. }
  60. .card-header {
  61. padding-bottom: 22px; /* align hr with other plans */
  62. }
  63. }
  64. .card-header {
  65. margin-bottom: 15px;
  66. }
  67. .circle {
  68. font-size: 1.5rem;
  69. font-weight: 700;
  70. padding: 46px 18px;
  71. margin: 0 auto @line-height-computed;
  72. text-shadow: 0 -1px 1px darken(@link-color, 10%);
  73. width: 120px;
  74. height: 120px;
  75. border-radius: 50%;
  76. background-color: @brand-secondary;
  77. color: white;
  78. white-space: nowrap;
  79. line-height: 1;
  80. .small {
  81. color: rgba(255, 255, 255, 0.85);
  82. font-size: @font-size-base * 0.8;
  83. }
  84. .undiscounted-price {
  85. display: block;
  86. margin-top: -48px;
  87. }
  88. }
  89. .circle-lg {
  90. width: 150px;
  91. height: 150px;
  92. padding-top: 50px;
  93. }
  94. .circle-subtext {
  95. font-size: 1rem;
  96. }
  97. .circle-img {
  98. float: right;
  99. }
  100. .faq {
  101. p {
  102. margin: 0;
  103. }
  104. }
  105. .header-with-btn {
  106. line-height: 1.6;
  107. }
  108. .plans-header {
  109. h1,
  110. h2,
  111. p {
  112. text-shadow: 0 -1px 1px white;
  113. }
  114. h1,
  115. h2 {
  116. color: @red;
  117. }
  118. p {
  119. margin-bottom: 0;
  120. }
  121. }
  122. .plans-subheader {
  123. margin-bottom: @line-height-computed;
  124. }
  125. .tagline {
  126. margin-bottom: 20px;
  127. }
  128. ul.nav-pills {
  129. text-align: center;
  130. margin-bottom: @line-height-computed;
  131. display: flex;
  132. justify-content: center;
  133. li {
  134. float: none;
  135. display: inline-block;
  136. position: relative;
  137. .annual-saving-tooltip {
  138. // hide tooltip below group modal, which has 1050 z-index value (from bootstrap .modal class)
  139. // .tooltip (this element) has 1070 default z-index value
  140. z-index: 1040;
  141. white-space: nowrap;
  142. left: 50%;
  143. width: 200px;
  144. margin-left: -100px;
  145. &.bottom {
  146. margin-top: 0px;
  147. }
  148. &.annual-selected {
  149. width: 94px;
  150. margin-left: -47px;
  151. .tooltip-inner {
  152. background-color: @ol-green;
  153. }
  154. .tooltip-arrow {
  155. border-bottom-color: @ol-green;
  156. }
  157. }
  158. .tooltip-inner {
  159. max-width: none;
  160. }
  161. }
  162. }
  163. > li + li {
  164. margin-left: @line-height-computed / 2;
  165. }
  166. }
  167. ul.nav-pills.above-cards {
  168. margin-bottom: @line-height-computed * 2;
  169. }
  170. }
  171. #changePlanSection {
  172. padding-top: 30px;
  173. .changePlanButton {
  174. padding-top: 15px;
  175. }
  176. }
  177. .paymentPageFeatures {
  178. h1,
  179. h2,
  180. h3 {
  181. color: @gray-dark;
  182. }
  183. h3 {
  184. font-size: 18px;
  185. &:first-child {
  186. margin-top: 0;
  187. }
  188. }
  189. p {
  190. font-size: 14px;
  191. color: @gray;
  192. }
  193. .small {
  194. font-size: 12px;
  195. }
  196. }
  197. .plansPageStudentLink {
  198. margin-left: 20px;
  199. margin-top: 20px;
  200. }
  201. /**
  202. Plans Test
  203. */
  204. @best-val-height: 35px;
  205. @border-width-base: 3px;
  206. @gray-med: #6d6d6d;
  207. /* Media Queries */
  208. @media (max-width: @screen-sm-max) {
  209. .plans {
  210. .card-group {
  211. /*override style in cards.less */
  212. .card {
  213. margin-left: 0;
  214. margin-right: 0;
  215. }
  216. .card-highlighted {
  217. margin-top: @line-height-computed!important;
  218. }
  219. }
  220. .circle-img {
  221. float: left;
  222. margin: 0 15px;
  223. }
  224. ul.nav-pills {
  225. margin-bottom: @margin-xs;
  226. li {
  227. margin-bottom: @margin-sm;
  228. }
  229. }
  230. }
  231. }
  232. @media (max-width: @screen-xs-max) {
  233. .plans ul.nav-pills {
  234. li {
  235. a {
  236. font-size: @font-size-small;
  237. padding: 8px 10px;
  238. }
  239. }
  240. > li + li {
  241. margin-left: @margin-sm;
  242. }
  243. }
  244. }
  245. @media (min-width: @screen-md-min) {
  246. .plans {
  247. blockquote {
  248. margin-bottom: 0;
  249. }
  250. .faq {
  251. .row:nth-child(2) {
  252. h3 {
  253. margin-top: 0;
  254. }
  255. }
  256. }
  257. .top-switch {
  258. .currency-dropdown {
  259. margin-right: -15px;
  260. }
  261. }
  262. }
  263. }
  264. .student-disclaimer {
  265. font-size: 14px; /* match .paymentPageFeatures p */
  266. color: @gray; /* match .paymentPageFeatures p */
  267. margin: 12.5px 0 0 0;
  268. }
  269. /**
  270. Plans Table
  271. */
  272. .plans-table {
  273. border: 1px solid @gray-lighter;
  274. background-color: @plans-non-highlighted;
  275. margin: @best-val-height 0 15px 0;
  276. table-layout: fixed;
  277. width: 100%;
  278. th,
  279. td {
  280. -moz-background-clip: padding;
  281. -webkit-background-clip: padding;
  282. background-clip: padding-box; /* needed for firefox when there is bg color */
  283. border: 1px solid @gray-lighter;
  284. padding: 6px;
  285. text-align: center;
  286. vertical-align: middle;
  287. }
  288. td {
  289. font-weight: bold;
  290. }
  291. th {
  292. border-top: 0;
  293. font-family: @headings-font-family;
  294. font-size: @font-size-h2;
  295. font-weight: @headings-font-weight;
  296. hyphens: auto;
  297. line-height: @headings-line-height;
  298. padding: 18px;
  299. }
  300. th:first-child,
  301. td:first-child {
  302. border-left: 0;
  303. }
  304. th:last-child,
  305. td:last-child {
  306. border-right: 0;
  307. }
  308. td:first-child {
  309. font-weight: bold;
  310. padding-left: 18px;
  311. text-align: left;
  312. }
  313. tr:first-child {
  314. th {
  315. position: relative;
  316. /* keep here position here, otherwise messes up border on safari */
  317. }
  318. }
  319. tr:last-child {
  320. td {
  321. border-bottom: 0;
  322. padding: 18px;
  323. }
  324. td:first-child {
  325. border: 0;
  326. }
  327. }
  328. .fa-check {
  329. color: @green;
  330. }
  331. /* accessibility fixes */
  332. .small {
  333. color: @gray-med;
  334. }
  335. .outer {
  336. left: -@border-width-base;
  337. right: -@border-width-base;
  338. position: absolute;
  339. .outer-content {
  340. background: white;
  341. border: @border-width-base solid @border-color-base;
  342. border-radius: @border-radius-base;
  343. font-size: @font-size-base;
  344. font-family: @font-family-sans-serif;
  345. font-weight: bold;
  346. height: @best-val-height;
  347. padding-top: 10px;
  348. }
  349. }
  350. .outer.outer-top {
  351. top: -@best-val-height;
  352. .outer-content {
  353. border-bottom-left-radius: 0;
  354. border-bottom-right-radius: 0;
  355. border-bottom: 0;
  356. }
  357. }
  358. .outer.outer-btm {
  359. bottom: -@best-val-height / 2;
  360. .outer-content {
  361. border-top-left-radius: 0;
  362. border-top-right-radius: 0;
  363. border-top: 0;
  364. height: @best-val-height / 2;
  365. }
  366. }
  367. @media (min-width: @screen-sm-min) {
  368. /* highlight rows on hover */
  369. tr:hover {
  370. td {
  371. background-color: @table-hover-bg;
  372. }
  373. }
  374. tr:first-child:hover {
  375. background-color: transparent;
  376. }
  377. tr:last-child:hover {
  378. background-color: transparent;
  379. td {
  380. background-color: transparent;
  381. }
  382. }
  383. }
  384. /* tooltip */
  385. sup {
  386. color: @brand-secondary;
  387. cursor: pointer;
  388. margin-left: 5px;
  389. }
  390. .tooltip.in {
  391. min-width: 200px;
  392. }
  393. /* Media Queries */
  394. @media (max-width: @screen-sm-max) {
  395. font-size: @font-size-small;
  396. hyphens: auto;
  397. margin-top: @best-val-height*2;
  398. th {
  399. font-size: @font-size-base;
  400. padding-left: @padding-xs;
  401. padding-right: @padding-xs;
  402. }
  403. td:first-child {
  404. padding-left: @padding-xs;
  405. }
  406. tr:last-child {
  407. td {
  408. padding: @padding-xs;
  409. .btn {
  410. word-break: normal;
  411. }
  412. }
  413. }
  414. .best-value {
  415. line-height: 1;
  416. }
  417. .btn {
  418. font-size: @font-size-small;
  419. }
  420. }
  421. @media screen and (max-width: @screen-xs-max) {
  422. tbody,
  423. thead {
  424. display: block;
  425. }
  426. tr {
  427. display: flex;
  428. flex-flow: row wrap;
  429. justify-content: space-around;
  430. }
  431. th {
  432. font-size: 12px;
  433. }
  434. /* hide the first column header */
  435. tr:first-child {
  436. th:first-child {
  437. display: none;
  438. }
  439. }
  440. /* make the first column into a row */
  441. td:first-child {
  442. text-align: center;
  443. background: @gray-lightest;
  444. width: 100%;
  445. }
  446. }
  447. }
  448. .plans-table-main {
  449. td:nth-child(4),
  450. th:nth-child(4) {
  451. background-color: white;
  452. border-left: @border-width-base solid @border-color-base;
  453. border-right: @border-width-base solid @border-color-base;
  454. }
  455. tr:last-child {
  456. /* highlighted column */
  457. td:nth-child(4) {
  458. position: relative;
  459. /* keep here position here, otherwise messes up border on safari when there is a bg color */
  460. &:before {
  461. /* needed for safafi */
  462. border-top: 1px solid @border-color-base;
  463. content: '';
  464. left: 0;
  465. position: absolute;
  466. top: -1px;
  467. width: 100%;
  468. }
  469. }
  470. }
  471. @media screen and (max-width: @screen-xs-max) {
  472. td,
  473. th {
  474. display: block;
  475. width: 25%;
  476. }
  477. }
  478. }
  479. .plans-table-student {
  480. td:nth-child(3),
  481. th:nth-child(3) {
  482. background-color: white;
  483. border-left: @border-width-base solid @border-color-base;
  484. border-right: @border-width-base solid @border-color-base;
  485. }
  486. tr:last-child {
  487. /* highlighted column */
  488. td:nth-child(3) {
  489. position: relative;
  490. /* keep here position here, otherwise messes up border on safari when there is a bg color */
  491. &:before {
  492. /* needed for safafi */
  493. border-top: 1px solid @border-color-base;
  494. content: '';
  495. left: 0;
  496. position: absolute;
  497. top: -1px;
  498. width: 100%;
  499. }
  500. }
  501. }
  502. @media screen and (max-width: @screen-xs-max) {
  503. td,
  504. th {
  505. display: block;
  506. width: 33.3%;
  507. }
  508. }
  509. }
  510. .group-subscription-modal {
  511. .modal-header {
  512. text-align: center;
  513. }
  514. .group-plan-option {
  515. display: block;
  516. span {
  517. padding-left: 5px;
  518. font-weight: normal;
  519. }
  520. }
  521. .educational-discount-badge {
  522. height: 50px;
  523. padding-top: 25px;
  524. p {
  525. display: inline-block;
  526. padding-left: 5px;
  527. padding-right: 5px;
  528. font-weight: bold;
  529. font-size: @font-size-small;
  530. }
  531. .applied {
  532. background-color: rgba(@ol-dark-green, 0.1);
  533. color: @ol-dark-green;
  534. }
  535. .ineligible {
  536. background-color: @ol-blue-gray-0;
  537. color: @ol-blue-gray-4;
  538. }
  539. }
  540. }