forked from rpsthecoder/footer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (79 loc) · 1.58 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@import 'https://fonts.googleapis.com/css?family=Crimson+Text:400,400i,600,600i,700,700i';
/* ⇢ style for " Page Footer Reveal" demo. ⇠ */
body>footer {
width: 100%; height: 200px;
position: fixed;
bottom: 0;
z-index: -1;
background-color: #DD5632;
}
html.demo1,
body.demo1 {
background-color: #fff;
}
body.demo1 {
margin: 0;
margin-bottom: 200px; /* = footer hgt */
}
/* ⇢ style for "Footer Reveal on Elements" demo. ⇠ */
article {
background-image: linear-gradient(to bottom, #FEF9F3 calc(100% - 120px), transparent 0);
/* 120px = 100px (footer hgt) + 20px (padding) */
padding: 20px 40px;
margin-bottom: 80px; /* = footer's bottom value */
}
article>footer {
height: 100px;
position: -webkit-sticky;
position: sticky;
bottom: 80px;
z-index: -1;
background-color: #DD5632;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, .2) 5%, transparent);
display: flex;
align-items: center;
justify-content: center;
font-weight: bolder;
color: #fff;
}
/* ⇢ style for page decoration ⇠ */
body {
font-family: Crimson Text;
font-size: 13pt;
margin: 0;
}
#-demo-title :link {
color: #A3FBD1;
text-shadow: -2px 0 4px #0F316C;
}
main {
padding: 50px;
width: 75%;
margin: auto;
min-width: 460px;
}
#-demo-wrapper {
padding-top: 50px;
width: 500px;
margin: auto;
}
#-demo-title {
position: fixed;
top: 0;
width: 100%;
height: 36px;
background-color: #D5FFD1;
color: #0F316C;
line-height: 36px;
font-weight: bold;
font-size: 16pt;
text-align: center;
}
#-demo-profile {
float: left;
height: 100%;
opacity: .4;
}
#-demo-profile:hover {
opacity: 1;
}