Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

docs: hide the Run on Apify button on mobile devices (#2224)

Jindřich Bärb6ece5af6c1a
diff --git a/website/src/components/RunnableCodeBlock.module.css b/website/src/components/RunnableCodeBlock.module.css
index 7bd6a6621..5cbeabc56 100644
--- a/website/src/components/RunnableCodeBlock.module.css
+++ b/website/src/components/RunnableCodeBlock.module.css
@@ -16,6 +16,12 @@
width: 155px;
}
+@media screen and (max-width: 768px) {
+ .button {
+ display: none;
+ }
+}
+
.button svg {
height: 20px;
position: absolute;
diff --git a/website/src/css/custom.css b/website/src/css/custom.css
index dca840f2c..05ec5dfb3 100644
--- a/website/src/css/custom.css
+++ b/website/src/css/custom.css
@@ -422,10 +422,12 @@ html.plugin-typedoc-api .theme-doc-sidebar-menu > li:nth-child(6)::before {
cursor: pointer;
}
-.runnable-code-block .code-block.no-title pre + div {
- position: absolute;
- right: 170px;
- line-height: 28px;
+@media screen and (min-width: 768px) {
+ .runnable-code-block .code-block.no-title pre + div {
+ position: absolute;
+ right: 170px;
+ line-height: 28px;
+ }
}
.runnable-code-block .code-block button {