-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
117 lines (115 loc) · 2.28 KB
/
Copy pathindex.css
File metadata and controls
117 lines (115 loc) · 2.28 KB
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
:root {
--purple: #543864;
--purple-dark: #452a55;
--orange: #ff6363;
--orange-light: #f8a488;
--orange-dark: rgb(224, 136, 107);
--yellow: #ffbd69;
--green: #edffa9;
--pink: #eca3f5;
--bg: #f8f5f1;
}
main {
min-height: 80vh;
}
main section {
width: clamp(300px - 2rem, 80vw, 800px);
height: calc((clamp(300px - 2rem, 80vw, 800px) - 60px) / 3);
display: grid;
grid-template-columns: 1fr 1fr 1fr;
padding: 0;
gap: 30px;
}
header h2{
padding: 0 1rem;
}
footer a,footer p{
color: #fff;
}
footer a{
text-decoration: underline;
}
.algo a {
position: relative;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
font-size: 3rem;
text-decoration: none;
color: #fff;
transition: all 0.3s linear;
overflow: hidden;
background-color: var(--orange-light);
}
.two a {
background-color: var(--purple);
}
.two a::after,
.two a::before {
background-color: var(--purple-dark);
}
.one a::after,
.one a::before,
.three a::after,
.three a::before {
background-color: var(--orange-dark);
}
.algo a:hover {
border: 10px solid white;
box-shadow: 0 10px 6px -5px hsl(0, 0%, 77%);
}
.one a::before {
content: "BFS";
}
.two a::before {
content: "A Star";
}
.three a::before {
content: "DFS";
}
.one a::after {
content: "Breadth First Search Traversal of graph";
}
.two a::after {
content: "A Star Path finding algorithm";
}
.three a::after {
content: "Depth First Search Traversal of graph";
}
.algo a::after,
.algo a::before {
position: absolute;
text-align: center;
padding: 0.5rem;
width: calc(100% - 1rem);
left: 0;
font-size: 1rem;
transition: transform ease 0.3s;
}
.algo a::before {
height: 20%;
top: 0;
transform: translateY(-100%);
}
.algo a::after {
display: flex;
justify-content: center;
align-items: center;
height: 80%;
transform: translateY(100%);
top: 20%;
}
.algo a:hover::before,
.algo a:hover::after {
transform: translateY(0);
}
@media only screen and (max-width: 650px) {
main section {
grid-template-columns: 1fr;
width: clamp(200px - 2rem, 50vw, 800px);
height: calc(clamp(200px - 2rem, 50vw, 800px) * 3);
}
}