@woosmap/ui 3.26.0 → 3.30.0
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.
- package/package.json +1 -1
- package/src/components/Demo/DistanceDemo.js +5 -1
- package/src/components/Demo/GeolocationDemo.js +2 -1
- package/src/components/Demo/LocalitiesAddressDemo.js +2 -1
- package/src/components/Demo/LocalitiesDemo.js +2 -1
- package/src/components/Demo/MapDemo.js +1 -2
- package/src/components/Demo/SearchDemo.js +3 -2
- package/src/components/Dropdown/Dropdown.js +28 -10
- package/src/components/Icon/Icon.js +6 -0
- package/src/components/Map/drawOnMap.js +1 -0
- package/src/icons/care.svg +1 -0
- package/src/icons/elephant.svg +1 -0
- package/src/icons/speed.svg +1 -0
- package/src/index.js +2 -0
- package/src/styles/console/variables.styl +12 -54
package/package.json
CHANGED
|
@@ -210,6 +210,7 @@ export default class DistanceDemo extends Component {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
213
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
213
214
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
214
215
|
this.requestDistance();
|
|
215
216
|
} else {
|
|
@@ -218,6 +219,9 @@ export default class DistanceDemo extends Component {
|
|
|
218
219
|
};
|
|
219
220
|
|
|
220
221
|
localitiesOnChangeCallBack = (type) => (item) => {
|
|
222
|
+
if (!item) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
221
225
|
const newState = {};
|
|
222
226
|
newState[`${type}Location`] = item ? item.location : {};
|
|
223
227
|
this.setState(newState, this.requestDistance);
|
|
@@ -346,7 +350,7 @@ export default class DistanceDemo extends Component {
|
|
|
346
350
|
};
|
|
347
351
|
return (
|
|
348
352
|
<>
|
|
349
|
-
<Script url=
|
|
353
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
350
354
|
<Demo
|
|
351
355
|
id="distance-demo"
|
|
352
356
|
className="demo--distance"
|
|
@@ -180,6 +180,7 @@ export default class GeolocationDemo extends Component {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
183
|
+
window.woosmap.map.config.setApiKey(Constants.geolocationWoosmapSearchKey);
|
|
183
184
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
184
185
|
this.requestGeolocation();
|
|
185
186
|
} else {
|
|
@@ -211,7 +212,7 @@ export default class GeolocationDemo extends Component {
|
|
|
211
212
|
}
|
|
212
213
|
return (
|
|
213
214
|
<>
|
|
214
|
-
<Script url=
|
|
215
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
215
216
|
<Demo
|
|
216
217
|
className="demo--geolocation"
|
|
217
218
|
docLink="https://developers.woosmap.com/products/geolocation-api/location/"
|
|
@@ -328,6 +328,7 @@ export default class LocalitiesAddressDemo extends Component {
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
331
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
331
332
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
332
333
|
this.requestAddress();
|
|
333
334
|
} else {
|
|
@@ -344,7 +345,7 @@ export default class LocalitiesAddressDemo extends Component {
|
|
|
344
345
|
}
|
|
345
346
|
return (
|
|
346
347
|
<>
|
|
347
|
-
<Script url=
|
|
348
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
348
349
|
<Demo
|
|
349
350
|
noheader={noheader}
|
|
350
351
|
header={headerLabels}
|
|
@@ -195,6 +195,7 @@ export default class LocalitiesDemo extends Component {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
198
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
198
199
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
199
200
|
this.requestLocalities();
|
|
200
201
|
} else {
|
|
@@ -268,7 +269,7 @@ export default class LocalitiesDemo extends Component {
|
|
|
268
269
|
const { noheader, headerLabels, subHeader } = this.props;
|
|
269
270
|
return (
|
|
270
271
|
<>
|
|
271
|
-
<Script url=
|
|
272
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
272
273
|
<Demo
|
|
273
274
|
id="localities-demo"
|
|
274
275
|
header={headerLabels}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Demo from './SkeletonDemo';
|
|
5
|
-
import Constants from '../../Constants';
|
|
6
5
|
import Button from '../Button/Button';
|
|
7
6
|
import ButtonGroup from '../Button/ButtonGroup';
|
|
8
7
|
import marker from '../../images/marker.png';
|
|
@@ -253,7 +252,7 @@ storesOverlay.setMap(map);
|
|
|
253
252
|
};
|
|
254
253
|
return (
|
|
255
254
|
<>
|
|
256
|
-
<Script url=
|
|
255
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
257
256
|
<Demo
|
|
258
257
|
ref={this.demoRef}
|
|
259
258
|
header={headerLabels}
|
|
@@ -73,7 +73,7 @@ export default class SearchDemo extends Component {
|
|
|
73
73
|
key: Constants.woosmapKey,
|
|
74
74
|
lat: location.lat,
|
|
75
75
|
lng: location.lng,
|
|
76
|
-
stores_by_page: maxStore,
|
|
76
|
+
stores_by_page: maxStore || '5',
|
|
77
77
|
query,
|
|
78
78
|
};
|
|
79
79
|
};
|
|
@@ -190,6 +190,7 @@ export default class SearchDemo extends Component {
|
|
|
190
190
|
if (this.timeoutMap) clearTimeout(this.timeoutMap);
|
|
191
191
|
|
|
192
192
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
193
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
193
194
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
194
195
|
this.requestSearch();
|
|
195
196
|
} else {
|
|
@@ -310,7 +311,7 @@ export default class SearchDemo extends Component {
|
|
|
310
311
|
};
|
|
311
312
|
return (
|
|
312
313
|
<>
|
|
313
|
-
<Script url=
|
|
314
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
314
315
|
<Demo
|
|
315
316
|
id="search-demo"
|
|
316
317
|
className="demo--search"
|
|
@@ -6,14 +6,14 @@ import Button from '../Button/Button';
|
|
|
6
6
|
import ConfirmationPopover from '../Popover/ConfirmationPopover';
|
|
7
7
|
import withClickOutside from '../withClickOutside/withClickOutside';
|
|
8
8
|
|
|
9
|
-
function mapChildrenWithProps(children, childrenRefs,
|
|
9
|
+
function mapChildrenWithProps(children, childrenRefs, props) {
|
|
10
10
|
if (children) {
|
|
11
11
|
return React.Children.map(children, (child, index) => {
|
|
12
12
|
if (React.isValidElement(child)) {
|
|
13
13
|
// only add ref to non functional components
|
|
14
14
|
return React.cloneElement(child, {
|
|
15
15
|
...child.props,
|
|
16
|
-
|
|
16
|
+
...props,
|
|
17
17
|
ref:
|
|
18
18
|
!child.type.prototype || (child.type.prototype && child.type.prototype.render)
|
|
19
19
|
? (elem) => {
|
|
@@ -49,8 +49,8 @@ class DropdownMenu extends Component {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
render() {
|
|
52
|
-
const { direction, children, closeCb, testId, isSection, ...rest } = this.props;
|
|
53
|
-
const childrenWithProps = mapChildrenWithProps(children, this.childrenRefs, closeCb);
|
|
52
|
+
const { direction, children, closeCb, onMouseEnter, onMouseLeave, testId, isSection, ...rest } = this.props;
|
|
53
|
+
const childrenWithProps = mapChildrenWithProps(children, this.childrenRefs, { closeCb });
|
|
54
54
|
if (isSection) {
|
|
55
55
|
return (
|
|
56
56
|
<div className="dropdown__container">
|
|
@@ -58,6 +58,9 @@ class DropdownMenu extends Component {
|
|
|
58
58
|
role="menu"
|
|
59
59
|
className={cl('dropdown__menu', direction, 'dropdown__menu--section')}
|
|
60
60
|
data-testid={testId}
|
|
61
|
+
tabIndex="-1"
|
|
62
|
+
onMouseEnter={onMouseEnter}
|
|
63
|
+
onMouseLeave={onMouseLeave}
|
|
61
64
|
{...rest}
|
|
62
65
|
>
|
|
63
66
|
{childrenWithProps}
|
|
@@ -66,7 +69,14 @@ class DropdownMenu extends Component {
|
|
|
66
69
|
);
|
|
67
70
|
}
|
|
68
71
|
return (
|
|
69
|
-
<ul
|
|
72
|
+
<ul
|
|
73
|
+
role="menu"
|
|
74
|
+
className={cl('dropdown__menu', direction)}
|
|
75
|
+
data-testid={testId}
|
|
76
|
+
{...rest}
|
|
77
|
+
onMouseEnter={onMouseEnter}
|
|
78
|
+
onMouseLeave={onMouseLeave}
|
|
79
|
+
>
|
|
70
80
|
{childrenWithProps}
|
|
71
81
|
</ul>
|
|
72
82
|
);
|
|
@@ -76,6 +86,8 @@ class DropdownMenu extends Component {
|
|
|
76
86
|
DropdownMenu.defaultProps = {
|
|
77
87
|
direction: 'sw',
|
|
78
88
|
closeCb: null,
|
|
89
|
+
onMouseEnter: null,
|
|
90
|
+
onMouseLeave: null,
|
|
79
91
|
testId: 'dropdown-menu',
|
|
80
92
|
isSection: false,
|
|
81
93
|
};
|
|
@@ -83,6 +95,8 @@ DropdownMenu.defaultProps = {
|
|
|
83
95
|
DropdownMenu.propTypes = {
|
|
84
96
|
children: PropTypes.node.isRequired,
|
|
85
97
|
closeCb: PropTypes.func,
|
|
98
|
+
onMouseEnter: PropTypes.func,
|
|
99
|
+
onMouseLeave: PropTypes.func,
|
|
86
100
|
testId: PropTypes.string,
|
|
87
101
|
isSection: PropTypes.bool,
|
|
88
102
|
direction: PropTypes.oneOf(['ne', 'e', 'se', 's', 'sw', 'w']),
|
|
@@ -100,7 +114,7 @@ class DropdownMenuSection extends Component {
|
|
|
100
114
|
|
|
101
115
|
render() {
|
|
102
116
|
const { title, children, closeCb, ...rest } = this.props;
|
|
103
|
-
const childrenWithProps = mapChildrenWithProps(children, this.childrenRefs, closeCb);
|
|
117
|
+
const childrenWithProps = mapChildrenWithProps(children, this.childrenRefs, { closeCb });
|
|
104
118
|
return (
|
|
105
119
|
<div className="dropdown__menu__section">
|
|
106
120
|
{title && <div className="dropdown__menu__item dropdown__menu__item__title">{title}</div>}
|
|
@@ -313,7 +327,7 @@ class Dropdown extends Component {
|
|
|
313
327
|
}
|
|
314
328
|
this.mouseLeaveTimeout = setTimeout(() => {
|
|
315
329
|
this.setOpen(false);
|
|
316
|
-
},
|
|
330
|
+
}, 300);
|
|
317
331
|
}
|
|
318
332
|
};
|
|
319
333
|
|
|
@@ -351,15 +365,17 @@ class Dropdown extends Component {
|
|
|
351
365
|
...rest
|
|
352
366
|
} = this.props;
|
|
353
367
|
const { open } = this.state;
|
|
354
|
-
const childrenWithProps = mapChildrenWithProps(children, this.childrenRefs,
|
|
368
|
+
const childrenWithProps = mapChildrenWithProps(children, this.childrenRefs, {
|
|
369
|
+
closeCb: this.handleClickOutside,
|
|
370
|
+
onMouseEnter: this.onMouseEnter,
|
|
371
|
+
onMouseLeave: this.onMouseLeave,
|
|
372
|
+
});
|
|
355
373
|
|
|
356
374
|
return (
|
|
357
375
|
<div
|
|
358
376
|
ref={openOnMouseEnter ? null : this.clickOutsideRef}
|
|
359
377
|
className={cl('dropdown', { open }, `dropdown--${size}`, className)}
|
|
360
378
|
{...rest}
|
|
361
|
-
onMouseEnter={this.onMouseEnter}
|
|
362
|
-
onMouseLeave={this.onMouseLeave}
|
|
363
379
|
>
|
|
364
380
|
<Button
|
|
365
381
|
disabled={disabled}
|
|
@@ -371,6 +387,8 @@ class Dropdown extends Component {
|
|
|
371
387
|
iconSize={btnFaceIconSize}
|
|
372
388
|
label={label}
|
|
373
389
|
testId={testId}
|
|
390
|
+
onMouseEnter={this.onMouseEnter}
|
|
391
|
+
onMouseLeave={this.onMouseLeave}
|
|
374
392
|
/>
|
|
375
393
|
{childrenWithProps}
|
|
376
394
|
</div>
|
|
@@ -4,7 +4,9 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { ReactComponent as Autocomplete } from '../../icons/autocomplete.svg';
|
|
5
5
|
import { ReactComponent as Buildings } from '../../icons/buildings.svg';
|
|
6
6
|
import { ReactComponent as Battery } from '../../icons/battery.svg';
|
|
7
|
+
import { ReactComponent as Care } from '../../icons/care.svg';
|
|
7
8
|
import { ReactComponent as Cars } from '../../icons/cars.svg';
|
|
9
|
+
import { ReactComponent as Elephant } from '../../icons/elephant.svg';
|
|
8
10
|
import { ReactComponent as Github } from '../../icons/github.svg';
|
|
9
11
|
import { ReactComponent as Green } from '../../icons/green.svg';
|
|
10
12
|
import { ReactComponent as Integrations } from '../../icons/integrations.svg';
|
|
@@ -18,6 +20,7 @@ import { ReactComponent as PuzzleStar } from '../../icons/puzzle-star.svg';
|
|
|
18
20
|
import { ReactComponent as SaveMoney } from '../../icons/save-money.svg';
|
|
19
21
|
import { ReactComponent as Schedule } from '../../icons/schedule.svg';
|
|
20
22
|
import { ReactComponent as Security } from '../../icons/security.svg';
|
|
23
|
+
import { ReactComponent as Speed } from '../../icons/speed.svg';
|
|
21
24
|
import { ReactComponent as World } from '../../icons/world.svg';
|
|
22
25
|
import { ReactComponent as Zoom } from '../../icons/zoom.svg';
|
|
23
26
|
|
|
@@ -151,6 +154,8 @@ const Icons = {
|
|
|
151
154
|
battery: Battery,
|
|
152
155
|
buildings: Buildings,
|
|
153
156
|
cars: Cars,
|
|
157
|
+
care: Care,
|
|
158
|
+
elephant: Elephant,
|
|
154
159
|
github: Github,
|
|
155
160
|
green: Green,
|
|
156
161
|
integrations: Integrations,
|
|
@@ -164,6 +169,7 @@ const Icons = {
|
|
|
164
169
|
'save-money': SaveMoney,
|
|
165
170
|
schedule: Schedule,
|
|
166
171
|
security: Security,
|
|
172
|
+
speed: Speed,
|
|
167
173
|
world: World,
|
|
168
174
|
zoom: Zoom,
|
|
169
175
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 6.565A43.435 43.435 0 1 0 93.435 50 43.484 43.484 0 0 0 50 6.565ZM69.719 59.7a21.92 21.92 0 0 0 0-19.4l16.556-8.14a40.333 40.333 0 0 1 0 35.68Zm-38.7-9.7A18.981 18.981 0 1 1 50 68.981 19 19 0 0 1 31.019 50ZM69.8 14.763l-9.039 16.081a21.906 21.906 0 0 0-21.523 0L30.2 14.763a40.294 40.294 0 0 1 39.592 0ZM13.725 32.16l16.556 8.14a21.92 21.92 0 0 0 0 19.4l-16.556 8.14a40.333 40.333 0 0 1 0-35.68ZM30.2 85.237l9.035-16.082a21.9 21.9 0 0 0 21.524 0L69.8 85.237a40.3 40.3 0 0 1-39.594 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="m95.025 68.21-2.86-16.245a30.086 30.086 0 0 0-29.322-29.9 17.218 17.218 0 0 0-21.149-4.613 21.861 21.861 0 0 0-21.348 21.824v20.262a14.162 14.162 0 0 1-3.162-1.96 1.5 1.5 0 1 0-1.908 2.315 17.148 17.148 0 0 0 5.07 2.9v6.3a2.086 2.086 0 1 1-4.171 0 1.5 1.5 0 0 0-1.732-1.482L6.219 68.9c-.011 0-.022.006-.033.008a1.429 1.429 0 0 0-.159.042c-.043.013-.087.023-.129.04s-.092.044-.137.067-.084.042-.123.067a1.426 1.426 0 0 0-.116.089 1.349 1.349 0 0 0-.11.09c-.035.034-.065.073-.1.11s-.062.069-.089.107-.051.085-.076.129a1.3 1.3 0 0 0-.066.122 1.357 1.357 0 0 0-.048.135 1.5 1.5 0 0 0-.045.144c-.01.043-.013.089-.019.134a1.265 1.265 0 0 0-.017.164v.033A12.844 12.844 0 0 0 17.8 83.2a14.776 14.776 0 0 0 14.54-14.721v-5.85a16.935 16.935 0 0 0 4.02-2.229v22.48a1.5 1.5 0 0 0 1.5 1.5h13.152a1.5 1.5 0 0 0 1.464-1.18h3.917a1.5 1.5 0 0 0 1.5-1.5v-9.764a25.678 25.678 0 0 0 6.49-.07V81.7a1.5 1.5 0 0 0 1.5 1.5h3.3a1.5 1.5 0 0 0 1.463 1.177h14.522a1.5 1.5 0 0 0 1.477-1.236l4.01-22.456 1.416 8.043a1.5 1.5 0 0 0 1.475 1.24 1.567 1.567 0 0 0 .263-.023 1.5 1.5 0 0 0 1.216-1.735Zm-65.69.272A11.76 11.76 0 0 1 17.777 80.2a9.834 9.834 0 0 1-9.734-8.557l5.427-.843a5.086 5.086 0 0 0 9.876-1.708v-5.52a17.018 17.018 0 0 0 5.989-.077ZM39.36 80.321h10.152v1.059H39.36Zm15.533-.121h-2.381v-9.469c.783.272 1.579.491 2.381.683Zm12.49-8.929c.591-.156 1.18-.323 1.759-.522V80.2h-1.759Zm4.759 10.109v-1.059H84.1l-.189 1.059Zm12.49-4.026a1.531 1.531 0 0 0-.313-.033H72.142V68.55a1.5 1.5 0 0 0-2.113-1.369 22.57 22.57 0 0 1-17.43.384l-1.035-.409a1.5 1.5 0 0 0-2.052 1.394v8.771H39.36V56.969a1.5 1.5 0 0 0-2.617-1l-.123.136a14.036 14.036 0 0 1-13.274 4.415V39.276A18.87 18.87 0 0 1 36.69 21.258a17.33 17.33 0 0 0-3.271 5.288 1.5 1.5 0 0 0 2.793 1.095 14.147 14.147 0 0 1 6.361-7.262 1.492 1.492 0 0 0 .586-.31 14.21 14.21 0 1 1 6.282 26.959 1.5 1.5 0 0 0 0 3 17.167 17.167 0 0 0 15.39-24.849 27.092 27.092 0 0 1 24.331 26.8Z"/><path d="M31.875 42.808a3 3 0 1 0 3 3 3 3 0 0 0-3-3Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M63.031 16.37A33.518 33.518 0 0 0 34.7 31.87a1.5 1.5 0 0 0 2.526 1.619 30.63 30.63 0 1 1 .4 33.636 1.5 1.5 0 1 0-2.48 1.675 33.632 33.632 0 1 0 27.885-52.43ZM26.686 31.182h-7a1.5 1.5 0 0 0 0 3h7a1.5 1.5 0 0 0 0-3ZM12.26 42.841h9.477a1.5 1.5 0 1 0 0-3H12.26a1.5 1.5 0 1 0 0 3ZM19.526 50a1.5 1.5 0 0 0-1.5-1.5H4.838a1.5 1.5 0 0 0 0 3h13.188a1.5 1.5 0 0 0 1.5-1.5Zm3.711 8.659a1.5 1.5 0 0 0-1.5-1.5H12.26a1.5 1.5 0 1 0 0 3h9.477a1.5 1.5 0 0 0 1.5-1.5Zm3.449 7.159h-7a1.5 1.5 0 0 0 0 3h7a1.5 1.5 0 0 0 0-3Z"/><path d="M65.194 60.851a1.5 1.5 0 0 0 2.121 2.121l11.912-11.911a1.5 1.5 0 0 0 0-2.122L67.315 37.028a1.5 1.5 0 0 0-2.121 2.121l9.351 9.351H30.9a1.5 1.5 0 1 0 0 3h43.645Z"/></svg>
|
package/src/index.js
CHANGED
|
@@ -46,6 +46,8 @@ export { default as withClickOutside } from './components/withClickOutside/withC
|
|
|
46
46
|
export { default as withFormValidation } from './components/withFormValidation/withFormValidation';
|
|
47
47
|
export { default as Marker } from './components/Map/Marker';
|
|
48
48
|
export { default as LocalitiesDemo } from './components/Demo/LocalitiesDemo';
|
|
49
|
+
export { default as LocalitiesAddressDemo } from './components/Demo/LocalitiesAddressDemo';
|
|
50
|
+
export { default as LocalitiesAllDemo } from './components/Demo/LocalitiesAllDemo';
|
|
49
51
|
export { default as MerchantDemo } from './components/Demo/MerchantDemo';
|
|
50
52
|
export { default as GeolocationDemo } from './components/Demo/GeolocationDemo';
|
|
51
53
|
export { default as DistanceDemo } from './components/Demo/DistanceDemo';
|
|
@@ -1,66 +1,24 @@
|
|
|
1
|
-
$fontFamily = "
|
|
2
|
-
$fontSize = 1.
|
|
3
|
-
$lineHeight = $fontSize * 2 - .8
|
|
1
|
+
$fontFamily = "Lato", arial, sans-serif
|
|
2
|
+
$fontSize = 1.4rem
|
|
4
3
|
$fontSizeSmall = $fontSize - .2
|
|
5
4
|
$fontSizeMini = $fontSize - .4
|
|
6
|
-
$fontSizeNano = $fontSize - .6
|
|
7
5
|
$fontWeight = 400
|
|
8
|
-
$fontSizeHeader = 1.3rem
|
|
9
|
-
$fontSizeFooter = 1.6rem
|
|
10
6
|
|
|
11
7
|
|
|
12
|
-
$title =
|
|
13
|
-
$title2 =
|
|
14
|
-
$title3 = 3
|
|
15
|
-
$title4 =
|
|
16
|
-
$title5 =
|
|
17
|
-
$title6 =
|
|
8
|
+
$title = $fontSize + .6
|
|
9
|
+
$title2 = $fontSize + .4
|
|
10
|
+
$title3 = $fontSize + .3
|
|
11
|
+
$title4 = $fontSize + .2
|
|
12
|
+
$title5 = $fontSize + .1
|
|
13
|
+
$title6 = $fontSize
|
|
18
14
|
|
|
19
15
|
$borderRadius = .6rem
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
// Layout
|
|
23
|
-
$wrapperWidth = 125rem
|
|
24
|
-
$wrapperReducedWidth = 96rem
|
|
25
|
-
$headerHeight = 6.7rem
|
|
26
|
-
$headerBannerHeight = 5.2rem
|
|
27
|
-
$sectionPadding = 18.5rem
|
|
28
|
-
$topRainbowHeight = 3.8rem
|
|
29
|
-
$gutter2c = 3rem
|
|
30
|
-
$quoteIcon = 44rem
|
|
31
|
-
$quoteIconPosition = ( - $quoteIcon / 2 - $sectionPadding + 1 )
|
|
32
|
-
|
|
33
|
-
$col2 = 58rem
|
|
34
|
-
$col3 = 31.5rem
|
|
35
|
-
$col4 = 22rem
|
|
36
|
-
|
|
37
|
-
// card articles
|
|
38
|
-
$cardHeaderHeight = 21rem
|
|
39
|
-
$cardFontSize = 1.6rem
|
|
40
|
-
$cardTitle = 1.8rem
|
|
41
|
-
$cardTitleLineHeight = 2.6rem
|
|
42
|
-
$cardLineHeight = $cardFontSize * 2 - 1
|
|
43
|
-
$cardPadding = 2rem
|
|
44
|
-
|
|
45
|
-
// card pricing
|
|
46
|
-
$pricingCardWidth = 30.2rem
|
|
47
|
-
$pricingCardpadding = 3.4rem
|
|
48
|
-
$pricingCardHeaderHeight = 6.2rem
|
|
49
|
-
$pricingCardCtaHeight = 5.2rem
|
|
50
|
-
$pricingCardTitleSize = $title6
|
|
51
|
-
$pricingCardAmountSize = $title2 * 2
|
|
52
|
-
$pricingCardUnitSize = $title6
|
|
53
|
-
$pricingCardPeriodSize = $fontSizeSmall
|
|
54
|
-
$pricingCardPriceSize = $title2
|
|
55
|
-
$pricingCardPriceUnitSize = $fontSizeSmall
|
|
56
|
-
|
|
57
17
|
// Buttons & Inputs
|
|
58
18
|
|
|
59
|
-
$padding = 2rem
|
|
19
|
+
$padding = 1.2rem
|
|
60
20
|
$contentPadding = 2.8rem
|
|
61
21
|
|
|
62
|
-
|
|
63
|
-
|
|
64
22
|
$sidebarButtonSize = 5rem
|
|
65
23
|
|
|
66
24
|
$buttonHeight = 3.8rem
|
|
@@ -83,9 +41,9 @@ $buttonPaddingNano = 0 $padding - .4 0 $padding - .4
|
|
|
83
41
|
$buttonFontSizeNano = $fontSize - .3
|
|
84
42
|
$buttonLineHeightNano = $buttonFontSizeNano * 2
|
|
85
43
|
|
|
86
|
-
$buttonHeightLarge = $buttonHeight +
|
|
87
|
-
$buttonPaddingLarge = 0 $padding + .
|
|
88
|
-
$buttonFontSizeLarge = $fontSize
|
|
44
|
+
$buttonHeightLarge = $buttonHeight + .8
|
|
45
|
+
$buttonPaddingLarge = 0 $padding + .4 0 $padding + .4
|
|
46
|
+
$buttonFontSizeLarge = $fontSize + .1
|
|
89
47
|
$buttonLineHeightLarge = $buttonFontSizeLarge * 2
|
|
90
48
|
|
|
91
49
|
|