Skip to content

Commit

Permalink
style: refine styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rue-pro committed Apr 13, 2024
1 parent b4d0cda commit 0b4c40c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
19 changes: 15 additions & 4 deletions src/popup/app/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,28 @@ h2 {
main {
width: 320px;
height: 480px;
padding: var(--spacing-5) var(--spacing-2);
overflow-y: auto;
scrollbar-gutter: stable both-edges;
}

ul {
list-style: none;
}

.settings-opener {
margin-inline: auto 0;
margin-bottom: var(--spacing-2);
}

.form {
&__title {
margin-bottom: var(--spacing-2);
}
display: flex;
flex-direction: column;
gap: var(--spacing-2);

&__footer {
display: flex;
gap: var(--spacing-2);
justify-content: flex-end;
margin-top: var(--spacing-2);
}
}
2 changes: 1 addition & 1 deletion src/popup/entities/note/ui/NoteCard/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
grid-template-columns: 1fr auto;
gap: var(--spacing-2);
justify-content: space-between;
padding: var(--spacing-4);
padding: var(--spacing-1);
border-bottom: 1px solid var(--color-neutral-200);

&__content {
Expand Down
3 changes: 2 additions & 1 deletion src/popup/shared/ui/Modal/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
max-width: 100%;
height: 100%;
max-height: 100%;
padding: var(--spacing-5);
padding: var(--spacing-5) var(--spacing-2);
background-color: var(--color-neutral-50);
border: none;

&__close-btn {
margin-inline: auto 0;
margin-bottom: var(--spacing-2);
}
}
1 change: 1 addition & 0 deletions src/popup/shared/ui/Tabs/ui/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

.tab {
cursor: pointer;
user-select: none;
background-color: transparent;
border-inline: none;
border-top: none;
Expand Down
5 changes: 5 additions & 0 deletions src/popup/widgets/note/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.container {
display: flex;
flex-direction: column;
gap: var(--spacing-2);
}
2 changes: 1 addition & 1 deletion src/popup/widgets/settings/ui/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Settings = () => {
return (
<>
<Button
className="settings_opener"
className="settings-opener"
variant="secondary"
startIcon={<SettingsIcon />}
aria-label={browser.i18n.getMessage('SETTINGS_OPEN')}
Expand Down

0 comments on commit 0b4c40c

Please sign in to comment.