Skip to content

Commit

Permalink
feat: fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
carolineguzylak committed Sep 6, 2023
1 parent d077e11 commit 5d2f119
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
42 changes: 32 additions & 10 deletions libs/components/src/expansion-panel/cv-expansion-panel-item.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
:host([isTopPanel]) {
.panel {
border-radius: 8px 8px 0px 0px;
border-radius: 8px 8px 0 0;
}
}

:host([isBottomPanel]) {
.panel {
border-radius: 0px 0px 8px 8px;
border-radius: 0 0 8px 8px;
border: none;
}
}
Expand All @@ -20,7 +20,7 @@

:host([isInnerPanel]) {
.panel {
border-radius: 0px;
border-radius: 0;
}
}

Expand All @@ -29,21 +29,26 @@
border-radius: 8px;
margin-top: 16px;
margin-bottom: 16px;
border-bottom: 0px;
border-bottom: 0;
}

.header {
min-height: 64px;
max-height: 64px;
}

.dropdown {
grid-template-rows: 1fr;
}

.closedIcon {
display: none;
}

.openedIcon {
display: inline-block;
}

::slotted([slot='content']) {
padding-bottom: 16px;
}
Expand All @@ -53,21 +58,26 @@
.panel {
border-radius: 8px;
margin-bottom: 16px;
border-bottom: 0px;
border-bottom: 0;
}

.header {
min-height: 64px;
max-height: 64px;
}

.dropdown {
grid-template-rows: 1fr;
}

.closedIcon {
display: none;
}

.openedIcon {
display: inline-block;
}

::slotted([slot='content']) {
padding-bottom: 16px;
}
Expand All @@ -77,21 +87,26 @@
.panel {
border-radius: 8px;
margin-top: 16px;
border-bottom: 0px;
border-bottom: 0;
}

.header {
min-height: 64px;
max-height: 64px;
}

.dropdown {
grid-template-rows: 1fr;
}

.closedIcon {
display: none;
}

.openedIcon {
display: inline-block;
}

::slotted([slot='content']) {
padding-bottom: 16px;
}
Expand All @@ -102,29 +117,33 @@
min-height: 64px;
max-height: 64px;
}

.dropdown {
grid-template-rows: 1fr;
}

.closedIcon {
display: none;
}

.openedIcon {
display: inline-block;
}

::slotted([slot='content']) {
padding-bottom: 16px;
}
}

:host([belowOpenInnerPanel]) {
.panel {
border-radius: 8px 8px 0px 0px;
border-radius: 8px 8px 0 0;
}
}

:host([aboveOpenInnerPanel]) {
.panel {
border-radius: 0px 0px 8px 8px;
border-radius: 0 0 8px 8px;
border-bottom: none;
}
}
Expand All @@ -143,14 +162,16 @@
background-color: var(--mdc-theme-surface, #ffffff);
transition: margin-bottom 0.5s, margin-top 0.5s;
}

.header {
min-height: 48px;
max-height: 48px;
padding: 0px 24px;
padding: 0 24px;
display: flex;
align-items: center;
transition: min-height 0.5s, max-height 0.5s;
}

.title {
width: var(--cv-expansion-panel-item-title-width, 200px);
overflow: hidden;
Expand All @@ -164,6 +185,7 @@
line-height: var(--mdc-typography-body1-line-height, 20px);
letter-spacing: 0.25px;
}

.contentPreview {
overflow: hidden;
text-overflow: ellipsis;
Expand Down Expand Up @@ -203,7 +225,7 @@
}

::slotted([slot='content']) {
padding: 0px 24px 16px 24px;
padding: 0 24px 16px;
}

.footer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { LitElement, css, html, unsafeCSS } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import styles from './cv-expansion-panel-item.scss?inline';
import '../icon/icon';
import '../action-ribbon/action-ribbon';

@customElement('cv-expansion-panel-item')
export class CovalentExpansionPanelItem extends LitElement {
Expand Down
2 changes: 1 addition & 1 deletion libs/components/src/expansion-panel/cv-expansion-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, css, html, unsafeCSS } from 'lit';
import { LitElement, html } from 'lit';
import {
customElement,
property,
Expand Down

0 comments on commit 5d2f119

Please sign in to comment.