review-features-page.less 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. @rfp-h1-size: 2.442em;
  2. @rfp-h2-size: 1.953em;
  3. @rfp-h3-size: 1.563em;
  4. @rfp-lead-size: 1.25em;
  5. @rfp-sl-red: @red;
  6. @rfp-rp-blue: @rp-type-blue;
  7. @rfp-rp-blue-light: #F8F9FD;
  8. @rfp-rp-blue-dark: shade(@rfp-rp-blue, 50%);
  9. @rfp-rp-blue-darker: shade(@rfp-rp-blue, 65%);
  10. @rfp-rp-blue-darkest: shade(@rfp-rp-blue, 75%);
  11. @rfp-card-shadow: 0 0 30px 5px rgba(0, 0, 0, .3);
  12. @rfp-border-radius: 5px;
  13. @rfp-header-height: 80px;
  14. @rfp-header-height-collapsed: 50px;
  15. .rfp-main {
  16. background-color: @content-alt-bg-color;
  17. font-size: 18px;
  18. min-width: 240px;
  19. }
  20. // Typographical scale and basics.
  21. .rfp-h1 {
  22. font-size: @rfp-h2-size;
  23. margin-bottom: 1.6em;
  24. color: inherit;
  25. @media (min-width: @screen-xs-min) {
  26. font-size: @rfp-h1-size;
  27. }
  28. }
  29. .rfp-h1-masthead {
  30. color: #FFF;
  31. margin-bottom: 1em;
  32. }
  33. .rfp-h2 {
  34. font-size: @rfp-h2-size;
  35. margin-bottom: 1.6em;
  36. color: inherit;
  37. }
  38. .rfp-h3 {
  39. font-size: @rfp-h3-size;
  40. margin-bottom: 1.6em;
  41. color: inherit;
  42. }
  43. .rfp-h3-cta {
  44. margin-top: 0;
  45. margin-bottom: 40px;
  46. }
  47. .rfp-lead {
  48. margin-bottom: 1.6em;
  49. max-width: 30em;
  50. margin-left: auto;
  51. margin-right: auto;
  52. @media (min-width: @screen-xs-min) {
  53. font-size: @rfp-lead-size;
  54. }
  55. }
  56. .rfp-lead-cta {
  57. margin-top: 0;
  58. margin-bottom: 40px;
  59. }
  60. .rfp-lead-strong {
  61. font-weight: 700;
  62. .rfp-section-masthead & {
  63. margin-bottom: 0;
  64. }
  65. }
  66. .rfp-p {
  67. margin-bottom: 1.6em;
  68. max-width: 30em;
  69. margin-left: auto;
  70. margin-right: auto;
  71. .rfp-section-feature & {
  72. margin-left: initial;
  73. }
  74. .rfp-section-feature-alt & {
  75. margin-left: auto;
  76. margin-right: initial;
  77. }
  78. }
  79. .rfp-highlight {
  80. font-weight: 700;
  81. }
  82. // Sections
  83. .rfp-header {
  84. position: fixed;
  85. top: 0;
  86. width: 100%;
  87. z-index: 2;
  88. height: @rfp-header-height;
  89. transition: height .2s;
  90. background-color: fade(@rfp-rp-blue-darkest, 90%);
  91. padding: 15px 20px;
  92. min-width: 320px;
  93. @media (min-width: @screen-xs-min) {
  94. padding-left: 30px;
  95. padding-right: 30px;
  96. }
  97. @media (min-width: @screen-sm-min) {
  98. padding-left: 60px;
  99. padding-right: 60px;
  100. }
  101. .rfp-main-header-collapsed & {
  102. height: @rfp-header-height-collapsed;
  103. padding-top: 10px;
  104. padding-bottom: 10px;
  105. }
  106. }
  107. .rfp-header-wrapper {
  108. display: flex;
  109. align-items: center;
  110. justify-content: space-between;
  111. max-width: @container-large-desktop;
  112. height: 100%;
  113. margin: auto;
  114. }
  115. .rfp-header-logo-container,
  116. .rfp-header-logo {
  117. height: 100%;
  118. }
  119. .rfp-section {
  120. padding: 30px;
  121. text-align: center;
  122. overflow: hidden;
  123. @media (min-width: @screen-xs-min) {
  124. padding: 30px;
  125. }
  126. @media (min-width: @screen-sm-min) {
  127. padding: 60px;
  128. }
  129. }
  130. .rfp-section-masthead {
  131. color: #FFF;
  132. background-size: cover;
  133. background-position: center;
  134. background-color: @rfp-rp-blue-darker;
  135. padding-top: @rfp-header-height;
  136. .rfp-lead {
  137. opacity: 0;
  138. transition: opacity 0.8s ease;
  139. }
  140. &.rfp-section-masthead-in {
  141. .rfp-lead {
  142. opacity: 1;
  143. }
  144. }
  145. }
  146. .rfp-section-blockquote {
  147. position: relative;
  148. padding-top: 30px;
  149. padding-bottom: 30px;
  150. background-color: @brand-secondary;
  151. box-shadow: @rfp-card-shadow;
  152. }
  153. .rfp-section-feature {
  154. display: block;
  155. text-align: left;
  156. @media (min-width: @screen-sm-min) {
  157. .rfp-section-wrapper {
  158. display: flex;
  159. align-items: center;
  160. }
  161. }
  162. }
  163. .rfp-feature-description-container,
  164. .rfp-feature-video-container {
  165. flex: 0 0 50%;
  166. }
  167. .rfp-feature-description-container {
  168. @media (min-width: @screen-sm-min) {
  169. padding-right: 1em;
  170. .rfp-section-feature-alt & {
  171. padding-right: 0;
  172. padding-left: 1em;
  173. }
  174. }
  175. }
  176. .rfp-feature-video-container {
  177. @media (min-width: @screen-sm-min) {
  178. padding-left: 1em;
  179. .rfp-section-feature-alt & {
  180. padding-left: 0;
  181. padding-right: 1em;
  182. order: -1;
  183. }
  184. }
  185. }
  186. .rfp-section-feature-alt {
  187. color: #FFF;
  188. background-color: @ol-blue-gray-5;
  189. @media (min-width: @screen-sm-min) {
  190. text-align: right;
  191. }
  192. }
  193. .rfp-section-feature-white {
  194. background: #ffffff;
  195. }
  196. .rfp-section-testimonials {
  197. background-color: @rfp-rp-blue-darkest;
  198. }
  199. .rfp-section-final {
  200. background-color: @rfp-rp-blue-darker;
  201. }
  202. .rfp-section-wrapper {
  203. max-width: @container-large-desktop;
  204. margin: 0 auto;
  205. }
  206. // Elements
  207. .rfp-h1-masthead-portion {
  208. display: inline-block;
  209. transform: translate(150px, 0);
  210. opacity: 0;
  211. transition: transform 0.8s ease 0s, opacity 0.8s ease 0s;
  212. &:nth-child(2) {
  213. transition-delay: 0.5s, 0.5s;
  214. }
  215. &:nth-child(3) {
  216. transition-delay: 0.5s, 0.5s;
  217. }
  218. &:nth-child(4) {
  219. transition-delay: 1s, 1s;
  220. }
  221. &:nth-child(5) {
  222. transition-delay: 1s, 1s;
  223. }
  224. .rfp-section-masthead-in & {
  225. transform: translate(0, 0);
  226. opacity: 1;
  227. }
  228. }
  229. .rfp-video {
  230. max-width: 100%;
  231. box-shadow: @rfp-card-shadow;
  232. border-radius: @rfp-border-radius;
  233. }
  234. .rfp-video-masthead {
  235. width: 270px;
  236. height: 163px;
  237. margin-bottom: 2em;
  238. transform: translate(0, 100px);
  239. opacity: 0;
  240. transition: transform 0.8s ease 1s, opacity 0.8s ease 1s;
  241. box-shadow: none;
  242. max-width: none;
  243. @media (min-width: @screen-xs-min) {
  244. width: 400px;
  245. height: 241px;
  246. }
  247. @media (min-width: 600px) {
  248. width: 525px;
  249. height: 316px;
  250. }
  251. @media (min-width: @screen-sm-min) {
  252. width: 633px;
  253. height: 381px;
  254. }
  255. @media (min-width: @screen-sm-min) {
  256. width: 697px;
  257. height: 420px;
  258. }
  259. .rfp-section-masthead-in & {
  260. transform: translate(0, 0);
  261. opacity: 1;
  262. box-shadow: @rfp-card-shadow;
  263. }
  264. }
  265. .rfp-video-anim {
  266. transition: transform 0.8s ease, opacity 0.8s ease;
  267. transform: translate(100%, 0);
  268. opacity: 0;
  269. }
  270. .rfp-video-anim-alt {
  271. transform: translate(-100%, 0);
  272. }
  273. .rfp-video-anim-in {
  274. transform: translate(0, 0);
  275. opacity: 1;
  276. }
  277. .rfp-quote-section {
  278. @media (min-width: @screen-md-min) {
  279. display: flex;
  280. }
  281. }
  282. .rfp-quote {
  283. display: block;
  284. width: 100%;
  285. padding: 20px 40px;
  286. border-left: 0;
  287. max-width: 30em;
  288. font-size: @rfp-lead-size;
  289. quotes: "\201C" "\201D";
  290. box-shadow: @rfp-card-shadow;
  291. border-radius: @rfp-border-radius;
  292. background-color: #FFF;
  293. color: @rfp-rp-blue-dark;
  294. font-size: 1em;
  295. margin: 0 auto 20px;
  296. @media (min-width: @screen-xs-min) {
  297. font-size: @rfp-lead-size;
  298. }
  299. @media (min-width: @screen-md-min) {
  300. display: flex;
  301. flex-direction: column;
  302. justify-content: space-between;
  303. flex: 0 1 50%;
  304. margin-right: 20px;
  305. }
  306. // Override weird Boostrap default.
  307. p {
  308. display: block;
  309. }
  310. &:last-of-type {
  311. @media (min-width: @screen-md-min) {
  312. margin-right: 0;
  313. }
  314. }
  315. &::before {
  316. content: none;
  317. }
  318. }
  319. .rfp-quote-main {
  320. color: #ffffff;
  321. display: block;
  322. max-width: none;
  323. border-left: 0;
  324. margin: 0 auto;
  325. padding: 0;
  326. quotes: "\201C" "\201D";
  327. font-size: @rfp-lead-size;
  328. @media (min-width: @screen-md-min) {
  329. display: flex;
  330. }
  331. // Override weird Boostrap default.
  332. p {
  333. display: block;
  334. }
  335. &::before {
  336. content: none;
  337. }
  338. }
  339. .rfp-quoted-text {
  340. position: relative;
  341. display: inline-block;
  342. font-family: @font-family-serif;
  343. font-style: italic;
  344. text-align: left;
  345. margin: 0 0 40px 0;
  346. &::before {
  347. content: open-quote;
  348. display: block;
  349. position: absolute;
  350. font-family: @font-family-serif;
  351. font-size: @rfp-lead-size;
  352. line-height: inherit;
  353. color: inherit;
  354. left: -0.75em;
  355. }
  356. .rfp-quote-main & {
  357. @media (min-width: @screen-md-min) {
  358. flex: 1 1 70%;
  359. margin: auto 40px auto auto;
  360. }
  361. }
  362. }
  363. .rfp-quoted-person {
  364. display: inline-block;
  365. font-size: .8em;
  366. .rfp-quote-main & {
  367. display: flex;
  368. align-items: center;
  369. justify-content: center;
  370. flex: 0 0 30%;
  371. }
  372. }
  373. .rfp-quoted-person-name {
  374. margin: 0;
  375. }
  376. .rfp-quoted-person-affil {
  377. margin: 0;
  378. font-size: .8em;
  379. &:hover,
  380. &:focus {
  381. text-decoration: none;
  382. cursor: pointer;
  383. }
  384. .rfp-quote-main & {
  385. color: #FFF;
  386. &:hover,
  387. &:focus {
  388. color: #FFF;
  389. }
  390. }
  391. }
  392. .rfp-quoted-person-photo {
  393. border-radius: 3em;
  394. width: 6em;
  395. margin-bottom: 20px;
  396. .rfp-quote-main & {
  397. margin-bottom: 0;
  398. margin-right: 20px;
  399. }
  400. }
  401. .rfp-users {
  402. display: flex;
  403. flex-wrap: wrap;
  404. margin: 0 1em 2em;
  405. @media (min-width: @screen-md-min) {
  406. flex-wrap: nowrap;
  407. align-items: center;
  408. }
  409. }
  410. .rfp-user-container {
  411. flex: 0 0 100%;
  412. padding: 10px;
  413. @media (min-width: @screen-xs-min) {
  414. flex-basis: 50%;
  415. }
  416. @media (min-width: @screen-md-min) {
  417. flex-basis: 25%;
  418. padding: 20px;
  419. }
  420. }
  421. .rfp-user-logo {
  422. max-width: 100%;
  423. }
  424. .rfp-cta-container {
  425. max-width: 40em;
  426. margin: 0 auto;
  427. padding: 40px;
  428. background-color: #FFF;
  429. color: @rfp-rp-blue-dark;
  430. box-shadow: @rfp-card-shadow;
  431. border-radius: @rfp-border-radius;
  432. }
  433. .rfp-cta-header {
  434. font-size: 1em;
  435. padding: .2em 1em;
  436. }
  437. .rfp-cta-main {
  438. display: block;
  439. transition: transform 0.25s;
  440. transform: translate(0, 0);
  441. }
  442. .rfp-cta-extra {
  443. display: block;
  444. position: absolute;
  445. left: 50%;
  446. text-transform: uppercase;
  447. transition: opacity 0.25s, transform 0.25s;
  448. transform: translate(-50%, 100%);
  449. opacity: 0;
  450. font-size: 0.5em;
  451. }