@rileybathurst/paddle 0.0.41 → 0.0.42

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.41",
4
+ "version": "0.0.42",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -130,6 +130,7 @@ export const Widths = ({
130
130
  {/* <p className='text-center'>{faker.lorem.sentence()}</p> */}
131
131
 
132
132
  <section className='pelican'>
133
+ Albatross wrap with pelican inside a nested div
133
134
  Double nested with the pelican inside the next layer down also stops the problems
134
135
  <p>{faker.lorem.paragraphs()}</p>
135
136
  </section>
@@ -5,6 +5,7 @@
5
5
  @import "variables";
6
6
  @import "body";
7
7
  @import "layout";
8
+ @import "cards";
8
9
  @import "media";
9
10
  @import "color";
10
11
  @import "typography";
@@ -10,7 +10,7 @@ button,
10
10
  padding: 0.5rem 1rem;
11
11
  font-size: 1rem;
12
12
  cursor: pointer;
13
- margin-block-end: var(--baseline);
13
+ margin-block-end: var(--elbrus);
14
14
  transition: 0.5s ease;
15
15
  display: block;
16
16
  line-height: 1.5rem;
@@ -0,0 +1,216 @@
1
+ /*------------------*/
2
+ /* #CARDS */
3
+ /*------------------*/
4
+ /* TODO: needs sub-grid */
5
+ .card,
6
+ .ticket {
7
+ padding: 0;
8
+ display: flex;
9
+ flex-direction: column;
10
+ justify-content: space-between;
11
+ border: 1px solid transparent;
12
+ border-radius: var(--card-radius);
13
+ /* needed to control nested elements */
14
+ text-decoration: none;
15
+
16
+ .card__placeholder {
17
+ max-height: 5rem;
18
+ border: none;
19
+ border-radius: 0;
20
+ margin-block-end: var(--kilimanjaro);
21
+ }
22
+
23
+ .image-link {
24
+ transition: var(--fade);
25
+ transform: scale(1);
26
+ z-index: var(--floor);
27
+ }
28
+
29
+ .image-link:where(:hover, :focus) {
30
+ transform: scale(1.05);
31
+ }
32
+
33
+ .card__image {
34
+ margin-block-end: var(--kilimanjaro);
35
+ transition: var(--fade);
36
+ }
37
+
38
+ .card__image:where(:hover, :focus) {
39
+ /* opacity: 0.8; */
40
+ filter: brightness(80%);
41
+ }
42
+
43
+ .card__title {
44
+ font-size: var(--denali);
45
+ margin-inline: var(--kosciuszko);
46
+ line-height: var(--aconcagua);
47
+ }
48
+
49
+ .card__specs {
50
+ width: calc(100% - var(--kilimanjaro));
51
+ display: flex;
52
+ flex-flow: row wrap;
53
+ align-items: baseline;
54
+ justify-content: space-between;
55
+ margin-inline: var(--kosciuszko);
56
+ margin-block-end: var(--elbrus);
57
+
58
+ > * {
59
+ margin: 0; /* reset */
60
+ }
61
+ }
62
+
63
+ .card__span {
64
+ font-size: var(--vinson);
65
+ text-transform: uppercase;
66
+ }
67
+
68
+ p {
69
+ margin-inline: var(--kosciuszko);
70
+ }
71
+
72
+ hr {
73
+ margin-inline: var(--kosciuszko);
74
+ }
75
+
76
+ .card__details {
77
+ display: flex;
78
+ width: calc(100% - var(--kilimanjaro));
79
+ margin-inline: var(--kosciuszko);
80
+ margin-block-end: var(--elbrus);
81
+ justify-content: space-between;
82
+
83
+ > * {
84
+ margin: 0;
85
+ }
86
+
87
+ h2,
88
+ h3,
89
+ h4,
90
+ h5,
91
+ h6 {
92
+ font-size: var(--denali);
93
+ font-size: clamp(var(--vinson), 1.667vw, var(--denali));
94
+ font-weight: normal;
95
+ line-height: var(--everest);
96
+ }
97
+
98
+ button {
99
+ line-height: var(--denali);
100
+ }
101
+ }
102
+
103
+ .badge {
104
+ z-index: var(--floor);
105
+ place-self: start;
106
+ padding: var(--kosciuszko);
107
+ margin: var(--kosciuszko);
108
+ border-radius: var(--card-radius);
109
+ opacity: 0.9;
110
+
111
+ h5 {
112
+ margin: 0;
113
+ opacity: 1;
114
+ font-weight: normal;
115
+ }
116
+ }
117
+ }
118
+
119
+ .card:hover {
120
+ p {
121
+ text-decoration: underline;
122
+ }
123
+ }
124
+
125
+ .deck:empty {
126
+ display: none;
127
+ }
128
+
129
+ .deck__column {
130
+ grid-template-columns: 1fr;
131
+ }
132
+
133
+ .deck__more {
134
+ max-width: var(--pelican);
135
+ margin-inline: auto;
136
+ padding-inline: var(--kosciuszko);
137
+
138
+ button {
139
+ margin-block-start: var(--kilimanjaro);
140
+ margin-inline: auto;
141
+ }
142
+ }
143
+
144
+ .card--split {
145
+ flex-direction: row !important; /* TODO can I increase the specificity */
146
+ > * {
147
+ flex: 1 1 50%;
148
+ }
149
+ }
150
+
151
+ /*------------------*/
152
+ /* #RETAIL LOGO */
153
+ /*------------------*/
154
+
155
+ .brand-logo {
156
+ display: flex;
157
+ flex-flow: row wrap;
158
+ gap: var(--elbrus);
159
+ max-width: max-content;
160
+ /* border: 1px solid var(--tin-soldier); im not sure yet */
161
+ margin-block-end: var(--kilimanjaro);
162
+ padding-block: var(--kilimanjaro);
163
+ padding-inline: var(--kosciuszko);
164
+ align-items: center;
165
+ font-size: var(--denali); /* grabs any h level */
166
+
167
+ > * {
168
+ margin-block-end: 0;
169
+ }
170
+
171
+ svg {
172
+ width: 10rem; /* guess and check */
173
+ margin-block-end: var(--kosciuszko);
174
+ }
175
+ }
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? */
@@ -11,7 +11,10 @@ body {
11
11
  .condor,
12
12
  .pelican,
13
13
  .albatross,
14
- .location {
14
+ .location,
15
+ header,
16
+ main,
17
+ footer {
15
18
  margin-inline: auto;
16
19
  padding-inline: var(--kosciuszko);
17
20
  width: calc(100% - var(--kosciuszko) * 2);
@@ -22,7 +25,10 @@ body {
22
25
  flex-basis: var(--vulture);
23
26
  }
24
27
 
25
- .stork {
28
+ .stork,
29
+ header,
30
+ main,
31
+ footer {
26
32
  max-width: var(--stork);
27
33
  flex-basis: var(--stork);
28
34
  }
@@ -85,17 +91,34 @@ body {
85
91
  }
86
92
 
87
93
  /*------------------*/
88
- /* #MAIN */
94
+ /* #DEFAULTS */
89
95
  /*------------------*/
90
96
 
91
97
  header,
92
98
  main,
93
99
  footer {
94
- max-width: var(--stork);
95
- margin-inline: auto;
96
- /* TODO: clamp this */
97
- padding-inline: var(--kosciuszko);
98
- margin-block-end: var(--everest);
100
+ margin-block-end: clamp(var(--kosciuszko), 2.5vw, var(--denali));
101
+ }
102
+
103
+ header {
104
+ h1,
105
+ h2 {
106
+ text-align: center;
107
+ }
108
+
109
+ h2 {
110
+ max-width: var(--vulture);
111
+ margin-inline: auto;
112
+ font-size: 2rem;
113
+
114
+ a {
115
+ display: inline-block;
116
+ }
117
+ }
118
+
119
+ button:hover {
120
+ box-shadow: none; /* reset */
121
+ }
99
122
  }
100
123
 
101
124
  /*------------------*/
@@ -22,7 +22,7 @@ svg {
22
22
  z-index: var(--understory);
23
23
  position: relative;
24
24
  max-width: calc(100% - 2rem); /* guess and check */
25
- padding-block: var(--baseline);
25
+ padding-block: var(--elbrus);
26
26
 
27
27
  @supports not (margin-inline: auto) {
28
28
  margin-inline: auto;
@@ -123,7 +123,7 @@ address {
123
123
 
124
124
  p {
125
125
  margin-block-start: 0;
126
- margin-block-end: var(--baseline);
126
+ margin-block-end: var(--elbrus);
127
127
  font-family: var(--body_font);
128
128
  }
129
129
 
@@ -224,6 +224,6 @@ hgroup {
224
224
  select {
225
225
  font-size: 1rem;
226
226
  font-family: var(--body_font);
227
- margin-block-end: var(--baseline);
227
+ margin-block-end: var(--elbrus);
228
228
  margin-block-end: 0;
229
229
  }
@@ -82,8 +82,6 @@
82
82
  --heading_font: "Barlow Condensed", Arial, sans-serif;
83
83
  --font-serif: Georgia, serif; /* TODO: add serif font that matches nicely */
84
84
 
85
- --baseline: 1.25rem; /* 20px */
86
-
87
85
  /* 🏔 7 Summits */
88
86
  --everest: 3rem; /* 29,035ft Asia */
89
87
  --aconcagua: 2.5rem; /* 22,840ft South America */