-
Notifications
You must be signed in to change notification settings - Fork 0
/
old-styles.css
105 lines (89 loc) · 1.65 KB
/
old-styles.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
* {
box-sizing: border-box;
}
body {
margin: 0px;
overflow: hidden;
}
.wrapper {
height: 100vh;
width: 100%;
display: flex;
overflow: hidden;
}
.hugh-vert, .becky-vert {
position: absolute;
z-index: 2;
font-size: 3em;
text-transform: uppercase;
font-family: 'Helvetica', sans-serif;
color: white;
writing-mode: vertical-rl;
text-orientation: upright;
top: 0px;
padding-top: 10px;
height: 100vh;
display: none;
}
.hugh-vert {
right: 0px;
z-index: 2;
}
.becky-vert {
left: 0px;
z-index: 2;
}
.hugh, .becky {
display: flex;
padding-top: 1em;
flex-grow: 1;
justify-content: center;
font-size: 3em;
text-transform: uppercase;
font-family: 'Helvetica', sans-serif;
color: white;
background-size: cover;
z-index: 1;
}
.hugh {
background-image: url('https://github.com/HughAndBecky/Hughandbecky-us/blob/master/Hugh_Work.jpg?raw=true');
background-position: top right;
filter: grayscale(100%);
}
.becky {
background-image: url('https://github.com/HughAndBecky/Hughandbecky-us/blob/master/Becky_Work.jpg?raw=true');
background-position: top left;
filter: grayscale(100%);
}
.becky:hover, .hugh:hover {
position: absolute;
z-index: 1;
top: 0;
bottom: 0;
filter: grayscale(0%);
}
.hugh:hover {
right: 0;
left: 55px;
}
.becky:hover {
right: 55px;
left: 0;
}
.becky:hover > span, .hugh:hover > span {
writing-mode: vertical-rl;
text-orientation: upright;
position: absolute;
}
.becky:hover > span {
left: 16px;
top: 16px;
}
.hugh:hover > span {
right: 16px;
top: 16px;
}
.hugh:hover ~ .becky-vert, .becky:hover ~ .hugh-vert {
background: rgba(0,0,0,0.5);
display: block;
}