-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
67 lines (55 loc) · 1.18 KB
/
style.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
/* General styles - put these straight into your stylesheet */
body {
margin: 0;
}
html {
font-family: 'Helvetica neue', Arial, 'sans serif';
font-size: 10px;
background-color: #ccc;
}
/* Rulesets to be matched up with selectors */
.card {
width: 35em;
height: 22em;
margin: 5em auto;
background-color: red;
border: 0.2em solid black;
border-radius: 1.5em;
}
.card header {
background-image: linear-gradient(to bottom,rgba(0,0,0,0.1), rgba(0,0,0,0));
border-radius: 1.5em 1.5em 0 0;
}
.card article img {
max-height: 100%;
float: right;
}
.card footer {
background-image: linear-gradient(to bottom,rgba(0,0,0,0), rgba(0,0,0,0.1));
border-radius: 0 0 1.5em 1.5em;
}
/* Header and Footer styles */
.card header,footer {
height: 3em;
padding: 1em;
}
/* Main Business Card Contents Styles */
.card h2,p{
margin: 0;
}
.card article {
height: 12em;
background-color: rgb(0,0,0,.3);
}
.card h2 {
font-size: 2em;
line-height: 1.5;
}
.card footer p {
font-size: 1.5em;
line-height: 2;
}
.card article p {
padding: 1em;
color: lightgray;
}