@rileybathurst/paddle 0.0.42 → 0.0.44
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 +3 -2
- package/src/stories/Location.stories.tsx +1 -1
- package/src/stories/Location.tsx +3 -3
- package/src/stories/Neutrals.stories.tsx +19 -0
- package/src/stories/Neutrals.tsx +31 -0
- package/src/stories/Terms.md +4 -0
- package/src/styles/app.css +2 -0
- package/src/styles/buttons.css +34 -5
- package/src/styles/cards.css +6 -50
- package/src/styles/color.css +8 -0
- package/src/styles/layout.css +29 -11
- package/src/styles/links.css +17 -0
- package/src/styles/lists.css +215 -0
- package/src/styles/media.css +24 -1
- package/src/styles/tables.css +124 -0
- package/src/styles/typography.css +25 -7
- package/src/styles/visibility.css +44 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rileybathurst/paddle",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.44",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
10
10
|
"preview": "vite preview",
|
|
11
11
|
"start": "storybook dev -p 6006",
|
|
12
|
+
"storybook": "storybook dev -p 6006",
|
|
12
13
|
"build-storybook": "storybook build"
|
|
13
14
|
},
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"color-cards": "^1.0.
|
|
16
|
+
"color-cards": "^1.0.15",
|
|
16
17
|
"gatsby": "^5.13.6",
|
|
17
18
|
"gatsby-plugin-image": "^3.13.1",
|
|
18
19
|
"react": "^18.2.0",
|
package/src/stories/Location.tsx
CHANGED
|
@@ -4,18 +4,18 @@ import React from 'react';
|
|
|
4
4
|
import { faker } from '@faker-js/faker';
|
|
5
5
|
|
|
6
6
|
interface LocationProps {
|
|
7
|
-
|
|
7
|
+
backed?: boolean;
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const Location = ({
|
|
12
|
-
|
|
12
|
+
backed = true,
|
|
13
13
|
...props
|
|
14
14
|
}: LocationProps) => {
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<a
|
|
18
|
-
className={`location ${
|
|
18
|
+
className={`location ${backed ?? 'backed'}`}
|
|
19
19
|
href="https://goo.gl/maps/atoK4oyJRbV3EKuK9"
|
|
20
20
|
rel="noopener noreferrer"
|
|
21
21
|
>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// this is the Name.stories.tsx file
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { fn } from '@storybook/test';
|
|
4
|
+
import { Neutrals } from './Neutrals';
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
component: Neutrals,
|
|
8
|
+
title: 'Atoms/Neutrals',
|
|
9
|
+
args: { onClick: fn() },
|
|
10
|
+
} satisfies Meta<typeof Neutrals>;
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
|
|
15
|
+
export const Primary: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
primary: true,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// * working on the first implementation of the color cards component
|
|
2
|
+
|
|
3
|
+
// this is the Name.tsx file
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { ColorCards } from 'color-cards';
|
|
6
|
+
|
|
7
|
+
interface NeutralsProps {
|
|
8
|
+
primary?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Neutrals = ({
|
|
13
|
+
primary = false,
|
|
14
|
+
...props
|
|
15
|
+
}: NeutralsProps) => {
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<main>
|
|
19
|
+
<h1>Neutrals</h1>
|
|
20
|
+
<ColorCards
|
|
21
|
+
color='mullen'
|
|
22
|
+
variables={['100', '200']}
|
|
23
|
+
/>
|
|
24
|
+
<ColorCards
|
|
25
|
+
color='sand'
|
|
26
|
+
variables={['100', '200']}
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
</main>
|
|
30
|
+
);
|
|
31
|
+
};
|
package/src/styles/app.css
CHANGED
package/src/styles/buttons.css
CHANGED
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
/* #BUTTONS */
|
|
3
3
|
/*------------------------------------*/
|
|
4
4
|
|
|
5
|
+
/* TODO: variables */
|
|
5
6
|
button,
|
|
6
7
|
.button,
|
|
7
8
|
.book-now {
|
|
8
9
|
background: none;
|
|
9
|
-
border-radius:
|
|
10
|
-
padding:
|
|
11
|
-
font-size:
|
|
10
|
+
border-radius: var(--card-radius);
|
|
11
|
+
padding: var(--kosciuszko) var(--vinson);
|
|
12
|
+
font-size: var(--vinson);
|
|
12
13
|
cursor: pointer;
|
|
13
14
|
margin-block-end: var(--elbrus);
|
|
14
|
-
transition:
|
|
15
|
+
transition: var(--slow);
|
|
15
16
|
display: block;
|
|
16
|
-
line-height:
|
|
17
|
+
line-height: var(--kilimanjaro);
|
|
17
18
|
text-decoration: none;
|
|
18
19
|
width: max-content;
|
|
19
20
|
border: 1px solid;
|
|
@@ -32,6 +33,12 @@ button:active {
|
|
|
32
33
|
box-shadow: var(--umbra);
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
.book-now {
|
|
37
|
+
margin-block-start: var(--kosciuszko);
|
|
38
|
+
text-align: center;
|
|
39
|
+
display: inline-block; /* same as a button */
|
|
40
|
+
}
|
|
41
|
+
|
|
35
42
|
/*------------------*/
|
|
36
43
|
/* #MENU */
|
|
37
44
|
/*------------------*/
|
|
@@ -39,3 +46,25 @@ button:active {
|
|
|
39
46
|
menu button {
|
|
40
47
|
margin: 0;
|
|
41
48
|
}
|
|
49
|
+
|
|
50
|
+
/*------------------------------------*/
|
|
51
|
+
|
|
52
|
+
.button__double {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: var(--denali);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.buttonGroup {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-flow: row wrap;
|
|
61
|
+
gap: var(--vinson);
|
|
62
|
+
margin-block-end: var(--baseline);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*------------------------------------*/
|
|
66
|
+
|
|
67
|
+
footer .book-now {
|
|
68
|
+
margin-block-start: 0;
|
|
69
|
+
margin-block-end: var(--baseline);
|
|
70
|
+
}
|
package/src/styles/cards.css
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/*------------------*/
|
|
2
2
|
/* #CARDS */
|
|
3
3
|
/*------------------*/
|
|
4
|
+
|
|
5
|
+
.deck {
|
|
6
|
+
margin-block-end: var(--aconcagua);
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
/* TODO: needs sub-grid */
|
|
5
10
|
.card,
|
|
6
11
|
.ticket {
|
|
@@ -36,7 +41,6 @@
|
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.card__image:where(:hover, :focus) {
|
|
39
|
-
/* opacity: 0.8; */
|
|
40
44
|
filter: brightness(80%);
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -141,13 +145,6 @@
|
|
|
141
145
|
}
|
|
142
146
|
}
|
|
143
147
|
|
|
144
|
-
.card--split {
|
|
145
|
-
flex-direction: row !important; /* TODO can I increase the specificity */
|
|
146
|
-
> * {
|
|
147
|
-
flex: 1 1 50%;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
148
|
/*------------------*/
|
|
152
149
|
/* #RETAIL LOGO */
|
|
153
150
|
/*------------------*/
|
|
@@ -169,48 +166,7 @@
|
|
|
169
166
|
}
|
|
170
167
|
|
|
171
168
|
svg {
|
|
172
|
-
width:
|
|
169
|
+
width: var(--vulture); /* guess and check */
|
|
173
170
|
margin-block-end: var(--kosciuszko);
|
|
174
171
|
}
|
|
175
172
|
}
|
|
176
|
-
|
|
177
|
-
.brand__header {
|
|
178
|
-
clip-path: inset(0 -100vmax);
|
|
179
|
-
|
|
180
|
-
hr {
|
|
181
|
-
margin-block-end: var(--elbrus);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/*------------------*/
|
|
186
|
-
/* #LOCATION DECK AND CARDS */
|
|
187
|
-
/*------------------*/
|
|
188
|
-
|
|
189
|
-
.home__here, /* TODO rename this to .location__multiple everywhere */
|
|
190
|
-
.location__deck {
|
|
191
|
-
max-width: var(--pelican);
|
|
192
|
-
margin-inline: auto;
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-flow: row wrap;
|
|
195
|
-
|
|
196
|
-
> * {
|
|
197
|
-
/* TODO: variable */
|
|
198
|
-
flex: 1 1 20rem;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.here__location, /* TODO rename this to .location everywhere */
|
|
203
|
-
.location_card {
|
|
204
|
-
display: flex;
|
|
205
|
-
flex-flow: column;
|
|
206
|
-
gap: var(--vinson);
|
|
207
|
-
justify-content: space-between;
|
|
208
|
-
margin-block-end: var(--kilimanjaro);
|
|
209
|
-
padding-block-end: var(--kilimanjaro);
|
|
210
|
-
border-block-end: 1px solid;
|
|
211
|
-
padding: var(--kosciuszko);
|
|
212
|
-
border-radius: var(--kosciuszko);
|
|
213
|
-
font-weight: 600;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/* can location cards be laid out horizontally but I think they never have a background if they are so maybe they are a seperate thing thing thats not a card? */
|
package/src/styles/color.css
CHANGED
package/src/styles/layout.css
CHANGED
|
@@ -14,7 +14,8 @@ body {
|
|
|
14
14
|
.location,
|
|
15
15
|
header,
|
|
16
16
|
main,
|
|
17
|
-
footer
|
|
17
|
+
footer,
|
|
18
|
+
.deck {
|
|
18
19
|
margin-inline: auto;
|
|
19
20
|
padding-inline: var(--kosciuszko);
|
|
20
21
|
width: calc(100% - var(--kosciuszko) * 2);
|
|
@@ -35,7 +36,7 @@ footer {
|
|
|
35
36
|
|
|
36
37
|
.condor,
|
|
37
38
|
.location {
|
|
38
|
-
max-width: var(--condor);
|
|
39
|
+
max-width: var(--condor), calc(100vw - var(--denali));
|
|
39
40
|
flex-basis: var(--condor);
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -44,14 +45,16 @@ footer {
|
|
|
44
45
|
flex-basis: var(--pelican);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
.albatross
|
|
48
|
+
.albatross,
|
|
49
|
+
.deck {
|
|
48
50
|
max-width: var(--albatross);
|
|
49
51
|
flex-basis: var(--albatross);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
/*------------------------------------*/
|
|
53
55
|
|
|
54
|
-
.wrap
|
|
56
|
+
.wrap,
|
|
57
|
+
.deck {
|
|
55
58
|
display: flex;
|
|
56
59
|
flex-flow: row wrap;
|
|
57
60
|
gap: clamp(var(--kosciuszko), 1.667vw, var(--denali));
|
|
@@ -65,7 +68,8 @@ footer {
|
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
.pelican.wrap > *,
|
|
68
|
-
.albatross.wrap >
|
|
71
|
+
.albatross.wrap > *,
|
|
72
|
+
.deck > * {
|
|
69
73
|
max-width: none;
|
|
70
74
|
margin-inline: 0;
|
|
71
75
|
padding-inline: 0;
|
|
@@ -75,7 +79,8 @@ footer {
|
|
|
75
79
|
flex: 1 1 calc(var(--pelican) / 2 - 1rem);
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
.albatross.wrap >
|
|
82
|
+
.albatross.wrap > *,
|
|
83
|
+
.deck > * {
|
|
79
84
|
flex: 1 1 calc(var(--albatross) / 2 - 1rem);
|
|
80
85
|
}
|
|
81
86
|
|
|
@@ -84,7 +89,8 @@ footer {
|
|
|
84
89
|
/*------------------------------------*/
|
|
85
90
|
|
|
86
91
|
/* this isnt a direct nested its always down another layer */
|
|
87
|
-
.albatross .pelican
|
|
92
|
+
.albatross .pelican,
|
|
93
|
+
.deck * {
|
|
88
94
|
/* ? margin-inline: 0; ? should this be centered */
|
|
89
95
|
width: 100%; /* resets the padding */
|
|
90
96
|
padding-inline: 0;
|
|
@@ -125,7 +131,11 @@ header {
|
|
|
125
131
|
/* #TOP BAR */
|
|
126
132
|
/*------------------*/
|
|
127
133
|
|
|
134
|
+
/* this flashes in on every load which is bad but its currently out of use */
|
|
128
135
|
.top-bar {
|
|
136
|
+
transition: var(--slow);
|
|
137
|
+
height: 0;
|
|
138
|
+
opacity: 0;
|
|
129
139
|
display: flex;
|
|
130
140
|
justify-content: center;
|
|
131
141
|
padding-block-start: 0.25rem;
|
|
@@ -156,20 +166,28 @@ header {
|
|
|
156
166
|
}
|
|
157
167
|
|
|
158
168
|
.location {
|
|
169
|
+
max-width: var(--condor);
|
|
159
170
|
display: flex;
|
|
160
|
-
flex-flow: row;
|
|
171
|
+
flex-flow: row wrap;
|
|
161
172
|
align-items: center;
|
|
162
|
-
gap: var(--elbrus);
|
|
163
|
-
padding: var(--elbrus);
|
|
173
|
+
gap: clamp(var(--kosciuszko), 1.67vw, var(--elbrus));
|
|
174
|
+
padding: clamp(var(--kosciuszko), 1.67vw, var(--elbrus));
|
|
164
175
|
border-radius: var(--card-radius);
|
|
165
176
|
|
|
166
177
|
> * {
|
|
167
|
-
|
|
178
|
+
/* guess and check to get the parking on one row in the footer */
|
|
179
|
+
flex: 7.5 1 var(--vulture);
|
|
168
180
|
}
|
|
169
181
|
|
|
170
182
|
> svg,
|
|
171
183
|
.svg {
|
|
172
184
|
flex: 1 1 max-content;
|
|
185
|
+
min-width: var(--everest);
|
|
186
|
+
min-height: var(--everest);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
p {
|
|
190
|
+
margin-block-end: 0; /* reset to the gap */
|
|
173
191
|
}
|
|
174
192
|
}
|
|
175
193
|
|
package/src/styles/links.css
CHANGED
|
@@ -21,3 +21,20 @@ a:where(:hover, :focus) {
|
|
|
21
21
|
a svg {
|
|
22
22
|
transition: var(--fade);
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
/*------------------------------------*/
|
|
26
|
+
|
|
27
|
+
/* TODO: a lot of this is smaller than the variables test it all */
|
|
28
|
+
.link__backed {
|
|
29
|
+
padding: 0.25rem;
|
|
30
|
+
border-radius: 0.25rem;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
border: 1px solid transparent;
|
|
33
|
+
transition: var(--slow);
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
|
|
36
|
+
@media (min-width: 40rem) {
|
|
37
|
+
padding: 0.5rem;
|
|
38
|
+
border-radius: 0.5rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/styles/lists.css
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/*------------------*/
|
|
2
|
+
/* #LISTS */
|
|
3
|
+
/*------------------*/
|
|
4
|
+
|
|
5
|
+
/*------------------*/
|
|
6
|
+
/* #DEFAULTS */
|
|
7
|
+
/*------------------*/
|
|
8
|
+
|
|
9
|
+
ul {
|
|
10
|
+
padding-inline-start: 0.75rem;
|
|
11
|
+
margin: 0; /* reset */
|
|
12
|
+
|
|
13
|
+
li {
|
|
14
|
+
display: block;
|
|
15
|
+
margin-block-end: var(--baseline);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
ol {
|
|
20
|
+
li {
|
|
21
|
+
display: inline flow-root list-item;
|
|
22
|
+
margin-block-end: var(--baseline);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
1
26
|
/*------------------*/
|
|
2
27
|
/* #TESTIMONIALS */
|
|
3
28
|
/*------------------*/
|
|
@@ -15,3 +40,193 @@
|
|
|
15
40
|
content: "“";
|
|
16
41
|
}
|
|
17
42
|
}
|
|
43
|
+
|
|
44
|
+
/*------------------*/
|
|
45
|
+
/* #BREADCRUMBS */
|
|
46
|
+
/*------------------*/
|
|
47
|
+
|
|
48
|
+
/* https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/ */
|
|
49
|
+
.breadcrumbs {
|
|
50
|
+
max-width: var(--stork);
|
|
51
|
+
margin-inline: auto; /* overwrite nav */
|
|
52
|
+
padding-inline: var(--kosciuszko); /* overwrite nav */
|
|
53
|
+
|
|
54
|
+
ol {
|
|
55
|
+
list-style: none;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-flow: row wrap;
|
|
58
|
+
/* gap: 1rem; */
|
|
59
|
+
max-width: var(--pelican);
|
|
60
|
+
margin-inline: auto;
|
|
61
|
+
padding-block-start: 1.5rem;
|
|
62
|
+
margin-block-end: 0;
|
|
63
|
+
/* padding-block-end: 1.5rem; */
|
|
64
|
+
/* padding-inline: calc(var(--baseline) / 2); deprecated but still checking */
|
|
65
|
+
padding-inline: 0;
|
|
66
|
+
text-transform: capitalize;
|
|
67
|
+
|
|
68
|
+
a {
|
|
69
|
+
display: inline;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.react-aria-Breadcrumbs {
|
|
75
|
+
max-width: var(--pelican);
|
|
76
|
+
margin-inline: auto; /* overwrite nav */
|
|
77
|
+
padding-inline: 0.75rem; /* overwrite nav */
|
|
78
|
+
list-style: none;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-flow: row wrap;
|
|
81
|
+
margin-inline: auto;
|
|
82
|
+
padding-block-start: 1.5rem;
|
|
83
|
+
margin-block-end: 0;
|
|
84
|
+
text-transform: capitalize;
|
|
85
|
+
|
|
86
|
+
li {
|
|
87
|
+
display: inline;
|
|
88
|
+
|
|
89
|
+
li:not(:last-child)::after {
|
|
90
|
+
margin-inline: var(--vinson);
|
|
91
|
+
content: ">";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tour__minimum {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-flow: row wrap;
|
|
99
|
+
gap: 1rem;
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/*------------------*/
|
|
104
|
+
/* #FEATURES */
|
|
105
|
+
/*------------------*/
|
|
106
|
+
|
|
107
|
+
.features {
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
font-size: 1rem;
|
|
110
|
+
|
|
111
|
+
ul {
|
|
112
|
+
list-style: none;
|
|
113
|
+
padding-inline-start: 0;
|
|
114
|
+
|
|
115
|
+
li {
|
|
116
|
+
height: 2lh;
|
|
117
|
+
margin-block-end: 1lh;
|
|
118
|
+
|
|
119
|
+
@supports not (margin: 1lh) {
|
|
120
|
+
height: 2.5rem;
|
|
121
|
+
margin-block-end: 1.25rem;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
li:last-child {
|
|
126
|
+
border-bottom: none;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/*------------------------------------*/
|
|
132
|
+
/* #FAQ */
|
|
133
|
+
/*------------------------------------*/
|
|
134
|
+
/* TODO: a lot of this is repeated with other typography */
|
|
135
|
+
|
|
136
|
+
.faq {
|
|
137
|
+
padding-inline-start: 0; /* reset */
|
|
138
|
+
|
|
139
|
+
li {
|
|
140
|
+
list-style: none;
|
|
141
|
+
border-bottom: 1px solid var(--tin-soldier);
|
|
142
|
+
margin-block-end: 1.5rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
li:last-child {
|
|
146
|
+
border-bottom: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* question */
|
|
150
|
+
h2 {
|
|
151
|
+
font-size: 1.25rem;
|
|
152
|
+
line-height: 1.875rem;
|
|
153
|
+
margin-block-end: 0.625rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* answer */
|
|
157
|
+
h3 {
|
|
158
|
+
font-size: 1rem;
|
|
159
|
+
line-height: 1.25;
|
|
160
|
+
font-weight: normal;
|
|
161
|
+
margin-block-end: 0.625rem;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/*------------------*/
|
|
166
|
+
/* #BRANDS */
|
|
167
|
+
/*------------------*/
|
|
168
|
+
|
|
169
|
+
.brand_list {
|
|
170
|
+
list-style: none;
|
|
171
|
+
padding: 0;
|
|
172
|
+
padding-inline: 0.75rem;
|
|
173
|
+
display: grid;
|
|
174
|
+
|
|
175
|
+
/* grid-template-columns: 1fr 1fr; */
|
|
176
|
+
/* this doesnt work on the home page as its wider so it can fill its won space */
|
|
177
|
+
/* grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); guess and check */
|
|
178
|
+
grid-template-columns: repeat(
|
|
179
|
+
auto-fill,
|
|
180
|
+
minmax(8rem, 1fr)
|
|
181
|
+
); /* guess and check */
|
|
182
|
+
gap: 1rem;
|
|
183
|
+
|
|
184
|
+
@media (min-width: 30rem) {
|
|
185
|
+
/* grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); */
|
|
186
|
+
grid-template-columns: repeat(
|
|
187
|
+
auto-fill,
|
|
188
|
+
minmax(12rem, 1fr)
|
|
189
|
+
); /* guess and check this seems best on front page */
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
> li {
|
|
193
|
+
flex: 1 1 10rem;
|
|
194
|
+
border-radius: 0.25rem;
|
|
195
|
+
margin-block-end: 0;
|
|
196
|
+
|
|
197
|
+
> a {
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
place-items: stretch;
|
|
201
|
+
transition: var(--fade);
|
|
202
|
+
text-align: center;
|
|
203
|
+
width: 100%;
|
|
204
|
+
height: 100%; /* this goes waaaay to big .. but it needs something */
|
|
205
|
+
align-self: end;
|
|
206
|
+
text-decoration: none;
|
|
207
|
+
text-transform: uppercase;
|
|
208
|
+
font-family: var(--heading_font);
|
|
209
|
+
font-weight: 400;
|
|
210
|
+
display: grid;
|
|
211
|
+
|
|
212
|
+
/* I know it breaks the inception rule its very short */
|
|
213
|
+
> p {
|
|
214
|
+
align-self: end;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
svg {
|
|
219
|
+
transition: var(--fade);
|
|
220
|
+
margin: var(--baseline);
|
|
221
|
+
min-width: 3rem; /* guess and check */
|
|
222
|
+
|
|
223
|
+
@media (min-width: 20rem) {
|
|
224
|
+
min-width: 4rem; /* guess and check */
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media (min-width: 30rem) {
|
|
228
|
+
min-width: 8rem; /* guess and check */
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
package/src/styles/media.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
svg {
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 100%;
|
|
8
|
+
min-width: 2rem; /* safari needs default mins */
|
|
8
9
|
max-width: clamp(var(--kilimanjaro), 5vw, 5rem);
|
|
9
10
|
max-height: clamp(var(--kilimanjaro), 5vw, 5rem);
|
|
10
11
|
}
|
|
@@ -16,7 +17,7 @@ svg {
|
|
|
16
17
|
.logo-container {
|
|
17
18
|
margin: 0 auto;
|
|
18
19
|
display: flex;
|
|
19
|
-
/* gap:
|
|
20
|
+
/* gap: dont run a gap as the sr-only h1 uses it */
|
|
20
21
|
justify-content: center;
|
|
21
22
|
clip-path: inset(0 -100vmax);
|
|
22
23
|
z-index: var(--understory);
|
|
@@ -137,3 +138,25 @@ svg {
|
|
|
137
138
|
fill: #34e0a1;
|
|
138
139
|
}
|
|
139
140
|
}
|
|
141
|
+
|
|
142
|
+
/*------------------*/
|
|
143
|
+
/* #IMAGE */
|
|
144
|
+
/*------------------*/
|
|
145
|
+
|
|
146
|
+
.img__wrapped {
|
|
147
|
+
border-radius: 0.25rem;
|
|
148
|
+
box-shadow: var(--penumbra);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.crop {
|
|
152
|
+
clip-path: polygon(0 0, 100% 0, 0 100%);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/*------------------*/
|
|
156
|
+
/* #MAP */
|
|
157
|
+
/*------------------*/
|
|
158
|
+
|
|
159
|
+
.map-svg {
|
|
160
|
+
max-width: 100%;
|
|
161
|
+
max-height: 100%;
|
|
162
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*------------------*/
|
|
2
|
+
/* #PRICING CHART */
|
|
3
|
+
/*------------------*/
|
|
4
|
+
|
|
5
|
+
.pricing-chart {
|
|
6
|
+
display: flex;
|
|
7
|
+
text-align: center;
|
|
8
|
+
|
|
9
|
+
/* columns */
|
|
10
|
+
> * {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: 1 1 10rem;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
|
|
15
|
+
/* rows */
|
|
16
|
+
> * {
|
|
17
|
+
> * {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* first row */
|
|
23
|
+
> *:first-child {
|
|
24
|
+
margin: 0;
|
|
25
|
+
border-top: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h2,
|
|
30
|
+
h4,
|
|
31
|
+
p {
|
|
32
|
+
font-size: clamp(0.75rem, 1.25vw, 1.5rem);
|
|
33
|
+
line-height: clamp(1rem, 1.5vw, 2rem);
|
|
34
|
+
padding: clamp(0.5rem, 1vw, 1rem);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h4 {
|
|
38
|
+
margin: 0.25px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
p {
|
|
42
|
+
font-size: 0.75rem;
|
|
43
|
+
margin: 0.25px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
h4 span {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
p span {
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
*:last-child > * {
|
|
57
|
+
border-right: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.charts {
|
|
62
|
+
.pricing-chart:not(:last-child) {
|
|
63
|
+
margin-block-end: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pricing-chart:last-child {
|
|
67
|
+
margin-block-end: 1.5rem;
|
|
68
|
+
|
|
69
|
+
p {
|
|
70
|
+
border-block-end: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
p:last-child {
|
|
74
|
+
border-inline-end: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/*------------------*/
|
|
80
|
+
/* #RENTAL CHART */
|
|
81
|
+
/*------------------*/
|
|
82
|
+
|
|
83
|
+
.rental-chart {
|
|
84
|
+
display: grid;
|
|
85
|
+
text-align: center;
|
|
86
|
+
margin-block-end: 1.5rem;
|
|
87
|
+
|
|
88
|
+
.row {
|
|
89
|
+
display: grid;
|
|
90
|
+
gap: 0;
|
|
91
|
+
margin: 0;
|
|
92
|
+
grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
|
|
93
|
+
|
|
94
|
+
/* box */
|
|
95
|
+
> * {
|
|
96
|
+
padding: clamp(0.5rem, 1vw, 1rem);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
> *:last-child {
|
|
100
|
+
border-inline-end: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.row:last-child {
|
|
105
|
+
> * {
|
|
106
|
+
border-block-end: none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.row-header {
|
|
111
|
+
font-weight: bold;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
h4 {
|
|
115
|
+
margin: 0.25px;
|
|
116
|
+
font-size: clamp(0.75rem, 1.25vw, 1.5rem);
|
|
117
|
+
line-height: clamp(1rem, 1.5vw, 2rem);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
p {
|
|
121
|
+
font-size: 0.75rem;
|
|
122
|
+
margin: 0.25px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*------------------------------------*\
|
|
2
|
-
#
|
|
2
|
+
#TYPOGRAPHY
|
|
3
|
+
/* TODO: Im not happy with this */
|
|
3
4
|
/*------------------------------------*/
|
|
4
5
|
|
|
5
6
|
body {
|
|
@@ -30,7 +31,8 @@ h6 {
|
|
|
30
31
|
font-weight: 400;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
h1
|
|
34
|
+
h1,
|
|
35
|
+
.everest {
|
|
34
36
|
margin-top: 0; /* browser reset */
|
|
35
37
|
font-size: 3rem; /* 48px */
|
|
36
38
|
line-height: 3.75rem; /* 60px */
|
|
@@ -134,8 +136,7 @@ p {
|
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
.two-small-lines {
|
|
137
|
-
margin-bottom: 0.5rem; /*
|
|
138
|
-
/* two lines 40px */
|
|
139
|
+
margin-bottom: 0.5rem; /* TODO: */
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
/*------------------*/
|
|
@@ -188,7 +189,7 @@ hr.no {
|
|
|
188
189
|
hgroup {
|
|
189
190
|
display: flex;
|
|
190
191
|
flex-flow: row wrap;
|
|
191
|
-
column-gap: 1ch;
|
|
192
|
+
column-gap: 1ch; /* TODO: */
|
|
192
193
|
align-items: baseline;
|
|
193
194
|
}
|
|
194
195
|
|
|
@@ -205,7 +206,7 @@ hgroup {
|
|
|
205
206
|
|
|
206
207
|
.brow {
|
|
207
208
|
order: 1;
|
|
208
|
-
margin-block-end:
|
|
209
|
+
margin-block-end: var(--vinson);
|
|
209
210
|
}
|
|
210
211
|
|
|
211
212
|
.supra {
|
|
@@ -222,8 +223,25 @@ hgroup {
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
select {
|
|
225
|
-
font-size:
|
|
226
|
+
font-size: var(--vinson);
|
|
226
227
|
font-family: var(--body_font);
|
|
227
228
|
margin-block-end: var(--elbrus);
|
|
228
229
|
margin-block-end: 0;
|
|
230
|
+
/* A reset of styles, including removing the default dropdown arrow */
|
|
231
|
+
appearance: none;
|
|
232
|
+
/* Additional resets for further consistency */
|
|
233
|
+
background-color: transparent;
|
|
234
|
+
border: none;
|
|
235
|
+
padding: 0 var(--vinson) 0 0;
|
|
236
|
+
margin: 0;
|
|
237
|
+
width: 100%;
|
|
238
|
+
cursor: inherit;
|
|
239
|
+
line-height: inherit;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/*------------------*/
|
|
243
|
+
|
|
244
|
+
/* fixes a bug with new lines */
|
|
245
|
+
.react-markdown {
|
|
246
|
+
white-space: pre-wrap;
|
|
229
247
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*------------------*/
|
|
2
|
+
/* #VISIBILITY */
|
|
3
|
+
/*------------------*/
|
|
4
|
+
|
|
5
|
+
.pricing-chart__false {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.menu__large {
|
|
10
|
+
padding-inline: var(--baseline);
|
|
11
|
+
|
|
12
|
+
@media (max-width: 40rem) {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (min-width: 40rem) {
|
|
18
|
+
.menu__small {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.possibly-empty:empty {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* used in the compare tables */
|
|
28
|
+
.show-below__vulture {
|
|
29
|
+
@media (min-width: 30rem) {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.no-below-vulture {
|
|
35
|
+
@media (max-width: 30rem) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.only-below-vulture {
|
|
41
|
+
@media (min-width: 30rem) {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
}
|