forked from orianegl/orianegl.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
124 lines (109 loc) · 2.38 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
:root {
--defaultColor: #404040;
--scaler: 50vw;
--highlightColor: hsl(40, 60%, 50%);
--backgroundColor:hsl(150deg 30% 60%);
}
* {
box-sizing: border-box;
}
html,body {
margin:0;
padding:0;
}
body {
background: var(--backgroundColor);
color: var(--defaultColor);
font-family: "Maname", serif;
font-size: 20px;
max-width: 700px;
margin: 0 auto;
}
header h1 {
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');
body {
margin: 0px;
padding: 0px;
font-family: "Courier Prime", monospace;
background-color: #fdfdfe;
}
header {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
}
header h1 {
font-size: 70px;
font-weight: 500;
color: #553c9a;
border-right: 4px solid #000;
animation: cursor 1s infinite step-end, typing 15s infinite steps(16);
white-space: nowrap;
overflow: hidden;
}
@keyframes cursor{
0%, 100%{border-color: transparent;}
50%{border-color: #000;}
}
@keyframes typing{
0%{ width: 0ch} /*Text is hidden*/
30%{ width: 16ch;} /*The enitre header will be typed out*/
80%{ width: 16ch;} /*Text stays visible*/
90%{ width: 0ch;} /*Text is deleted*/
100%{ width: 0ch;} /*Text stays hidden*/
}
}
/*
Clickable links, or anchors, have five separate pseudoclasses to style. It's
useful to make these distinct for usability and accessibility.
:link - The default style
:visited - Styles applied if the value of the `href` attribute is present in
a users browse history.
:hover - Applied when a reader moves the mouse cursor over the link.
:focus - Applied when a reader uses keyboard navigation (e.g. tab) to select
the link.
:active - Applied once a user clicks or activates a link.
*/
a:link,
a:visited {
color: var(--highlightColor);
text-decoration:none;
}
a:hover,
a:focus {
color: var(--defaultColor);
}
a:active {
}
a {
margin:0;
}
a+a:before {
content: " · ";
color: var(--defaultColor);
display:inline;
}
#banner {
display:flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
padding: 1rem 0;
}
#banner h1,
#banner nav {
font-weight: 500;
font-size: 1rem;
margin:0;
}
main:before {
display:block;
background: #e6b31a;
width: 3rem;
height: 0.125rem;
margin: 4rem auto;
content: '';
}