Skip to content

Commit

Permalink
Usability-Verbesserungen:
Browse files Browse the repository at this point in the history
-  Custom Property --links-color-visited für besuchte Links
- Custom Property --links-outline-focus für fokussierte Links
  • Loading branch information
denniserdmann committed Oct 24, 2024
1 parent 7ecaefb commit 7196b8b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
7 changes: 5 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ html {
// --------------------------------------------------

// COMPONENTS/LINKS
--links-color: var(--color-highlight);
--links-color-hover: var(--color-highlight);
--links-color: var(--color-highlight);
--links-color-hover: var(--color-highlight);
--links-color-visited: var(--links-color);
--links-outline-focus: 2px dotted var(--links-outline-color, var(--color-highlight));
--links-outline-active: none;

--button-color: var(--color-text-inverted);
--button-background: var(--color-highlight);
Expand Down
39 changes: 29 additions & 10 deletions scss/base/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,65 @@

// set a default margin-bottom for some elements
// [1] call every headline element (h1-h6)
#{headings()} { // [1]
#{headings()} {
// [1]
margin-top: 0;
margin-bottom: var(--base-spacing-unit-sm);
}

ul, ol, dl,
blockquote, p, address,
ul,
ol,
dl,
blockquote,
p,
address,
hr,
fieldset, figure,
fieldset,
figure,
pre {
margin-bottom: var(--base-spacing-unit);
}


// set a default margin-left for some elements
ul, ol, dd {
ul,
ol,
dd {
margin-left: var(--base-spacing-unit);
}


// Micro clearfix, as per: css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
.clearfix {
&:after {
content: "";
content: '';
display: table;
clear: both;
}
}


// hyperlink
a,
[tabindex='0'] {
&:focus-visible {
outline: var(--links-outline-focus);
}

&:active {
outline: var(--links-outline-active);
}
}

a {
color: var(--links-color);

&:visited {
color: var(--links-color-visited);
}
}

:not(p) a {
text-decoration: none;
}


// images
figure {
margin: 0;
Expand Down

0 comments on commit 7196b8b

Please sign in to comment.