style2.css 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130
  1. @import url(http://fonts.googleapis.com/css?family=Playfair+Display+SC:400italic,700,900|Raleway:500|Martel+Sans:400,700);
  2. @font-face {
  3. font-weight: normal;
  4. font-style: normal;
  5. font-family: 'codropsicons';
  6. src: url("../fonts/codropsicons/codropsicons.eot");
  7. src: url("../fonts/codropsicons/codropsicons.eot?#iefix") format("embedded-opentype"), url("../fonts/codropsicons/codropsicons.woff") format("woff"), url("../fonts/codropsicons/codropsicons.ttf") format("truetype"), url("../fonts/codropsicons/codropsicons.svg#codropsicons") format("svg");
  8. }
  9. *, *:after, *:before {
  10. -webkit-box-sizing: border-box;
  11. box-sizing: border-box;
  12. }
  13. .clearfix:before, .clearfix:after {
  14. display: table;
  15. content: '';
  16. }
  17. .clearfix:after {
  18. clear: both;
  19. }
  20. body {
  21. background: #fff;
  22. color: #7b7b7b;
  23. font-weight: 400;
  24. font-size: 16px;
  25. font-family: "Martel Sans", Arial, sans-serif;
  26. -webkit-font-smoothing: antialiased;
  27. -moz-osx-font-smoothing: grayscale;
  28. overflow: hidden;
  29. overflow-y: scroll;
  30. /* force scroll to appear */
  31. }
  32. /* helper class when showing content */
  33. .noscroll {
  34. overflow: hidden;
  35. }
  36. a {
  37. outline: none;
  38. color: #81c483;
  39. text-decoration: none;
  40. }
  41. a:hover,
  42. a:focus {
  43. color: #333;
  44. outline: none;
  45. }
  46. button:focus {
  47. outline: none;
  48. }
  49. /* Sidebar */
  50. .sidebar {
  51. text-align: center;
  52. background: #f5f5f5;
  53. z-index: 1000;
  54. position: fixed;
  55. width: 300px;
  56. max-width: 100%;
  57. height: 100%;
  58. height: 100vh;
  59. top: 0;
  60. left: 0;
  61. padding: 2em 1em;
  62. }
  63. .sidebar h1 {
  64. margin: 0.75em 0 0;
  65. font-size: 2em;
  66. line-height: 1;
  67. font-family: "Playfair Display", serif;
  68. }
  69. .sidebar h1 span {
  70. display: block;
  71. }
  72. /* Codrops links */
  73. .codrops-links {
  74. position: relative;
  75. display: inline-block;
  76. text-align: center;
  77. white-space: nowrap;
  78. min-height: 45px;
  79. }
  80. .codrops-links::after {
  81. position: absolute;
  82. top: 0;
  83. left: 50%;
  84. width: 1px;
  85. height: 100%;
  86. background: #ddd;
  87. content: '';
  88. -webkit-transform: rotate3d(0, 0, 1, 22.5deg);
  89. transform: rotate3d(0, 0, 1, 22.5deg);
  90. }
  91. .codrops-icon {
  92. display: inline-block;
  93. margin: 0.5em;
  94. padding: 0em 0;
  95. width: 1.5em;
  96. text-decoration: none;
  97. }
  98. .codrops-icon span {
  99. display: none;
  100. }
  101. .codrops-icon:before {
  102. margin: 0 5px;
  103. text-transform: none;
  104. font-weight: normal;
  105. font-style: normal;
  106. font-variant: normal;
  107. font-family: 'codropsicons';
  108. line-height: 1;
  109. speak: none;
  110. }
  111. .codrops-icon--drop:before {
  112. content: "\e001";
  113. }
  114. .codrops-icon--prev:before {
  115. content: "\e004";
  116. }
  117. /* Demo links */
  118. .codrops-demos {
  119. margin: 2em 0 0;
  120. font-size: 0.75em;
  121. }
  122. .codrops-demos a {
  123. display: inline-block;
  124. margin: 0 0.5em;
  125. }
  126. .codrops-demos a.current-demo {
  127. color: #333;
  128. font-weight: bold;
  129. }
  130. .codrops-demos a.current-demo:focus {
  131. color: #aaa;
  132. }
  133. .related {
  134. font-size: 0.85em;
  135. padding-bottom: 1em;
  136. }
  137. .related h3 {
  138. margin: 3em 0 0.5em 0;
  139. font-size: 0.95em;
  140. }
  141. .related a {
  142. display: block;
  143. color: inherit;
  144. }
  145. .related a:hover,
  146. .related a:focus {
  147. color: #414741;
  148. }
  149. /* Main content */
  150. .main {
  151. position: relative;
  152. z-index: 50;
  153. }
  154. /* Grid container */
  155. .grid {
  156. position: relative;
  157. }
  158. /* Overlay */
  159. .grid::after {
  160. content: '';
  161. background: rgba(202, 202, 202, 0.4);
  162. opacity: 0;
  163. position: absolute;
  164. pointer-events: none;
  165. top: 0;
  166. left: 0;
  167. width: 100%;
  168. height: 100%;
  169. -webkit-transition: opacity 0.5s;
  170. transition: opacity 0.5s;
  171. }
  172. .view-single .grid::after {
  173. opacity: 1;
  174. }
  175. /* Top bar above the grid */
  176. .top-bar {
  177. background: #fff;
  178. width: 100%;
  179. line-height: 1;
  180. padding: 15px 15px 10px;
  181. display: -webkit-box;
  182. display: -webkit-flex;
  183. display: -ms-flexbox;
  184. display: flex;
  185. -webkit-align-items: center;
  186. align-items: center;
  187. }
  188. .top-bar__headline {
  189. margin: 0;
  190. font-size: 0.75em;
  191. }
  192. /* Menu button for toggling the sidebar (appears on small screen) */
  193. .menu-toggle {
  194. position: fixed;
  195. z-index: 100;
  196. display: block;
  197. width: 25px;
  198. height: 25px;
  199. top: 14px;
  200. left: 14px;
  201. cursor: pointer;
  202. background: none;
  203. border: none;
  204. display: none;
  205. margin: -2px 15px 0 0;
  206. }
  207. .menu-toggle span {
  208. position: absolute;
  209. top: 50%;
  210. left: 0;
  211. display: block;
  212. width: 100%;
  213. height: 2px;
  214. background-color: #81c483;
  215. font-size: 0px;
  216. -webkit-touch-callout: none;
  217. -webkit-user-select: none;
  218. -khtml-user-select: none;
  219. -moz-user-select: none;
  220. -ms-user-select: none;
  221. user-select: none;
  222. }
  223. .menu-toggle span:before,
  224. .menu-toggle span:after {
  225. position: absolute;
  226. left: 0;
  227. width: 100%;
  228. height: 100%;
  229. background: #81c483;
  230. content: '';
  231. }
  232. .menu-toggle span:before {
  233. -webkit-transform: translateY(-7px);
  234. transform: translateY(-7px);
  235. }
  236. .menu-toggle span:after {
  237. -webkit-transform: translateY(7px);
  238. transform: translateY(7px);
  239. }
  240. /* Filter/dropdown dummy on the right */
  241. .filter {
  242. text-align: right;
  243. font-size: 0.75em;
  244. margin-left: auto;
  245. }
  246. .dropdown {
  247. font-weight: bold;
  248. margin-left: 5px;
  249. cursor: pointer;
  250. color: #81c483;
  251. }
  252. .dropdown::after {
  253. content: '\25BC';
  254. margin-left: 2px;
  255. font-size: 80%;
  256. }
  257. /* Grid item */
  258. .grid__item {
  259. padding: 45px 55px 30px;
  260. position: relative;
  261. color: inherit;
  262. background: #fff;
  263. min-height: 300px;
  264. cursor: pointer;
  265. text-align: center;
  266. display: -webkit-box;
  267. display: -webkit-flex;
  268. display: -ms-flexbox;
  269. display: flex;
  270. -webkit-box-direction: normal;
  271. -webkit-box-orient: vertical;
  272. -webkit-flex-direction: column;
  273. -ms-flex-direction: column;
  274. flex-direction: column;
  275. -webkit-justify-content: center;
  276. justify-content: center;
  277. }
  278. /* Grid item "border" */
  279. .grid__item::before {
  280. position: absolute;
  281. content: '';
  282. top: 0px;
  283. right: 55px;
  284. bottom: 0px;
  285. left: 55px;
  286. border-bottom: 1px solid rgba(74, 74, 74, 0.075);
  287. }
  288. .grid__item * {
  289. z-index: 10;
  290. }
  291. /* grid item element and full content element styles */
  292. .title {
  293. margin: 0;
  294. font-size: 1.875em;
  295. font-family: "Playfair Display", serif;
  296. text-align: center;
  297. }
  298. .title--preview {
  299. -webkit-flex: 1;
  300. flex: 1;
  301. display: -webkit-flex;
  302. display: flex;
  303. -webkit-align-items: center;
  304. align-items: center;
  305. -webkit-justify-content: center;
  306. justify-content: center;
  307. width: 100%;
  308. }
  309. .loader {
  310. height: 1px;
  311. width: 40%;
  312. margin: 1em auto;
  313. position: relative;
  314. background: rgba(0, 0, 0, 0.1);
  315. }
  316. .loader::before {
  317. content: '';
  318. position: absolute;
  319. width: 100%;
  320. height: 3px;
  321. background: #a4e7ad;
  322. left: 0;
  323. top: -1px;
  324. -webkit-transform: scale3d(0, 1, 1);
  325. transform: scale3d(0, 1, 1);
  326. -webkit-transform-origin: 0% 50%;
  327. transform-origin: 0% 50%;
  328. }
  329. .grid__item--loading .loader::before {
  330. -webkit-transition: -webkit-transform 1s;
  331. transition: transform 1s;
  332. -webkit-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  333. transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  334. -webkit-transform: scale3d(1, 1, 1);
  335. transform: scale3d(1, 1, 1);
  336. }
  337. .category {
  338. margin: 0;
  339. position: relative;
  340. font-size: 0.95em;
  341. font-style: italic;
  342. font-family: "Playfair Display", serif;
  343. text-align: center;
  344. display: block;
  345. }
  346. .title--preview,
  347. .loader,
  348. .category {
  349. -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
  350. transition: transform 0.2s, opacity 0.2s;
  351. -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
  352. transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
  353. }
  354. /* closing (delays) */
  355. .title--preview {
  356. -webkit-transition-delay: 0.15s;
  357. transition-delay: 0.15s;
  358. }
  359. .loader {
  360. -webkit-transition-delay: 0.1s;
  361. transition-delay: 0.1s;
  362. }
  363. .grid__item .category {
  364. -webkit-transition-delay: 0s;
  365. transition-delay: 0s;
  366. }
  367. /* opening */
  368. .grid__item--animate .title--preview {
  369. -webkit-transition-delay: 0s;
  370. transition-delay: 0s;
  371. opacity: 0;
  372. -webkit-transform: translate3d(0, -20px, 0);
  373. transform: translate3d(0, -20px, 0);
  374. }
  375. .grid__item--animate .loader {
  376. -webkit-transition-delay: 0.1s;
  377. transition-delay: 0.1s;
  378. opacity: 0;
  379. -webkit-transform: translate3d(0, -30px, 0);
  380. transform: translate3d(0, -30px, 0);
  381. }
  382. .grid__item--animate .category {
  383. -webkit-transition-delay: 0.15s;
  384. transition-delay: 0.15s;
  385. opacity: 0;
  386. -webkit-transform: translate3d(0, -40px, 0);
  387. transform: translate3d(0, -40px, 0);
  388. }
  389. .meta {
  390. font-size: 0.765em;
  391. text-align: left;
  392. }
  393. .meta .fa {
  394. margin-right: 4px;
  395. }
  396. .meta:before, .meta:after {
  397. display: table;
  398. content: '';
  399. }
  400. .meta:after {
  401. clear: both;
  402. }
  403. .meta__avatar {
  404. display: block;
  405. border-radius: 50%;
  406. margin: 2em auto;
  407. }
  408. .meta--preview .meta__avatar {
  409. -webkit-filter: grayscale(50%);
  410. filter: grayscale(50%);
  411. }
  412. .grid__item:hover .meta--preview .meta__avatar,
  413. .grid__item:focus .meta--preview .meta__avatar {
  414. -webkit-filter: none;
  415. filter: none;
  416. }
  417. .meta__date,
  418. .meta__reading-time {
  419. display: block;
  420. float: left;
  421. color: #aaa;
  422. }
  423. .meta__reading-time {
  424. text-align: right;
  425. float: right;
  426. }
  427. .meta__misc {
  428. display: block;
  429. clear: both;
  430. text-align: left;
  431. padding: 5px 0;
  432. }
  433. .meta__misc--seperator {
  434. padding: 20px 0 0;
  435. margin: 65px 0 0;
  436. border-top: 1px solid #f5f5f5;
  437. }
  438. .article-nav {
  439. display: -webkit-flex;
  440. display: flex;
  441. -webkit-justify-content: space-between;
  442. justify-content: space-between;
  443. }
  444. .article-nav button {
  445. border: none;
  446. color: #81c483;
  447. background: none;
  448. }
  449. .article-nav button:hover {
  450. color: #333;
  451. }
  452. .meta--preview .meta__avatar,
  453. .meta--preview .meta__date,
  454. .meta--preview .meta__reading-time {
  455. -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
  456. transition: transform 0.3s, opacity 0.3s;
  457. -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  458. transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  459. }
  460. .grid__item--loading .meta__avatar {
  461. -webkit-transition-delay: 0.1s;
  462. transition-delay: 0.1s;
  463. }
  464. .grid__item--loading .meta__date {
  465. -webkit-transition-delay: 0.17s;
  466. transition-delay: 0.17s;
  467. }
  468. .grid__item--loading .meta__reading-time {
  469. -webkit-transition-delay: 0.24s;
  470. transition-delay: 0.24s;
  471. }
  472. .grid__item--loading .meta__avatar,
  473. .grid__item--loading .meta__date,
  474. .grid__item--loading .meta__reading-time {
  475. -webkit-transform: scale3d(0.5, 0.5, 1);
  476. transform: scale3d(0.5, 0.5, 1);
  477. opacity: 0;
  478. }
  479. /* Grid footer */
  480. .page-meta {
  481. width: 100%;
  482. background: #fff;
  483. width: 100%;
  484. padding: 15px 15px 10px;
  485. text-align: center;
  486. font-size: 0.75em;
  487. font-weight: bold;
  488. cursor: default;
  489. }
  490. /* Placeholder element (dummy that gets animated when we click on an item) */
  491. .placeholder {
  492. pointer-events: none;
  493. position: absolute;
  494. width: calc(100% + 5px);
  495. height: calc(100vh + 5px);
  496. z-index: 100;
  497. top: 0;
  498. left: 0;
  499. background: #fff;
  500. -webkit-transform-origin: 0 0;
  501. transform-origin: 0 0;
  502. }
  503. .placeholder.placeholder--trans-in {
  504. -webkit-transition: -webkit-transform 0.5s;
  505. transition: transform 0.5s;
  506. -webkit-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  507. transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  508. }
  509. .placeholder.placeholder--trans-out {
  510. -webkit-transition: -webkit-transform 0.5s;
  511. transition: transform 0.5s;
  512. }
  513. /* main content */
  514. .content {
  515. position: absolute;
  516. top: 0;
  517. left: 0;
  518. width: 100%;
  519. pointer-events: none;
  520. height: 0;
  521. /* Avoid second scroll bar in Chrome! */
  522. visibility: hidden;
  523. z-index: 400;
  524. overflow: hidden;
  525. }
  526. .content.content--show {
  527. height: 100vh;
  528. pointer-events: auto;
  529. visibility: visible;
  530. }
  531. /* scroll helper wrap */
  532. .scroll-wrap {
  533. position: absolute;
  534. width: 100%;
  535. height: 100%;
  536. left: 0;
  537. top: 0;
  538. z-index: 1;
  539. overflow-y: scroll;
  540. -webkit-overflow-scrolling: touch;
  541. }
  542. /* single content item */
  543. .content__item {
  544. position: absolute;
  545. top: 0;
  546. width: 100%;
  547. overflow: hidden;
  548. height: 0;
  549. opacity: 0;
  550. padding: 60px 60px 80px 60px;
  551. pointer-events: none;
  552. font-size: 0.85em;
  553. }
  554. .content__item p {
  555. max-width: 1200px;
  556. margin: 1em auto;
  557. text-align: justify;
  558. }
  559. .content__item p:first-of-type {
  560. font-size: 1.35em;
  561. }
  562. .content__item.content__item--show {
  563. height: auto;
  564. min-height: 100vh;
  565. opacity: 1;
  566. pointer-events: auto;
  567. -webkit-transition: opacity 0.6s;
  568. transition: opacity 0.6s;
  569. }
  570. /* content elements */
  571. .category--full {
  572. font-size: 1.25em;
  573. margin-bottom: 20px;
  574. color: #81c483;
  575. }
  576. .title--full {
  577. font-size: 3.25em;
  578. }
  579. .meta--full {
  580. font-size: 1em;
  581. margin: 0 auto 2em;
  582. max-width: 1200px;
  583. }
  584. .meta--full .meta__author {
  585. display: block;
  586. text-align: center;
  587. font-weight: bold;
  588. margin-bottom: 20px;
  589. }
  590. .meta--full .meta__author::before {
  591. content: 'by ';
  592. font-weight: normal;
  593. }
  594. .meta--full .meta__category {
  595. font-style: italic;
  596. float: left;
  597. margin: 0 5px;
  598. font-family: "Playfair Display", serif;
  599. }
  600. .meta--full .meta__category::before {
  601. content: "in ";
  602. }
  603. .meta--full .meta__avatar {
  604. margin: 1em auto;
  605. }
  606. .category--full,
  607. .title--full,
  608. .meta--full .meta__avatar,
  609. .meta--full .meta__author,
  610. .meta--full .meta__date,
  611. .meta--full .meta__reading-time {
  612. opacity: 0;
  613. }
  614. .content__item p {
  615. opacity: 0;
  616. }
  617. .category--full,
  618. .title--full {
  619. -webkit-transform: translate3d(0, 40px, 0);
  620. transform: translate3d(0, 40px, 0);
  621. }
  622. .meta--full .meta__avatar,
  623. .meta--full .meta__author,
  624. .meta--full .meta__date,
  625. .meta--full .meta__reading-time {
  626. -webkit-transform: scale3d(0.5, 0.5, 1);
  627. transform: scale3d(0.5, 0.5, 1);
  628. }
  629. .content__item--show .category--full,
  630. .content__item--show .title--full,
  631. .content__item--show .meta--full .meta__avatar,
  632. .content__item--show .meta--full .meta__author,
  633. .content__item--show .meta--full .meta__date,
  634. .content__item--show .meta--full .meta__reading-time {
  635. opacity: 1;
  636. -webkit-transform: translate3d(0, 0, 0);
  637. transform: translate3d(0, 0, 0);
  638. -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
  639. transition: transform 0.3s, opacity 0.3s;
  640. -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  641. transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  642. }
  643. .content__item--show .category--full,
  644. .content__item--show .title--full {
  645. -webkit-transition-timing-function: ease-out;
  646. transition-timing-function: ease-out;
  647. }
  648. .content__item--show .title--full {
  649. -webkit-transition-delay: 0.05s;
  650. transition-delay: 0.05s;
  651. }
  652. .content__item--show .meta--full .meta__avatar {
  653. -webkit-transition-delay: 0.2s;
  654. transition-delay: 0.2s;
  655. }
  656. .content__item--show .meta--full .meta__date {
  657. -webkit-transition-delay: 0.27s;
  658. transition-delay: 0.27s;
  659. }
  660. .content__item--show .meta--full .meta__reading-time {
  661. -webkit-transition-delay: 0.34s;
  662. transition-delay: 0.34s;
  663. }
  664. .content__item--show.content__item p {
  665. opacity: 1;
  666. -webkit-transition: opacity 0.5s 0.25s;
  667. transition: opacity 0.5s 0.25s;
  668. }
  669. /* close button (for content and sidebar) */
  670. .close-button {
  671. position: absolute;
  672. border: none;
  673. background: none;
  674. margin: 0;
  675. z-index: 100;
  676. top: 0;
  677. right: 0;
  678. font-size: 18px;
  679. color: #ddd;
  680. cursor: pointer;
  681. pointer-events: none;
  682. padding: 20px 30px;
  683. opacity: 0;
  684. -webkit-touch-callout: none;
  685. -webkit-user-select: none;
  686. -khtml-user-select: none;
  687. -moz-user-select: none;
  688. -ms-user-select: none;
  689. user-select: none;
  690. -webkit-transition: opacity 0.3s;
  691. transition: opacity 0.3s;
  692. }
  693. .close-button span {
  694. display: none;
  695. }
  696. .close-button:hover {
  697. color: #7b7b7b;
  698. }
  699. /* show class for content close button */
  700. .close-button--show {
  701. opacity: 1;
  702. pointer-events: auto;
  703. }
  704. /* Viewport sizes based on column number and sidebar */
  705. /* 1 column */
  706. /* 2 columns */
  707. /* 3 columns */
  708. /* 4 columns */
  709. /* 5 columns */
  710. /* 6 columns */
  711. @media screen and (min-width: 600px) {
  712. html,
  713. body,
  714. .container,
  715. .main {
  716. height: 100vh;
  717. }
  718. .main {
  719. height: 100%;
  720. margin-left: 300px;
  721. }
  722. .content__item {
  723. font-size: 1em;
  724. }
  725. .grid__item {
  726. padding: 45px 45px 30px;
  727. }
  728. /* Demo ad */
  729. body #cdawrap {
  730. right: auto;
  731. left: 30px;
  732. top: auto;
  733. bottom: 0;
  734. background: none;
  735. border: none;
  736. width: 240px;
  737. background: #f5f5f5;
  738. }
  739. body #cdawrap .carbon-text {
  740. color: #7b7b7b;
  741. }
  742. body #cdawrap a.carbon-poweredby {
  743. color: #7883C4;
  744. }
  745. body #cdawrap a:hover.carbon-poweredby {
  746. color: #333;
  747. }
  748. body #cdawrap #cda-remove {
  749. display: none;
  750. }
  751. }
  752. @media screen and (min-width: 900px) {
  753. .grid {
  754. display: -webkit-box;
  755. display: -webkit-flex;
  756. display: -ms-flexbox;
  757. display: flex;
  758. -webkit-flex-wrap: wrap;
  759. -ms-flex-wrap: wrap;
  760. flex-wrap: wrap;
  761. }
  762. /* 2 columns */
  763. .grid__item {
  764. width: 50%;
  765. border: none;
  766. }
  767. .grid__item::before {
  768. top: 5px;
  769. right: 5px;
  770. bottom: 5px;
  771. left: 5px;
  772. border: 1px solid rgba(74, 74, 74, 0.075);
  773. -webkit-transition: opacity 0.3s;
  774. transition: opacity 0.3s;
  775. }
  776. .grid__item:hover::before,
  777. .grid__item:focus::before {
  778. border: 3px solid rgba(129, 196, 131, 0.5);
  779. }
  780. .grid__item--loading.grid__item::before {
  781. opacity: 0;
  782. }
  783. }
  784. @media screen and (min-width: 1200px) {
  785. /* 3 columns */
  786. .grid__item {
  787. width: 33.333%;
  788. }
  789. }
  790. @media screen and (min-width: 1500px) {
  791. /* 4 columns */
  792. .grid__item {
  793. width: 25%;
  794. }
  795. }
  796. @media screen and (min-width: 1800px) {
  797. /* 5 columns */
  798. .grid__item {
  799. width: 20%;
  800. }
  801. }
  802. @media screen and (min-width: 2100px) {
  803. /* 6 columns */
  804. .grid__item {
  805. width: 16.66%;
  806. }
  807. }
  808. /* small screen changes for sidebar (it becomes an off-canvas menu) */
  809. @media screen and (max-width: 599px) {
  810. .sidebar {
  811. -webkit-transform: translate3d(-100%, 0, 0);
  812. transform: translate3d(-100%, 0, 0);
  813. -webkit-transition: -webkit-transform 0.3s;
  814. transition: -webkit-transform 0.3s;
  815. }
  816. .sidebar.sidebar--open {
  817. -webkit-transform: translate3d(0, 0, 0);
  818. transform: translate3d(0, 0, 0);
  819. }
  820. .sidebar.sidebar--open ~ .main {
  821. pointer-events: none;
  822. }
  823. .top-bar {
  824. padding: 22px 15px 10px 60px;
  825. }
  826. .menu-toggle {
  827. display: inline-block;
  828. }
  829. .sidebar .close-button {
  830. opacity: 1;
  831. pointer-events: auto;
  832. }
  833. .title--full {
  834. font-size: 2em;
  835. }
  836. .content__item {
  837. padding: 80px 20px 40px;
  838. }
  839. .content .close-button {
  840. padding: 10px 20px;
  841. }
  842. .content .close-button::before {
  843. content: '';
  844. position: absolute;
  845. top: 0;
  846. right: 0;
  847. background: #fff;
  848. border-bottom: 1px solid #f5f5f5;
  849. width: 100vw;
  850. height: 50px;
  851. pointer-events: none;
  852. z-index: -1;
  853. }
  854. }
  855. @media screen and (max-height: 580px) {
  856. body #cdawrap {
  857. display: none;
  858. }
  859. }
  860. /* Redefine some styles for this layout */
  861. body {
  862. background: #f5f5f5;
  863. }
  864. .content {
  865. left: auto;
  866. right: 0;
  867. width: 100vw;
  868. }
  869. .content__item p {
  870. font-size: 1.15em;
  871. }
  872. .content__item p:first-of-type {
  873. margin-top: 3em;
  874. font-size: 1.15em;
  875. font-weight: bold;
  876. }
  877. .fa-heart {
  878. color: #c84252;
  879. }
  880. /* Redefine the delays for the content items when they appear; redefine the translation (now from the left) */
  881. .title--preview {
  882. -webkit-transition-delay: 0.15s;
  883. transition-delay: 0.15s;
  884. }
  885. .loader {
  886. -webkit-transition-delay: 0.1s;
  887. transition-delay: 0.1s;
  888. }
  889. .grid__item .category {
  890. -webkit-transition-delay: 0s;
  891. transition-delay: 0s;
  892. }
  893. .grid__item--animate .title--preview {
  894. -webkit-transition-delay: 0s;
  895. transition-delay: 0s;
  896. -webkit-transform: translate3d(-20px, 0, 0);
  897. transform: translate3d(-20px, 0, 0);
  898. }
  899. .grid__item--animate .loader {
  900. -webkit-transition-delay: 0.15s;
  901. transition-delay: 0.15s;
  902. -webkit-transform: translate3d(-30px, 0, 0);
  903. transform: translate3d(-30px, 0, 0);
  904. }
  905. .grid__item--animate .category {
  906. -webkit-transition-delay: 0.3s;
  907. transition-delay: 0.3s;
  908. -webkit-transform: translate3d(-40px, 0, 0);
  909. transform: translate3d(-40px, 0, 0);
  910. }
  911. .category--full,
  912. .title--full {
  913. -webkit-transform: translate3d(40px, 0, 0);
  914. transform: translate3d(40px, 0, 0);
  915. }
  916. .content__item--show .title--full {
  917. -webkit-transition-delay: 0.15s;
  918. transition-delay: 0.15s;
  919. }
  920. @media screen and (min-width: 600px) {
  921. .sidebar,
  922. .grid {
  923. -webkit-transition: -webkit-transform 0.5s;
  924. transition: transform 0.5s;
  925. }
  926. .view-single .sidebar,
  927. .view-single .grid {
  928. -webkit-transform: translate3d(calc(280px - 100vw), 0, 0);
  929. transform: translate3d(calc(280px - 100vw), 0, 0);
  930. }
  931. .content__item {
  932. right: 0;
  933. padding-left: 340px;
  934. }
  935. .meta--full {
  936. position: fixed;
  937. width: 280px;
  938. height: 100%;
  939. background: #fff;
  940. top: 0;
  941. left: 0;
  942. font-size: 0.85em;
  943. padding: 15px 30px;
  944. }
  945. .article-nav {
  946. position: absolute;
  947. bottom: 0;
  948. left: 0;
  949. right: 0;
  950. border-top: 1px solid #f5f5f5;
  951. }
  952. .article-nav button {
  953. width: 50%;
  954. padding: 25px;
  955. }
  956. .article-nav button:hover {
  957. color: #fff;
  958. background: #81c483;
  959. }
  960. .article-nav button:first-child {
  961. border-right: 1px solid #f5f5f5;
  962. }
  963. }
  964. @media screen and (max-width: 899px) {
  965. .meta--full .meta__date,
  966. .meta--full .meta__reading-time {
  967. float: none;
  968. text-align: center;
  969. }
  970. .meta__misc--seperator {
  971. margin-top: 20px;
  972. }
  973. .article-nav button span {
  974. display: none;
  975. }
  976. }
  977. @media screen and (max-width: 599px) {
  978. .meta__misc,
  979. .article-nav {
  980. display: none;
  981. }
  982. }
  983. /*# sourceMappingURL=style2.css.map */