This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
119 lines (104 loc) · 2.09 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
118
119
/* Just setting CSS for the page */
* {
margin: 0;
padding: 0;
}
body{
background-color: rgba(194, 179, 194, 0.2);
}
html,
css {
width: 100%;
height: 100%;
}
.position {
margin-left: auto;
margin-right: auto;
text-align: center;
margin-top: 0%;
}
#workarea {
width: 100%;
height: 100%;
background-color: rgb(255,255,255,0.7);
font-family: Raleway;
}
#personal {
color:white;
text-decoration:none;
position:absolute;
bottom:15px;
right:2%;
}
/* start code for the actual button: */
/*
Spot is the span on the inside of the href that
fills the parent and makes the hover and link work
for the entire div
*/
.spot {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
/*
This is the outer svg wrapper that the SVG itself will
fill. Multiple svg-wrapper classes can be put side by side.
*/
.svg-wrapper {
margin-top: 0;
position: relative;
width: 150px;
/*make sure to use same height/width as in the html*/
height: 40px;
display: inline-block;
border-radius: 3px;
margin-left: 5px;
margin-right: 5px
}
/*
This is where we define the fill, color, thickness,
and stroke pattern of the SVG when there is no hover.
The dasharray and offset together define the line position
under the words. Here's also where the transition speed is set.
*/
#shape {
stroke-width: 6px;
fill: transparent;
stroke: #009FFD;
stroke-dasharray: 85 400;
stroke-dashoffset: -220;
transition: 1s all ease;
}
/*
Pushing the text up into the SVG. Without this the
text would be below the div's.
*/
#text {
margin-top: -35px;
text-align: center;
}
#text a {
color: black;
text-decoration: none;
font-weight: 100;
font-size: 1.1em;
}
#text h1 {
color: black;
text-decoration: none;
font-weight: 100;
font-size: 1.1em;
}
/*
Changing the shape on hover. I change the color of the stroke,
make it thinner, then set it to again wrap around the entire parent element.
*/
.svg-wrapper:hover #shape {
stroke-dasharray: 50 0;
stroke-width: 3px;
stroke-dashoffset: 0;
stroke: #06D6A0;
}