-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisambiguationStyle.css
115 lines (89 loc) · 2.26 KB
/
disambiguationStyle.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
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* General CSS attributes for the page */
a {
text-decoration: none;
}
body {
background-color: black;
overflow: hidden;
}
/* Header nav bar for all pages */
header {
display: flex;
flex-direction: row;
justify-content: space-around;
width: 100.1vw;
background-color: rgba(190, 87, 41, 0.5);
margin-left: -9px;
font-family: 'Tinos';
}
header a {
color:rgba(190, 87, 41, 1);
transition: ease-in 0.2s;
}
.hoverLink:hover {
color: rgba(190, 87, 41, 0.5);
transition: ease-in 0.2s;
}
/* "Works" page title */
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 95vh;
font-family: 'Tinos';
font-size: 1.3rem;
}
/* Work Disambiguation Squares */
#workDisambiguation {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
max-width: 100vw;
height: 65vh;
/*
border: 1px solid red; */
}
#workDisambiguation a {
text-decoration: none;
color: rgb(255, 255, 255, 1);
}
.workSquare {
width: 280px;
height: 280px;
position: relative;
text-align: center;
border: 1px solid rgba(255, 255, 255, 1); /* unhovered solid border */
display: grid;
place-items: center; /* Make inside text centered */
opacity: 0.65;
transition: ease-in 0.2s;
}
.workSquare:hover::after {
content: "";
position: absolute;
top: -2.5px; /* These dimensions need to be the negative of the border size */
left: -2.5px;
right: -2.5px;
bottom: -2.5px;
border: 2.5px solid rgba(255, 255, 255, 0.5); /* Beggining rgba */
z-index: 2;
animation: pulse-brightness 0.5s infinite ease-in-out; /* How fast the pulses are */
}
@keyframes pulse-brightness {
0%, 100% {
border-color: rgba(255, 255, 255, 1); /* Beggining rgba */
}
50% {
border-color: rgba(0, 72, 0, 1); /* End rgba */
}
}
.workSquare:hover {
opacity: 1;
transition: ease-in 0.2s;
}