Skip to content

Commit

Permalink
refactor: remove duplicate CSS selectors from themes (#7568)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Jul 18, 2024
1 parent 27284bc commit d3dad14
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ registerStyles(
[part='drawer'] {
background: var(--material-background-color);
}
[part='drawer'] {
border-inline-end: 1px solid var(--material-secondary-background-color);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ const drawerToggle = css`
margin-inline-end: 1em;
}
[part='icon'],
[part='icon']::after,
[part='icon']::before {
background-color: currentColor;
}
[part='icon'] {
top: 18px;
left: 15px;
Expand All @@ -26,6 +20,7 @@ const drawerToggle = css`
[part='icon'],
[part='icon']::after,
[part='icon']::before {
background-color: currentColor;
height: 2px;
width: 18px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ const datePickerOverlay = css`
max-height: calc(var(--lumo-size-m) * 14);
overflow: hidden;
-webkit-tap-highlight-color: transparent;
}
[part='overlay'] {
flex-direction: column;
}
Expand Down
12 changes: 3 additions & 9 deletions packages/login/theme/lumo/vaadin-login-overlay-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ const loginOverlayWrapper = css`
background: var(--lumo-base-color) linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
}
[part='content'] {
padding: 0;
}
[part='overlay'] {
background: none;
border-radius: 0;
Expand All @@ -26,11 +22,6 @@ const loginOverlayWrapper = css`
height: 100%;
}
[part='card'] {
width: calc(var(--lumo-size-m) * 10);
background: var(--lumo-base-color) linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
}
[part='brand'] {
padding: var(--lumo-space-l) var(--lumo-space-xl) var(--lumo-space-l) var(--lumo-space-l);
background-color: var(--lumo-primary-color);
Expand All @@ -49,9 +40,12 @@ const loginOverlayWrapper = css`
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
[part='card'] {
width: calc(var(--lumo-size-m) * 10);
background: var(--lumo-base-color) linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
border-radius: var(--lumo-border-radius-l);
box-shadow: var(--lumo-box-shadow-s);
margin: var(--lumo-space-s);
Expand Down
6 changes: 1 addition & 5 deletions packages/tabs/theme/lumo/vaadin-tab-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ registerStyles(
will-change: transform;
}
:host([selected])::before,
:host([selected])::after {
background-color: var(--_selection-color);
}
:host([orientation='vertical'])::before,
:host([orientation='vertical'])::after {
left: 0;
Expand All @@ -120,6 +115,7 @@ registerStyles(
:host([selected])::before,
:host([selected])::after {
background-color: var(--_selection-color);
transform: translateX(-50%) scale(1);
transition-timing-function: cubic-bezier(0.12, 0.32, 0.54, 1.5);
}
Expand Down
3 changes: 0 additions & 3 deletions packages/tabs/theme/material/vaadin-tabs-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ registerStyles(
css`
:host {
-webkit-tap-highlight-color: transparent;
}
:host {
display: flex;
flex-shrink: 0;
}
Expand Down

0 comments on commit d3dad14

Please sign in to comment.