@khanacademy/perseus 7.1.1 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/es/index.css +61 -61
  3. package/dist/es/index.js +100 -168
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/index.css +61 -61
  6. package/dist/index.js +89 -126
  7. package/dist/index.js.map +1 -1
  8. package/dist/util.d.ts +7 -12
  9. package/dist/util.graphie.d.ts +6 -0
  10. package/dist/util.graphie.js.flow +14 -0
  11. package/dist/util.js.flow +7 -12
  12. package/dist/widgets/plotter.d.ts +47 -13
  13. package/dist/widgets/plotter.js.flow +47 -13
  14. package/package.json +2 -2
  15. package/src/__tests__/item-renderer.test.tsx +1 -1
  16. package/src/components/__stories__/image-loader.stories.tsx +1 -0
  17. package/src/components/graph.tsx +1 -0
  18. package/src/components/icon.tsx +1 -0
  19. package/src/components/image-loader.tsx +1 -0
  20. package/src/components/number-input.tsx +1 -0
  21. package/src/components/sortable.tsx +1 -0
  22. package/src/components/svg-image.tsx +1 -0
  23. package/src/components/tex-buttons.tsx +1 -0
  24. package/src/components/text-input.tsx +1 -0
  25. package/src/components/text-list-editor.tsx +1 -0
  26. package/src/components/zoomable.tsx +1 -0
  27. package/src/hints-renderer.tsx +1 -0
  28. package/src/index.ts +1 -0
  29. package/src/item-renderer.tsx +1 -0
  30. package/src/mixins/provide-keypad.tsx +1 -0
  31. package/src/multi-items/multi-renderer.tsx +1 -0
  32. package/src/renderer.tsx +1 -0
  33. package/src/server-item-renderer.tsx +1 -0
  34. package/src/styles/articles.less +8 -4
  35. package/src/styles/perseus-renderer.less +47 -38
  36. package/src/styles/util.less +1 -1
  37. package/src/styles/variables.boostrap.less +158 -182
  38. package/src/styles/variables.less +20 -20
  39. package/src/styles/variables.shared.less +162 -168
  40. package/src/styles/widgets/categorizer.less +1 -2
  41. package/src/styles/widgets/expression.less +7 -4
  42. package/src/styles/widgets/grapher.less +2 -1
  43. package/src/styles/widgets/image.less +3 -2
  44. package/src/styles/widgets/interactive-graph.less +4 -2
  45. package/src/styles/widgets/label-image.less +2 -1
  46. package/src/styles/widgets/matrix.less +11 -7
  47. package/src/styles/widgets/orderer.less +2 -1
  48. package/src/styles/widgets/passage.less +2 -1
  49. package/src/styles/widgets/plotter.less +4 -3
  50. package/src/styles/widgets/radio.less +4 -2
  51. package/src/styles/widgets/sortable.less +1 -1
  52. package/src/styles/widgets/table.less +2 -1
  53. package/src/styles/widgets/transformer.less +2 -1
  54. package/src/styles/widgets/unit.less +2 -1
  55. package/src/util.graphie.test.ts +45 -0
  56. package/src/util.graphie.ts +59 -0
  57. package/src/util.ts +8 -63
  58. package/src/widgets/__stories__/plotter.stories.tsx +27 -0
  59. package/src/widgets/__testdata__/plotter.testdata.ts +36 -0
  60. package/src/widgets/__tests__/__snapshots__/plotter.test.tsx.snap +863 -0
  61. package/src/widgets/__tests__/plotter.test.tsx +65 -0
  62. package/src/widgets/categorizer.tsx +1 -0
  63. package/src/widgets/graded-group-set.tsx +1 -0
  64. package/src/widgets/graded-group.tsx +1 -0
  65. package/src/widgets/interaction.tsx +1 -0
  66. package/src/widgets/label-image/marker.tsx +1 -0
  67. package/src/widgets/matcher.tsx +1 -0
  68. package/src/widgets/orderer.tsx +1 -0
  69. package/src/widgets/passage-ref-target.tsx +1 -0
  70. package/src/widgets/plotter.tsx +108 -98
  71. package/src/widgets/radio/base-radio.tsx +1 -0
  72. package/src/widgets/radio/choice-icon/choice-icon.tsx +1 -0
  73. package/src/widgets/sorter.tsx +1 -0
  74. package/src/widgets/transformer.tsx +1 -0
  75. package/tsconfig-build.tsbuildinfo +1 -1
@@ -2,300 +2,276 @@
2
2
  // Variables
3
3
  // --------------------------------------------------
4
4
 
5
-
6
5
  // Global values
7
6
  // --------------------------------------------------
8
7
 
9
-
10
8
  // Grays
11
9
  // -------------------------
12
- @black: #000;
13
- @grayDarker: #222;
14
- @grayDark: #333;
15
- @gray: #555;
16
- @grayLight: #999;
17
- @grayLighter: #eee;
18
- @white: #fff;
19
-
10
+ @black: #000;
11
+ @grayDarker: #222;
12
+ @grayDark: #333;
13
+ @gray: #555;
14
+ @grayLight: #999;
15
+ @grayLighter: #eee;
16
+ @white: #fff;
20
17
 
21
18
  // Accent colors
22
19
  // -------------------------
23
- @blue: #049cdb;
24
- @blueDark: #0064cd;
25
- @green: #46a546;
26
- @red: #9d261d;
27
- @yellow: #ffc40d;
28
- @orange: #f89406;
29
- @pink: #c3325f;
30
- @purple: #7a43b6;
31
-
20
+ @blue: #049cdb;
21
+ @blueDark: #0064cd;
22
+ @green: #46a546;
23
+ @red: #9d261d;
24
+ @yellow: #ffc40d;
25
+ @orange: #f89406;
26
+ @pink: #c3325f;
27
+ @purple: #7a43b6;
32
28
 
33
29
  // Scaffolding
34
30
  // -------------------------
35
- @bodyBackground: @white;
36
- @textColor: @grayDark;
37
-
31
+ @bodyBackground: @white;
32
+ @textColor: @grayDark;
38
33
 
39
34
  // Links
40
35
  // -------------------------
41
- @linkColor: #08c;
42
- @linkColorHover: darken(@linkColor, 15%);
43
-
36
+ @linkColor: #08c;
37
+ @linkColorHover: darken(@linkColor, 15%);
44
38
 
45
39
  // Typography
46
40
  // -------------------------
47
- @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
48
- @serifFontFamily: Georgia, "Times New Roman", Times, serif;
49
- @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
50
-
51
- @baseFontSize: 14px;
52
- @baseFontFamily: @sansFontFamily;
53
- @baseLineHeight: 20px;
54
- @altFontFamily: @serifFontFamily;
41
+ @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
42
+ @serifFontFamily: Georgia, "Times New Roman", Times, serif;
43
+ @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
55
44
 
56
- @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
57
- @headingsFontWeight: bold; // instead of browser default, bold
58
- @headingsColor: inherit; // empty to use BS default, @textColor
45
+ @baseFontSize: 14px;
46
+ @baseFontFamily: @sansFontFamily;
47
+ @baseLineHeight: 20px;
48
+ @altFontFamily: @serifFontFamily;
59
49
 
50
+ @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
51
+ @headingsFontWeight: bold; // instead of browser default, bold
52
+ @headingsColor: inherit; // empty to use BS default, @textColor
60
53
 
61
54
  // Component sizing
62
55
  // -------------------------
63
56
  // Based on 14px font-size and 20px line-height
64
57
 
65
- @fontSizeLarge: @baseFontSize * 1.25; // ~18px
66
- @fontSizeSmall: @baseFontSize * 0.85; // ~12px
67
- @fontSizeMini: @baseFontSize * 0.75; // ~11px
58
+ @fontSizeLarge: @baseFontSize * 1.25; // ~18px
59
+ @fontSizeSmall: @baseFontSize * 0.85; // ~12px
60
+ @fontSizeMini: @baseFontSize * 0.75; // ~11px
68
61
 
69
- @paddingLarge: 11px 19px; // 44px
70
- @paddingSmall: 2px 10px; // 26px
71
- @paddingMini: 0 6px; // 22px
72
-
73
- @baseBorderRadius: 4px;
74
- @borderRadiusLarge: 6px;
75
- @borderRadiusSmall: 3px;
62
+ @paddingLarge: 11px 19px; // 44px
63
+ @paddingSmall: 2px 10px; // 26px
64
+ @paddingMini: 0 6px; // 22px
76
65
 
66
+ @baseBorderRadius: 4px;
67
+ @borderRadiusLarge: 6px;
68
+ @borderRadiusSmall: 3px;
77
69
 
78
70
  // Tables
79
71
  // -------------------------
80
- @tableBackground: transparent; // overall background-color
81
- @tableBackgroundAccent: #f9f9f9; // for striping
82
- @tableBackgroundHover: #f5f5f5; // for hover
83
- @tableBorder: #ddd; // table and cell border
72
+ @tableBackground: transparent; // overall background-color
73
+ @tableBackgroundAccent: #f9f9f9; // for striping
74
+ @tableBackgroundHover: #f5f5f5; // for hover
75
+ @tableBorder: #ddd; // table and cell border
84
76
 
85
77
  // Buttons
86
78
  // -------------------------
87
- @btnBackground: @white;
88
- @btnBackgroundHighlight: darken(@white, 10%);
89
- @btnBorder: #ccc;
90
-
91
- @btnPrimaryBackground: @linkColor;
92
- @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
79
+ @btnBackground: @white;
80
+ @btnBackgroundHighlight: darken(@white, 10%);
81
+ @btnBorder: #ccc;
93
82
 
94
- @btnInfoBackground: #5bc0de;
95
- @btnInfoBackgroundHighlight: #2f96b4;
83
+ @btnPrimaryBackground: @linkColor;
84
+ @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
96
85
 
97
- @btnSuccessBackground: #62c462;
98
- @btnSuccessBackgroundHighlight: #51a351;
86
+ @btnInfoBackground: #5bc0de;
87
+ @btnInfoBackgroundHighlight: #2f96b4;
99
88
 
100
- @btnWarningBackground: lighten(@orange, 15%);
101
- @btnWarningBackgroundHighlight: @orange;
89
+ @btnSuccessBackground: #62c462;
90
+ @btnSuccessBackgroundHighlight: #51a351;
102
91
 
103
- @btnDangerBackground: #ee5f5b;
104
- @btnDangerBackgroundHighlight: #bd362f;
92
+ @btnWarningBackground: lighten(@orange, 15%);
93
+ @btnWarningBackgroundHighlight: @orange;
105
94
 
106
- @btnInverseBackground: #444;
107
- @btnInverseBackgroundHighlight: @grayDarker;
95
+ @btnDangerBackground: #ee5f5b;
96
+ @btnDangerBackgroundHighlight: #bd362f;
108
97
 
98
+ @btnInverseBackground: #444;
99
+ @btnInverseBackgroundHighlight: @grayDarker;
109
100
 
110
101
  // Forms
111
102
  // -------------------------
112
- @inputBackground: @white;
113
- @inputBorder: #ccc;
114
- @inputBorderRadius: @baseBorderRadius;
115
- @inputDisabledBackground: @grayLighter;
116
- @formActionsBackground: #f5f5f5;
117
- @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
118
-
103
+ @inputBackground: @white;
104
+ @inputBorder: #ccc;
105
+ @inputBorderRadius: @baseBorderRadius;
106
+ @inputDisabledBackground: @grayLighter;
107
+ @formActionsBackground: #f5f5f5;
108
+ @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
119
109
 
120
110
  // Dropdowns
121
111
  // -------------------------
122
- @dropdownBackground: @white;
123
- @dropdownBorder: rgba(0,0,0,.2);
124
- @dropdownDividerTop: #e5e5e5;
125
- @dropdownDividerBottom: @white;
126
-
127
- @dropdownLinkColor: @grayDark;
128
- @dropdownLinkColorHover: @white;
129
- @dropdownLinkColorActive: @white;
130
-
131
- @dropdownLinkBackgroundActive: @linkColor;
132
- @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
112
+ @dropdownBackground: @white;
113
+ @dropdownBorder: rgba(0, 0, 0, 0.2);
114
+ @dropdownDividerTop: #e5e5e5;
115
+ @dropdownDividerBottom: @white;
133
116
 
117
+ @dropdownLinkColor: @grayDark;
118
+ @dropdownLinkColorHover: @white;
119
+ @dropdownLinkColorActive: @white;
134
120
 
121
+ @dropdownLinkBackgroundActive: @linkColor;
122
+ @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
135
123
 
136
124
  // COMPONENT VARIABLES
137
125
  // --------------------------------------------------
138
126
 
139
-
140
127
  // Z-index master list
141
128
  // -------------------------
142
129
  // Used for a bird's eye view of components dependent on the z-axis
143
130
  // Try to avoid customizing these :)
144
- @zindexDropdown: 1000;
145
- @zindexPopover: 1010;
146
- @zindexTooltip: 1030;
147
- @zindexFixedNavbar: 1030;
148
- @zindexModalBackdrop: 1040;
149
- @zindexModal: 1050;
150
-
131
+ @zindexDropdown: 1000;
132
+ @zindexPopover: 1010;
133
+ @zindexTooltip: 1030;
134
+ @zindexFixedNavbar: 1030;
135
+ @zindexModalBackdrop: 1040;
136
+ @zindexModal: 1050;
151
137
 
152
138
  // Sprite icons path
153
139
  // -------------------------
154
- @iconSpritePath: "../img/glyphicons-halflings.png";
155
- @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
156
-
140
+ @iconSpritePath: "../img/glyphicons-halflings.png";
141
+ @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
157
142
 
158
143
  // Input placeholder text color
159
144
  // -------------------------
160
- @placeholderText: @grayLight;
161
-
145
+ @placeholderText: @grayLight;
162
146
 
163
147
  // Hr border color
164
148
  // -------------------------
165
- @hrBorder: @grayLighter;
166
-
149
+ @hrBorder: @grayLighter;
167
150
 
168
151
  // Horizontal forms & lists
169
152
  // -------------------------
170
- @horizontalComponentOffset: 180px;
171
-
153
+ @horizontalComponentOffset: 180px;
172
154
 
173
155
  // Wells
174
156
  // -------------------------
175
- @wellBackground: #f5f5f5;
176
-
157
+ @wellBackground: #f5f5f5;
177
158
 
178
159
  // Navbar
179
160
  // -------------------------
180
- @navbarCollapseWidth: 979px;
181
- @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
161
+ @navbarCollapseWidth: 979px;
162
+ @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
182
163
 
183
- @navbarHeight: 40px;
184
- @navbarBackgroundHighlight: #ffffff;
185
- @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
186
- @navbarBorder: darken(@navbarBackground, 12%);
164
+ @navbarHeight: 40px;
165
+ @navbarBackgroundHighlight: #ffffff;
166
+ @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
167
+ @navbarBorder: darken(@navbarBackground, 12%);
187
168
 
188
- @navbarText: #777;
189
- @navbarLinkColor: #777;
190
- @navbarLinkColorHover: @grayDark;
191
- @navbarLinkColorActive: @gray;
192
- @navbarLinkBackgroundHover: transparent;
193
- @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
169
+ @navbarText: #777;
170
+ @navbarLinkColor: #777;
171
+ @navbarLinkColorHover: @grayDark;
172
+ @navbarLinkColorActive: @gray;
173
+ @navbarLinkBackgroundHover: transparent;
174
+ @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
194
175
 
195
- @navbarBrandColor: @navbarLinkColor;
176
+ @navbarBrandColor: @navbarLinkColor;
196
177
 
197
178
  // Inverted navbar
198
- @navbarInverseBackground: #111111;
199
- @navbarInverseBackgroundHighlight: #222222;
200
- @navbarInverseBorder: #252525;
201
-
202
- @navbarInverseText: @grayLight;
203
- @navbarInverseLinkColor: @grayLight;
204
- @navbarInverseLinkColorHover: @white;
205
- @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
206
- @navbarInverseLinkBackgroundHover: transparent;
207
- @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
179
+ @navbarInverseBackground: #111111;
180
+ @navbarInverseBackgroundHighlight: #222222;
181
+ @navbarInverseBorder: #252525;
208
182
 
209
- @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
210
- @navbarInverseSearchBackgroundFocus: @white;
211
- @navbarInverseSearchBorder: @navbarInverseBackground;
212
- @navbarInverseSearchPlaceholderColor: #ccc;
183
+ @navbarInverseText: @grayLight;
184
+ @navbarInverseLinkColor: @grayLight;
185
+ @navbarInverseLinkColorHover: @white;
186
+ @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
187
+ @navbarInverseLinkBackgroundHover: transparent;
188
+ @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
213
189
 
214
- @navbarInverseBrandColor: @navbarInverseLinkColor;
190
+ @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
191
+ @navbarInverseSearchBackgroundFocus: @white;
192
+ @navbarInverseSearchBorder: @navbarInverseBackground;
193
+ @navbarInverseSearchPlaceholderColor: #ccc;
215
194
 
195
+ @navbarInverseBrandColor: @navbarInverseLinkColor;
216
196
 
217
197
  // Pagination
218
198
  // -------------------------
219
- @paginationBackground: #fff;
220
- @paginationBorder: #ddd;
221
- @paginationActiveBackground: #f5f5f5;
222
-
199
+ @paginationBackground: #fff;
200
+ @paginationBorder: #ddd;
201
+ @paginationActiveBackground: #f5f5f5;
223
202
 
224
203
  // Hero unit
225
204
  // -------------------------
226
- @heroUnitBackground: @grayLighter;
227
- @heroUnitHeadingColor: inherit;
228
- @heroUnitLeadColor: inherit;
229
-
205
+ @heroUnitBackground: @grayLighter;
206
+ @heroUnitHeadingColor: inherit;
207
+ @heroUnitLeadColor: inherit;
230
208
 
231
209
  // Form states and alerts
232
210
  // -------------------------
233
- @warningText: #c09853;
234
- @warningBackground: #fcf8e3;
235
- @warningBorder: darken(spin(@warningBackground, -10), 3%);
236
-
237
- @errorText: #b94a48;
238
- @errorBackground: #f2dede;
239
- @errorBorder: darken(spin(@errorBackground, -10), 3%);
211
+ @warningText: #c09853;
212
+ @warningBackground: #fcf8e3;
213
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
240
214
 
241
- @successText: #468847;
242
- @successBackground: #dff0d8;
243
- @successBorder: darken(spin(@successBackground, -10), 5%);
215
+ @errorText: #b94a48;
216
+ @errorBackground: #f2dede;
217
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
244
218
 
245
- @infoText: #3a87ad;
246
- @infoBackground: #d9edf7;
247
- @infoBorder: darken(spin(@infoBackground, -10), 7%);
219
+ @successText: #468847;
220
+ @successBackground: #dff0d8;
221
+ @successBorder: darken(spin(@successBackground, -10), 5%);
248
222
 
223
+ @infoText: #3a87ad;
224
+ @infoBackground: #d9edf7;
225
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
249
226
 
250
227
  // Tooltips and popovers
251
228
  // -------------------------
252
- @tooltipColor: #fff;
253
- @tooltipBackground: #000;
254
- @tooltipArrowWidth: 5px;
255
- @tooltipArrowColor: @tooltipBackground;
229
+ @tooltipColor: #fff;
230
+ @tooltipBackground: #000;
231
+ @tooltipArrowWidth: 5px;
232
+ @tooltipArrowColor: @tooltipBackground;
256
233
 
257
- @popoverBackground: #fff;
258
- @popoverArrowWidth: 10px;
259
- @popoverArrowColor: #fff;
260
- @popoverTitleBackground: darken(@popoverBackground, 3%);
234
+ @popoverBackground: #fff;
235
+ @popoverArrowWidth: 10px;
236
+ @popoverArrowColor: #fff;
237
+ @popoverTitleBackground: darken(@popoverBackground, 3%);
261
238
 
262
239
  // Special enhancement for popovers
263
- @popoverArrowOuterWidth: @popoverArrowWidth + 1;
264
- @popoverArrowOuterColor: rgba(0,0,0,.25);
265
-
266
-
240
+ @popoverArrowOuterWidth: @popoverArrowWidth + 1;
241
+ @popoverArrowOuterColor: rgba(0, 0, 0, 0.25);
267
242
 
268
243
  // GRID
269
244
  // --------------------------------------------------
270
245
 
271
-
272
246
  // Default 940px grid
273
247
  // -------------------------
274
- @gridColumns: 12;
275
- @gridColumnWidth: 60px;
276
- @gridGutterWidth: 20px;
277
- @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
248
+ @gridColumns: 12;
249
+ @gridColumnWidth: 60px;
250
+ @gridGutterWidth: 20px;
251
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) +
252
+ (@gridGutterWidth * (@gridColumns - 1));
278
253
 
279
254
  // 1200px min
280
- @gridColumnWidth1200: 70px;
281
- @gridGutterWidth1200: 30px;
282
- @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
255
+ @gridColumnWidth1200: 70px;
256
+ @gridGutterWidth1200: 30px;
257
+ @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) +
258
+ (@gridGutterWidth1200 * (@gridColumns - 1));
283
259
 
284
260
  // 768px-979px
285
- @gridColumnWidth768: 42px;
286
- @gridGutterWidth768: 20px;
287
- @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
288
-
261
+ @gridColumnWidth768: 42px;
262
+ @gridGutterWidth768: 20px;
263
+ @gridRowWidth768: (@gridColumns * @gridColumnWidth768) +
264
+ (@gridGutterWidth768 * (@gridColumns - 1));
289
265
 
290
266
  // Fluid grid
291
267
  // -------------------------
292
- @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
293
- @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
268
+ @fluidGridColumnWidth: percentage(@gridColumnWidth / @gridRowWidth);
269
+ @fluidGridGutterWidth: percentage(@gridGutterWidth / @gridRowWidth);
294
270
 
295
271
  // 1200px min
296
- @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
297
- @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
272
+ @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200 / @gridRowWidth1200);
273
+ @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200 / @gridRowWidth1200);
298
274
 
299
275
  // 768px-979px
300
- @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
301
- @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
276
+ @fluidGridColumnWidth768: percentage(@gridColumnWidth768 / @gridRowWidth768);
277
+ @fluidGridGutterWidth768: percentage(@gridGutterWidth768 / @gridRowWidth768);
@@ -1,30 +1,30 @@
1
1
  // Steal from webapp/stylesheets/shared-package/variables.less
2
- @baseFontFamily: "Proxima Nova", sans-serif;
3
- @boldFontFamily: "Proxima Nova Semibold", sans-serif;
4
- @green: #76a005;
5
- @kaGreen: #71b307;
6
- @blue: #1c758a;
7
- @gray: #aaa;
8
- @red: #ffbaba;
9
- @grayLight: #aaa;
10
- @grayLighter: #ddd;
11
- @learnstormBlue: #4898fc;
2
+ @baseFontFamily: "Proxima Nova", sans-serif;
3
+ @boldFontFamily: "Proxima Nova Semibold", sans-serif;
4
+ @green: #76a005;
5
+ @kaGreen: #71b307;
6
+ @blue: #1c758a;
7
+ @gray: #aaa;
8
+ @red: #ffbaba;
9
+ @grayLight: #aaa;
10
+ @grayLighter: #ddd;
11
+ @learnstormBlue: #4898fc;
12
12
  @gray76: #babec2;
13
13
 
14
14
  // Steal from webapp/javascript/shared-styles-package/global-styles.js
15
15
  // TODO(charlie): DRY this up. How can we keep our global palette in sync across
16
16
  // repos?
17
- @white: #FFFFFF;
18
- @gray98: #FAFAFA;
19
- @gray97: #F6F7F7;
20
- @gray95: #F0F1F2;
21
- @gray90: #E3E5E6;
22
- @gray85: #D6D8DA;
23
- @gray76: #BABEC2;
24
- @gray68: #888D93;
17
+ @white: #ffffff;
18
+ @gray98: #fafafa;
19
+ @gray97: #f6f7f7;
20
+ @gray95: #f0f1f2;
21
+ @gray90: #e3e5e6;
22
+ @gray85: #d6d8da;
23
+ @gray76: #babec2;
24
+ @gray68: #888d93;
25
25
  @gray41: #626569;
26
- @gray25: #3B3E40;
27
- @gray17: #21242C;
26
+ @gray25: #3b3e40;
27
+ @gray17: #21242c;
28
28
 
29
29
  // Media query breakpoints
30
30
  // --------------------------------------------------