forked from ritwikranjan/resource-library-web
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.css
More file actions
96 lines (83 loc) · 1.62 KB
/
main.css
File metadata and controls
96 lines (83 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
92
93
94
95
96
body {
margin: 0%;
padding: 0%;
font-weight:600;
text-align:center;
color: rgb(0, 0, 0);
background: #915252;
}
.container-fluid{
padding: 0;
}
.page-title {
opacity: .75 !important;
}
.neon{
position: relative;
display: inline-block;
padding: 15px 30px;
color: rgb(156, 16, 16);
text-transform: uppercase;
letter-spacing: 4px;
text-decoration: none;
font-size: 24px;
overflow: hidden;
transition: 0.2s;
}
.neon:hover{
color: rgb(156, 16, 16);
/* background: ;
box-shadow: 0 0 5px rgb(156, 16, 16), 0 0 40px rgb(156, 16, 16), 0 0 80px rgb(156, 16, 16);
transition-delay: 1s; */
}
.neon span{
position: absolute;
display: block;
}
.neon span:nth-child(1){
top: 0;
left: -100%;
width: 100%;
height: 2px;
background: linear-gradient(90deg,transparent,rgb(156, 16, 16));
}
.neon:hover span:nth-child(1){
left: 100%;
transition: 1s;
}
.neon span:nth-child(3){
bottom: 0;
right: -100%;
width: 100%;
height: 2px;
background: linear-gradient(270deg,transparent,rgb(156, 16, 16));
}
.neon:hover span:nth-child(3){
right: 100%;
transition: 1s;
transition-delay: 0.5s;
}
.neon span:nth-child(2){
top: -100%;
right: 0;
width: 2px;
height: 100%;
background: linear-gradient(180deg,transparent,rgb(156, 16, 16));
}
.neon:hover span:nth-child(2){
top: 100%;
transition: 1s;
transition-delay: 0.25s;
}
.neon span:nth-child(4){
bottom: -100%;
left: 0;
width: 2px;
height: 100%;
background: linear-gradient(360deg,transparent,rgb(156, 16, 16));
}
.neon:hover span:nth-child(4){
bottom: 100%;
transition: 1s;
transition-delay: 0.75s;
}