forked from CDCgov/opencdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_hero.scss
executable file
·93 lines (86 loc) · 1.7 KB
/
_hero.scss
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
.hero-img {
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
min-height: 400px;
position: relative;
@include linearGradient(#005eaa, #005eaa);
}
.hero-border {
position: absolute;
bottom: 0;
right: 0;
width: 100%;
height: 140px;
/* set height to pixels if you want angle to change with screen width */
}
.hero-search {
// background-color: rgba(46, 133, 64, 0.7);
bottom: 30%;
left: 20vw;
right: 20vw;
padding-top: 20px;
position: absolute;
text-align: center;
}
.hero-search h2 {
font-family: "Source Sans Pro";
color: white;
font-size: 2rem;
font-size: 20px;
font-weight: 400;
margin-top: 0;
margin-bottom: 0;
@media screen and (min-width: 600px){
font-size: 4rem;
font-size: 40px;
}
@media screen and (min-width: 1500px){
font-size: 5rem;
font-size: 50px;
}
}
.hero-search .opencdc-search.opencdc-search-big [type="search"], .hero-search .opencdc-search.opencdc-search-big .opencdc-search-input {
border-color: #ccc;
border-radius: 3px 0 0 3px;
max-width: 100%;
}
//angled header
.hero-separator {
position: absolute;
margin-top: -50px;
width: 0;
height: 0;
border-bottom: 100px solid #112e51;
border-left: 100vw solid transparent;
}
.hero-content {
padding: 3rem;
.intro {
h1,h2 {
display: block;
color: #fff;
padding-top: 0.25em;
}
h1 {
font-size: 28px;
}
a {
text-decoration: none;
text-align: center;
img {
display: block;
margin: 10px auto;
}
h1,h2,h3,h4,h5 {
color: #fff;
margin: 0;
}
&:hover {
h1,h2,h3,h4,h5 {
color: #ddd;
}
}
}
}
}