From eb519696c8e5e249112fe83a69cc9faffa4d4ab7 Mon Sep 17 00:00:00 2001
From: Vitthal Popat Gund <97181033+VitthalGund@users.noreply.github.com>
Date: Mon, 9 Oct 2023 00:14:46 +0530
Subject: [PATCH 1/6] Update nerd-font-tweaks.scss
GitHub icon css is added
---
_includes/css/nerd-font-tweaks.scss | 35 ++++++++++++++++++++++++-----
1 file changed, 29 insertions(+), 6 deletions(-)
diff --git a/_includes/css/nerd-font-tweaks.scss b/_includes/css/nerd-font-tweaks.scss
index 7f198478b..807f2cf11 100644
--- a/_includes/css/nerd-font-tweaks.scss
+++ b/_includes/css/nerd-font-tweaks.scss
@@ -310,12 +310,12 @@ a.nerd-font-button:before {
font-size: 2em
}
-#forkongithub .nf {
- font-size: 1.25rem;
-}
+// #forkongithub .nf {
+// font-size: 1.25rem;
+// }
/* for any ASCII :) */
-
+/*
#forkongithub span {
font-size: 1.75rem;
}
@@ -323,7 +323,7 @@ a.nerd-font-button:before {
#forkongithub a {
display: inline-block;
}
-
+*/
/* color scheme */
.nf1 {
@@ -476,6 +476,7 @@ a.nerd-font-button:before {
}
/* ----- fork on github banner ----- */
+/*
#forkongithub a {
color: #fff;
background: #1E5D8A;
@@ -533,6 +534,28 @@ a.nerd-font-button:before {
box-sizing: content-box;
}
}
+*/
+// Github url button
+
+@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
+
+#github {
+ text-decoration: none;
+ color: #ffffff;
+ background-color: #ffffff;
+ width: 60px;
+ height: 60px;
+ text-align: center;
+ line-height: 60px;
+ border-radius: 25%;
+ font-size: 2.5em;
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, .8);
+ transition: all .3s ease-in-out;
+ position: fixed;
+ bottom: 0.7rem;
+ right: 0.7rem;
+ z-index: 10;
+}
.icon-backdrop {
/* position: absolute;
@@ -782,4 +805,4 @@ a.nerd-font-button:before {
.text-left {
text-align: left;
-}
\ No newline at end of file
+}
From e87c7c4479e560a66ab8b9f08209f73bb7390c61 Mon Sep 17 00:00:00 2001
From: Vitthal Popat Gund <97181033+VitthalGund@users.noreply.github.com>
Date: Mon, 9 Oct 2023 00:15:51 +0530
Subject: [PATCH 2/6] Update index.html
Inside the div container github icon is added with link to master branch
---
index.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/index.html b/index.html
index b8d26a586..d3e67a0d6 100755
--- a/index.html
+++ b/index.html
@@ -5,6 +5,10 @@
{% include header.html %}
+
{% include topnav.html %}
{% for page in site.posts reversed %}
{% if page.page == nil %}
From 86841c360c160c74cc6bb5546bcae07635f21481 Mon Sep 17 00:00:00 2001
From: Vitthal Popat Gund <97181033+VitthalGund@users.noreply.github.com>
Date: Mon, 9 Oct 2023 00:21:35 +0530
Subject: [PATCH 3/6] Update nerd-font-tweaks.scss
color typo fixed in GitHub Icon
---
_includes/css/nerd-font-tweaks.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_includes/css/nerd-font-tweaks.scss b/_includes/css/nerd-font-tweaks.scss
index 807f2cf11..1e2bea3f7 100644
--- a/_includes/css/nerd-font-tweaks.scss
+++ b/_includes/css/nerd-font-tweaks.scss
@@ -541,7 +541,7 @@ a.nerd-font-button:before {
#github {
text-decoration: none;
- color: #ffffff;
+ color: #000000;
background-color: #ffffff;
width: 60px;
height: 60px;
From 6da42f1532e3c6bfdc634c3e165364a4638231d0 Mon Sep 17 00:00:00 2001
From: Fini Jastrow
Date: Mon, 9 Oct 2023 11:13:08 +0200
Subject: [PATCH 4/6] Remove dependency from FA's css
[why]
Keep the dependencies as small as possible.
We already have the github icon in our own set which we import anyhow,
so there is no need to fetch fontawesome's CSS.
[how]
Replace fa-github with nf-fa-github.
Signed-off-by: Fini Jastrow
---
_includes/css/nerd-font-tweaks.scss | 4 +---
index.html | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/_includes/css/nerd-font-tweaks.scss b/_includes/css/nerd-font-tweaks.scss
index 1e2bea3f7..da0208d4c 100644
--- a/_includes/css/nerd-font-tweaks.scss
+++ b/_includes/css/nerd-font-tweaks.scss
@@ -535,10 +535,8 @@ a.nerd-font-button:before {
}
}
*/
+
// Github url button
-
-@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
-
#github {
text-decoration: none;
color: #000000;
diff --git a/index.html b/index.html
index d3e67a0d6..c47fac90f 100755
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
+ class="nf nf-fa-github">
{% include topnav.html %}
{% for page in site.posts reversed %}
From f71298b44906ea170a2ac25add3d2b58d6baf64a Mon Sep 17 00:00:00 2001
From: Fini Jastrow
Date: Mon, 9 Oct 2023 11:15:25 +0200
Subject: [PATCH 5/6] Simplify link of github button
[why]
The link on the floating Github button explicitely opens the master
branch. We could instead just link to the default branch (which is
technically more correct anyhow).
[how]
Drop branch specification from URL and use default branch.
Signed-off-by: Fini Jastrow
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index c47fac90f..f8a17073d 100755
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
{% include topnav.html %}
From 10be9529a02a2e87f71f62f38577a5c6edd77295 Mon Sep 17 00:00:00 2001
From: Fini Jastrow
Date: Mon, 9 Oct 2023 11:19:48 +0200
Subject: [PATCH 6/6] Remove "fork on github banner"
[why]
Some code has been commented out. This can be removed. We can use git if
we want to access the code again in the future.
Furthermore the banner still is on the page, below the Sanky diagram (in
the small screen rendering position).
Signed-off-by: Fini Jastrow
---
_includes/css/nerd-font-tweaks.scss | 61 -----------------------------
_posts/2017-01-01-home.md | 5 ---
2 files changed, 66 deletions(-)
diff --git a/_includes/css/nerd-font-tweaks.scss b/_includes/css/nerd-font-tweaks.scss
index da0208d4c..3ced6a02a 100644
--- a/_includes/css/nerd-font-tweaks.scss
+++ b/_includes/css/nerd-font-tweaks.scss
@@ -475,67 +475,6 @@ a.nerd-font-button:before {
margin-left: -135px;
}
-/* ----- fork on github banner ----- */
-/*
-#forkongithub a {
- color: #fff;
- background: #1E5D8A;
- text-decoration: none;
- font-family: arial, sans-serif;
- text-align: center;
- font-weight: 700;
- font-size: 1rem;
- line-height: 2rem;
- position: relative;
- transition: .5s;
- padding: 5px 40px;
-}
-
-#forkongithub a::before,
-#forkongithub a::after {
- content: "";
- width: 100%;
- display: block;
- position: absolute;
- top: 1px;
- left: 0;
- height: 1px;
- background: #fff;
-}
-
-#forkongithub a::after {
- bottom: 1px;
- top: auto;
-}
-
-@media screen and (min-width:800px) {
- #forkongithub {
- position: fixed;
- display: block;
- top: 0;
- right: 0;
- width: 200px;
- overflow: hidden;
- height: 209px;
- z-index: 99;
- }
-
- #forkongithub a {
- width: 200px;
- position: absolute;
- top: 60px;
- right: -60px;
- transform: rotate(45deg);
- -webkit-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
- box-sizing: content-box;
- }
-}
-*/
-
// Github url button
#github {
text-decoration: none;
diff --git a/_posts/2017-01-01-home.md b/_posts/2017-01-01-home.md
index 8657b6279..5ba177e09 100644
--- a/_posts/2017-01-01-home.md
+++ b/_posts/2017-01-01-home.md
@@ -42,11 +42,6 @@ style: center container
Diagram created using SankeyMATIC
-
-
- Fork us on GitHub
-
-