Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHS 5178 Ocean color scheme link contrast adjustments #1426

Merged
merged 6 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_airy/css/humsci_airy.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@
left: 0;
}

.hc-pairing-ocean & {
@include hb-pairing-color('background-color', 'secondary-darken-12');
}

&:only-child {
position: relative;
bottom: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
border: none;
@include hb-pairing-color('color', 'tertiary-reversed');
}

.hc-pairing-ocean & {
@include hb-pairing-color('color', 'secondary-darken-12');
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@
box-shadow: 0 0 0 hb-calculate-rems(1px) var(--palette--secondary-active);
}
}

.hc-pairing-ocean & {
@include hb-pairing-color('background-color', 'secondary-darken-12');
@include hb-pairing-color('border-color', 'secondary-darken-12');

&:hover {
@include hb-pairing-color('background-color', 'primary-dark');
@include hb-pairing-color('border-color', 'primary-dark');
}
}
}

@mixin hb-big-button {
Expand Down Expand Up @@ -171,6 +181,16 @@
}
}
}

.hc-pairing-ocean & {
@include hb-pairing-color('border-color', 'secondary-darken-12');
@include hb-pairing-color('color', 'secondary-darken-12');

&:hover {
@include hb-global-color('color', 'white');
@include hb-pairing-color('background-color', 'secondary-darken-12');
}
}
}

@mixin hb-reset-button {
Expand Down Expand Up @@ -239,4 +259,19 @@
box-shadow: none;
}
}

.hc-pairing-ocean & {
@include hb-pairing-color('color', 'secondary-darken-12');
@include hb-pairing-color('border-bottom-color', 'secondary-darken-12');

&:hover {
@include hb-pairing-color('color', 'primary-dark');
@include hb-pairing-color('border-bottom-color', 'primary-dark');

background-color: transparent;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@
}
}
}

.hc-pairing-ocean .hb-well & {
@include hb-pairing-color('color', 'primary');
}
}

// More Link Styles
Expand All @@ -232,6 +236,16 @@
background-size: 85%;
transition: hb-transition(transform);
will-change: contents;

.hc-pairing-ocean & {
@include hb-icon-link-arrow('primary');
background-size: 85%;
}

.hc-pairing-ocean .hb-well & {
@include hb-icon-link-arrow('secondary-darken-12');
background-size: 85%;
}
}

&:hover,
Expand All @@ -245,6 +259,11 @@
@include hb-icon-link-arrow('secondary-darken-12');
background-size: 85%;
transform: translateX(0.25rem);

.hc-pairing-ocean & {
@include hb-icon-link-arrow('primary-dark');
background-size: 85%;
}
}
}

Expand Down Expand Up @@ -314,6 +333,14 @@
}
}
}

.hc-pairing-ocean & {
@include hb-pairing-color('color', 'secondary-darken-12');

&:hover {
@include hb-pairing-color('color', 'primary-dark');
}
}
}

// Arrow style link for Colorful Theme
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@
> p,
> div {
margin: 0;

&::before {
position: absolute;
content: open-quote;
margin-left: hb-calculate-rems(-16px);
}

&::after {
position: absolute;
content: close-quote;
Expand Down Expand Up @@ -277,7 +277,8 @@
text-transform: inherit;
@include hb-pairing-color('color', 'secondary');

.hb-well & {
.hb-well &,
.hc-pairing-ocean & {
@include hb-pairing-color('color', 'secondary-darken-12', $important: true);
}
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.