Skip to content

Commit

Permalink
fix(whatislove-dev): edit fonts according to the design wd-582 (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove authored Jun 10, 2024
1 parent 4c1487e commit 6bca1a8
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 23 deletions.
9 changes: 3 additions & 6 deletions apps/whatislove-dev/src/includes/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@
</ul>
<div class="footer__webring">
<a
class="footer__webring-link footer__webring-link--previous action"
class="footer__webring-link action"
href="https://🕸💍.ws/previous"
rel="prev"
aria-label="Webring go previous"
></a>
<a class="footer__webring-main" href="https://🕸💍.ws" target="_blank" rel="noreferrer noopener">
🕸️ IndieWeb Webring 💍
</a>
<a
class="footer__webring-link footer__webring-link--next action"
href="https://🕸💍.ws/next"
aria-label="Webring go next"
></a>
<a class="footer__webring-link action" href="https://🕸💍.ws/next" rel="next" aria-label="Webring go next"></a>
</div>
<p class="footer__copyright">&copy; 2020 – {{ global.currentYear }} {{ global.author }}. All rights reserved.</p>
<p class="footer__credits">
Expand Down
9 changes: 3 additions & 6 deletions apps/whatislove-dev/src/includes/pagination-list.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<nav class="{{ className }} pagination" aria-label="{{ name }}">
{% if pagination.href.previous %}
<a
class="pagination__link pagination__link--previous action"
class="pagination__link action"
href="{{ pagination.href.previous }}"
rel="prev"
aria-label="Previous page"
></a>
{% else %}
Expand All @@ -27,11 +28,7 @@
{% endfor %}
</ul>
{% if pagination.href.next %}
<a
class="pagination__link pagination__link--next action"
href="{{ pagination.href.next }}"
aria-label="Next page"
></a>
<a class="pagination__link action" href="{{ pagination.href.next }}" rel="next" aria-label="Next page"></a>
{% else %}
<span class="pagination__link pagination__link--next"></span>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion apps/whatislove-dev/src/styles/blocks/article-list.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.article-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
gap: 20px;
padding: 0;
margin: 0;
Expand Down
14 changes: 13 additions & 1 deletion apps/whatislove-dev/src/styles/blocks/button.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
.button {
--button-background-color-opacity: 6%;
--button-color: var(--color-red-100);
--button-background-color: var(--color-red-100) / 6%;
--button-background-color: var(--color-red-100) /
var(--button-background-color-opacity);

padding: 10px;
font-weight: 700;
color: hsl(var(--button-color));
text-decoration: none;
background-color: hsl(var(--button-background-color));
border-radius: 5px;

@media (hover: hover) {
&:hover {
--button-background-color-opacity: 12%;
}
}

@media (prefers-reduced-motion: no-preference) {
transition: background-color 0.2s ease-in;
}
}
2 changes: 1 addition & 1 deletion apps/whatislove-dev/src/styles/blocks/channel.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
min-inline-size: 140px;
padding-block: 15px;
padding-inline: 25px 40px;
font-weight: 500;
font-weight: 600;
text-align: center;
background-image: linear-gradient(
to var(--direction-gradient-text),
Expand Down
6 changes: 4 additions & 2 deletions apps/whatislove-dev/src/styles/blocks/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}

.footer__link {
font-weight: 600;
color: inherit;
text-underline-offset: 4px;
white-space: nowrap;
Expand All @@ -39,6 +40,7 @@
}

.footer__webring-main {
font-weight: 600;
color: inherit;
text-underline-offset: 5px;
}
Expand All @@ -57,11 +59,11 @@
mask-size: contain;
}

&[class*="--previous"]::before {
&[rel="prev"]::before {
mask-image: url("/images/icons.svg#arrow-left");
}

&[class*="--next"]::before {
&[rel="next"]::before {
mask-image: url("/images/icons.svg#arrow-right");
}
}
Expand Down
1 change: 1 addition & 0 deletions apps/whatislove-dev/src/styles/blocks/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@

.header__menu-link {
font-size: var(--font-size-heading-3);
font-weight: 600;
color: inherit;
text-underline-offset: 5px;

Expand Down
2 changes: 2 additions & 0 deletions apps/whatislove-dev/src/styles/blocks/pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
mask-size: 20px;
}

&[rel="prev"]::before,
&[class*="--previous"]::before {
mask-image: url("/images/icons.svg#arrow-left");
}

&[rel="next"]::before,
&[class*="--next"]::before {
mask-image: url("/images/icons.svg#arrow-right");
}
Expand Down
6 changes: 5 additions & 1 deletion apps/whatislove-dev/src/styles/blocks/social-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
margin: 0;
list-style: none;

@media (--width-tablet) {
gap: 20px 60px;
}

&[class*="--icons"] {
gap: 20px;
}
Expand All @@ -21,7 +25,7 @@
display: inline-flex;
gap: 12px;
align-items: center;
font-weight: 600;
font-weight: 700;
color: inherit;
text-decoration: none;

Expand Down
9 changes: 4 additions & 5 deletions apps/whatislove-dev/src/styles/globals/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--size-inline-box-wide: 1120px;
--size-inline-box-normal: 960px;
--size-inline-box: var(--size-inline-box-normal);
--padding-inline-box: 20px;
--padding-inline-box: 22px;
--padding-block-box: 25px;

@media (--width-tablet) {
Expand All @@ -23,8 +23,7 @@
--color-red-100: 0 90.91% 61.18%;
--color-red-200: 0 60.32% 51.57%;
--color-white-100: 0 0% 100%;
--color-white-200: 0 0% 97%;
--color-white-300: 30 1% 98%;
--color-white-200: 30 1% 98%;
--color-blue-100: 199.68 74.7% 50.39%;
--color-blue-200: 211.41 60.32% 48.43%;
--color-yellow-100: 51 100% 50%;
Expand Down Expand Up @@ -72,9 +71,9 @@

--color-page-background: var(--color-white-100);
--color-page-background-highlight: var(--color-black-100) / 5%;
--color-page-background-code: var(--color-white-300);
--color-page-background-code: var(--color-white-200);
--color-scroll-shadow: var(--color-black-100);
--color-intro-background: var(--color-white-200);
--color-intro-background: var(--color-white-100) / 60%;
--color-intro-image-mask: var(--color-white-100);
--color-technology-background: var(--color-black-100);
--color-icon: var(--color-black-200);
Expand Down

0 comments on commit 6bca1a8

Please sign in to comment.