blob: 981d12e11b55fad0017091efd08a945e110a2a08 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001:root {
2 /* Subset of https://material.io/design/color/the-color-system.html */
3 --chops-red-50: #ffebee;
4 --chops-red-700: #d32f2f;
5 --chops-purple-50: #f3e5f5;
6 --chops-purple-700: #7b1fa2;
7 --chops-blue-50: #e3f2fd;
8 /*
9 Additional blue added on top of the 2014 Material Design palette because
10 blue 50 is too low contrast for backgrounds. Made from mixing blue 50
11 and blue 100.
12 */
13 --chops-blue-75: #d9edfc;
14 --chops-blue-100: #bbdefb;
15 --chops-blue-300: #64b5f6;
16 --chops-blue-700: #1976d2;
17 --chops-blue-900: #01579b;
18 --chops-green-50: #e8f5e9;
19 --chops-green-800: #2e7d32;
20 --chops-light-green-10: #f6fff5;
21 --chops-light-green-50: #f1f8e9;
22 --chops-yellow-50: #fffde7;
23 --chops-orange-50: #fff3e0;
24 --chops-orange-200: #ffcc80;
25 --chops-gray-50: #fafafa;
26 --chops-gray-200: #eee;
27 --chops-gray-300: #e0e0e0;
28 --chops-gray-400: #bdbdbd;
29 --chops-gray-500: #9e9e9e;
30 --chops-gray-600: #757575;
31 --chops-gray-700: #616161;
32 --chops-gray-800: #424242;
33 --chops-gray-850: #303030;
34 --chops-gray-900: #212121;
35 /* Making these variables makes it easier to add user-side scripts in a reasonable way. */
36 --chops-white: #ffffff;
37 --chops-black: #000000;
38
39 /* To make grays used for font styles and icons maintain consistent
40 * contrast ratios across colored backgrounds, we repesent them as pure black
41 * with opacity set. */
42 --chops-gray-700-alpha: hsla(0, 0%, 0%, 0.62);
43 --chops-gray-800-alpha: hsla(0, 0%, 0%, 0.74);
44 --chops-gray-900-alpha: hsla(0, 0%, 0%, 0.87);
45
46 --chops-blue-gray-25: #f1f3f4;
47 --chops-blue-gray-50: #eceff1; /* Similar to grimoire. */
48
49 --chops-primary-header-bg: var(--chops-white);
50 --chops-secondary-header-bg: var(--chops-blue-gray-25);
51 --chops-sidebar-bg: var(--chops-blue-gray-25);
52 --chops-page-bg: var(--chops-white);
53 --chops-footer-bg: transparent;
54 --chops-primary-icon-color: var(--chops-gray-700-alpha);
55
56 --chops-normal-border: 1px solid hsl(0, 0%, 85%);
57 /* Border color for situations when contrast is important. */
58 --chops-accessible-border: 1px solid var(--chops-gray-400);
59 --chops-radius: 6px;
60 --chops-shadow: none;
61
62 --chops-primary-font-color: var(--chops-gray-900-alpha);
63 --chops-font-family: 'Roboto', 'Noto', sans-serif;
64 --chops-link-color: var(--chops-primary-accent-color);
65 --chops-link-font-weight: 500;
66 --chops-light-accent-color: var(--chops-blue-300);
67 --chops-primary-accent-color: var(--chops-blue-700);
68 --chops-primary-accent-bg: var(--chops-blue-50);
69 --chops-primary-button-bg: var(--chops-primary-accent-color);
70 --chops-primary-button-color: var(--chops-white);
71 --chops-button-bg: var(--chops-gray-200);
72 --chops-button-color: var(--chops-black);
73 --chops-button-disabled-bg: var(--chops-gray-300);
74 --chops-button-disabled-color: var(--chops-gray-600);
75 --chops-button-border: none;
76 --chops-button-radius: 4px;
77 --chops-choice-bg: var(--chops-blue-gray-50);
78 --chops-choice-color: var(--chops-gray-600);
79 --chops-active-choice-bg: var(--chops-blue-75);
80 --chops-active-choice-color: var(--chops-primary-accent-color);
81 --chops-transition-time: 0.1s;
82
83 --chops-error-bubble-bg: var(--chops-red-50);
84 --chops-notice-bubble-bg: var(--chops-orange-50);
85 --chops-notice-border: 1px solid var(--chops-orange-200);
86 --chops-help-bubble-bg: var(--chops-blue-50);
87 --chops-field-error-color: var(--chops-red-700);
88 --chops-selected-bg: var(--chops-yellow-50);
89
90 --chops-card-heading-bg: var(--chops-secondary-header-bg);
91 --chops-card-details-bg: var(--chops-gray-50);
92 --chops-card-border: var(--chops-normal-border);
93 --chops-card-content-bg: var(--chops-white);
94
95 --chops-table-header-bg: var(--chops-secondary-header-bg);
96 --chops-table-row-bg: var(--chops-white);
97 --chops-table-divider: var(--chops-normal-border);
98
99 --chops-main-font-size: 13px;
100 --chops-large-font-size: 15px;
101 --chops-icon-font-size: 20px;
102
103 /* A few Monorail-specific CSS variables. */
104 --monorail-header-height: 44px;
105 --monorail-metadata-open-bg: var(--chops-light-green-10);
106 --monorail-metadata-closed-bg: var(--chops-sidebar-bg);
107}
108
109
110body {
111 box-sizing: border-box;
112 margin: 0;
113 padding: 0;
114 font-family: var(--chops-font-family);
115 line-height: 1.4;
116 font-size: var(--chops-main-font-size);
117 min-width: 300px;
118 background: var(--chops-page-bg);
119 color: var(--chops-primary-font-color);
120}
121
122/* Global styles for the EZT pages. */
123a {
124 color: var(--chops-link-color);
125 text-decoration: none;
126 font-weight: var(--chops-link-font-weight);
127}
128
129a:hover {
130 text-decoration: underline;
131}
132
133/* Legacy CSS used by both the SPA and the EZT pages. */
134#footer {
135 clear: both;
136 text-align: right;
137 padding-top: 1em;
138 margin: 3.5em 0em;
139 color: var(--chops-gray-500);
140 background: var(--chops-footer-bg);
141}
142
143#footer a,
144#footer a:visited {
145 text-decoration: none;
146 margin-right: 2em;
147}
148
149#ac-list {
150 border: 1px solid var(--chops-gray-400);
151 background: var(--chops-white);
152 color: var(--chops-link-color);
153 padding: 2px;
154 z-index: 999;
155 max-height: 18em;
156 overflow-x: hidden;
157 overflow-y: auto;
158}
159#ac-list { font-size: 95%; }
160#ac-list tr { margin: 1px; cursor: pointer; padding: 0 10px; }
161#ac-list th { color: var(--chops-gray-850); text-align: left; }
162#ac-list .selected,
163#ac-list .selected td { background: var(--chops-active-choice-bg); }
164#ac-list td, #ac-list th { white-space: nowrap; padding-right: 22px}