-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlogIcon.astro
More file actions
94 lines (80 loc) · 1.62 KB
/
BlogIcon.astro
File metadata and controls
94 lines (80 loc) · 1.62 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
<a href="/blog" id="blog-icon">
<img src="/icons/blog.png"/>
</a>
<style>
img{
height: 50px;
}
a {
position: absolute;
right: 50%;
padding: 2px;
border-radius: 5px;
border-color: var(--astro-blue);
border-style: solid;
border-width: 1pt;
text-decoration: inherit;
color: inherit;
color: var(--astro-white);
background: var(--astro-dark-gray);
font-family: 'Nerko One', 'Noto Serif JP', serif;
font-size: small;
align-items: center;
display: flex;
gap: 4px;
cursor: pointer;
}
@media only screen and (min-width: 600px) {
a:hover {
transition: background 0.5s ease-in-out;
background-color: var(--astro-blue);
}
a:hover::before{
content: 'My Blog';
animation: showMessage 0.5s ease-in-out;
opacity: 1 ;
z-index: 3;
}
}
@keyframes showMessage {
0%{
opacity: 1;
}
}
@media only screen and (max-width: 600px) {
img {
width: 35px;
height: 35px;
}
}
@media only screen and (min-width: 600px) {
a {
height: 30px;
padding: 8px;
}
img {
width: 50px;
}
}
@media only screen and (min-width: 768px) {
a {
height: 35px;
}
}
@media only screen and (min-width: 992px) {
a {
height: 40px;
}
}
@media only screen and (min-width: 1200px) {
a {
height: 42px;
animation: none;
}
@keyframes showMessage {
0%{
opacity: 1;
}
}
}
</style>