From 28992f5d8d03e875b2559418e5330e460282ce38 Mon Sep 17 00:00:00 2001 From: daudix Date: Fri, 16 Feb 2024 01:57:09 +0300 Subject: [PATCH] Figured it out; Only opaque or frosted elements should cast shadow, othervise only edge highlight should be used --- content/demo/index.md | 2 +- sass/_main.scss | 8 ++++---- sass/_statements.scss | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/demo/index.md b/content/demo/index.md index 8f685b8..3d35514 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -263,7 +263,7 @@ The ASCII Abraham Lincoln portrait -Abraham Lincoln +Abraham Lincoln Abraham Lincoln (/ˈlɪŋkən/ LINK-ən; February 12, 1809 – April 15, 1865) was an American lawyer, politician, and statesman who served as the 16th president of the United States from 1861 until his assassination in 1865. Lincoln led the United States through the American Civil War, defending the nation as a constitutional union, defeating the insurgent Confederacy, abolishing slavery, expanding the power of the federal government, and modernizing the U.S. economy. diff --git a/sass/_main.scss b/sass/_main.scss index b3c52b6..4bcb46e 100644 --- a/sass/_main.scss +++ b/sass/_main.scss @@ -214,13 +214,13 @@ code:not(pre code) { } pre { - line-height: normal; // Unset line height - padding: 1rem; - margin: 1rem 0 1rem; border-radius: var(--rounded-corner); - max-width: 100vw; box-shadow: var(--edge-highlight), var(--shadow); + line-height: normal; // Unset line height + margin: 1rem 0 1rem; + max-width: 100vw; overflow: auto; + padding: 1rem; table td { padding: 0; diff --git a/sass/_statements.scss b/sass/_statements.scss index 5f667b7..8d7db93 100644 --- a/sass/_statements.scss +++ b/sass/_statements.scss @@ -2,7 +2,7 @@ margin: 1rem 0 1rem; padding: 1rem 1rem 0.5rem 1rem; border-radius: var(--rounded-corner); - box-shadow: var(--edge-highlight), var(--shadow); + box-shadow: var(--edge-highlight); * { margin: 0;