1
0
forked from HPR/hpr_generator

apply a crafty style to the lane buttons

This commit is contained in:
Lee Hanken
2025-08-22 12:17:37 +01:00
parent e5d8d20e85
commit 6915d74de1
6 changed files with 188 additions and 21 deletions

View File

@@ -25,6 +25,12 @@ https://creativecommons.org/publicdomain/
local("BebasNeue"),
url("/css/bebas/BebasNeue.woff") format("woff");
}
@font-face {
font-family: "PatrickHand";
src:
local("PatrickHand"),
url("/css/PatrickHand/PatrickHand-Regular.ttf") format("ttf");
}
:root {
--background-primary: #fffff7/*#fafafa#fbfbee #dfdfdf */;
--text-primary: #4d4d4d; /* HPR Grey */
@@ -300,14 +306,31 @@ a.lane-button {
flex-direction: column;
justify-content: center;
margin: 0.5rem var(--link-spacing-horizontal);
padding: 0.5rem;
border-width: 5px;
padding: 0.5rem 0.25rem;
border-radius: 10px 25px 10px 25px;
border-width: 4px;
border-color: var(--lane-button-border);
border-style: solid;
border-radius: 5px;
border-radius: 10px;
text-align: center;
image-rendering: pixelated;
background-image: url("../images/lane-button-background.png");
}
a.lane-button p {
font-family: 'Patrick Hand', cursive;
text-transform: lowercase;
font-weight: bold;
font-size: 1.2em;
mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)), url("../images/charcoal.png");
mask-size: 20%;
mask-repeat: repeat;
background-clip: text;
color: black;
margin: -0.25rem;
transform: scaleY(1.1);
padding: 0.25rem;
}
a.lane-button:hover {
box-shadow:
1px 2px 2px var(--link-primary-hover),
@@ -315,8 +338,59 @@ a.lane-button:hover {
}
a.lane-button img {
height: clamp(95px, calc(100vw - var(--for-tablet-portrait-up)), 110px);
filter: invert(60%) sepia(50%) hue-rotate(140deg) saturate(200%);
transform: scaleX(0.9);
mask-image: url("../images/charcoal.png");
mask-size: 60%;
mask-repeat: repeat;
padding: 0.7rem;
box-sizing: border-box;
}
#podcast_lane a.lane-button:first-of-type img {
mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1)), url("../images/charcoal.png");
mask-size: 95%;
padding: 0px;
}
#podcast_lane a.lane-button:first-of-type p {
mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1)), url("../images/charcoal.png");
font-size: 1.3em;
}
section:nth-of-type(odd) .lane a:nth-of-type(1) {
border-radius: 20px 15px 25px 15px;
background-size: 400%;
background-position: 50% 0%;
}
section:nth-of-type(odd) .lane a:nth-of-type(2) {
border-radius: 20px 15px 25px 15px;
background-size: 200%;
background-position: 0% 50%;
}
section:nth-of-type(odd) .lane a:nth-of-type(3) {
border-radius: 10px 25px 15px 20px;
background-size: 400%;
background-position: 75% 0%;
}
section:nth-of-type(odd) .lane a:nth-of-type(4) {
border-radius: 15px 15px 10px 20px;
background-size: 200%;
background-position: 25% 0%;
}
section:nth-of-type(even) .lane a:nth-of-type(1) {
border-radius: 25px 10px 15px 15px;
}
section:nth-of-type(even) .lane a:nth-of-type(2) {
border-radius: 20px 10px 15px 10px;
background-size: 200%;
background-position: 50% 0%;
}
section:nth-of-type(even) .lane a:nth-of-type(3) {
border-radius: 10px 20px 10px 15px;
background-size: 200%;
background-position: % 50%;
}
section:nth-of-type(even) .lane a:nth-of-type(4) {
border-radius: 15px 10px 25px 30px;
background-size: 800%;
background-position: 55% 50%;
}
#tag_line,
#title {
@@ -512,4 +586,4 @@ fieldset > input {
#latest_lane.lane section {
flex: 1;
}
}
}