This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from fofr/components
Create first components
- Loading branch information
Showing
16 changed files
with
321 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.cta { | ||
display: inline-block; | ||
border-radius: 50%; | ||
background: #000; | ||
border: 15px double #fff; | ||
transition: transform 100ms; | ||
|
||
&.cta-light { | ||
background: #fff; | ||
border-color: #000; | ||
} | ||
|
||
&:hover { | ||
border-width: 10px; | ||
transform: scale(1.4); | ||
} | ||
|
||
&:active { | ||
transform: scale(0.8); | ||
} | ||
} | ||
|
||
@mixin cta-size($size: 50px) { | ||
width: $size; | ||
height: $size; | ||
} | ||
|
||
.cta-default { | ||
@include cta-size(50px); | ||
} | ||
|
||
.cta-big { | ||
@include cta-size(100px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
h1, h2, h3 { | ||
margin-top: $default-vertical-margin * 2; | ||
margin-bottom: $default-vertical-margin; | ||
} | ||
|
||
.page-header { | ||
border-width: 5px; | ||
|
||
.page-title { | ||
margin-bottom: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.layout-splash { | ||
background: #111; | ||
color: #eee; | ||
font-family: $font-family-scifi-body; | ||
|
||
.splash-content { | ||
max-width: 500px; | ||
margin: 0 auto; | ||
@extend .clearfix; | ||
} | ||
|
||
.splash-title { | ||
font-family: $font-family-scifi-title; | ||
font-size: 48px; | ||
text-shadow: rgba(0,0,0,1) 0 2px 2px; | ||
letter-spacing: 0.25em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
.throbber { | ||
display: inline-block; | ||
border-radius: 50%; | ||
background: rgba(0,0,0,0.1); | ||
border-style: double; | ||
animation: throb 2s alternate infinite; | ||
transition: transform 100ms; | ||
|
||
&.throbber-light { | ||
background: rgba(255,255,255,0.3); | ||
animation-name: throb-light; | ||
} | ||
|
||
&:hover { | ||
background: rgba(0,0,0,0.3); | ||
border-style: solid; | ||
animation: end-throb 1s; | ||
animation-fill-mode: forwards; | ||
transform: scale(1.4); | ||
} | ||
|
||
&:hover.throbber-light { | ||
background: rgba(255,255,255,0.5); | ||
animation-name: end-throb-light; | ||
} | ||
} | ||
|
||
@mixin throbber-size($size: 30px) { | ||
width: $size; | ||
height: $size; | ||
} | ||
|
||
.throbber-default { | ||
@include throbber-size(30px); | ||
} | ||
|
||
.throbber-big { | ||
@include throbber-size(50px); | ||
} | ||
|
||
@mixin throb-frames($color: 0) { | ||
from, 75% { | ||
border-width: 15px; | ||
border-color: rgba($color,$color,$color,0); | ||
} | ||
|
||
to { | ||
border-width: 7px; | ||
border-color: rgba($color,$color,$color,.2); | ||
} | ||
} | ||
|
||
@keyframes throb { | ||
@include throb-frames(0); | ||
} | ||
|
||
@keyframes throb-light { | ||
@include throb-frames(255); | ||
} | ||
|
||
@mixin end-throb-frames($color: 0) { | ||
from { | ||
border-width: 3px; | ||
border-color: rgba($color,$color,$color,.5); | ||
} | ||
|
||
to, 25% { | ||
border-width: 10px; | ||
border-color: rgba($color,$color,$color,0); | ||
} | ||
} | ||
|
||
@keyframes end-throb { | ||
@include end-throb-frames(0); | ||
} | ||
|
||
@keyframes end-throb-light { | ||
@include end-throb-frames(255); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<header class="site-header"> | ||
<div class="wrapper"> | ||
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a> | ||
<nav class="navbar navbar-inverse" role="navigation"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="{{ site.baseurl }}/"> | ||
{{ site.title }} | ||
</a> | ||
</div> | ||
</header> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
--- | ||
layout: default | ||
--- | ||
<div class="post"> | ||
<header class="post-header"> | ||
<h1 class="post-title">{{ page.title }}</h1> | ||
<div class="page"> | ||
<header class="page-header"> | ||
<h1 class="page-title"> | ||
{{ page.title }} | ||
</h1> | ||
</header> | ||
<article class="post-content"> | ||
<article class="page-content"> | ||
{{ content }} | ||
</article> | ||
</div> |
Oops, something went wrong.