Skip to content

Commit

Permalink
Add note-list focus styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
flachware committed Mar 25, 2017
1 parent 3f9638f commit dd71258
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 12 additions & 3 deletions src/stylesheets/components/note/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,26 @@ $panel-separator-color: #ddd !default;
}

&.active {
color: $note-active-color;
background: $note-active-bg;
color: $note-list-active-color;
background: $note-list-active-bg;

@at-root #{selector-replace(&, ".note.list", ".note.list:focus")} {
color: $note-list-focus-color;
background: $note-list-focus-bg;
}

&::before {
content: none;
}

& + .note {
border-top: 1px solid $note-active-bg;
border-top: 1px solid $note-list-active-bg;
padding-top: ($note-padding-vertical - 1px);

@at-root #{selector-replace(&, ".note.list", ".note.list:focus")} {
border-top-color: $note-list-focus-bg;
}

&::before {
content: none;
}
Expand Down
6 changes: 4 additions & 2 deletions src/stylesheets/themes/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ $photo-list-active-color: $shade-8;
$photo-list-active-bg: $shade-3;

// Note list
$note-active-color: $shade-0;
$note-active-bg: $brand-primary;
$note-list-focus-color: $shade-0;
$note-list-focus-bg: $brand-primary;
$note-list-active-color: $shade-8;
$note-list-active-bg: $shade-3;

// Editable
$editable-color: $text-color;
Expand Down

0 comments on commit dd71258

Please sign in to comment.