Skip to content

Instantly share code, notes, and snippets.

@ihabunek
Created January 15, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihabunek/b14f14d2b948df9d99380f8a5d207506 to your computer and use it in GitHub Desktop.
Save ihabunek/b14f14d2b948df9d99380f8a5d207506 to your computer and use it in GitHub Desktop.
From 53fec5930a999b22fcb633495ae61d24fa997614 Mon Sep 17 00:00:00 2001
From: Ivan Habunek <ivan@habunek.com>
Date: Tue, 15 Jan 2019 11:07:30 +0100
Subject: [PATCH git.sr.ht] This is the title, upto 50 chars
To: ~sircmpwn/sr.ht-dev@lists.sr.ht
The rest of the commit message goes here.
---
Whatever other text can go here.
scss/main.scss | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/scss/main.scss b/scss/main.scss
index 545fe15..9d2d9c0 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -81,6 +81,17 @@ pre {
padding-left: 0.5rem;
padding-right: 0.5rem;
background: #eee;
+
+ a:target::before, a.selected::before {
+ display: block;
+ content: "";
+ // +2px to connect multiple selected lines
+ height: calc(1rem + 2px);
+ width: 100%;
+ z-index: -1;
+ position: absolute;
+ background: lighten($blue, 35);
+ }
}
.highlight {
--
2.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment