Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #4798

Merged
merged 15 commits into from
Aug 27, 2024
Merged

Staging #4798

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions apps/pwabuilder/src/script/components/app-file-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ export class FileInput extends LitElement implements FileInputElement {
render() {
return html`
<div>
<fast-button
class="file-button"
appearance="lightweight"
<sl-button
variant="secondary"
@click=${this.clickModalInput}
>
${this.buttonText}
</fast-button>
</sl-button>
<input
id="${ifDefined(this.inputId)}"
class="file-input hidden"
Expand Down
3 changes: 3 additions & 0 deletions apps/pwabuilder/src/script/pages/app-home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export class AppHome extends LitElement {
display: flex;
flex-direction: column;
}
#input-box::part(input) {
-webkit-text-fill-color: var(--sl-input-color);
}
#start-button {
grid-area: 1 / 5 / auto / auto;
width: 100%;
Expand Down
12 changes: 6 additions & 6 deletions apps/pwabuilder/src/script/pages/image-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ export class ImageGenerator extends LitElement {
font-size: 10px;
}


app-file-input:hover {
cursor: pointer;
}

sl-button {
height: 24px;
padding: 8px 0;
Expand All @@ -109,6 +104,11 @@ export class ImageGenerator extends LitElement {
margin-top: 8px;
}

#submit sl-button::part(base) {
background-color: var(--primary-color);
border-color: var(--primary-color);
}

.background {
background-color: var(--primary-color);
color: var(--font-color);
Expand Down Expand Up @@ -229,7 +229,7 @@ export class ImageGenerator extends LitElement {
</div>
</section>
<section id="submit" class="form-bottom">
<sl-button id="generateButton" class="primary" ?disabled=${!this.generateEnabled || this.generating}
<sl-button id="generateButton" variant="primary" ?disabled=${!this.generateEnabled || this.generating}
@click=${this.generateZip}
?loading=${this.generating}>
${localeStrings.button.generate}
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="UTF-8">
<title>PWABuilder Suite Documentation</title>
<title>PWABuilder Suite Documentation - test</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Documentation for building great progressive web apps with the PWABuilder tooling suite.">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
Expand All @@ -15,8 +15,8 @@
<link rel="icon" href="/assets/icons/icon_24.png" type="image/png" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.75/dist/themes/light.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.75/dist/shoelace.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.16.0/dist/themes/light.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.16.0/cdn/shoelace-autoloader.js"></script>

<link rel="stylesheet" href="styles/global.css"/>
<link rel="stylesheet" href="styles/vs-prism.css" />
Expand Down
23 changes: 22 additions & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"@types/node": "^20.4.2",
"cpx": "^1.5.0",
"docsify-cli": "^4.4.4"
"docsify-cli": "^4.4.4",
"typescript": "^5.5.4"
}
}
20 changes: 17 additions & 3 deletions docs/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ sl-menu-item[checked]::part(base) {
border:#ada6b4 1px solid;
}

sl-menu::part(base) {
sl-menu {
width: 100%;
border-radius: 10px;
background: linear-gradient(to right, #f9f4ff, #e7f6fa);
}

sl-menu-item::part(base):hover {
sl-menu-item:hover::part(base), sl-menu-item:focus-within::part(base) {
background: #4F3FB6;
color: white;
border: 1px solid white;
Expand Down Expand Up @@ -160,4 +160,18 @@ sl-alert::part(base) {

sl-alert::part(icon) {
color: #491576;
}
}

/* Search Input */

.sidebar .search input[type=search]::placeholder {
color: rgba(0, 0, 0, 0.886);
}

.sidebar .search .clear-button svg {
background: #4d4d4d;
border-radius: 50%;
}

/* sl-menu-item */

Loading