1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | var _exports = {};
|
7 |
|
8 | var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
9 |
|
10 | _exports.canUseDOM = canUseDOM;
|
11 |
|
12 |
|
13 | _exports.breakpoint = {
|
14 | xs: 480,
|
15 | sm: 768,
|
16 | md: 992,
|
17 | lg: 1200
|
18 | };
|
19 |
|
20 |
|
21 | _exports.borderRadius = {
|
22 | xs: 2,
|
23 | sm: 4,
|
24 | md: 8,
|
25 | lg: 16,
|
26 | xl: 32
|
27 | };
|
28 |
|
29 |
|
30 | _exports.color = {
|
31 | appDanger: '#d64242',
|
32 | appInfo: '#56cdfc',
|
33 | appPrimary: '#1385e5',
|
34 | appSuccess: '#34c240',
|
35 | appWarning: '#fa9f47',
|
36 | brandPrimary: '#31adb8'
|
37 | };
|
38 |
|
39 |
|
40 | _exports.spacing = {
|
41 | xs: 5,
|
42 | sm: 10,
|
43 | md: 20,
|
44 | lg: 40,
|
45 | xl: 80
|
46 | };
|
47 |
|
48 |
|
49 | _exports.width = {
|
50 | container: 1170,
|
51 | gutter: 20
|
52 | };
|
53 |
|
54 |
|
55 |
|
56 | function perc(n) {
|
57 | return n * 100 + '%';
|
58 | }
|
59 |
|
60 | function denominators(n) {
|
61 | for (var d = 2; d <= 20; d++) {
|
62 | if (n < d) {
|
63 | _exports.fractions[n + '/' + d] = perc(n / d);
|
64 | }
|
65 | }
|
66 | }
|
67 |
|
68 | _exports.fractions = {
|
69 | '1': '100%'
|
70 | };
|
71 |
|
72 | for (var numerator = 1; numerator <= 19; numerator++) {
|
73 | denominators(numerator);
|
74 | }
|
75 |
|
76 | exports.canUseDOM = canUseDOM;
|
77 | exports.default = _exports; |
\ | No newline at end of file |