Initial commit of jimeh.me v4.0

This commit is contained in:
2015-10-15 21:29:39 +01:00
commit 7fcf153023
17 changed files with 574 additions and 0 deletions

176
_sass/_base.scss Normal file
View File

@@ -0,0 +1,176 @@
/**
* Reset some basic elements
*/
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
margin: 0;
padding: 0;
}
/**
* Basic styling
*/
html {
height: 100%;
}
body {
height: 100%;
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
font-weight: 400;
color: $text-color;
background-color: $background-color;
-webkit-text-size-adjust: 100%;
}
/**
* Set `margin-bottom` to maintain vertical rhythm
*/
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
%vertical-rhythm {
margin-bottom: $spacing-unit / 2;
}
/**
* Images
*/
img {
max-width: 100%;
vertical-align: middle;
}
/**
* Figures
*/
figure > img {
display: block;
}
figcaption {
font-size: $small-font-size;
}
/**
* Lists
*/
ul, ol {
margin-left: $spacing-unit;
}
li {
> ul,
> ol {
margin-bottom: 0;
}
}
/**
* Headings
*/
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
}
/**
* Links
*/
a {
color: $brand-color;
text-decoration: none;
&:visited {
color: $brand-color-dark;
}
&:hover {
color: $grey-color-dark;
text-decoration: underline;
}
}
/**
* Blockquotes
*/
blockquote {
color: $grey-color;
border-left: 4px solid $grey-color-light;
padding-left: $spacing-unit / 2;
font-size: 18px;
letter-spacing: -1px;
font-style: italic;
> :last-child {
margin-bottom: 0;
}
}
/**
* Code formatting
*/
pre,
code {
font-size: 15px;
border: 1px solid $grey-color-light;
border-radius: 3px;
background-color: #eef;
}
code {
padding: 1px 5px;
}
pre {
padding: 8px 12px;
overflow-x: scroll;
> code {
border: 0;
padding-right: 0;
padding-left: 0;
}
}
/**
* Clearfix
*/
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
/**
* Icons
*/
.icon {
> svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
path {
fill: $grey-color;
}
}
}

91
_sass/_layout.scss Normal file
View File

@@ -0,0 +1,91 @@
.site-header {
font-family: $heading-font-family;
font-weight: bold;
position: fixed;
top: 0px;
bottom: 0px;
width: 100%;
a:hover {
text-decoration: none;
}
.content {
height: 128px;
width: 595px;
position: absolute;
top: 50%;
left: 50%;
@include transform(translate(-50%, -50%));
}
}
.site-avatar {
width: 128px;
height: 128px;
margin-bottom: 4px;
border: 2px solid white;
position: absolute;
top: 0;
left: 0;
@include border-radius(400px);
@include box-shadow(0px, 0px, 7px, rgba(0, 0, 0, 0.3));
}
.header-content {
display: block;
color: $name-color;
font-size: 47px;
line-height: 40px;
margin-bottom: 5px;
position: absolute;
top: 30px;
left: 160px;
.site-name {
text-transform: uppercase;
}
.site-nickname {
color: $nickname-color;
text-transform: lowercase;
}
}
.site-description {
font-size: 14px;
margin-bottom: 8px;
color: $sub-title-color;
text-transform: uppercase;
position: absolute;
top: 28px;
left: 11px;
}
.site-links {
position: absolute;
top: 52px;
left: 7px;
font-size: 22px;
a {
color: $link-color;
position: relative;
padding: 0px 5px;
.link-text {
visibility: hidden;
font-size: $base-font-size;
position: absolute;
top: 20px;
left: 50%;
@include transform(translate(-50%, 0%));
}
&:hover {
color: $link-hover-color;
.link-text {
visibility: visible;
}
}
}
}

70
_sass/_setup.scss Normal file
View File

@@ -0,0 +1,70 @@
@charset "utf-8";
// Our variables
$base-font-family: 'Open Sans', Helvetica, Arial, sans-serif;
$base-font-size: 14px;
$heading-font-family: 'Open Sans Condensed', Helvetica, Arial, sans-serif;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;
$spacing-unit: 30px;
$text-color: #1a1a1a;
$name-color: lighten($text-color, 15.5%);
$nickname-color: lighten($text-color, 75%);
$sub-title-color: lighten($text-color, 55%);
$link-color: lighten($text-color, 65%);
$link-hover-color: lighten($text-color, 55%);
$background-color: #fdfdfd;
$brand-color: #1193f6;
$brand-color-dark: darken($brand-color, 10%);
$grey-color: #828282;
$grey-color-light: lighten($grey-color, 40%);
$grey-color-dark: darken($grey-color, 25%);
$on-palm: 768px;
$on-laptop: 800px;
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
@mixin transform($transforms) {
-moz-transform: $transforms;
-o-transform: $transforms;
-ms-transform: $transforms;
-webkit-transform: $transforms;
transform: $transforms;
}
@mixin transition($transforms) {
-moz-transition: $transforms;
-o-transition: $transforms;
-ms-transition: $transforms;
-webkit-transition: $transforms;
transition: $transforms;
}
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}
}