redesign blueprint
This commit is contained in:
parent
61c1067f22
commit
55684b6079
12 changed files with 82 additions and 49 deletions
|
|
@ -49,10 +49,3 @@ html {
|
|||
border-radius: 0px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
a:not(.no-line) {
|
||||
text-decoration: dotted;
|
||||
text-decoration-color: #fff;
|
||||
text-decoration-line: underline;
|
||||
text-underline-offset: 0.2rem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,14 @@ button {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
a:not(.no-line) {
|
||||
text-decoration: dotted;
|
||||
text-decoration-color: #fff;
|
||||
text-decoration-line: underline;
|
||||
text-underline-offset: 0.2rem;
|
||||
text-decoration-thickness: 0.5px;
|
||||
}
|
||||
|
||||
article p {
|
||||
margin-bottom: var(--unit--vertical);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
const remFactor = 16;
|
||||
const verticalUnit = 1.3 * remFactor;
|
||||
|
||||
function openTab(data, tab) {
|
||||
data.activeTab === tab ? (data.activeTab = "") : (data.activeTab = tab);
|
||||
}
|
||||
|
||||
function scrollToElem(selector) {
|
||||
setTimeout(() => {
|
||||
const yOffset = -185;
|
||||
const yOffset = -9 * verticalUnit;
|
||||
const elem = document.querySelector(selector);
|
||||
const top = elem.getBoundingClientRect().top;
|
||||
window.scrollTo({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue