-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
138 lines (138 loc) · 2.36 KB
/
index.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
* {
transition: 0.2s cubic-bezier(1, 0.9, 0.5, 1.5);
}
@keyframes load {
0% {
background-position-x: 140%;
}
100% {
background-position-x: 0%;
}
}
html {
min-width: 250px;
/*original picture from https://commons.wikimedia.org/wiki/File:Evolution-des-wissens.jpg*/
background: white url("../images/evolution.png") no-repeat center bottom;
font: 17px Helvetica, sans-serif;
padding-bottom: 5em;
color: #310;
}
html::before {
content: "";
position: fixed;
top: 0;
height: 5px;
width: 100%;
background: linear-gradient(to right, #fea 50%, #fb0, #fff) no-repeat;
background-size: 300%;
animation: load 1s;
}
body {
width: 100%;
max-width: 800px;
padding: 2%;
margin: auto;
}
ul {
list-style-type: none;
padding: 0 0 0 1em;
flex: 1;
}
li {
background: transparent;
transition: 0s;
border-radius: 0;
padding: 4px 10px;
margin: 0 2px;
}
li:hover,
li:focus-within {
background: #feab;
border-radius: 8px;
padding: 8px 10px;
margin: -4px 2px;
transition: 0.2s ease-out;
}
li::before {
content: '>';
color: #fea;
position: absolute;
transform: translateX(-15px);
opacity: 0;
transition: opacity 0.3s, transform 0.2s;
}
li:hover::before,
li:focus-within::before {
transform: translateX(-23px);
}
section:hover li::before,
section:focus-within li::before {
opacity: 1;
}
section:hover h3,
section:focus-within h3 {
transform: scale(1.1);
}
a {
color: #a60;
text-decoration-color: transparent;
}
a:visited {
color: #950;
}
a:hover {
text-decoration-color: currentColor;
}
a:focus {
text-decoration-color: currentColor;
text-decoration-thickness: 2px;
outline: none;
}
section {
display: flex;
align-items: baseline;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.2em;
margin: 1.2em 0 1em;
}
h3 {
font-size: 1em;
}
h3,
h3 ~ ul {
margin: 0.5em 0;
}
#right_container {
display: block;
position: relative;
right: 6px;
float: right;
width: 229px;
margin-left: 10px;
padding: 233px 0 1em 0;
border-radius: 11px;
text-align: center;
}
#right_container a {
display: block;
padding: 0.4em 1em;
}
#photo {
position: absolute;
top: 0;
right: 0;
width: 227px;
height: 227px;
box-shadow: 0 0 3px #740;
border-radius: 100px 100px 100px 10px;
filter: sepia(0.75);
}
#right_container a:hover #photo,
#right_container a:focus #photo {
filter: sepia(0.25);
border-radius: 10px;
}