3 |*| Properties for the page: colors, etc.
5 |*| This is intended to be the easiest section to edit
6 |*| some easy custom theming, (a custom color scheme, etc.).
11 /* Standard colors for text. */
12 --text-fg-color: #333738;
13 --text-fg-color-max-contrast: black;
14 --text-bg-color: white;
15 --outside-page-bg-color: #333738;
17 /* A little color to avoid a fully monochromatic theme. */
18 --accent-color: #287789;
19 --accent-color-bright: #44c7ef;
21 /* Some colors intended to convey semnatics. */
22 --warning-color: #ffa92a;
23 --danger-color: #f56257;
24 --danger-color-dark: #bc2822;
29 |*| Core elements: Sizing, padding, and application of theme colors
35 font-family: sans-serif;
36 color: var(--text-fg-color-max-contrast);
40 color: var(--text-fg-color);
52 /* Don't underline links in headers */
54 text-decoration: none;
63 list-style-type: disc;
68 color: var(--accent-color);
71 color: var(--accent-color);
74 color: var(--accent-color-bright);
77 color: var(--accent-color-bright);
82 |*| Overall page layout
84 |*| Assumes: Top-level div with id="page" for all content
88 /* Mobile-first: At small sized we have a white background and use the
89 * entire screen width for the page (so the background color of the
90 * body is not visible anywhere). */
92 background-color: var(--outside-page-bg-color);
96 background-color: var(--text-bg-color);
99 /* For a small screen (in either width or height) change the
100 * background of the body element to white so the application always
101 * appears as if it is "full screen".
103 @media screen and (max-width: 500px) and (max-height: 860px) {
105 background-color: var(--text-bg-color);
109 /* We never let the page content get larger than a large fixed width.
111 * And when the screen is wide enough, we can afford some "wasted"
112 * space on either side of the page content. This starts at 0 for a
113 * 620px wide page up to 50px on either side for a 820px wide page.
115 * Note: This 820px width for the page includes the padding so the
116 * actual content is only ever as wide as 720px.
118 * Wider than that and we start to see the background on either side
119 * of the page content.
122 box-sizing: border-box;
132 @media screen and (min-width: 720px) and (max-width: 820px) {
134 padding-left: calc(1em + (100% - 720px)/2);
135 padding-right: calc(1em + (100% - 720px)/2);
139 @media screen and (min-width: 820px) {
141 padding-left: calc(1em + 50px);
142 padding-right: calc(1em + 50px);
146 /* The calculations for height are different. We don't have any
147 * vertical centering, so instead we have only some fixed padding on
148 * the top. Then, the margin which allows the background to be visible
149 * on the top and bottom starts appearing at a viewport height of 648
150 * and tops out at a size of 36px.
157 @media screen and (min-height: 648px) and (max-height: 720px) {
159 margin-top: calc((100vh - 648px)/2);
160 margin-bottom: calc((100vh - 648px)/2);
164 @media screen and (min-height: 720px) {
173 |*| Responsive form layout
179 * Within the form, fields can be placed in <div> elements with
180 * class "form-field". Each can also have an additional class of one
181 * of "small", "medium", or "large". These classes will be used to
182 * select either a 1- or 2-column layout for each row depending on the
183 * width of the screen.
185 * Expected layout is as follows:
187 * "large" rows: 1-column on all devices
189 * "medium" rows: 2-column on wide displays (laptop/desktop/tablet)
190 * 1-column on small display (phones)
192 * "small" rows: 2-column on all devices
194 * Finally, a class of either "left" or "right" will select which
195 * column the field should appear in for fields that end up in 2
201 grid-template-columns: 1fr 1fr;
202 grid-column-gap: 1em;
205 .form-field.small.left,.form-field.medium.left {
206 grid-column-start: 1;
209 .form-field.small.right,.form-field.medium.right {
210 grid-column-start: 2;
214 grid-column-start: 1;
215 grid-column-end: span 2;
218 /* For a narrow screen, use a single-column for medium form fields. */
219 @media screen and (max-width: 600px) {
220 .form-field.medium.left,.form-field.medium.right {
221 grid-column-start: 1;
222 grid-column-end: span 2
228 |*| Styling for form input fields
237 box-sizing: border-box;
242 border: 1px solid var(--accent-color);
247 border: 2px solid var(--accent-color-bright);
251 display: inline-block;
253 background-color: var(--accent-color);
260 padding-bottom: 0.25em;
272 transform: translateY(-1px);
273 background-color: var(--accent-color-bright);
286 |*| Styling for a message area
290 /* Default message severity is "info" but can be overriden. */
293 background-color: var(--accent-color-bright);
296 margin-bottom: 0.5em;
303 background-color: var(--accent-color-bright);
307 background-color: var(--warning-color);
311 background-color: var(--danger-color);
325 color: var(--danger-color-dark);
330 |*| Game-specific markup
334 .game-id, .players-header {