-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.css
98 lines (77 loc) · 1.61 KB
/
portfolio.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
@import url(main.css);
/******** Main ********/
main {
display: flex;
flex-wrap: wrap;
}
main article {
max-width: 300px;
margin: auto;
position: relative;
}
main a img {
width: 100%;
}
main article a .label {
font-size: 2em;
}
main a:link,
main a:visited,
main a:hover,
main a:active {
text-decoration: none;
}
/*** responsive for desktops ***/
@media only screen and (min-width: 1025px) {
main .breakout {
max-width: 300px;
}
main #project-ug {
max-width: 425px;
}
main #advent-of-py {
max-width: 375px;
}
main .doubletet {
max-width: 350px;
}
}
/*** responsive for phone/tablet ***/
@media only screen and (max-width: 1024px) {
main article {
max-width: 100%;
margin-bottom: 100px;
}
main #project-ug {
max-width: 80%;
}
main #advent-of-py {
max-width: 80%;
}
main a .label {
font-size: 3em;
}
}
/*** Fancy Hover (not for phones) ***/
@media only screen and (min-width: 1025px) {
main a img {
opacity: .45;
transition: var(--transition-speed);
transition-delay: var(--transtion-delay);
}
main article .label {
opacity: 0;
transition: var(--transition-speed);
transition-delay: var(--transtion-delay);
}
main article:hover img,
main article:hover .label,
main article:focus img,
main a:focus img,
main a:focus .label,
main article:focus .label {
opacity: 1;
transition: var(--transition-speed);
transition-delay: var(--transtion-delay);
}
}