-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
190 lines (160 loc) · 3.28 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
* Style sheet of the the CAN overhead calculator.
* Published under the terms of the BSD 3-Clause license.
* See LICENSE.md for details.
*/
body {
margin: 0.5rem;
padding: 1.0rem;
font-family: Source Code Pro, Menlo, Consolas, Lucida Console, monospace;
font-size: 1.2rem;
background-color: #f8f8f8; /* Slightly less bright white-gray */
}
a {
color: #1EAEDB;
text-decoration: none;
}
a:hover {
color: #0F90BE;
}
#main_title {
text-align: center;
font-size: 2.5rem;
}
#noscript_warning {
margin: 2rem;
padding: 1rem;
font-size: 1.5rem;
}
#noscript_warning h3 {
color: darkred;
font-style: italic;
}
.input_form {
background-color: #c6c6c67a;
}
.input-error {
color: red;
font-size: 1rem;
}
.input_text {
width: 100%;
padding: 0.5rem;
margin: 1em;
box-sizing: border-box;
font-family: inherit;
}
#input_can_identifier {
width: 20em; /* Enough for 31 chars: 0b111... with 29 bits. */
}
#input_can_dlc_block {
/* Initially hidden. */
display: none;
}
.small_label {
font-size: 1rem;
}
.dropdown_select {
/*width: 6rem;*/
height: 2.5em;
font-size: 1rem;
font-family: inherit;
color: #1EAEDB;
border: 2px solid #ccc;
border-radius: 5px;
}
#input_can_payload {
width: 85em; /* Enough for 128 hex chars, covering 64 bytes. */
}
.help_popup {
font-weight: bold;
}
.buttons {
margin: 1rem;
display: flex;
justify-content: center;
}
.button {
background-color: #1EAEDB;
border: 1rem;
color: white;
padding: 1em 2em;
text-align: center;
font-size: 1rem;
cursor: pointer;
border-radius: 1em;
transition-duration: 0.3s;
font-family: inherit;
}
.button:hover {
background-color: #105169;
}
.stuff_bit {
text-decoration: underline;
color: #b22ed0;
}
.output_section_title {
/* Initially hidden. */
display: none;
}
/* Output list with CAN frame as a bit sequence */
#output_list {
font-size: 1.2rem;
width: 90%;
margin-left: 1rem;
/* Initially hidden. */
display: none;
}
#output_list li {
margin-bottom: 1.5rem;
}
.output_can_text {
margin-top: 0.5rem;
background-color: #eee;
white-space: break-spaces; /* Prevent HTML merging whitespace paddings. */
}
/* Output table with CAN frame fields */
.output_table {
font-size: 1.2rem;
/* Center in middle of page. */
margin-left: auto;
margin-right: auto;
width: 90%;
/* Avoid double border between cells. */
border-collapse: collapse;
/* Initially hidden. */
display: none;
}
.output_table td, .output_table th {
/* Line around the cells. */
border: 0.2em solid #ddd;
/* Space between cell border and content inside, making the table
* breath a bit more. */
padding: 0.5em;
}
.output_table th {
/* Table header row. */
text-align: center;
font-weight: bold;
}
.output_table tr {
text-align: right;
}
.output_table tr:nth-child(even) {
/* Alternating colors of the rows for easier reading. */
background-color: #eee;
}
.output_table tr:hover {
/* Mouseover color change. */
background-color: #ddd;
}
.cell_text {
text-align: left;
}
footer {
font-size: x-small;
text-align: center;
padding: 1.5rem;
margin: auto;
width: 60%;
}