-
Notifications
You must be signed in to change notification settings - Fork 90
/
main.css
109 lines (85 loc) · 2.19 KB
/
main.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
106
107
108
109
@import url(//fonts.googleapis.com/css?family=Open+Sans);
@import url(//fonts.googleapis.com/css?family=Open+Sans+Condensed:300);
/*
Center the contents of the page.
*/
body {
margin: 0 auto;
width: 50%;
}
/*
Set common typography.
The preferred font is Open Sans, which is a Google Web Font, so it should be available everywhere. If it isn't, Verdana is the backup font, but only for body text, because it doesn't look good in headers.
*/
body {
font-family: Open Sans, Verdana, sans-serif;
font-size: 12pt;
}
h1 {
font-family: Open Sans Condensed, sans-serif;
font-weight: normal;
font-size: 24pt;
color: #666;
}
h2 {
font-family: Open Sans Condensed, sans-serif;
font-weight: normal;
font-size: 35px;
color: #069;
margin-bottom: 0;
}
/*
Position the month names, day numbers, and person names.
The day numbers are on the left with a list of person names to the right of them.
*/
h1 {
margin: 0;
border-bottom: 1px dotted grey;
}
h2 {
margin: 0;
}
h2 ~ p { /* only applies to p-elements on the main page */
margin: 0;
position: relative;
top: -40px; /* move person names to line up with the day number */
left: 50px; /* make sure the person names don't overlap the day number */
}
p:last-of-type { /* the last p-element should act like a normal paragraph since it's not a person name */
position: static;
}
/*
Set hyperlink styles.
*/
a {
color: black;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a + a { /* delete links */
color: red;
font-size: 80%;
vertical-align: super;
}
p:last-of-type a { /* the add link */
color: blue;
display: block; /* we can't center the parent element, because no all pages need their last paragraph centered */
text-align: center;
margin-bottom: 20px;
}
/*
Set the style of forms.
Labels are in a column to the left, with input fields to the right and spanning the entire remaining width.
*/
form p {
margin: 5px 0;
}
form label {
display: inline-block;
width: 100px;
}
form input[type=submit]:only-child {
margin-left: 100px; /* place submit button underneath fields */
}