diff --git a/src/css/clipboard.css b/src/css/clipboard.css
index 080ecdd..e6b0ce7 100644
--- a/src/css/clipboard.css
+++ b/src/css/clipboard.css
@@ -4,6 +4,7 @@
display: inline-block;
margin-left: 0.5rem;
margin-right: 0.5rem;
+ position: relative;
}
a.copy-code-button:focus,
@@ -13,35 +14,23 @@ a.copy-code-button:hover {
.copy-code-button:hover::after {
content: attr(data-title);
- color: var(--pre-annotation-font-color);
line-height: 1;
position: absolute;
- top: -20px;
- right: 0%;
- left: auto;
+ top: -26px;
+ left: 50%;
+ transform: translate(-50%, 0);
margin: 0;
- padding: 3px;
+ padding: 5px;
text-align: center;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
background: var(--neutral-lighter);
+ color: var(--secondary-text);
border: 1px solid var(--pre-border-color);
box-sizing: border-box;
- border-radius: 3px;
+ border-radius: 8px;
min-width: 80px;
}
-.copy-code-button:hover::before {
- border-left: 7px solid transparent;
- border-right: 7px solid transparent;
- border-bottom: 10px solid var(--pre-border-color);
- position: absolute;
- content: "";
- box-shadow: inset 0 0 1px #bec0c1;
- bottom: -27px;
- right: auto;
- left: auto;
-}
-
.doc .listingblock code /*[data-lang]*/ + .source-type-box {
position: absolute;
top: -20px;
@@ -62,7 +51,7 @@ a.copy-code-button:hover {
border-right: 1px solid var(--pre-border-color);
}
-.doc .listingblock:hover code /*[data-lang]*/ + .source-type-box {
+.doc .listingblock code /*[data-lang]*/ + .source-type-box {
display: flex;
}
diff --git a/src/css/doc.css b/src/css/doc.css
index b18e4bb..90beec6 100644
--- a/src/css/doc.css
+++ b/src/css/doc.css
@@ -22,7 +22,7 @@
font-weight: 450;
hyphens: none;
line-height: 1.3;
- margin: 1rem 0 0;
+ margin: 1.1rem 0 0;
font-size: 1.09em;
}
@@ -138,7 +138,7 @@ strong.beta {
font-weight: var(--heading-font-weight);
hyphens: none;
line-height: 1.3;
- margin: 1rem 0 0;
+ margin: 1.1rem 0 0;
}
.doc > h1.page:first-child {
@@ -315,7 +315,7 @@ strong.beta {
.doc .verseblock,
.doc .quoteblock,
.doc .partintro {
- margin: 1rem 0 0;
+ margin: 1.1rem 0 0;
}
.doc .ulist.tablelist {
diff --git a/src/css/main.css b/src/css/main.css
index 81cf5ed..f23e27b 100644
--- a/src/css/main.css
+++ b/src/css/main.css
@@ -55,7 +55,7 @@
.article-banner p {
font-size: calc(14 / var(--rem-base) * 1rem);
- margin: 0 1rem 0 0;
+ margin: 0 1.1rem 0 0;
margin-bottom: 10px;
}
diff --git a/src/js/08-copy-to-clipboard.js b/src/js/08-copy-to-clipboard.js
index 4c3918f..b23293f 100644
--- a/src/js/08-copy-to-clipboard.js
+++ b/src/js/08-copy-to-clipboard.js
@@ -6,7 +6,7 @@
var copyButton = document.createElement('a')
copyButton.className = 'copy-code-button'
copyButton.dataset.title = 'Copy'
- copyButton.appendChild(document.createElement('i')).className = 'far fa-copy'
+ copyButton.appendChild(document.createElement('i')).className = 'fa-regular fa-copy'
var dataSource = document.createElement('span')
dataSource.className = 'data-source'
if (codeBlock.dataset.lang) {
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index f0826c7..5389062 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -43,5 +43,5 @@
{{/with}}
-
+