-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
117 lines (110 loc) · 2.52 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* Font and Backround: */
body {
font-family: 'Open Sans', sans-serif;
font-size: large;
background-color: #27272a;
}
/* Headline: */
.headline {
color: #fff;
display: flex;
justify-content: center;
}
/* Panels */
a {
color: #fff;
text-decoration: none;
font-weight: 500;
background-color: #3c3c41;
padding: 20px;
width: 300px;
display: inline-flex;
justify-content: center;
border-radius: 20px;
box-sizing: border-box;
border: 2px solid #3c3c41;
align-items: center;
}
a:hover {
color: #3c3c41;
text-decoration: none;
font-weight: 500;
background-color: #fff;
border: 2px solid #27272a;
}
/* Header Positioning */
.header {
display: flex;
justify-content: center;
}
.link {
display: flex;
justify-content: center;
}
.link a {
text-decoration: none;
color: #fff;
transition: 0.25s;
transform: translateY(0);
}
.link a:hover {
text-shadow: 2px 2px 4px #3c3c41;
color: #3c3c41;
transform: translateY(-5px);
box-shadow: 0 10px 20px #3c3c41;
}
.img {
border-radius: 50%;
}
.link a[href*='youtube'] .icon {
background-image: url('./images/ytbright.png');
background-size: 32px 32px;
}
.link a[href*='github'] .icon {
background-image: url('./images/gitbright.png');
background-size: 32px 32px;
}
.link a[href*='x.com'] .icon {
background-image: url('./images/xbright.png');
background-size: 32px 32px;
}
.link a[href*='dsc'] .icon {
background-image: url('./images/discordb.png');
background-size: 32px 32px;
}
.link a[href*='twitch'] .icon {
background-image: url('./images/twitchb.png');
background-size: 32px 32px;
}
.icon {
position: relative;
left: -80px;
width: 32px;
height: 32px;
}
.link a[href*='youtube']:hover .icon {
background-image: url('./images/ytdark.png');
background-size: 32px 32px;
}
.link a[href*='github']:hover .icon {
background-image: url('./images/gitdark.png');
background-size: 32px 32px;
}
.link a[href*='x.com']:hover .icon {
background-image: url('./images/xdark.png');
background-size: 32px 32px;
}
.link a[href*='dsc']:hover .icon {
background-image: url('./images/discordd.png');
background-size: 32px 32px;
}
.link a[href*='twitch']:hover .icon {
background-image: url('./images/twitchd.png');
background-size: 32px 32px;
}
.rotate-on-hover {
transition: transform 2s; /* add a transition effect */
}
.rotate-on-hover:hover {
transform: rotate(360deg); /* rotate the image 45 degrees when hovered */
}