-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.css
86 lines (73 loc) · 1.45 KB
/
header.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
header {
background: white;
position: fixed;
top:0;
height: 100px;
width: 100%;
color: black;
overflow:hidden;
box-shadow: 0 5px 10px rgba(0,0,0,0.5);
z-index: 100;
}
header img {
height: 100px;
transition: transform 0.2s ease-in-out;
}
header a:first-child img, header a:last-child img{
width: 80%;
object-fit: contain;
}
header a{
display: inline-block;
width: 40%;
text-align: center;
height: 100%;
}
header a:nth-child(2) {
width: 20%;
}
header a:nth-child(2) img {
height: 80px;
}
header a:first-child {
text-align: left;
background: linear-gradient(to right, rgba(255,255,255,0) 50%, rgba(255,255,255,1.0)), url('/flourish_bg.png');
background-position: center center;
background-size: cover;
position: relative;
overflow: hidden;
}
header a:first-child img {
position: absolute;
height: initial;
max-height: 450px;
width: 80%;
top: 50%;
transform:translateY(-50%);
}
header a:first-child:hover img {
transform:translateY(-50%)scale(1.02);
}
header a:first-child:active img {
transform:translateY(-50%)scale(1);
}
header a:last-child {
text-align: right;
background: linear-gradient(to left, rgba(255,255,255,0) 70%, rgba(255,255,255,1.0)), url('/sweetspace/bg.png');
background-position: center center;
background-size: cover;
}
header a:hover img {
transform: scale(1.02);
}
header a:active img {
transform: scale(1);
}
@media(max-width: 750px) {
header a:nth-child(2) {
display: none;
}
header a{
width: 50%;
}
}