Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 13, 2023
1 parent 1875e27 commit 8c65f2b
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 87 deletions.
32 changes: 24 additions & 8 deletions src/home_journal/site/css/beer.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,9 @@ button {
background-color: var(--primary);
margin: 0 0.5rem;
border-radius: 0.5rem;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
user-select: none;
gap: 1rem;
Expand Down Expand Up @@ -1849,7 +1851,9 @@ article {
padding: 1rem;
border-radius: 0.75rem;
display: block;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
}
* + article {
Expand Down Expand Up @@ -1879,7 +1883,9 @@ article.large {
margin: 0 0.5rem;
text-transform: none;
border-radius: 0.5rem;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
user-select: none;
gap: 1rem;
Expand Down Expand Up @@ -2004,7 +2010,9 @@ nav.right:not(.s, .m, .l) ~ .responsive {
text-align: left;
border-radius: 0.25rem;
transform: scale(0.8) translateY(120%);
transition: var(--speed2) all, 0s background-color;
transition:
var(--speed2) all,
0s background-color;
}
.dropdown.no-wrap {
width: auto;
Expand Down Expand Up @@ -2356,7 +2364,9 @@ input[type="file"] {
left: 1rem;
font-size: 1rem;
transform: translateY(-50%);
transition: var(--speed2) all, 0s background-color;
transition:
var(--speed2) all,
0s background-color;
z-index: 0;
}
.field.label.textarea.small > label {
Expand Down Expand Up @@ -2969,7 +2979,9 @@ video.circle,
video.responsive {
object-fit: cover;
object-position: center;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
height: 3rem;
width: 3rem;
Expand Down Expand Up @@ -3136,7 +3148,9 @@ button > span + img.responsive {
max-height: 80%;
overflow-x: hidden;
overflow-y: auto;
transition: var(--speed3) all, 0s background-color;
transition:
var(--speed3) all,
0s background-color;
transform: translate(-50%, -4rem);
}
.modal:not(.left, .right, .top, .bottom) {
Expand Down Expand Up @@ -3504,7 +3518,9 @@ nav:not(.left, .right) > .large-space {
color: var(--on-background);
background-color: var(--overlay);
z-index: 100;
transition: var(--speed3) all, 0s background-color;
transition:
var(--speed3) all,
0s background-color;
}
nav > .overlay {
z-index: 0;
Expand Down
30 changes: 24 additions & 6 deletions src/home_journal/site/css/github-markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,14 @@
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font:
11px ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
line-height: 10px;
color: var(--color-fg-default);
vertical-align: middle;
Expand Down Expand Up @@ -436,16 +442,28 @@
.markdown-body tt,
.markdown-body code,
.markdown-body samp {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 12px;
}

.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 12px;
word-wrap: normal;
}
Expand Down
2 changes: 1 addition & 1 deletion src/home_journal/site/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
10 changes: 5 additions & 5 deletions src/home_journal/site/js/beer.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default (() => {
const t = r.currentTarget,
e = u(
"input:not([type=file]):not([type=checkbox]):not([type=radio]), select, textarea",
h(t)
h(t),
);
e && e.focus();
},
Expand Down Expand Up @@ -186,7 +186,7 @@ export default (() => {
() => {
l(t, "active");
},
e && e ? e : 6e3
e && e ? e : 6e3,
));
},
V = (r, t) => {
Expand Down Expand Up @@ -278,8 +278,8 @@ export default (() => {
p.materialDynamicColors && document.body.setAttribute("style", c[r]),
r)
: /dark/i.test(document.body.className)
? "dark"
: "light",
? "dark"
: "light",
G = () => {
k ||
((k = new MutationObserver(P)),
Expand All @@ -299,7 +299,7 @@ export default (() => {
m("[data-ui]").forEach((a) => f(a, "click", j)),
m(".field > label").forEach((a) => f(a, "click", q)),
m(
".field > input:not([type=file]):not([type=checkbox]):not([type=radio]), .field > select, .field > textarea"
".field > input:not([type=file]):not([type=checkbox]):not([type=radio]), .field > select, .field > textarea",
).forEach((a) => {
f(a, "focus", L), f(a, "blur", S), w(a);
}),
Expand Down
49 changes: 26 additions & 23 deletions src/home_journal/site/js/lightense.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"object" == typeof exports && "object" == typeof module
? (module.exports = t())
: "function" == typeof define && define.amd
? define([], t)
: "object" == typeof exports
? (exports.Lightense = t())
: (e.Lightense = t());
? define([], t)
: "object" == typeof exports
? (exports.Lightense = t())
: (e.Lightense = t());
})(this, function () {
return (
(e = {
Expand All @@ -31,14 +31,17 @@
r(e, t, i[t]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i))
: t(Object(i)).forEach(function (t) {
Object.defineProperty(
? Object.defineProperties(
e,
t,
Object.getOwnPropertyDescriptor(i, t)
);
});
Object.getOwnPropertyDescriptors(i),
)
: t(Object(i)).forEach(function (t) {
Object.defineProperty(
e,
t,
Object.getOwnPropertyDescriptor(i, t),
);
});
}
return e;
}
Expand Down Expand Up @@ -171,8 +174,8 @@
n < g && i < p
? s
: f < b
? (p / i) * s
: (g / n) * s;
? (p / i) * s
: (g / n) * s;
var h = d / 2,
m = o + l / 2,
v = c.left + a + c.width / 2,
Expand Down Expand Up @@ -201,17 +204,17 @@
var e = {
cubicBezier:
r.target.getAttribute(
"data-lightense-cubic-bezier"
"data-lightense-cubic-bezier",
) || r.cubicBezier,
background:
r.target.getAttribute(
"data-lightense-background"
"data-lightense-background",
) ||
r.target.getAttribute("data-background") ||
r.background,
zIndex:
r.target.getAttribute(
"data-lightense-z-index"
"data-lightense-z-index",
) || r.zIndex,
},
t = n(n({}, r), e);
Expand All @@ -220,17 +223,17 @@
"\n :root {\n --lightense-z-index: "
.concat(
t.zIndex - 1,
";\n --lightense-backdrop: "
";\n --lightense-backdrop: ",
)
.concat(
t.background,
";\n --lightense-duration: "
";\n --lightense-duration: ",
)
.concat(
t.time,
"ms;\n --lightense-timing-func: "
"ms;\n --lightense-timing-func: ",
)
.concat(t.cubicBezier, ";\n }")
.concat(t.cubicBezier, ";\n }"),
),
(r.container.style.visibility = "visible"),
setTimeout(function () {
Expand All @@ -244,7 +247,7 @@
(i.src = r.target.src);
})(this);
},
!1
!1,
));
}
function d(e, t) {
Expand All @@ -267,8 +270,8 @@
.concat(r.time, "ms;\n --lightense-timing-func: ")
.concat(
r.cubicBezier,
";\n}\n\n.lightense-backdrop {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n z-index: calc(var(--lightense-z-index) - 1);\n padding: 0;\n margin: 0;\n transition: opacity var(--lightense-duration) ease;\n cursor: zoom-out;\n opacity: 0;\n background-color: var(--lightense-backdrop);\n visibility: hidden;\n}\n\n@supports (-webkit-backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n -webkit-backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n@supports (backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n.lightense-wrap {\n position: relative;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n z-index: var(--lightense-z-index);\n pointer-events: none;\n}\n\n.lightense-target {\n cursor: zoom-in;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n pointer-events: auto;\n}\n\n.lightense-open {\n cursor: zoom-out;\n}\n\n.lightense-transitioning {\n pointer-events: none;\n}"
)
";\n}\n\n.lightense-backdrop {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n z-index: calc(var(--lightense-z-index) - 1);\n padding: 0;\n margin: 0;\n transition: opacity var(--lightense-duration) ease;\n cursor: zoom-out;\n opacity: 0;\n background-color: var(--lightense-backdrop);\n visibility: hidden;\n}\n\n@supports (-webkit-backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n -webkit-backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n@supports (backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n.lightense-wrap {\n position: relative;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n z-index: var(--lightense-z-index);\n pointer-events: none;\n}\n\n.lightense-target {\n cursor: zoom-in;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n pointer-events: auto;\n}\n\n.lightense-open {\n cursor: zoom-out;\n}\n\n.lightense-transitioning {\n pointer-events: none;\n}",
),
);
}
function u() {
Expand Down
Loading

0 comments on commit 8c65f2b

Please sign in to comment.