Skip to content

Commit

Permalink
[#1979] Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Jan 30, 2024
1 parent 3caaac9 commit 33c8fac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 54 deletions.
2 changes: 0 additions & 2 deletions src/open_inwoner/js/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import './preview'
import './questionnaire'
import './readmore'
import './search'
import { TabPanel } from './tab-panels'
import './toggle'
import { StatusAccordion } from './cases/status_accordion'
import './session'
Expand All @@ -54,7 +53,6 @@ const elementWrappers = [
],
[Notification.selector, (elt) => new Notification(elt)],
[AnchorMobile.selector, (elt) => new AnchorMobile(elt)],
[TabPanel.selector, (elt) => new TabPanel(elt)],
[StatusAccordion.selector, (elt) => new StatusAccordion(elt)],
[FileInput.selector, (elt) => new FileInput(elt)],
]
Expand Down
49 changes: 0 additions & 49 deletions src/open_inwoner/js/components/tab-panels/index.js

This file was deleted.

14 changes: 11 additions & 3 deletions src/open_inwoner/scss/components/TabPanel/TabPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
scroll-margin-top: 150px;
}

&:active {
background-color: var(--color-white);
}

&.active {
border-bottom: 2px solid var(--color-primary);
color: var(--font-color-body);
Expand Down Expand Up @@ -141,17 +145,21 @@
font-weight: normal;
padding: var(--spacing-large) var(--spacing-large) var(--spacing-large) 0;

&:active {
background-color: var(--color-white);
}

&.active {
background-color: var(--color-white);
border-bottom: 2px solid var(--color-accent);
color: var(--color-accent);
font-weight: bold;
margin: 0;
}
}

.tab__content,
.tab__content.active {
margin: var(--spacing-giant) 0 0 0;
.tab__content {
margin: var(--spacing-mega) 0 0 0;
scroll-margin-top: 150px;

p {
Expand Down

0 comments on commit 33c8fac

Please sign in to comment.