Skip to content

Commit ad34eb4

Browse files
committed
add section borders / fade in transition
1 parent 9cfa7ee commit ad34eb4

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

assets/main.scss

+37-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,33 @@ $main-color: #7d2000;
1010
$main-color-light: #b88574;
1111
$main-color-white: #c1a0a0;
1212
$main-color-light: #cfa090;
13-
$background-color: $grey-color-light !default;
13+
// $background-color: $grey-color-light !default;
14+
// $background-color: #3d3d3d !default;
15+
// $background-color: #707070 !default;
16+
$background-color: #1e1e2e !default;
1417
$content-width: 100vh;
1518

19+
$fade-delay-0: 0ms !default;
20+
$fade-delay-1: 200ms !default;
21+
$fade-delay-2: 400ms !default;
22+
1623
@import "minima";
1724

25+
@keyframes fadeIn {
26+
0% {
27+
opacity: 0;
28+
padding-left: 25px;
29+
}
30+
100% {
31+
opacity: 100%;
32+
padding-left: 0px;
33+
}
34+
}
35+
1836
.site-header {
1937
border: 5px solid $background-color;
2038
border: 0px;
39+
border: 3px solid darken($main-color-light, 25%);
2140

2241
background: $main-color-light;
2342
border-radius: 25px;
@@ -27,28 +46,45 @@ $content-width: 100vh;
2746
margin-bottom: 0px;
2847

2948
width: $content-width;
49+
50+
opacity: 0;
51+
animation: fadeIn ease 1s $fade-delay-0;
52+
animation-iteration-count: 1;
53+
animation-fill-mode: forwards;
3054
}
3155

3256
.site-footer {
3357
background: #d0d0e0;
3458
border: 0px;
59+
border: 3px solid darken(#d0d0e0, 25%);
3560
border-radius: 25px;
3661
margin: 20px;
3762
margin-top: 0px;
3863
margin-left: auto;
3964
margin-right: auto;
4065

4166
width: $content-width;
67+
68+
opacity: 0;
69+
animation: fadeIn ease 1s $fade-delay-2;
70+
animation-iteration-count: 1;
71+
animation-fill-mode: forwards;
4272
}
4373

4474
.page-content {
4575
border-radius: 25px;
76+
border: 3px solid #cfcf8f;
4677
background: lighten(#cfcf8f, 25%);
4778
margin: 20px;
4879
margin-left: auto;
4980
margin-right: auto;
5081

5182
width: $content-width;
83+
84+
opacity: 0;
85+
animation: fadeIn ease 1s $fade-delay-1;
86+
animation-iteration-count: 1;
87+
animation-fill-mode: forwards;
5288
}
5389

5490
/**

0 commit comments

Comments
 (0)