Skip to content

Commit

Permalink
fix: Commit styles.css in src
Browse files Browse the repository at this point in the history
  • Loading branch information
simonknittel committed Jan 23, 2024
1 parent ada609a commit 1bbc86c
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_modules
# Don't include the compiled files in the repo.
# They should be uploaded to GitHub releases instead.
main.js
styles.css
/styles.css

# Exclude sourcemaps
*.map
Expand Down
68 changes: 68 additions & 0 deletions src/CreateModal/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.create-task__create-modal {
container-type: inline-size;
}

.create-task__create-modal-heading {
display: flex;
justify-content: space-between;
align-items: center;
}

.create-task__create-modal-heading button {
gap: var(--size-4-2);
}

.create-task__create-modal-row {
display: grid;
grid-template-rows: auto auto;
gap: var(--size-4-4);
border-top: 1px solid var(--background-modifier-border);
border-bottom: 1px solid var(--background-modifier-border);
padding-top: var(--size-4-4);
padding-bottom: var(--size-4-4);
}

@container (min-width: 500px) {
.create-task__create-modal-row {
grid-template-rows: auto;
grid-template-columns: 1fr 1fr;
gap: var(--size-4-8);
}
}

.create-task__create-modal-row + .create-task__create-modal-row {
border-top: none;
}

.create-task__create-modal-left {
display: flex;
gap: var(--size-4-2);
}

.create-task__create-modal-right select,
.create-task__create-modal-right input,
.create-task__create-modal-right textarea {
width: 100%;
}

.create-task__create-modal-right textarea {
resize: vertical;
}

.create-task__create-modal-actions {
display: flex;
justify-content: flex-end;
gap: var(--size-4-2);
margin-top: var(--size-4-4);
}

.create-task__preview {
display: block;
word-break: break-all;
padding: var(--size-4-4);
background-color: var(--code-background);
white-space: var(--code-whitespace);
font-size: var(--code-size);
border-radius: var(--radius-s);
margin-top: var(--size-4-2);
}
2 changes: 2 additions & 0 deletions src/settings/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "./AddCustomNote.css";
@import "./CustomNotes.css";
27 changes: 27 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/

@import "./CreateModal/styles.css";
@import "./settings/styles.css";

.create-task__info {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
line-height: var(--line-height-tight);
margin-top: var(--size-4-2);
margin-bottom: 0;
}

.create-task__error {
color: var(--text-error);
font-size: var(--font-ui-smaller);
line-height: var(--line-height-tight);
margin-top: var(--size-4-2);
margin-bottom: 0;
}

0 comments on commit 1bbc86c

Please sign in to comment.