123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985 |
- @import url(http://fonts.googleapis.com/css?family=Playfair+Display+SC:400italic,700,900|Raleway:500|Martel+Sans:400,700);
- @font-face {
- font-weight: normal;
- font-style: normal;
- font-family: 'codropsicons';
- src: url("../fonts/codropsicons/codropsicons.eot");
- 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");
- }
- *, *:after, *:before {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
- .clearfix:before, .clearfix:after {
- display: table;
- content: '';
- }
- .clearfix:after {
- clear: both;
- }
- body {
- background: #fff;
- color: #7b7b7b;
- font-weight: 400;
- font-size: 16px;
- font-family: "Martel Sans", Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- overflow: hidden;
- overflow-y: scroll;
- /* force scroll to appear */
- }
- /* helper class when showing content */
- .noscroll {
- overflow: hidden;
- }
- a {
- outline: none;
- color: #81c483;
- text-decoration: none;
- }
- a:hover,
- a:focus {
- color: #333;
- outline: none;
- }
- button:focus {
- outline: none;
- }
- /* Sidebar */
- .sidebar {
- text-align: center;
- background: #f5f5f5;
- z-index: 1000;
- position: fixed;
- width: 300px;
- max-width: 100%;
- height: 100%;
- height: 100vh;
- top: 0;
- left: 0;
- padding: 2em 1em;
- }
- .sidebar h1 {
- margin: 0.75em 0 0;
- font-size: 2em;
- line-height: 1;
- font-family: "Playfair Display", serif;
- }
- .sidebar h1 span {
- display: block;
- }
- /* Codrops links */
- .codrops-links {
- position: relative;
- display: inline-block;
- text-align: center;
- white-space: nowrap;
- min-height: 45px;
- }
- .codrops-links::after {
- position: absolute;
- top: 0;
- left: 50%;
- width: 1px;
- height: 100%;
- background: #ddd;
- content: '';
- -webkit-transform: rotate3d(0, 0, 1, 22.5deg);
- transform: rotate3d(0, 0, 1, 22.5deg);
- }
- .codrops-icon {
- display: inline-block;
- margin: 0.5em;
- padding: 0em 0;
- width: 1.5em;
- text-decoration: none;
- }
- .codrops-icon span {
- display: none;
- }
- .codrops-icon:before {
- margin: 0 5px;
- text-transform: none;
- font-weight: normal;
- font-style: normal;
- font-variant: normal;
- font-family: 'codropsicons';
- line-height: 1;
- speak: none;
- }
- .codrops-icon--drop:before {
- content: "\e001";
- }
- .codrops-icon--prev:before {
- content: "\e004";
- }
- /* Demo links */
- .codrops-demos {
- margin: 2em 0 0;
- font-size: 0.75em;
- }
- .codrops-demos a {
- display: inline-block;
- margin: 0 0.5em;
- }
- .codrops-demos a.current-demo {
- color: #333;
- font-weight: bold;
- }
- .codrops-demos a.current-demo:focus {
- color: #aaa;
- }
- .related {
- font-size: 0.85em;
- padding-bottom: 1em;
- }
- .related h3 {
- margin: 3em 0 0.5em 0;
- font-size: 0.95em;
- }
- .related a {
- display: block;
- color: inherit;
- }
- .related a:hover,
- .related a:focus {
- color: #414741;
- }
- /* Main content */
- .main {
- position: relative;
- z-index: 50;
- }
- /* Grid container */
- .grid {
- position: relative;
- }
- /* Overlay */
- .grid::after {
- content: '';
- background: rgba(202, 202, 202, 0.4);
- opacity: 0;
- position: absolute;
- pointer-events: none;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- -webkit-transition: opacity 0.5s;
- transition: opacity 0.5s;
- }
- .view-single .grid::after {
- opacity: 1;
- }
- /* Top bar above the grid */
- .top-bar {
- background: #fff;
- width: 100%;
- line-height: 1;
- padding: 15px 15px 10px;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- align-items: center;
- }
- .top-bar__headline {
- margin: 0;
- font-size: 0.75em;
- }
- /* Menu button for toggling the sidebar (appears on small screen) */
- .menu-toggle {
- position: fixed;
- z-index: 100;
- display: block;
- width: 25px;
- height: 25px;
- top: 14px;
- left: 14px;
- cursor: pointer;
- background: none;
- border: none;
- display: none;
- margin: -2px 15px 0 0;
- }
- .menu-toggle span {
- position: absolute;
- top: 50%;
- left: 0;
- display: block;
- width: 100%;
- height: 2px;
- background-color: #81c483;
- font-size: 0px;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
- .menu-toggle span:before,
- .menu-toggle span:after {
- position: absolute;
- left: 0;
- width: 100%;
- height: 100%;
- background: #81c483;
- content: '';
- }
- .menu-toggle span:before {
- -webkit-transform: translateY(-7px);
- transform: translateY(-7px);
- }
- .menu-toggle span:after {
- -webkit-transform: translateY(7px);
- transform: translateY(7px);
- }
- /* Filter/dropdown dummy on the right */
- .filter {
- text-align: right;
- font-size: 0.75em;
- margin-left: auto;
- }
- .dropdown {
- font-weight: bold;
- margin-left: 5px;
- cursor: pointer;
- color: #81c483;
- }
- .dropdown::after {
- content: '\25BC';
- margin-left: 2px;
- font-size: 80%;
- }
- /* Grid item */
- .grid__item {
- padding: 45px 55px 30px;
- position: relative;
- color: inherit;
- background: #fff;
- min-height: 300px;
- cursor: pointer;
- text-align: center;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-direction: normal;
- -webkit-box-orient: vertical;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-justify-content: center;
- justify-content: center;
- }
- /* Grid item "border" */
- .grid__item::before {
- position: absolute;
- content: '';
- top: 0px;
- right: 55px;
- bottom: 0px;
- left: 55px;
- border-bottom: 1px solid rgba(74, 74, 74, 0.075);
- }
- .grid__item * {
- z-index: 10;
- }
- /* grid item element and full content element styles */
- .title {
- margin: 0;
- font-size: 1.875em;
- font-family: "Playfair Display", serif;
- text-align: center;
- }
- .title--preview {
- -webkit-flex: 1;
- flex: 1;
- display: -webkit-flex;
- display: flex;
- -webkit-align-items: center;
- align-items: center;
- -webkit-justify-content: center;
- justify-content: center;
- width: 100%;
- }
- .loader {
- height: 1px;
- width: 40%;
- margin: 1em auto;
- position: relative;
- background: rgba(0, 0, 0, 0.1);
- }
- .loader::before {
- content: '';
- position: absolute;
- width: 100%;
- height: 3px;
- background: #a4e7ad;
- left: 0;
- top: -1px;
- -webkit-transform: scale3d(0, 1, 1);
- transform: scale3d(0, 1, 1);
- -webkit-transform-origin: 0% 50%;
- transform-origin: 0% 50%;
- }
- .grid__item--loading .loader::before {
- -webkit-transition: -webkit-transform 1s;
- transition: transform 1s;
- -webkit-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
- transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- }
- .category {
- margin: 0;
- position: relative;
- font-size: 0.95em;
- font-style: italic;
- font-family: "Playfair Display", serif;
- text-align: center;
- display: block;
- }
- .title--preview,
- .loader,
- .category {
- -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
- transition: transform 0.2s, opacity 0.2s;
- -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
- transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
- }
- /* closing (delays) */
- .title--preview {
- -webkit-transition-delay: 0.15s;
- transition-delay: 0.15s;
- }
- .loader {
- -webkit-transition-delay: 0.1s;
- transition-delay: 0.1s;
- }
- .grid__item .category {
- -webkit-transition-delay: 0s;
- transition-delay: 0s;
- }
- /* opening */
- .grid__item--animate .title--preview {
- -webkit-transition-delay: 0s;
- transition-delay: 0s;
- opacity: 0;
- -webkit-transform: translate3d(0, -20px, 0);
- transform: translate3d(0, -20px, 0);
- }
- .grid__item--animate .loader {
- -webkit-transition-delay: 0.1s;
- transition-delay: 0.1s;
- opacity: 0;
- -webkit-transform: translate3d(0, -30px, 0);
- transform: translate3d(0, -30px, 0);
- }
- .grid__item--animate .category {
- -webkit-transition-delay: 0.15s;
- transition-delay: 0.15s;
- opacity: 0;
- -webkit-transform: translate3d(0, -40px, 0);
- transform: translate3d(0, -40px, 0);
- }
- .meta {
- font-size: 0.765em;
- text-align: left;
- }
- .meta .fa {
- margin-right: 4px;
- }
- .meta:before, .meta:after {
- display: table;
- content: '';
- }
- .meta:after {
- clear: both;
- }
- .meta__avatar {
- display: block;
- border-radius: 50%;
- margin: 2em auto;
- }
- .meta--preview .meta__avatar {
- -webkit-filter: grayscale(50%);
- filter: grayscale(50%);
- }
- .grid__item:hover .meta--preview .meta__avatar,
- .grid__item:focus .meta--preview .meta__avatar {
- -webkit-filter: none;
- filter: none;
- }
- .meta__date,
- .meta__reading-time {
- display: block;
- float: left;
- color: #aaa;
- }
- .meta__reading-time {
- text-align: right;
- float: right;
- }
- .meta__misc {
- display: block;
- clear: both;
- text-align: left;
- padding: 5px 0;
- }
- .meta__misc--seperator {
- padding: 20px 0 0;
- margin: 65px 0 0;
- border-top: 1px solid #f5f5f5;
- }
- .article-nav {
- display: -webkit-flex;
- display: flex;
- -webkit-justify-content: space-between;
- justify-content: space-between;
- }
- .article-nav button {
- border: none;
- color: #81c483;
- background: none;
- }
- .article-nav button:hover {
- color: #333;
- }
- .meta--preview .meta__avatar,
- .meta--preview .meta__date,
- .meta--preview .meta__reading-time {
- -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
- transition: transform 0.3s, opacity 0.3s;
- -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
- transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
- }
- .grid__item--loading .meta__avatar {
- -webkit-transition-delay: 0.1s;
- transition-delay: 0.1s;
- }
- .grid__item--loading .meta__date {
- -webkit-transition-delay: 0.17s;
- transition-delay: 0.17s;
- }
- .grid__item--loading .meta__reading-time {
- -webkit-transition-delay: 0.24s;
- transition-delay: 0.24s;
- }
- .grid__item--loading .meta__avatar,
- .grid__item--loading .meta__date,
- .grid__item--loading .meta__reading-time {
- -webkit-transform: scale3d(0.5, 0.5, 1);
- transform: scale3d(0.5, 0.5, 1);
- opacity: 0;
- }
- /* Grid footer */
- .page-meta {
- width: 100%;
- background: #fff;
- width: 100%;
- padding: 15px 15px 10px;
- text-align: center;
- font-size: 0.75em;
- font-weight: bold;
- cursor: default;
- }
- /* Placeholder element (dummy that gets animated when we click on an item) */
- .placeholder {
- pointer-events: none;
- position: absolute;
- width: calc(100% + 5px);
- height: calc(100vh + 5px);
- z-index: 100;
- top: 0;
- left: 0;
- background: #fff;
- -webkit-transform-origin: 0 0;
- transform-origin: 0 0;
- }
- .placeholder.placeholder--trans-in {
- -webkit-transition: -webkit-transform 0.5s;
- transition: transform 0.5s;
- -webkit-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
- transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
- }
- .placeholder.placeholder--trans-out {
- -webkit-transition: -webkit-transform 0.5s;
- transition: transform 0.5s;
- }
- /* main content */
- .content {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- pointer-events: none;
- height: 0;
- /* Avoid second scroll bar in Chrome! */
- visibility: hidden;
- z-index: 400;
- overflow: hidden;
- }
- .content.content--show {
- height: 100vh;
- pointer-events: auto;
- visibility: visible;
- }
- /* scroll helper wrap */
- .scroll-wrap {
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- z-index: 1;
- overflow-y: scroll;
- -webkit-overflow-scrolling: touch;
- }
- /* single content item */
- .content__item {
- position: absolute;
- top: 0;
- width: 100%;
- overflow: hidden;
- height: 0;
- opacity: 0;
- padding: 60px 60px 80px 60px;
- pointer-events: none;
- font-size: 0.85em;
- }
- .content__item p {
- max-width: 1200px;
- margin: 1em auto;
- text-align: justify;
- }
- .content__item p:first-of-type {
- font-size: 1.35em;
- }
- .content__item.content__item--show {
- height: auto;
- min-height: 100vh;
- opacity: 1;
- pointer-events: auto;
- -webkit-transition: opacity 0.6s;
- transition: opacity 0.6s;
- }
- /* content elements */
- .category--full {
- font-size: 1.25em;
- margin-bottom: 20px;
- color: #81c483;
- }
- .title--full {
- font-size: 3.25em;
- }
- .meta--full {
- font-size: 1em;
- margin: 0 auto 2em;
- max-width: 1200px;
- }
- .meta--full .meta__author {
- display: block;
- text-align: center;
- font-weight: bold;
- margin-bottom: 20px;
- }
- .meta--full .meta__author::before {
- content: 'by ';
- font-weight: normal;
- }
- .meta--full .meta__category {
- font-style: italic;
- float: left;
- margin: 0 5px;
- font-family: "Playfair Display", serif;
- }
- .meta--full .meta__category::before {
- content: "in ";
- }
- .meta--full .meta__avatar {
- margin: 1em auto;
- }
- .category--full,
- .title--full,
- .meta--full .meta__avatar,
- .meta--full .meta__author,
- .meta--full .meta__date,
- .meta--full .meta__reading-time {
- opacity: 0;
- }
- .content__item p {
- opacity: 0;
- }
- .category--full,
- .title--full {
- -webkit-transform: translate3d(0, 40px, 0);
- transform: translate3d(0, 40px, 0);
- }
- .meta--full .meta__avatar,
- .meta--full .meta__author,
- .meta--full .meta__date,
- .meta--full .meta__reading-time {
- -webkit-transform: scale3d(0.5, 0.5, 1);
- transform: scale3d(0.5, 0.5, 1);
- }
- .content__item--show .category--full,
- .content__item--show .title--full,
- .content__item--show .meta--full .meta__avatar,
- .content__item--show .meta--full .meta__author,
- .content__item--show .meta--full .meta__date,
- .content__item--show .meta--full .meta__reading-time {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
- transition: transform 0.3s, opacity 0.3s;
- -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
- transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
- }
- .content__item--show .category--full,
- .content__item--show .title--full {
- -webkit-transition-timing-function: ease-out;
- transition-timing-function: ease-out;
- }
- .content__item--show .title--full {
- -webkit-transition-delay: 0.05s;
- transition-delay: 0.05s;
- }
- .content__item--show .meta--full .meta__avatar {
- -webkit-transition-delay: 0.2s;
- transition-delay: 0.2s;
- }
- .content__item--show .meta--full .meta__date {
- -webkit-transition-delay: 0.27s;
- transition-delay: 0.27s;
- }
- .content__item--show .meta--full .meta__reading-time {
- -webkit-transition-delay: 0.34s;
- transition-delay: 0.34s;
- }
- .content__item--show.content__item p {
- opacity: 1;
- -webkit-transition: opacity 0.5s 0.25s;
- transition: opacity 0.5s 0.25s;
- }
- /* close button (for content and sidebar) */
- .close-button {
- position: absolute;
- border: none;
- background: none;
- margin: 0;
- z-index: 100;
- top: 0;
- right: 0;
- font-size: 18px;
- color: #ddd;
- cursor: pointer;
- pointer-events: none;
- padding: 20px 30px;
- opacity: 0;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-transition: opacity 0.3s;
- transition: opacity 0.3s;
- }
- .close-button span {
- display: none;
- }
- .close-button:hover {
- color: #7b7b7b;
- }
- /* show class for content close button */
- .close-button--show {
- opacity: 1;
- pointer-events: auto;
- }
- /* Viewport sizes based on column number and sidebar */
- /* 1 column */
- /* 2 columns */
- /* 3 columns */
- /* 4 columns */
- /* 5 columns */
- /* 6 columns */
- @media screen and (min-width: 600px) {
- html,
- body,
- .container,
- .main {
- height: 100vh;
- }
- .main {
- height: 100%;
- margin-left: 300px;
- }
- .content__item {
- font-size: 1em;
- }
- .grid__item {
- padding: 45px 45px 30px;
- }
- /* Demo ad */
- body #cdawrap {
- right: auto;
- left: 30px;
- top: auto;
- bottom: 0;
- background: none;
- border: none;
- width: 240px;
- background: #f5f5f5;
- }
- body #cdawrap .carbon-text {
- color: #7b7b7b;
- }
- body #cdawrap a.carbon-poweredby {
- color: #7883C4;
- }
- body #cdawrap a:hover.carbon-poweredby {
- color: #333;
- }
- body #cdawrap #cda-remove {
- display: none;
- }
- }
- @media screen and (min-width: 900px) {
- .grid {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- }
- /* 2 columns */
- .grid__item {
- width: 50%;
- border: none;
- }
- .grid__item::before {
- top: 5px;
- right: 5px;
- bottom: 5px;
- left: 5px;
- border: 1px solid rgba(74, 74, 74, 0.075);
- -webkit-transition: opacity 0.3s;
- transition: opacity 0.3s;
- }
- .grid__item:hover::before,
- .grid__item:focus::before {
- border: 3px solid rgba(129, 196, 131, 0.5);
- }
- .grid__item--loading.grid__item::before {
- opacity: 0;
- }
- }
- @media screen and (min-width: 1200px) {
- /* 3 columns */
- .grid__item {
- width: 33.333%;
- }
- }
- @media screen and (min-width: 1500px) {
- /* 4 columns */
- .grid__item {
- width: 25%;
- }
- }
- @media screen and (min-width: 1800px) {
- /* 5 columns */
- .grid__item {
- width: 20%;
- }
- }
- @media screen and (min-width: 2100px) {
- /* 6 columns */
- .grid__item {
- width: 16.66%;
- }
- }
- /* small screen changes for sidebar (it becomes an off-canvas menu) */
- @media screen and (max-width: 599px) {
- .sidebar {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
- -webkit-transition: -webkit-transform 0.3s;
- transition: -webkit-transform 0.3s;
- }
- .sidebar.sidebar--open {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- }
- .sidebar.sidebar--open ~ .main {
- pointer-events: none;
- }
- .top-bar {
- padding: 22px 15px 10px 60px;
- }
- .menu-toggle {
- display: inline-block;
- }
- .sidebar .close-button {
- opacity: 1;
- pointer-events: auto;
- }
- .title--full {
- font-size: 2em;
- }
- .content__item {
- padding: 80px 20px 40px;
- }
- .content .close-button {
- padding: 10px 20px;
- }
- .content .close-button::before {
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- background: #fff;
- border-bottom: 1px solid #f5f5f5;
- width: 100vw;
- height: 50px;
- pointer-events: none;
- z-index: -1;
- }
- }
- @media screen and (max-height: 580px) {
- body #cdawrap {
- display: none;
- }
- }
- /*# sourceMappingURL=style1.css.map */
|