Move to Adam's Blog template

This commit is contained in:
Madison Scott-Clary
2017-09-06 13:04:59 -06:00
parent faf67db776
commit a814cdf0ab
58 changed files with 8508 additions and 213 deletions

View File

@ -0,0 +1,67 @@
.small-wrapper {
width: 700px;
max-width: 90%;
margin: 0 auto;
}
.about-container {
margin: 100px 0 100px;
}
.about-header {
position: relative;
text-align: center;
padding-bottom: 30px;
margin-bottom: 30px;
&:after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
display: block;
height: 1px;
width: 80px;
background-color: $dark-purple;
}
.author-image-container {
width: 100px;
height: 100px;
border-radius: 100%;
overflow: hidden;
margin: 0 auto 30px;
}
.subtitle {
color: $dark-purple;
font-weight: 300;
margin: 0;
}
}
.about-body {
.contact-list {
margin: 0;
padding: 0;
list-style: none;
text-align: center;
li {
display: inline-block;
margin-left: 10px;
&:first-child {
margin-left: 0;
}
a {
display: block;
color: $light-gray;
font-size: 21px;
text-decoration: none;
padding: 5px;
transition: all 350ms cubic-bezier(0.13, 0.43, 0.54, 1.82);
&:hover {
color: $dark-pink;
transform: scale(1.3);
}
}
}
}
}

View File

@ -0,0 +1,42 @@
.main-header,
.page-image,
.page-content,
.about-container,
.post-card-box {
animation-duration: 0.7s;
animation-fill-mode: both;
animation-name: fadeInDown;
}
.main-header,
.page-image {
animation-delay: 0.5s;
}
.page-content,
.about-container,
.post-card-box {
animation-delay: 0.75s;
}
@-webkit-keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

View File

@ -0,0 +1,41 @@
.author-box {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
padding-bottom: 30px;
border-bottom: 1px solid $lighten-gray;
.author-img {
width: 120px;
height: 120px;
margin-right: 30px;
border-radius: 100%;
}
.author-desc {
h2 {
margin: 0 0 10px;
}
p {
margin: 0 0 10px;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
display: inline-block;
margin-left: 10px;
&:first-child {
margin-left: 0;
}
a {
font-size: 18px;
color: $dark-gray;
&:hover {
opacity: .8;
}
}
}
}
}

View File

@ -0,0 +1,10 @@
.main-footer {
padding: 15px 0;
background-color: #efefef;
.copyright {
text-align: center;
color: $dark-purple;
font-size: 16px;
}
}

View File

@ -0,0 +1,80 @@
.main-header {
font-family: 'Lato', sans-serif;
padding: 15px 0;
background-color: $white;
box-shadow: 0px -5px 15px rgba(0,0,0,.3);
.header-flex {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
width: 50%;
text-align: center;
a {
text-decoration: none;
text-transform: uppercase;
font-size: 27px;
font-weight: 300;
color: $dark-purple;
}
}
}
.main-nav {
position: fixed;
top: 0;
left: 0;
z-index: 10;
width: 300px;
height: 100%;
background-color: $white;
padding: 25px 30px;
transform: translate3d(-300px, 0, 0);
ul {
padding: 15px 0 0;
margin: 0;
list-style: none;
li {
border-bottom: 1px solid $lighten-gray;
a {
display: block;
padding: 15px 0;
text-decoration: none;
text-transform: uppercase;
font-weight: 400;
font-size: 16px;
color: $dark-purple;
&:hover {
opacity: .8;
color: $dark-pink;
}
}
}
}
}
.menu-icon-container {
width: 25%;
text-align: left;
}
.search-icon-container {
width: 25%;
text-align: right;
}
.menu-icon,
.menu-icon-close,
.search-icon a,
.search-icon-close {
cursor: pointer;
font-size: 18px;
color: $dark-purple;
transition: all .4s;
&:hover {
opacity: .8;
}
}

View File

@ -0,0 +1,19 @@
.pagination {
margin-bottom: 30px;
.previous {
float: left;
}
.next {
float: right;
}
.previous, .next {
text-decoration: none;
text-transform: uppercase;
font-size: 14px;
color: $dark-gray;
&:hover {
opacity: .8;
color: $dark-pink;
}
}
}

View File

@ -0,0 +1,77 @@
.post-card-box {
margin: 100px 0 100px;
padding: 0;
li {
position: relative;
list-style: none;
float: left;
width: 50%;
transition: all .3s;
&:hover {
opacity: 0.9;
}
& .light-gray {
background-color: $light-gray;
}
& .light-purple {
background-color: $light-purple;
}
}
}
.post-card {
position: relative;
.post-card-image {
display: block;
width: 100%;
min-height: 150px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
&::after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,.3);
}
}
.post-card-body {
position: absolute;
left: 5%;
bottom: 5%;
.post-card-link {
text-decoration: none;
display: block;
}
.post-card-title {
font-family: 'Lato', sans-serif;
font-weight: 700;
text-transform: uppercase;
font-size: 18px;
color: $white;
margin: 0 0 10px;
&:hover {
opacity: .8;
}
}
.tag {
text-decoration: none;
font-size: 10px;
text-transform: uppercase;
color: $white;
&:hover {
text-decoration: underline;
}
}
}
}

View File

@ -0,0 +1,62 @@
.search-box {
padding-top: 40px;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100;
background: #fff;
transition: all .4s ease-in-out;
transform: translate(0, -100%) scale(0, 0);
}
.search-grid {
width: 60%;
margin: 0 auto;
}
.search-form {
margin-bottom: 15px;
.search {
width: 100%;
padding: 15px;
border: none;
border-bottom: 1px solid $lighten-gray;
outline: none;
font-size: 21px;
color: $dark-gray;
}
}
.results-search {
list-style: none;
overflow: auto;
height: 90vh;
margin: 0;
padding: 0;
li {
padding-bottom: 15px;
margin-bottom: 15px;
border-bottom: 1px solid $lighten-gray;
a {
text-decoration: none;
color: $dark-gray;
&:hover {
color: $dark-pink;
opacity: .8;
}
}
}
}
.search-box.search-active {
transform: translate(0, 0) scale(1, 1);
}
.icon-close-container {
position: absolute;
top: 0;
right: 0;
}

View File

@ -0,0 +1,45 @@
.blog-tags {
margin: 100px 0 100px;
h1 {
text-align: center;
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size: 36px;
text-align: center;
margin: 0 0 30px;
color: $dark-purple;
}
.tags {
margin: 0;
padding: 0;
list-style: none;
li {
a {
display: inline-block;
color: $dark-purple;
&:hover {
opacity: .8;
}
}
}
}
.tag-list {
span {
a {
display: inline-block;
color: $dark-pink;
text-decoration: none;
text-transform: uppercase;
font-size: 12px;
margin-bottom: 10px;
&:hover {
text-decoration: underline;
opacity: .8;
}
}
}
small {
color: $dark-purple;
}
}
}

View File

@ -0,0 +1,201 @@
@import url('https://fonts.googleapis.com/css?family=Gentium+Book+Basic');
.page-image {
position: relative;
padding: 0;
margin: 0;
height: 500px;
background-color: $white;
overflow: hidden;
.cover-image {
height: 100%;
width: 100%;
}
}
.page-content {
font-family: "Gentium Book Basic", serif;
font-size: 14pt;
line-height: 1.75;
margin-top: -5px;
margin-bottom: 100px;
background-color: $white;
padding: 20px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
.invert & {
background-color: $darken-gray;
color: $white;
}
&.with-image {
margin-top: -80px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
& > p {
margin: 0;
&:not(first-of-type) {
text-indent: 2em;
}
}
}
.header-page {
position: relative;
margin-bottom: 30px;
h1 {
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size: 36px;
text-align: center;
margin: 0 0 20px;
color: $dark-purple;
.invert & {
color: $light-purple;
}
}
.page-date {
text-align: center;
font-size: 14px;
text-transform: uppercase;
font-weight: 300;
}
}
.page-footer {
margin-top: 30px;
padding-bottom: 30px;
padding-bottom: 30px;
border-bottom: 1px solid $lighten-gray;
.page-tag,
.page-share {
text-transform: uppercase;
font-size: 12px;
color: $dark-purple;
}
.page-tag {
margin-bottom: 10px;
a {
text-decoration: none;
color: $dark-pink;
&:hover {
opacity: .8;
}
}
}
.page-share {
a {
text-decoration: none;
color: $light-gray;
margin-left: 10px;
font-size: 18px;
&:hover {
opacity: .8;
}
}
}
}
.recent-box {
margin-top: 30px;
padding-bottom: 30px;
border-bottom: 1px solid $lighten-gray;
.recent-title {
font-family: 'Lato', sans-serif;
font-weight: 400;
color: $dark-purple;
text-align: center;
margin: 0 0 30px;
}
.recent-list {
.recent-item {
position: relative;
display: inline-block;
width: 24%;
height: 150px;
margin-left: 0.5%;
margin-bottom: 0.5%;
transition: all .3s;
span {
position: absolute;
font-size: 12px;
left: 2.5%;
bottom: 10%;
color: $white;
}
&:hover {
opacity: 0.8;
}
}
}
}
.newsletter {
text-align: center;
margin-top: 30px;
padding-bottom: 60px;
margin-bottom: 30px;
border-bottom: 1px solid $gray;
.newsletter-title {
font-weight: 400;
}
.form-container {
padding: 30px;
background-color: $gray;
width: 720px;
max-width: 100%;
margin: 0 auto;
p {
margin: 0;
}
}
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
}
.newsletter-box {
position: relative;
max-width: 100%;
margin: 25px 0;
display: flex;
align-items: stretch;
.email-input {
flex-grow: 1;
height: 40px;
padding: 8px 10px;
width: 100%;
max-width: 100%;
color: $dark-gray;
border: none;
border-radius: 2px;
font-size: 14px;
outline: none;
}
.subscribe-btn {
flex-shrink: 0;
width: 100px;
height: 40px;
font-size: 14px;
text-align: center;
color: $white;
background-color: $dark-purple;
vertical-align: baseline;
cursor: pointer;
border: none;
border-radius: 2px;
outline: none;
transition: all .3s;
&:hover {
background-color: $dark-pink;
}
}
}
}