Skip to content

Commit

Permalink
Div CSS Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rawsta committed Jun 3, 2024
1 parent 30f71bd commit c5d8518
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/assets/css/blocks/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
text-decoration: none;
}

.card:hover,
.card:focus-within {
/* .card:hover,
.card:focus-within { */
.card:is(:hover, :focus, :active, :focus-within) {
border: 4px solid var(--color-primary);
transform: translateY( calc( var(--space-xs) * -1 ) );
}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/components/custom-split.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

custom-split {
--region-space-top: var(--space-3xl);
--region-space-top: var(--space-xs);
--gutter: var(--space-m);
font-family: var(--font-display);
font-size: var(--size-step-1);
Expand Down
1 change: 1 addition & 0 deletions src/assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import 'global/global-styles.css';

@import-glob 'blocks/*.css';
@import-glob 'components/*.css';
@import-glob 'compositions/*.css';
@import-glob 'utilities/*.css';

Expand Down
12 changes: 9 additions & 3 deletions src/assets/css/global/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,23 @@ h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
dd,
ul,
ol,
pre,
code {
margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
:where(ul[role="list"]),
:where(ol[role="list"]) {
padding: 0;
list-style: none;
}

Expand Down
6 changes: 6 additions & 0 deletions src/assets/css/global/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
var(--color-text-accent) 60%, var(--color-text-accent) 79%,
transparent 79%, transparent 80%,
var(--color-bg-accent-2) 80%);


--icon-chevron: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d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GF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMTIuNSA3SDExdjZsNS4yNSAzLjE1Ljc1LTEuMjMtNC41LTIuNjd6Ii8+PC9zdmc+");

}

/* Default / Dark theme specific variables */
Expand Down

0 comments on commit c5d8518

Please sign in to comment.