@turnipxenon/pineapple 3.1.0-alpha.6 → 3.1.0-alpha.7

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.
@@ -80,13 +80,13 @@
80
80
  paddingClass=""
81
81
  className="dialog-name"
82
82
  >
83
- <div>
84
- <b class="fake-h1">Turnip</b>
85
- </div>
83
+ <div class="fake-h1">Turnip</div>
86
84
  </PinyaCard>
87
85
  <PinyaCard
88
86
  widthClass="w-full"
89
87
  className="dialog-text"
88
+ colorClass=""
89
+ flexClass=""
90
90
  >
91
91
  <!-- Made for 140 characters, like the original tweets -->
92
92
  {@html currentMessage}
@@ -116,9 +116,9 @@
116
116
  padding: 1.2lh 2rem 0.5lh;
117
117
  }
118
118
 
119
- :global(.dialog-box *,.dialog-name *) {
120
- font-size: clamp(1em, 5vw, 1.3em);
121
- line-height: 1.5em;
119
+ :global(.dialog-text) {
120
+ font-size: clamp(1em, 3vw, 1.75em);
121
+ line-height: 1.5lh;
122
122
  }
123
123
 
124
124
  .dialog-elements {
@@ -138,16 +138,6 @@
138
138
  transform: translateY(var(--hidePercentHeight));
139
139
  }
140
140
 
141
-
142
- .dialog-padding :global(p) {
143
- font-size: clamp(1em, 5vw, 1.3em) !important;
144
- line-height: 1.5em !important;
145
- }
146
-
147
- .dialog-padding {
148
- padding: clamp(1.5em, 5vw, 1.75em) clamp(0em, 5vw - 0.5em, 2em) 0;
149
- }
150
-
151
141
  :global(.dialog-name) {
152
142
  padding-left: 2rem;
153
143
  padding-right: 2rem;
@@ -189,9 +179,16 @@
189
179
  transform: scaleX(-1);
190
180
  }
191
181
 
182
+ :global(html) {
183
+ --bg-dialog: rgba(255, 247, 225, 0.9);
184
+ }
185
+
186
+ :global(html.dark) {
187
+ --bg-dialog: rgba(76, 71, 59, 0.9);
188
+ }
192
189
 
193
190
  .dialog-box {
194
- background-color: var(--color-surface-500);
191
+ background-color: var(--bg-dialog);
195
192
  position: fixed;
196
193
  bottom: 0;
197
194
  width: var(--dialog-box-width); /*75em + 4em padding*/
@@ -200,12 +197,6 @@
200
197
  border-radius: 1rem;
201
198
  }
202
199
 
203
- .dark .dialog-box {
204
- background-color: rgb(var(--color-surface-900) / 0.95);
205
- --tw-ring-color: rgb(var(--color-text-400));
206
- /*background-color: red;*/
207
- }
208
-
209
200
  :global(.fab) {
210
201
  /*@apply btn preset-filled-tertiary-500;*/
211
202
  background-color: var(--color-tertiary-500);
@@ -22,7 +22,7 @@ html {
22
22
  height: calc(var(--dialog-box-height) + 4em);
23
23
  }
24
24
 
25
- .dialog-box a {
25
+ .dialog-box a, .dialog-box b, .dialog-box i {
26
26
  font-size: inherit;
27
27
  }
28
28
 
@@ -250,7 +250,7 @@ blockquote {
250
250
  filter: brightness(140%);
251
251
  }
252
252
 
253
- h1, h2, h3, h4, h5, h6, .fake-h2, .fake-h3, .fake-h4 {
253
+ h1, h2, h3, h4, h5, h6, .fake-h1, .fake-h2, .fake-h3, .fake-h4 {
254
254
  text-align: center;
255
255
  margin-top: 0;
256
256
  font-weight: bolder;
@@ -265,7 +265,7 @@ h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p, .fake-h2 + p, .fake-h3 + p, .fak
265
265
  margin-top: 0.5lh;
266
266
  }
267
267
 
268
- h1 {
268
+ h1, .fake-h1 {
269
269
  @apply text-4xl;
270
270
  }
271
271
 
@@ -8,14 +8,15 @@ let {
8
8
  flexClass = "flex flex-col",
9
9
  widthClass = "w-full max-w-md",
10
10
  borderClass = "border-[2px] border-primary-500 dark:border-0",
11
+ colorClass = "bg-surface-200 dark:bg-surface-900",
11
12
  marginClass = "",
12
13
  className,
13
14
  includeDataNoSnippet = false,
14
15
  children
15
16
  }: PinyaCardProps = $props();
16
17
 
17
- let cardClass = $derived(`card bg-surface-200 dark:bg-surface-900 text-start rounded-xl
18
- ${paddingClass} ${flexClass} ${className} ${widthClass} ${borderClass} ${marginClass}`);
18
+ let cardClass = $derived(`card text-start rounded-xl
19
+ ${paddingClass} ${flexClass} ${className} ${widthClass} ${borderClass} ${marginClass} ${colorClass}`);
19
20
  </script>
20
21
 
21
22
  {#if includeDataNoSnippet}
@@ -6,5 +6,6 @@ export interface PinyaCardProps extends WrapperProps {
6
6
  widthClass?: string;
7
7
  borderClass?: string;
8
8
  marginClass?: string;
9
+ colorClass?: string;
9
10
  includeDataNoSnippet?: boolean;
10
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turnipxenon/pineapple",
3
3
  "description": "personal package for base styling for other personal projects",
4
- "version": "3.1.0-alpha.6",
4
+ "version": "3.1.0-alpha.7",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",
@@ -22,7 +22,7 @@ html {
22
22
  height: calc(var(--dialog-box-height) + 4em);
23
23
  }
24
24
 
25
- .dialog-box a {
25
+ .dialog-box a, .dialog-box b, .dialog-box i {
26
26
  font-size: inherit;
27
27
  }
28
28