plans.less 9.7 KB

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