@penwin/discord-components-core 4.3.8 → 4.3.9-dev-32918495512.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/CHANGELOG.md +826 -826
- package/LICENSE.md +20 -0
- package/README.md +673 -673
- package/custom-elements.json +1803 -1708
- package/dist/bundle/index.mjs +1976 -1976
- package/dist/bundle/index.mjs.map +1 -1
- package/dist/bundle/styles/base.css +1 -2
- package/dist/components/_private/BaseDiscordSelectMenuOption.js +72 -72
- package/dist/components/_private/DiscordMediaAttachmentStyles.js +114 -114
- package/dist/components/_private/DiscordPlaybackControlStyles.js +153 -153
- package/dist/components/_private/DiscordVolumeControlStyles.js +158 -158
- package/dist/components/_private/DiscordWhiteSpace.js +4 -4
- package/dist/components/discord-action-row/DiscordActionRow.js +6 -6
- package/dist/components/discord-attachments/DiscordAttachments.js +18 -18
- package/dist/components/discord-audio-attachment/DiscordAudioAttachment.js +202 -202
- package/dist/components/discord-author-info/DiscordAuthorInfo.d.ts.map +1 -1
- package/dist/components/discord-author-info/DiscordAuthorInfo.js +156 -156
- package/dist/components/discord-author-info/DiscordAuthorInfo.js.map +1 -1
- package/dist/components/discord-bold/DiscordBold.js +4 -4
- package/dist/components/discord-button/DiscordButton.d.ts.map +1 -1
- package/dist/components/discord-button/DiscordButton.js +131 -128
- package/dist/components/discord-button/DiscordButton.js.map +1 -1
- package/dist/components/discord-channel-select-menu-option/DiscordChannelSelectMenuOption.js +131 -131
- package/dist/components/discord-code/DiscordCode.js +64 -64
- package/dist/components/discord-code-block/DiscordCodeBlock.js +2 -2
- package/dist/components/discord-command/DiscordCommand.js +109 -109
- package/dist/components/discord-components-column/DiscordComponentsColumn.js +18 -18
- package/dist/components/discord-container/DiscordContainer.js +47 -47
- package/dist/components/discord-custom-emoji/DiscordCustomEmoji.js +36 -36
- package/dist/components/discord-embed/DiscordEmbed.d.ts.map +1 -1
- package/dist/components/discord-embed/DiscordEmbed.js +285 -285
- package/dist/components/discord-embed/DiscordEmbed.js.map +1 -1
- package/dist/components/discord-embed-description/DiscordEmbedDescription.js +25 -25
- package/dist/components/discord-embed-field/DiscordEmbedField.js +40 -40
- package/dist/components/discord-embed-fields/DiscordEmbedFields.js +19 -19
- package/dist/components/discord-embed-footer/DiscordEmbedFooter.js +36 -36
- package/dist/components/discord-file-attachment/DiscordFileAttachment.js +191 -191
- package/dist/components/discord-forwarded-message/DiscordForwardedMessage.js +126 -126
- package/dist/components/discord-header/DiscordHeader.js +27 -27
- package/dist/components/discord-image-attachment/DiscordImageAttachment.js +38 -38
- package/dist/components/discord-input-text/DiscordInputText.js +284 -284
- package/dist/components/discord-invite/DiscordInvite.js +225 -225
- package/dist/components/discord-italic/DiscordItalic.js +4 -4
- package/dist/components/discord-link/DiscordLink.js +19 -19
- package/dist/components/discord-list-item/DiscordListItem.d.ts.map +1 -1
- package/dist/components/discord-list-item/DiscordListItem.js +8 -5
- package/dist/components/discord-list-item/DiscordListItem.js.map +1 -1
- package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.js +463 -463
- package/dist/components/discord-media-gallery/DiscordMediaGallery.js +219 -219
- package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.d.ts.map +1 -1
- package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.js +102 -99
- package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.js.map +1 -1
- package/dist/components/discord-media-spoileable-cover/DiscordMediaSpoileableCover.js +65 -65
- package/dist/components/discord-mention/DiscordMention.js +66 -66
- package/dist/components/discord-message/DiscordMessage.d.ts.map +1 -1
- package/dist/components/discord-message/DiscordMessage.js +338 -335
- package/dist/components/discord-message/DiscordMessage.js.map +1 -1
- package/dist/components/discord-messages/DiscordMessages.js +77 -77
- package/dist/components/discord-modal/DiscordModal.js +465 -465
- package/dist/components/discord-ordered-list/DiscordOrderedList.d.ts.map +1 -1
- package/dist/components/discord-ordered-list/DiscordOrderedList.js +20 -14
- package/dist/components/discord-ordered-list/DiscordOrderedList.js.map +1 -1
- package/dist/components/discord-poll/DiscordPoll.js +157 -157
- package/dist/components/discord-poll-answer/DiscordPollAnswer.js +227 -227
- package/dist/components/discord-pre/DiscordPre.js +18 -18
- package/dist/components/discord-quote/DiscordQuote.js +31 -31
- package/dist/components/discord-reaction/DiscordReaction.js +73 -73
- package/dist/components/discord-reactions/DiscordReactions.js +9 -9
- package/dist/components/discord-reply/DiscordReply.d.ts.map +1 -1
- package/dist/components/discord-reply/DiscordReply.js +246 -246
- package/dist/components/discord-reply/DiscordReply.js.map +1 -1
- package/dist/components/discord-role-select-menu-option/DiscordRoleSelectMenuOption.js +75 -75
- package/dist/components/discord-section/DiscordSection.js +6 -6
- package/dist/components/discord-section-components/DiscordSectionComponents.js +14 -14
- package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.js +30 -30
- package/dist/components/discord-separator/DiscordSeparator.js +9 -9
- package/dist/components/discord-spoiler/DiscordSpoiler.js +31 -31
- package/dist/components/discord-string-select-menu/DiscordStringSelectMenu.js +192 -192
- package/dist/components/discord-string-select-menu-option/DiscordStringSelectMenuOption.js +45 -45
- package/dist/components/discord-subscript/DiscordSubscript.js +15 -15
- package/dist/components/discord-system-message/DiscordSystemMessage.d.ts.map +1 -1
- package/dist/components/discord-system-message/DiscordSystemMessage.js +134 -131
- package/dist/components/discord-system-message/DiscordSystemMessage.js.map +1 -1
- package/dist/components/discord-tenor-video/DiscordTenorVideo.js +76 -76
- package/dist/components/discord-text-display/DiscordTextDisplay.js +10 -10
- package/dist/components/discord-text-file-attachment-previewer/DiscordTextFileAttachmentPreviewer.js +55 -55
- package/dist/components/discord-thread/DiscordThread.js +81 -81
- package/dist/components/discord-thread-message/DiscordThreadMessage.js +90 -90
- package/dist/components/discord-thumbnail/DiscordThumbnail.js +20 -20
- package/dist/components/discord-time/DiscordTime.js +7 -7
- package/dist/components/discord-transcript-header/DiscordTranscriptHeader.js +51 -51
- package/dist/components/discord-unordered-list/DiscordUnorderedList.d.ts.map +1 -1
- package/dist/components/discord-unordered-list/DiscordUnorderedList.js +18 -15
- package/dist/components/discord-unordered-list/DiscordUnorderedList.js.map +1 -1
- package/dist/components/discord-user-select-menu-option/DiscordUserSelectMenuOption.js +58 -58
- package/dist/components/discord-verified-author-tag/DiscordVerifiedAuthorTag.js +36 -36
- package/dist/components/discord-video-attachment/DiscordVideoAttachment.js +494 -494
- package/dist/components/discord-voice-message/DiscordVoiceMessage.js +255 -255
- package/dist/components/svgs/AttachmentDownloadButton.js +67 -67
- package/dist/components/svgs/AttachmentReply.js +5 -5
- package/dist/components/svgs/Boost.js +3 -3
- package/dist/components/svgs/ChannelForum.js +19 -19
- package/dist/components/svgs/ChannelIcon.js +17 -17
- package/dist/components/svgs/ChannelThread.js +15 -15
- package/dist/components/svgs/ChannelsAndRoles.js +23 -23
- package/dist/components/svgs/CommandIcon.js +4 -4
- package/dist/components/svgs/CommandIconName.js +5 -5
- package/dist/components/svgs/CommandReply.js +9 -9
- package/dist/components/svgs/CustomizeCommunity.js +17 -17
- package/dist/components/svgs/DMCall.js +6 -6
- package/dist/components/svgs/DMEdit.js +8 -8
- package/dist/components/svgs/DMMissedCall.js +8 -8
- package/dist/components/svgs/Ephemeral.js +21 -21
- package/dist/components/svgs/ExpandMore.js +4 -4
- package/dist/components/svgs/FileAttachment.js +10 -10
- package/dist/components/svgs/GuildBadge.js +8 -8
- package/dist/components/svgs/LaunchIcon.js +9 -9
- package/dist/components/svgs/LockedVoiceChannel.js +17 -17
- package/dist/components/svgs/MediaPauseIcon.js +2 -2
- package/dist/components/svgs/MediaPlayIcon.js +2 -2
- package/dist/components/svgs/MediaRestartIcon.js +2 -2
- package/dist/components/svgs/MediaVolumeAbove50PercentIcon.js +3 -3
- package/dist/components/svgs/MediaVolumeBelow50PercentIcon.js +2 -2
- package/dist/components/svgs/MediaVolumeMutedIcon.js +2 -2
- package/dist/components/svgs/MessageIcon.js +3 -3
- package/dist/components/svgs/ModalClose.js +4 -4
- package/dist/components/svgs/ModalWarning.js +5 -5
- package/dist/components/svgs/PartnerBadgeOverlay.js +11 -11
- package/dist/components/svgs/Pin.js +5 -5
- package/dist/components/svgs/PremiumIcon.js +6 -6
- package/dist/components/svgs/ReplyIcon.js +5 -5
- package/dist/components/svgs/ServerGuide.js +17 -17
- package/dist/components/svgs/ServerUpgrade.js +7 -7
- package/dist/components/svgs/SystemAlert.js +7 -7
- package/dist/components/svgs/SystemError.js +6 -6
- package/dist/components/svgs/Thread.js +9 -9
- package/dist/components/svgs/UserJoin.js +5 -5
- package/dist/components/svgs/UserLeave.js +5 -5
- package/dist/components/svgs/VerifiedBadgeOverlay.js +4 -4
- package/dist/components/svgs/VerifiedTick.js +13 -13
- package/dist/components/svgs/VideoFullScreenIcon.js +8 -8
- package/dist/components/svgs/VideoPausePopIcon.js +2 -2
- package/dist/components/svgs/VideoPlayPopIcon.js +2 -2
- package/dist/components/svgs/VoiceChannel.js +19 -19
- package/dist/components/svgs/clan-icons/Crystal.js +27 -27
- package/dist/components/svgs/clan-icons/Diamond.js +35 -35
- package/dist/components/svgs/clan-icons/Explosion.js +30 -30
- package/dist/components/svgs/clan-icons/Flame.js +23 -23
- package/dist/components/svgs/clan-icons/Flower.js +18 -18
- package/dist/components/svgs/clan-icons/Heart.js +19 -19
- package/dist/components/svgs/clan-icons/Key.js +32 -32
- package/dist/components/svgs/clan-icons/Leaf.js +23 -23
- package/dist/components/svgs/clan-icons/Lightning.js +25 -25
- package/dist/components/svgs/clan-icons/Magic.js +34 -34
- package/dist/components/svgs/clan-icons/Moon.js +21 -21
- package/dist/components/svgs/clan-icons/Mushroom.js +33 -33
- package/dist/components/svgs/clan-icons/Mythical.js +32 -32
- package/dist/components/svgs/clan-icons/Ornament.js +48 -48
- package/dist/components/svgs/clan-icons/Plasma.js +23 -23
- package/dist/components/svgs/clan-icons/Rock.js +20 -20
- package/dist/components/svgs/clan-icons/Shell.js +29 -29
- package/dist/components/svgs/clan-icons/Skull.js +28 -28
- package/dist/components/svgs/clan-icons/Sun.js +36 -36
- package/dist/components/svgs/clan-icons/Sword.js +27 -27
- package/dist/components/svgs/clan-icons/Water.js +20 -20
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -3
- package/dist/config.js.map +1 -1
- package/dist/hydrate/index.d.ts +40 -0
- package/dist/hydrate/index.d.ts.map +1 -0
- package/dist/hydrate/index.js +48 -0
- package/dist/hydrate/index.js.map +1 -0
- package/package.json +222 -219
- package/dist/bundle/styles/base.css.map +0 -1
- package/dist/components/discord-container copy/DiscordContainer.d.ts +0 -22
- package/dist/components/discord-container copy/DiscordContainer.d.ts.map +0 -1
- package/dist/components/discord-container copy/DiscordContainer.js +0 -159
- package/dist/components/discord-container copy/DiscordContainer.js.map +0 -1
- package/dist/components/discord-media-fullscreen-previewer/context.d.ts +0 -10
- package/dist/components/discord-media-fullscreen-previewer/context.d.ts.map +0 -1
- package/dist/components/discord-media-fullscreen-previewer/context.js +0 -3
- package/dist/components/discord-media-fullscreen-previewer/context.js.map +0 -1
- package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts +0 -26
- package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts.map +0 -1
- package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js +0 -183
- package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js.map +0 -1
- package/dist/components/discord-section/DiscordContainer.d.ts +0 -22
- package/dist/components/discord-section/DiscordContainer.d.ts.map +0 -1
- package/dist/components/discord-section/DiscordContainer.js +0 -159
- package/dist/components/discord-section/DiscordContainer.js.map +0 -1
- package/dist/components/discord-section copy/DiscordSection.d.ts +0 -15
- package/dist/components/discord-section copy/DiscordSection.d.ts.map +0 -1
- package/dist/components/discord-section copy/DiscordSection.js +0 -77
- package/dist/components/discord-section copy/DiscordSection.js.map +0 -1
- package/dist/components/discord-section-components/DiscordSection.d.ts +0 -15
- package/dist/components/discord-section-components/DiscordSection.d.ts.map +0 -1
- package/dist/components/discord-section-components/DiscordSection.js +0 -77
- package/dist/components/discord-section-components/DiscordSection.js.map +0 -1
- package/dist/components/discord-text-display/DiscordSection.d.ts +0 -15
- package/dist/components/discord-text-display/DiscordSection.d.ts.map +0 -1
- package/dist/components/discord-text-display/DiscordSection.js +0 -79
- package/dist/components/discord-text-display/DiscordSection.js.map +0 -1
- package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts +0 -71
- package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts.map +0 -1
- package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js +0 -238
- package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js.map +0 -1
|
@@ -40,306 +40,306 @@ let DiscordEmbed = class DiscordEmbed extends LitElement {
|
|
|
40
40
|
/**
|
|
41
41
|
* @internal
|
|
42
42
|
*/
|
|
43
|
-
static { this.styles = css `
|
|
44
|
-
:host {
|
|
45
|
-
color: #dcddde;
|
|
46
|
-
display: flex;
|
|
47
|
-
font-size: 13px;
|
|
48
|
-
line-height: 150%;
|
|
49
|
-
margin-bottom: 8px;
|
|
50
|
-
margin-top: 8px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host .discord-left-border {
|
|
54
|
-
background-color: #4c4d54;
|
|
55
|
-
border-radius: 4px 0 0 4px;
|
|
56
|
-
flex-shrink: 0;
|
|
57
|
-
width: 4px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([light-theme]) {
|
|
61
|
-
color: #2e3338;
|
|
62
|
-
|
|
63
|
-
.discord-left-border {
|
|
64
|
-
background-color: #e2e2e4;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host .discord-embed-root {
|
|
69
|
-
display: grid;
|
|
70
|
-
grid-auto-flow: row;
|
|
71
|
-
grid-row-gap: 0.25rem;
|
|
72
|
-
min-height: 0;
|
|
73
|
-
min-width: 0;
|
|
74
|
-
text-indent: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
:host .discord-embed-wrapper {
|
|
78
|
-
border-radius: 0 4px 4px 0;
|
|
79
|
-
justify-self: start;
|
|
80
|
-
align-self: start;
|
|
81
|
-
display: grid;
|
|
82
|
-
box-sizing: border-box;
|
|
83
|
-
max-width: 520px;
|
|
84
|
-
background-color: var(--background, #393a41);
|
|
85
|
-
border: 1px solid var(--border, #44454c);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:host([light-theme]) .discord-embed-wrapper {
|
|
89
|
-
--background: color-mix(in oklab, hsl(0 calc(1 * 0%) 100% /1) 100%, #000 0%);
|
|
90
|
-
--border: color-mix(in oklab, hsl(240 calc(1 * 4%) 60.784% /0.2784313725490196) 100%, hsl(0 0% 0% /0.2784313725490196) 0%);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host .discord-embed-wrapper .discord-embed-grid {
|
|
94
|
-
display: inline-grid;
|
|
95
|
-
grid-template-columns: auto -webkit-min-content;
|
|
96
|
-
grid-template-columns: auto min-content;
|
|
97
|
-
grid-template-columns: auto;
|
|
98
|
-
grid-template-rows: auto;
|
|
99
|
-
padding: 0.5rem 1rem 1rem 0.75rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
:host .discord-embed-thumbnail {
|
|
103
|
-
border-radius: 4px;
|
|
104
|
-
flex-shrink: 0;
|
|
105
|
-
grid-column: 2/2;
|
|
106
|
-
grid-row: 1/8;
|
|
107
|
-
justify-self: end;
|
|
108
|
-
margin-left: 16px;
|
|
109
|
-
margin-top: 8px;
|
|
110
|
-
max-height: 80px;
|
|
111
|
-
max-width: 80px;
|
|
112
|
-
object-fit: contain;
|
|
113
|
-
object-position: top center;
|
|
114
|
-
cursor: pointer;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
:host .discord-embed-author {
|
|
118
|
-
-webkit-box-align: center;
|
|
119
|
-
align-items: center;
|
|
120
|
-
color: #fff;
|
|
121
|
-
font-size: 14px;
|
|
122
|
-
display: flex;
|
|
123
|
-
font-weight: 600;
|
|
124
|
-
grid-column: 1 / 1;
|
|
125
|
-
margin-top: 8px;
|
|
126
|
-
min-width: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:host([light-theme]) .discord-embed-author {
|
|
130
|
-
color: #060607;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:host .discord-embed-author a {
|
|
134
|
-
color: #fff;
|
|
135
|
-
font-weight: 600;
|
|
136
|
-
text-decoration: none;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
:host .discord-embed-author a:hover {
|
|
140
|
-
text-decoration: underline;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
:host([light-theme]) .discord-embed-author a {
|
|
144
|
-
color: #060607;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:host .discord-embed-author .discord-author-image {
|
|
148
|
-
border-radius: 50%;
|
|
149
|
-
height: 24px;
|
|
150
|
-
margin-right: 8px;
|
|
151
|
-
width: 24px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
:host .discord-embed-author-block,
|
|
155
|
-
:host .discord-embed-author-block > span {
|
|
156
|
-
max-width: 95%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
:host .discord-embed-provider {
|
|
160
|
-
font-size: 0.75rem;
|
|
161
|
-
line-height: 1rem;
|
|
162
|
-
font-weight: 400;
|
|
163
|
-
grid-column: 1/1;
|
|
164
|
-
margin-top: 8px;
|
|
165
|
-
unicode-bidi: plaintext;
|
|
166
|
-
text-align: left;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
:host([light-theme]) .discord-embed-provider {
|
|
170
|
-
color: #4f545c;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
:host .discord-embed-title {
|
|
174
|
-
-webkit-box-align: center;
|
|
175
|
-
align-items: center;
|
|
176
|
-
color: #fff;
|
|
177
|
-
display: inline-block;
|
|
178
|
-
font-size: 1rem;
|
|
179
|
-
font-weight: 600;
|
|
180
|
-
grid-column: 1 / 1;
|
|
181
|
-
margin-top: 8px;
|
|
182
|
-
min-width: 0;
|
|
183
|
-
max-width: 400px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
:host .discord-embed-title a {
|
|
187
|
-
color: var(--color, color-mix(in oklab, hsl(213.934 calc(1 * 85.915%) 72.157% /1) 100%, #000 0%));
|
|
188
|
-
font-weight: 600;
|
|
189
|
-
text-decoration: none;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:host([light-theme]) .discord-embed-title {
|
|
193
|
-
color: #060607;
|
|
194
|
-
a {
|
|
195
|
-
--color: #0074e3;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
:host .discord-embed-title a:hover {
|
|
200
|
-
text-decoration: underline;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
:host .discord-embed-image {
|
|
204
|
-
border-radius: 4px;
|
|
205
|
-
max-width: 350px;
|
|
206
|
-
max-height: 300px;
|
|
207
|
-
min-width: 100%;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
:host .discord-embed-media {
|
|
211
|
-
border-radius: 4px;
|
|
212
|
-
contain: paint;
|
|
213
|
-
display: block;
|
|
214
|
-
grid-column: 1/1;
|
|
215
|
-
margin-top: 16px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
:host .discord-embed-media.discord-embed-media-video {
|
|
219
|
-
height: 225px;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
:host .discord-embed.media .discord-embed-image {
|
|
223
|
-
overflow: hidden;
|
|
224
|
-
position: relative;
|
|
225
|
-
user-select: text;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.discord-embed-image {
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:host .discord-embed-media .discord-embed-video {
|
|
233
|
-
-webkit-box-align: center;
|
|
234
|
-
-webkit-box-pack: center;
|
|
235
|
-
align-items: center;
|
|
236
|
-
border-radius: 0;
|
|
237
|
-
cursor: pointer;
|
|
238
|
-
display: flex;
|
|
239
|
-
height: 100%;
|
|
240
|
-
justify-content: center;
|
|
241
|
-
max-height: 100%;
|
|
242
|
-
width: 100%;
|
|
243
|
-
|
|
244
|
-
width: 400px;
|
|
245
|
-
height: 225px;
|
|
246
|
-
left: 0px;
|
|
247
|
-
top: 0px;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.discord-embed-custom-emoji {
|
|
251
|
-
display: inline-block;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.discord-embed-custom-emoji .discord-embed-custom-emoji-image {
|
|
255
|
-
width: 18px;
|
|
256
|
-
height: 18px;
|
|
257
|
-
vertical-align: bottom;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
slot[name='footer']::slotted(*) {
|
|
261
|
-
grid-column: 1/3;
|
|
262
|
-
grid-row: auto/auto;
|
|
263
|
-
}
|
|
43
|
+
static { this.styles = css `
|
|
44
|
+
:host {
|
|
45
|
+
color: #dcddde;
|
|
46
|
+
display: flex;
|
|
47
|
+
font-size: 13px;
|
|
48
|
+
line-height: 150%;
|
|
49
|
+
margin-bottom: 8px;
|
|
50
|
+
margin-top: 8px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host .discord-left-border {
|
|
54
|
+
background-color: #4c4d54;
|
|
55
|
+
border-radius: 4px 0 0 4px;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
width: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([light-theme]) {
|
|
61
|
+
color: #2e3338;
|
|
62
|
+
|
|
63
|
+
.discord-left-border {
|
|
64
|
+
background-color: #e2e2e4;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host .discord-embed-root {
|
|
69
|
+
display: grid;
|
|
70
|
+
grid-auto-flow: row;
|
|
71
|
+
grid-row-gap: 0.25rem;
|
|
72
|
+
min-height: 0;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
text-indent: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host .discord-embed-wrapper {
|
|
78
|
+
border-radius: 0 4px 4px 0;
|
|
79
|
+
justify-self: start;
|
|
80
|
+
align-self: start;
|
|
81
|
+
display: grid;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
max-width: 520px;
|
|
84
|
+
background-color: var(--background, #393a41);
|
|
85
|
+
border: 1px solid var(--border, #44454c);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([light-theme]) .discord-embed-wrapper {
|
|
89
|
+
--background: color-mix(in oklab, hsl(0 calc(1 * 0%) 100% /1) 100%, #000 0%);
|
|
90
|
+
--border: color-mix(in oklab, hsl(240 calc(1 * 4%) 60.784% /0.2784313725490196) 100%, hsl(0 0% 0% /0.2784313725490196) 0%);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host .discord-embed-wrapper .discord-embed-grid {
|
|
94
|
+
display: inline-grid;
|
|
95
|
+
grid-template-columns: auto -webkit-min-content;
|
|
96
|
+
grid-template-columns: auto min-content;
|
|
97
|
+
grid-template-columns: auto;
|
|
98
|
+
grid-template-rows: auto;
|
|
99
|
+
padding: 0.5rem 1rem 1rem 0.75rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host .discord-embed-thumbnail {
|
|
103
|
+
border-radius: 4px;
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
grid-column: 2/2;
|
|
106
|
+
grid-row: 1/8;
|
|
107
|
+
justify-self: end;
|
|
108
|
+
margin-left: 16px;
|
|
109
|
+
margin-top: 8px;
|
|
110
|
+
max-height: 80px;
|
|
111
|
+
max-width: 80px;
|
|
112
|
+
object-fit: contain;
|
|
113
|
+
object-position: top center;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host .discord-embed-author {
|
|
118
|
+
-webkit-box-align: center;
|
|
119
|
+
align-items: center;
|
|
120
|
+
color: #fff;
|
|
121
|
+
font-size: 14px;
|
|
122
|
+
display: flex;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
grid-column: 1 / 1;
|
|
125
|
+
margin-top: 8px;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([light-theme]) .discord-embed-author {
|
|
130
|
+
color: #060607;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host .discord-embed-author a {
|
|
134
|
+
color: #fff;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
text-decoration: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host .discord-embed-author a:hover {
|
|
140
|
+
text-decoration: underline;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([light-theme]) .discord-embed-author a {
|
|
144
|
+
color: #060607;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host .discord-embed-author .discord-author-image {
|
|
148
|
+
border-radius: 50%;
|
|
149
|
+
height: 24px;
|
|
150
|
+
margin-right: 8px;
|
|
151
|
+
width: 24px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host .discord-embed-author-block,
|
|
155
|
+
:host .discord-embed-author-block > span {
|
|
156
|
+
max-width: 95%;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host .discord-embed-provider {
|
|
160
|
+
font-size: 0.75rem;
|
|
161
|
+
line-height: 1rem;
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
grid-column: 1/1;
|
|
164
|
+
margin-top: 8px;
|
|
165
|
+
unicode-bidi: plaintext;
|
|
166
|
+
text-align: left;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host([light-theme]) .discord-embed-provider {
|
|
170
|
+
color: #4f545c;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:host .discord-embed-title {
|
|
174
|
+
-webkit-box-align: center;
|
|
175
|
+
align-items: center;
|
|
176
|
+
color: #fff;
|
|
177
|
+
display: inline-block;
|
|
178
|
+
font-size: 1rem;
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
grid-column: 1 / 1;
|
|
181
|
+
margin-top: 8px;
|
|
182
|
+
min-width: 0;
|
|
183
|
+
max-width: 400px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host .discord-embed-title a {
|
|
187
|
+
color: var(--color, color-mix(in oklab, hsl(213.934 calc(1 * 85.915%) 72.157% /1) 100%, #000 0%));
|
|
188
|
+
font-weight: 600;
|
|
189
|
+
text-decoration: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host([light-theme]) .discord-embed-title {
|
|
193
|
+
color: #060607;
|
|
194
|
+
a {
|
|
195
|
+
--color: #0074e3;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host .discord-embed-title a:hover {
|
|
200
|
+
text-decoration: underline;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host .discord-embed-image {
|
|
204
|
+
border-radius: 4px;
|
|
205
|
+
max-width: 350px;
|
|
206
|
+
max-height: 300px;
|
|
207
|
+
min-width: 100%;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:host .discord-embed-media {
|
|
211
|
+
border-radius: 4px;
|
|
212
|
+
contain: paint;
|
|
213
|
+
display: block;
|
|
214
|
+
grid-column: 1/1;
|
|
215
|
+
margin-top: 16px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:host .discord-embed-media.discord-embed-media-video {
|
|
219
|
+
height: 225px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:host .discord-embed.media .discord-embed-image {
|
|
223
|
+
overflow: hidden;
|
|
224
|
+
position: relative;
|
|
225
|
+
user-select: text;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.discord-embed-image {
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host .discord-embed-media .discord-embed-video {
|
|
233
|
+
-webkit-box-align: center;
|
|
234
|
+
-webkit-box-pack: center;
|
|
235
|
+
align-items: center;
|
|
236
|
+
border-radius: 0;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
display: flex;
|
|
239
|
+
height: 100%;
|
|
240
|
+
justify-content: center;
|
|
241
|
+
max-height: 100%;
|
|
242
|
+
width: 100%;
|
|
243
|
+
|
|
244
|
+
width: 400px;
|
|
245
|
+
height: 225px;
|
|
246
|
+
left: 0px;
|
|
247
|
+
top: 0px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.discord-embed-custom-emoji {
|
|
251
|
+
display: inline-block;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.discord-embed-custom-emoji .discord-embed-custom-emoji-image {
|
|
255
|
+
width: 18px;
|
|
256
|
+
height: 18px;
|
|
257
|
+
vertical-align: bottom;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
slot[name='footer']::slotted(*) {
|
|
261
|
+
grid-column: 1/3;
|
|
262
|
+
grid-row: auto/auto;
|
|
263
|
+
}
|
|
264
264
|
`; }
|
|
265
265
|
render() {
|
|
266
266
|
const emojiParsedAuthorName = this.parseTitle(this.authorName);
|
|
267
267
|
const emojiParsedEmbedTitle = this.parseTitle(this.embedTitle);
|
|
268
|
-
return html `<div style=${styleMap({ 'background-color': this.color })} class="discord-left-border"></div>
|
|
269
|
-
<div class="discord-embed-root">
|
|
270
|
-
<div class="discord-embed-wrapper">
|
|
271
|
-
<div class="discord-embed-grid">
|
|
272
|
-
${when(this.provider, () => html `<div class="discord-embed-provider">${this.provider}</div>`)}
|
|
273
|
-
${when(emojiParsedAuthorName, () => html `<div class="discord-embed-author">
|
|
274
|
-
${when(this.authorImage, () => html `<img src=${ifDefined(this.authorImage)} alt="" class="discord-author-image" />`)}
|
|
275
|
-
${when(this.authorUrl, () => html `<a
|
|
276
|
-
href=${ifDefined(this.authorUrl)}
|
|
277
|
-
target="_blank"
|
|
278
|
-
rel="noopener noreferrer"
|
|
279
|
-
class="discord-embed-author-block"
|
|
280
|
-
>
|
|
281
|
-
<span class="discord-embed-author-block">${emojiParsedAuthorName}</span>
|
|
282
|
-
</a>`, () => html `<span class="discord-embed-author-block">${emojiParsedAuthorName}</span>`)}
|
|
283
|
-
</div>`)}
|
|
284
|
-
${when(emojiParsedEmbedTitle, () => html `<div class="discord-embed-title">
|
|
268
|
+
return html `<div style=${styleMap({ 'background-color': this.color })} class="discord-left-border"></div>
|
|
269
|
+
<div class="discord-embed-root">
|
|
270
|
+
<div class="discord-embed-wrapper">
|
|
271
|
+
<div class="discord-embed-grid">
|
|
272
|
+
${when(this.provider, () => html `<div class="discord-embed-provider">${this.provider}</div>`)}
|
|
273
|
+
${when(emojiParsedAuthorName, () => html `<div class="discord-embed-author">
|
|
274
|
+
${when(this.authorImage, () => html `<img src=${ifDefined(this.authorImage)} alt="" class="discord-author-image" />`)}
|
|
275
|
+
${when(this.authorUrl, () => html `<a
|
|
276
|
+
href=${ifDefined(this.authorUrl)}
|
|
277
|
+
target="_blank"
|
|
278
|
+
rel="noopener noreferrer"
|
|
279
|
+
class="discord-embed-author-block"
|
|
280
|
+
>
|
|
281
|
+
<span class="discord-embed-author-block">${emojiParsedAuthorName}</span>
|
|
282
|
+
</a>`, () => html `<span class="discord-embed-author-block">${emojiParsedAuthorName}</span>`)}
|
|
283
|
+
</div>`)}
|
|
284
|
+
${when(emojiParsedEmbedTitle, () => html `<div class="discord-embed-title">
|
|
285
285
|
${this.url
|
|
286
286
|
? html `<a href="${this.url}" target="_blank" rel="noopener noreferrer"> ${emojiParsedEmbedTitle} </a>`
|
|
287
|
-
: html `${emojiParsedEmbedTitle}`}
|
|
288
|
-
</div>`)}
|
|
289
|
-
<slot name="description"></slot>
|
|
290
|
-
<slot name="fields"></slot>
|
|
291
|
-
${when(this.image || this.video, () => html `<div class=${classMap({ 'discord-embed-media': true, 'discord-embed-media-video': Boolean(this.video) })}>
|
|
292
|
-
${this.renderMedia()}
|
|
293
|
-
</div>`)}
|
|
294
|
-
${when(this.thumbnail, () => html `
|
|
295
|
-
<img
|
|
296
|
-
src=${ifDefined(this.thumbnail)}
|
|
297
|
-
alt=${this.thumbnail}
|
|
298
|
-
@click=${() => (this.isThumbnailOpen = true)}
|
|
299
|
-
class="discord-embed-thumbnail"
|
|
300
|
-
/>
|
|
301
|
-
<discord-media-fullscreen-previewer
|
|
302
|
-
.isOpen=${this.isThumbnailOpen}
|
|
303
|
-
@close-full-screen=${() => (this.isThumbnailOpen = false)}
|
|
287
|
+
: html `${emojiParsedEmbedTitle}`}
|
|
288
|
+
</div>`)}
|
|
289
|
+
<slot name="description"></slot>
|
|
290
|
+
<slot name="fields"></slot>
|
|
291
|
+
${when(this.image || this.video, () => html `<div class=${classMap({ 'discord-embed-media': true, 'discord-embed-media-video': Boolean(this.video) })}>
|
|
292
|
+
${this.renderMedia()}
|
|
293
|
+
</div>`)}
|
|
294
|
+
${when(this.thumbnail, () => html `
|
|
295
|
+
<img
|
|
296
|
+
src=${ifDefined(this.thumbnail)}
|
|
297
|
+
alt=${this.thumbnail}
|
|
298
|
+
@click=${() => (this.isThumbnailOpen = true)}
|
|
299
|
+
class="discord-embed-thumbnail"
|
|
300
|
+
/>
|
|
301
|
+
<discord-media-fullscreen-previewer
|
|
302
|
+
.isOpen=${this.isThumbnailOpen}
|
|
303
|
+
@close-full-screen=${() => (this.isThumbnailOpen = false)}
|
|
304
304
|
.mediaItems=${[
|
|
305
305
|
{ media: this.thumbnail, type: DiscordMediaGalleryItem.isGif(this.thumbnail) ? 'image/gif' : 'image/webp' }
|
|
306
|
-
]}
|
|
307
|
-
></discord-media-fullscreen-previewer>
|
|
308
|
-
`)}
|
|
309
|
-
<slot name="footer"></slot>
|
|
310
|
-
</div>
|
|
311
|
-
</div>
|
|
312
|
-
${when(this.image, () => html `<discord-media-fullscreen-previewer
|
|
313
|
-
@close-full-screen=${() => (this.isImageOpen = false)}
|
|
314
|
-
.currentSlot=${0}
|
|
315
|
-
.isOpen=${this.isImageOpen}
|
|
316
|
-
.mediaItems=${[{ media: this.image, mimeType: 'image/webp' }]}
|
|
317
|
-
></discord-media-fullscreen-previewer>`)}
|
|
306
|
+
]}
|
|
307
|
+
></discord-media-fullscreen-previewer>
|
|
308
|
+
`)}
|
|
309
|
+
<slot name="footer"></slot>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
${when(this.image, () => html `<discord-media-fullscreen-previewer
|
|
313
|
+
@close-full-screen=${() => (this.isImageOpen = false)}
|
|
314
|
+
.currentSlot=${0}
|
|
315
|
+
.isOpen=${this.isImageOpen}
|
|
316
|
+
.mediaItems=${[{ media: this.image, mimeType: 'image/webp' }]}
|
|
317
|
+
></discord-media-fullscreen-previewer>`)}
|
|
318
318
|
</div> `;
|
|
319
319
|
}
|
|
320
320
|
renderMedia() {
|
|
321
321
|
if (this.video) {
|
|
322
|
-
return html `
|
|
323
|
-
<video
|
|
324
|
-
controls
|
|
325
|
-
muted
|
|
326
|
-
preload="none"
|
|
327
|
-
poster=${ifDefined(this.image)}
|
|
328
|
-
src=${ifDefined(this.video)}
|
|
329
|
-
height="225"
|
|
330
|
-
width="400"
|
|
331
|
-
class="discord-embed-video"
|
|
332
|
-
>
|
|
333
|
-
<img src=${ifDefined(this.image)} alt="Discord embed media" class="discord-embed-image" />
|
|
334
|
-
</video>
|
|
322
|
+
return html `
|
|
323
|
+
<video
|
|
324
|
+
controls
|
|
325
|
+
muted
|
|
326
|
+
preload="none"
|
|
327
|
+
poster=${ifDefined(this.image)}
|
|
328
|
+
src=${ifDefined(this.video)}
|
|
329
|
+
height="225"
|
|
330
|
+
width="400"
|
|
331
|
+
class="discord-embed-video"
|
|
332
|
+
>
|
|
333
|
+
<img src=${ifDefined(this.image)} alt="Discord embed media" class="discord-embed-image" />
|
|
334
|
+
</video>
|
|
335
335
|
`;
|
|
336
336
|
}
|
|
337
337
|
if (this.image) {
|
|
338
|
-
return html `<img
|
|
339
|
-
src=${ifDefined(this.image)}
|
|
340
|
-
alt="Discord embed media"
|
|
341
|
-
class="discord-embed-image"
|
|
342
|
-
@click=${() => (this.isImageOpen = true)}
|
|
338
|
+
return html `<img
|
|
339
|
+
src=${ifDefined(this.image)}
|
|
340
|
+
alt="Discord embed media"
|
|
341
|
+
class="discord-embed-image"
|
|
342
|
+
@click=${() => (this.isImageOpen = true)}
|
|
343
343
|
/>`;
|
|
344
344
|
}
|
|
345
345
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscordEmbed.js","sourceRoot":"","sources":["../../../src/components/discord-embed/DiscordEmbed.ts"],"names":[],"mappings":";;;;;;;;;AAAA,0DAA0D;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,+CAA+C,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAGrE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAkQN;;;;;;;;;WASG;QAEI,mBAAc,GAA6B,EAAE,CAAC;QA6C9C,eAAU,GAAG,KAAK,CAAC;QAGlB,oBAAe,GAAG,KAAK,CAAC;QAGxB,gBAAW,GAAG,KAAK,CAAC;
|
|
1
|
+
{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A/OM;IADN,QAAQ,EAAE;;2CACU;AAMd;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;;gDACb;AAMnB;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;;iDACb;AAMpB;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;;+CACb;AAMlB;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;;gDACb;AAanB;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;oDACsB;AAM9C;IADN,QAAQ,EAAE;;yCACQ;AAMZ;IADN,QAAQ,EAAE;;+CACc;AAMlB;IADN,QAAQ,EAAE;;2CACU;AAed;IADN,QAAQ,EAAE;;2CACU;AAQd;IADN,QAAQ,EAAE;;8CACa;AAIjB;IAFN,OAAO,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACzD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;;gDAC3C;AAGlB;IADP,KAAK,EAAE;;qDACwB;AAGxB;IADP,KAAK,EAAE;;iDACoB;AAhUhB,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAwdxB"}
|
|
@@ -19,31 +19,31 @@ let DiscordEmbedDescription = class DiscordEmbedDescription extends LitElement {
|
|
|
19
19
|
/**
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
|
-
static { this.styles = css `
|
|
23
|
-
:host {
|
|
24
|
-
font-size: 0.875rem;
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
grid-column: 1/1;
|
|
27
|
-
line-height: 1.125rem;
|
|
28
|
-
margin-top: 8px;
|
|
29
|
-
min-width: 0;
|
|
30
|
-
max-width: 400px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
::slotted(discord-code) {
|
|
34
|
-
--discord-code-background-color: color-mix(in oklab, hsl(230 calc(1 * 6.383%) 18.431% /1) 100%, #000 0%);
|
|
35
|
-
--discord-code-border: none;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([light-theme]) {
|
|
39
|
-
::slotted(discord-code) {
|
|
40
|
-
--background-color: #f3f3f4;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
slot::slotted(discord-header:first-child) {
|
|
45
|
-
--margin-top: 0px;
|
|
46
|
-
}
|
|
22
|
+
static { this.styles = css `
|
|
23
|
+
:host {
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
grid-column: 1/1;
|
|
27
|
+
line-height: 1.125rem;
|
|
28
|
+
margin-top: 8px;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
max-width: 400px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::slotted(discord-code) {
|
|
34
|
+
--discord-code-background-color: color-mix(in oklab, hsl(230 calc(1 * 6.383%) 18.431% /1) 100%, #000 0%);
|
|
35
|
+
--discord-code-border: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([light-theme]) {
|
|
39
|
+
::slotted(discord-code) {
|
|
40
|
+
--background-color: #f3f3f4;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
slot::slotted(discord-header:first-child) {
|
|
45
|
+
--margin-top: 0px;
|
|
46
|
+
}
|
|
47
47
|
`; }
|
|
48
48
|
render() {
|
|
49
49
|
return html ` <discord-white-space><slot></slot></discord-white-space>`;
|