-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
138 lines (112 loc) · 2.51 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
body{
background-color: #034f84;
color: #FFFFFF;
}
div.nav-bar {
margin-left: auto;
margin-right: auto;
max-width: 70em;
text-align: center;
border-bottom: 1px solid #eee;
}
a.nav-bar {
margin: 15px;
font-size: 25pt;
}
div.d40 {
margin-top: 15px;
margin-bottom: 15px;
align: center;
}
div.submit-a-dive {
max-width: 70em;
margin-left: auto;
margin-right: auto;
background-color: #034f84;
}
select {
display: inline-block;
color: #000000;
}
option {
display: inline-block;
}
input {
background-color: #f2f2f2;
}
textarea {
background-color: #eaeaea;
color: #000000;
}
table {
width: 80%;
margin-left: auto;
margin-right: auto;
margin-top: 15px;
}
th {
background-color: #333;
color: #FFF;
}
tr {
background-color: #ccc;
color: #000;
}
tr:nth-of-type(2n+1) {
background: #888;
color: #FFF;
}
@media screen and ( max-width: 80em) {
div.nav-bar {
margin-left: 10%;
margin-right: 10%;
}
div.submit-a-dive {
margin-left: 10%;
margin-right: 10%;
}
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
opacity: 0%;
}
/* Hide table headers (but not display: none;, for accessibility) */
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr { border: 1px solid #111; }
tr:nth-of-type(2n+1) {
background: #444;
color: #FFF;
}
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #111;
position: relative;
padding-left: 50%;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
}
/*
Label the data
*/
td:nth-of-type(1):before { content: "Dive Site"; }
td:nth-of-type(2):before { content: "Dive Shop"; }
td:nth-of-type(3):before { content: "Start Time"; }
td:nth-of-type(4):before { content: "Dive Time"; }
td:nth-of-type(5):before { content: "Dive Watch"; }
td:nth-of-type(6):before { content: "Water Temperature"; }
td:nth-of-type(7):before { content: "Air Temperature"; }
td:nth-of-type(8):before { content: "Comments"; }
}