Skip to content

Commit

Permalink
fix: css variables
Browse files Browse the repository at this point in the history
  • Loading branch information
danieIabel committed Feb 15, 2023
1 parent 30e4fd1 commit 74d1858
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions dist/js/feeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@
if (Default.styles) {
createStyle(`
.widget-feeds {
--feeds-image-margin: 1rem;
--feeds-margin: 1rem;
--feeds-gap: 1.25rem;
--feeds-border: ${Default.border};
padding: var(--feeds-gap);
display: flex;
max-width: 100%;
border: 1px solid var(--feeds-border);
border-radius: .5rem;
background: ${Default.background};
background: var(--feeds-background, ${Default.background});
}
.widget-feeds,
Expand All @@ -123,12 +123,12 @@
}
.feeds-column .feeds-header {
margin-right: var(--feeds-image-margin);
margin-right: var(--feeds-margin);
width: 80px;
}
.feeds-row .feeds-header {
margin-bottom: var(--feeds-image-margin);
margin-bottom: var(--feeds-margin);
width: 100%;
--feeds-ratio-y: 9;
--feeds-ratio-x: 16;
Expand All @@ -149,9 +149,9 @@
.feeds-link {
text-decoration: none;
color: var(--feeds-title-weight, ${Default.title});
font-weight: var(--feeds-title-weight, 500);
font-size: var(--feeds-title-size, 1rem);
color: var(--feeds-title-color, ${Default.title});
font-weight: 500;
font-size: 1rem;
margin-top: .5rem;
display: block;
}
Expand All @@ -161,7 +161,7 @@
text-decoration: none;
display: inline-block;
border-radius: 5rem;
padding: var(--feeds-category-padding, .25rem .875rem);
padding: .25rem .875rem;
background-color: var(--feeds-category-bg, ${Default.categorybg});
color: var(--feeds-category-color, ${Default.category});
font-size: .875rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/feeds.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 74d1858

Please sign in to comment.