Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 5 additions & 1 deletion src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ function RootShell({ children }: { children: ReactNode }) {
<head>
<HeadContent />
</head>
<body>
<body
onContextMenu={(event) => event.preventDefault()}
onCopy={(event) => event.preventDefault()}
onCut={(event) => event.preventDefault()}
>
{children}
<Scripts />
</body>
Expand Down
31 changes: 31 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,37 @@

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@utility float-slow { animation: float 6s ease-in-out infinite; }
/* ===========================
Copy Protection
Prevent normal content selection/copying while preserving
text entry and selection inside interactive controls.
=========================== */
body {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}

input,
textarea,
select,
button,
[contenteditable="true"],
[contenteditable=""],
[role="textbox"] {
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}

img,
svg {
-webkit-user-drag: none;
user-drag: none;
}

/* ===========================
Blog Markdown Styling
=========================== */
Expand Down
Loading