-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css
228 lines (212 loc) · 3.67 KB
/
home.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/* THREE.JS */
#canvas3D {
width: 100vw;
height: 100vh;
display: block;
position: fixed;
top: 0;
left: 0;
z-index: -100;
}
/*PARTICLES*/
#particles-js {
position: fixed;
left: 25%;
top: 0;
width: 50%;
height: 100%;
z-index: -2;
}
/*GENERAL*/
* { /*CSS reset*/
padding: 0;
margin: 0;
}
html {
height: 100%;
}
body {
position: relative;
height: 100%;
background-color: #CFCFCF;
background: linear-gradient(to bottom right, #FAFAFA, #CFCFCF);
/* background-image: url("pixelbg.png"); */
text-align: center;
font-size: 35px;
color: #171717;
font-family: 'Josefin Sans', 'Trebuchet MS', sans-serif;
}
div {
display: inline-block;
}
#projectsContain {
padding-top: 25px;
/*position: relative;*/
}
body:hover {
/*prevent selection cursor when rolling over*/
cursor: default;
}
/* scrollbar */
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f100;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
::-moz-selection {
background: #AFAFAF;
}
::selection {
background: #AFAFAF;
}
#container {
padding-top: 100px;
/*balances out the empty element beneath so that the text is centered - this padding is faded out once it opens*/
/* min-width: 50vw;
width: 500px; */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 50vw;
/* max-height: 100vh; */
/* overflow-y: auto; */
/* overflow-x: hidden; */
}
a {
cursor: default;
text-decoration: none;
color: #171717;
}
h1, h4, h5 {
font-family: 'Pacifico', 'Trebuchet MS', sans-serif;
color: #171717;
/*display: inline-block;*/
/*position: relative;*/
}
h4 {
display: inline;
}
/*TITLE CHERB TEXT*/
#cherbtext {
/*transform:scale(1.1,1.1); /* W3C */
transform:scale(1.14, 1.14); /* W3C */
position: relative;
}
#cherb1 {
height: 60%;
position: absolute;
color: #383838;
overflow: hidden;
}
#cherb2 {
color: #171717;
}
/*PROJECTS BUTTON*/
i {
color:#171717;
}
.fa-envelope-o, .fa-envelope-open-o {
font-size: 35px;
}
.fa-paper-plane-o {
font-size: 30px;
}
.fa-envelope-o:hover, .fa-envelope-open-o:hover, .fa-paper-plane-o:hover {
color: #AFAFAF;
}
/*PROJECTS TEXT (h4)*/
#projectsText {
padding-bottom: 30px;
}
/*PROJECTS LIST*/
.projectC, .projectO {
width: 500px;
}
.projectC {
padding-bottom: 0px;
}
.projectO {
padding-bottom: 20px;
}
.projectO:active {
opacity: 0.7;
}
/*properties of title, image, text when open vs closed*/
.projectC h5 {
font-size: 0px;
opacity: 0;
display: inline;
}
.projectO h5 {
font-size: 0px;
/*30px*/
/*display:inline-block;*/
opacity: 1;
display: inline;
}
.projectC span {
font-size: 0;
display: inline;
opacity: 0;
}
.projectO span {
font-size: 0px;
/*15px*/
display: inline;
opacity: 0;
}
.projectC img {
width: 0px;
display: inline;
}
.projectO img {
border: solid 5px #171717;
width: 65px;
display: inline;
vertical-align:middle;
/*float:left;*/
/*text-align: center;*/
}
.projectC .fa {
font-size: 0px;
}
.projectO .fa {
font-size: 20px;
}
/*enable transitions on h5, img and span*/
.projectC h5, .projectC img, .projectC span, .projectC fa {
transition: all 0.3s ease;
}
.projectO h5, .projectO img, .projectO span, .projectO fa {
transition: all 0.3s ease;
}
/*set default rotation to -15*/
.projectC h5, .projectO img {
transform: rotate(-105deg);
}
.projectO:hover > span {
font-size: 15px;
}
.projectO:hover > h5 {
font-size: 30px;
}
/*set rotation to 0 on hover*/
.projectO:hover > h5, .projectO:hover > img {
transform: rotate(0deg);
}
/*make h5 and span text appear on hover (default opacity is 0) */
.projectO:hover > h5, .projectO:hover > span {
opacity: 1;
}