-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
99 lines (91 loc) · 1.81 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
@import url('https://fonts.googleapis.com/css2?family=Orelega+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:[email protected]&display=swap');
:root {
--block-width: 800px;
}
body {
margin: 0;
overflow-x: hidden;
}
a {
color: red;
}
*:not(#lorem):not(.block) {
font-family: serif;
}
letters {
display: block;
width: max-content;
max-width: 80vw;
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
letters > img, letters > div {
flex-shrink: 0;
}
#lorem {
position: fixed;
top: 0;
z-index: -1;
color: rgba(0, 0, 0, .1);
font-size: .6em;
line-height: .65em;
font-family: "Orelega One", serif;
pointer-events: none;
background: white;
width: 110vw;
}
#hi, #projects, .category {
mix-blend-mode: color-burn;
text-align: center;
color: black;
}
#hi {
font-size: 5em;
}
#projects, .category {
font-size: 3em;
}
#title {
margin-left: auto;
margin-right: auto;
}
/* https://codepen.io/kkl/pen/bVKeNw */
.block {
background: #F5DEB3; /* wheat */
width: calc(100vw - 4em);
padding: 2em;
position: relative;
font-family: "Roboto Slab", serif;
margin-top: 6em;
}
.block::before {
content: "";
position: absolute;
top: -29px;
height: 30px;
width: 100%;
left: 0;
background: url(rip.svg) bottom;
transform: rotate(180deg);
}
.block::after {
content: "";
position: absolute;
top: calc(100% - 1px);
height: 30px;
width: 100%;
left: 0;
background: url(rip.svg) bottom;
}
.block:nth-child(2n) > letters {
margin-left: auto;
}
.block:nth-child(2n) {
text-align: right;
}
.block > * {
margin-right: max(0px, calc(50vw - var(--block-width) / 2));
margin-left: max(0px, calc(50vw - var(--block-width) / 2));
}