Skip to content

Commit df74a83

Browse files
committed
moved styles around
1 parent 789ab06 commit df74a83

File tree

7 files changed

+127
-105
lines changed

7 files changed

+127
-105
lines changed

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<footer class="site-footer">
22
<div class="wrapper">
33
<section>
4-
<img src="https://avatars0.githubusercontent.com/u/635655?s=156" alt="Matt Kersley">
4+
<img class="footer-avatar" src="https://avatars0.githubusercontent.com/u/635655?s=156" alt="Matt Kersley">
55
<p>
66
<strong>Matt Kersley</strong><br>
77
I’m a web designer &amp; developer from Peterborough (UK). I’ve got over 15 years experience designing and building websites.

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="wrapper">
88

99
<!-- logo -->
10-
<a href="/">
10+
<a class="logo" href="/">
1111
<svg width="100%" height="100%" viewBox="0 0 900 600" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.41421;">
1212
<g id="shapes">
1313
<g opacity="0.6">

_sass/_animations.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@
1616
100% {left: 0px; top: 0px;}
1717
}
1818
@keyframes pulse { to { transform: scale(1.3, 1.7); opacity: 0; } }
19+
@keyframes remove-loader {
20+
0% { opacity: 1; }
21+
99% { opacity: 0; height: auto; }
22+
100% { opacity: 0; height: 0; }
23+
}

_sass/_layout.scss

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
1+
/**
2+
* HTML Elements
3+
*/
4+
15
* { box-sizing: border-box; }
26

7+
section {
8+
border-bottom: solid 1px $grey-color;
9+
border-top: solid 1px $grey-color;
10+
padding: $spacing-unit 0;
11+
12+
+ section {
13+
border-top: 0;
14+
}
15+
16+
&:last-child { border-bottom: 0; }
17+
}
18+
19+
img{
20+
height: auto;
21+
max-width: 120%;
22+
23+
&.full {
24+
width: 100%;
25+
}
26+
27+
&.hang {
28+
width: 120%;
29+
}
30+
31+
&.left {
32+
float: left;
33+
margin-left: -10%;
34+
margin-right: $spacing-unit;
35+
max-width: 60%;
36+
}
37+
38+
&.right {
39+
float: right;
40+
margin-left: $spacing-unit;
41+
margin-right: -10%;
42+
max-width: 60%;
43+
}
44+
}
45+
46+
47+
/**
48+
* Wrappers
49+
*/
350
.wrapper {
451
width: 90vw;
552
max-width: 1008px;
@@ -12,7 +59,28 @@
1259
.wrapper { width: 70vw; }
1360
}
1461

15-
62+
/**
63+
* Footer
64+
*/
1665
.site-footer {
17-
margin-top: $spacing-unit*4;
66+
section { border-bottom: 0; }
67+
p { margin: 0; }
68+
}
69+
@include mq(500px){
70+
.site-footer { text-align: left; }
71+
}
72+
73+
.footer-avatar {
74+
border: solid 10px $grey-color-light;
75+
border-radius: 500px;
76+
display: block;
77+
margin: 0 auto $spacing-unit auto;
78+
}
79+
@include mq(500px){
80+
.footer-avatar {
81+
display: inline-block;
82+
float: left;
83+
margin: 0 $spacing-unit $spacing-unit 0;
84+
max-width: 20%;
85+
}
1886
}

_sass/_typography.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
/**
2+
* HTML Elements
3+
*/
14
body {
5+
color: $text-color;
26
font-family: 'Esteban', serif;
37
font-size: 6vw;
48
line-height: 1.5;
@@ -56,3 +60,16 @@ blockquote {
5660
margin-left: 1em;
5761
padding-left: 1em;
5862
}
63+
64+
a {
65+
color: $brand-color-2;
66+
text-decoration: none;
67+
}
68+
69+
/**
70+
* Footer
71+
*/
72+
.site-footer {
73+
font-size: .875em;
74+
text-align: center;
75+
}

_sass/logo.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.logo { display: block; }
2+
13
svg { display:block; margin: 0 auto; width: 280px; max-width: 80vw; }
24

35
#logomark path { fill: $brand-color; }

css/main.scss

Lines changed: 31 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -17,75 +17,6 @@
1717
@import "layout";
1818
@import "logo";
1919

20-
21-
/**
22-
* HTML elements
23-
*/
24-
body {
25-
color: $text-color;
26-
}
27-
28-
section {
29-
border-bottom: solid 1px $grey-color;
30-
border-top: solid 1px $grey-color;
31-
padding: $spacing-unit 0;
32-
33-
+ section {
34-
border-top: 0;
35-
}
36-
37-
&:last-child { border-bottom: 0; }
38-
}
39-
40-
footer {
41-
font-size: .875em;
42-
43-
section { border-bottom: 0; }
44-
45-
img {
46-
border: solid 10px $grey-color-light;
47-
border-radius: 500px;
48-
float: left;
49-
margin-bottom: $spacing-unit;
50-
margin-right: $spacing-unit;
51-
max-width: 20%;
52-
}
53-
54-
p { margin: 0; }
55-
}
56-
57-
a {
58-
color: $brand-color-2;
59-
text-decoration: none;
60-
}
61-
62-
img{
63-
height: auto;
64-
max-width: 120%;
65-
66-
&.full {
67-
width: 100%;
68-
}
69-
70-
&.hang {
71-
width: 120%;
72-
}
73-
74-
&.left {
75-
float: left;
76-
margin-left: -10%;
77-
margin-right: $spacing-unit;
78-
max-width: 60%;
79-
}
80-
81-
&.right {
82-
float: right;
83-
margin-left: $spacing-unit;
84-
margin-right: -10%;
85-
max-width: 60%;
86-
}
87-
}
88-
8920
/**
9021
* buttons
9122
*/
@@ -127,23 +58,18 @@ img{
12758
.js{
12859

12960
.page-content{
130-
margin-top: 120px;
61+
margin-top: $spacing-unit;
13162
opacity: 0;
13263
}
64+
13365
.site-footer { opacity: 0; }
13466

13567
&.loaded{
136-
.page-content{
137-
animation: movein 1.5s ease-out forwards 0.5s;
138-
}
139-
.site-footer {
140-
animation: fadein 1.5s ease-out forwards 0.5s;
141-
}
142-
143-
.loader{
144-
animation: fadeout 0.5s ease-out forwards;
145-
}
68+
.page-content { animation: movein 1s ease-out forwards 0.5s; }
69+
.site-footer { animation: fadein 1s ease-out forwards 0.5s; }
70+
.loader { animation: remove-loader 0.5s ease-out forwards; }
14671
}
72+
14773
}
14874

14975
/**
@@ -160,33 +86,37 @@ img{
16086
margin: 0;
16187
opacity: 0;
16288
}
89+
90+
.loader { display: none; }
16391
}
16492

16593
/**
16694
* Loading animation
16795
*/
168-
.loader {
169-
width: 80px;
170-
height: 20px;
171-
position: relative;
172-
margin: 0 auto;
173-
174-
div {
96+
.js {
97+
.loader {
98+
width: 80px;
17599
height: 20px;
176-
width: 20px;
177-
background: $brand-color;
178-
border-radius: 50%;
179-
position: absolute;
180-
animation: loader 1.4s ease infinite;
181-
182-
&:nth-child(2){
183-
animation-delay: 0.1s;
184-
transform: translateX(30px);
185-
}
186-
187-
&:nth-child(3){
188-
animation-delay: 0.2s;
189-
transform: translateX(60px);
100+
position: relative;
101+
margin: 0 auto;
102+
103+
div {
104+
height: 20px;
105+
width: 20px;
106+
background: $brand-color;
107+
border-radius: 50%;
108+
position: absolute;
109+
animation: loader 1.4s ease infinite;
110+
111+
&:nth-child(2){
112+
animation-delay: 0.1s;
113+
transform: translateX(30px);
114+
}
115+
116+
&:nth-child(3){
117+
animation-delay: 0.2s;
118+
transform: translateX(60px);
119+
}
190120
}
191121
}
192122
}

0 commit comments

Comments
 (0)