Skip to content

Commit

Permalink
fix: added user-select: none to most selectable non-text elements
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Sep 3, 2024
1 parent 53f36f8 commit 0113f2c
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/components/AnchorButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const { class: className, ...rest } = Astro.props;
transition:
var(--transitionFast) transform,
var(--transitionFast) box-shadow;
user-select: none;
}

.anchor-button:focus,
Expand Down
3 changes: 2 additions & 1 deletion src/components/Bio.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ const {
.bio-image {
border-radius: 100%;
height: var(--imageSize);
width: var(--imageSize);
margin-bottom: 0.5rem;
user-select: none;
width: var(--imageSize);
}

.name {
Expand Down
3 changes: 2 additions & 1 deletion src/components/BioLinks.astro
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const aliases = [
}

.bio-links-normal {
--bioLinkImageSize: 1rem;
--bioLinkImageSize: 1.15rem;
}

.bio-links-large {
Expand All @@ -109,6 +109,7 @@ const aliases = [
height: var(--bioLinkImageSize);
filter: brightness(1.5);
width: var(--bioLinkImageSize);
user-select: none;
}

.link-text {
Expand Down
1 change: 1 addition & 0 deletions src/components/FAQs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Note that talk tickets _do not_ include:

details summary img {
transition: var(--transitionMedium) transform;
user-select: none;
}

details[open] summary img {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ import AnchorButton from "./AnchorButton.astro";

.logos {
display: flex;
gap: 1rem;
flex-wrap: wrap;
width: 12rem;
gap: 1rem;
justify-content: center;
user-select: none;
width: 12rem;
}

.texts-line {
Expand Down
1 change: 1 addition & 0 deletions src/components/FunInfo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const sections = [
.emoji {
font-size: 3rem;
margin-right: 1rem;
user-select: none;
}

.title {
Expand Down
3 changes: 2 additions & 1 deletion src/components/HeroName.astro
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ const { class: className, ...rest } = Astro.props;
}

.squiggle {
position: absolute;
bottom: -0.5rem;
left: 0;
position: absolute;
user-select: none;
width: 100%;
}

Expand Down
1 change: 1 addition & 0 deletions src/components/Newsletter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const { class: className, ...rest } = Astro.props;
transition:
var(--transitionFast) transform,
var(--transitionFast) box-shadow;
user-select: none;
}

.button:focus:not(:disabled),
Expand Down
1 change: 1 addition & 0 deletions src/components/Partners.astro
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import HeadingFlanked from "./HeadingFlanked.astro";

.partner-logo {
transform: scale(0.9);
user-select: none;
}

html.dark .partner-logo-light,
Expand Down
1 change: 1 addition & 0 deletions src/components/SessionDiscord.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ const { discord } = Astro.props;
.image {
margin-right: 0.5rem;
opacity: 0.5;
user-select: none;
}
</style>
1 change: 1 addition & 0 deletions src/components/SpeakerImage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ const { size = 128 } = Astro.props;
<style>
.speaker-image {
border-radius: 100%;
user-select: none;
}
</style>
1 change: 1 addition & 0 deletions src/components/SquiggleFlanked.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const src = width === "full" ? squiggleFlankingFull : squiggleFlankingLean;
max-width: 11vw;
object-fit: cover;
object-position: right;
user-select: none;
}

.squiggle-right {
Expand Down
13 changes: 12 additions & 1 deletion src/components/TicketsButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ import { links } from "~/data/index";
import AnchorButton from "./AnchorButton.astro";
---

<AnchorButton href={links.tickets} target="_blank" rel="noreferrer">
<AnchorButton
href={links.tickets}
class="tickets"
target="_blank"
rel="noreferrer"
>
Tickets Available Now
</AnchorButton>

<style>
.tickets {
user-select: none;
}
</style>
9 changes: 5 additions & 4 deletions src/components/VenuePhotos.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ const { class: className, ...rest } = Astro.props;

<style>
.title {
align-items: center;
display: flex;
font-family: var(--fontFamilyHeading);

line-height: var(--lineHeightBody);
font-size: var(--fontSizeH3);
display: flex;
align-items: center;
justify-content: center;
line-height: var(--lineHeightBody);
}

.emoji {
font-size: 3rem;
margin-right: 1rem;
user-select: none;
}

.venue-photos {
Expand All @@ -57,6 +57,7 @@ const { class: className, ...rest } = Astro.props;
border-radius: 0.5rem;
border: 1px solid var(--colorBackdropOff);
box-shadow: 0 0 0.125rem var(--colorTextShadow);
user-select: none;
}

.description {
Expand Down
18 changes: 9 additions & 9 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const bios: Omit<BioProps, "size">[] = [

<br />

<HeadingFlanked class="about-heading" id="dei-scholarship"
>DEI Scholarship</HeadingFlanked
>
<HeadingFlanked class="about-heading" id="dei-scholarship">
DEI Scholarship
</HeadingFlanked>

<BodyText as="p" size="large" width="full">
We believe that a thriving tech industry needs to be diverse, equitable,
Expand All @@ -90,9 +90,9 @@ const bios: Omit<BioProps, "size">[] = [
Apply for the DEI Scholarship
</AnchorButton>

<HeadingFlanked class="about-heading" id="volunteering"
>Volunteering</HeadingFlanked
>
<HeadingFlanked class="about-heading" id="volunteering">
Volunteering
</HeadingFlanked>

<BodyText as="p" size="large" width="full">
Volunteering gives you an opportunity to get right in the thick of the
Expand All @@ -112,9 +112,9 @@ const bios: Omit<BioProps, "size">[] = [
Volunteer at SquiggleConf
</AnchorButton>

<HeadingFlanked class="about-heading" id="squiggle-tools"
>Squiggle.Tools</HeadingFlanked
>
<HeadingFlanked class="about-heading" id="squiggle-tools">
Squiggle.Tools
</HeadingFlanked>

<BodyText as="p" size="large" width="full">
SquiggleConf is a production of Squiggle.Tools, a nonprofit organization
Expand Down

0 comments on commit 0113f2c

Please sign in to comment.