Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 42768e7

Browse files
committed
style: move styles into CSS
1 parent 69f521a commit 42768e7

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

main.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,12 @@ class CssSnippetStoreModal extends Modal {
276276
onOpen() {
277277
const { contentEl } = this;
278278
contentEl.addClass('snippet-store-modal');
279-
280-
this.modalEl.style.width = '90vw';
281-
this.modalEl.style.maxWidth = '1098px';
282-
this.modalEl.style.height = '90vh';
279+
this.modalEl.addClass('snippet-store-modal-element');
283280

284281
contentEl.createEl('h1', { text: 'CSS Snippet Store' });
285282

286283
const topContainer = contentEl.createDiv();
287-
topContainer.style.marginBottom = '1rem';
284+
topContainer.addClass('snippet-store-top-container');
288285

289286
const searchInput = topContainer.createEl('input', {
290287
type: 'text',

styles.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,14 @@
4545
height: auto;
4646
display: block;
4747
margin: 1rem auto;
48+
}
49+
50+
.snippet-store-modal-element {
51+
width: 90vw;
52+
max-width: 1098px;
53+
height: 90vh;
54+
}
55+
56+
.snippet-store-top-container {
57+
margin-bottom: 1rem;
4858
}

0 commit comments

Comments
 (0)