-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.css
More file actions
122 lines (96 loc) · 2.49 KB
/
Copy pathhome.css
File metadata and controls
122 lines (96 loc) · 2.49 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
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
body {
background:#b38e67;
/* background-image: url("./images/green-classic-checkered-tablecloth2.jpg"); */
background-image: url("./images/patternsbg/whiteredchecks.jpg");
background-size: 15% auto; /* width 50% of viewport, height auto */
background-repeat: repeat; /* repeat to cover the screen */
color:#1e1e1e;
font: bolder 8pt tahoma;
/* font-family: 'Pixelify Sans', sans-serif; use this line in whichever class i want pixel font in */
text-align:justify;
letter-spacing: 2px;
margin:0;padding:0;
}
/* Make sure images can be placed freely */
img {
position: absolute;
cursor: pointer;
transition: transform 0.2s ease;
filter: drop-shadow(5px 5px 8px rgba(0, 0, 0, 0.3)); /* subtle shadow */
}
/* Hover effect */
img:not(.mp3player):hover {
transform: scale(1.05);
/* filter: drop-shadow(0 0 0 red); 0 offsets, 0 blur, color = border color */
filter:
drop-shadow(0 0 2px rgb(255, 255, 255))
drop-shadow(0 0 2px rgb(255, 255, 255))
drop-shadow(0 0 2px rgb(255, 255, 255));
}
/*DESK STUFF POSITIONS*/
.laptop {
left: -2%;
top: -3%;
width: 38%;
}
.chai {
left: 3%;
top: 60%;
width: 23%;
/* rotate: 4deg; */
}
.envelope {
left: 56%;
top: 42%;
width: 34%;
rotate: -15deg;
}
.openbook {
left: 35%;
top: 2%;
width: 34%;
}
/*MP3 needs extra coding because I want it to loft on hover and be clickable only in the top right corner of the image*/
/* Wrap both image and clickable area */
.mp3-wrapper {
position: absolute;
right: 2%;
top: 3%;
width: 25%;
display: inline-block;
}
/* MP3 image styling */
.mp3player {
width: 100%;
filter: drop-shadow(5px 5px 8px rgba(0, 0, 0, 0.3));
transition: transform 0.25s ease, filter 0.25s ease;
transform-origin: top right; /* makes it lift from that corner */
}
/* The clickable hotspot */
.mp3-link {
position: absolute;
right: 5%; /* match image's right alignment */
top: 5%; /* match image's top alignment */
width: 50%; /* half of image width (right half) */
height: 50%; /* top half */
cursor: pointer;
z-index: 10;
/* optional: visualize for testing */
/* background-color: rgba(255, 0, 0, 0.2); */
}
.crochet {
left: 65%;
top: 0;
width: 16%;
}
.sketchbook {
left: 24%;
top: 53%;
width: 34%;
}
/* img.kirbyvibe {
bottom: 0;
right: 0;
position: fixed;
margin: 0 3% 3% 0;
}*/