Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Add some dprint plugins for HTML and CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 16, 2024
1 parent b7ebfae commit be2fe94
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
7 changes: 5 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>kachick/renovate-config-dprint#1.1.0"
],
"dependencyDashboard": true,
"labels": ["dependencies", "renovate"],
"enabledManagers": ["nix"],
"enabledManagers": ["regex", "nix"],
"nix": {
"enabled": true
"enabled": false
},
"packageRules": [
{
Expand Down
9 changes: 8 additions & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
},
"json": {},
"markdown": {},
"malva": {
"quotes": "preferSingle"
},
"markup": {
},
"excludes": ["**/node_modules", "**/*-lock.json", "lib/**", "dist/**", "elm-stuff", "review", "elm.json"],
"plugins": [
"https://plugins.dprint.dev/typescript-0.89.3.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/markdown-0.16.4.wasm"
"https://plugins.dprint.dev/markdown-0.16.4.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.3.1.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.8.0.wasm"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
13 changes: 5 additions & 8 deletions public/main.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
:root {
--page-height: 100dvh;
--content-height: 90dvh;
--non-content-max-height: calc((var(--page-height) - var(--content-height)));
--header-height: minmax(
30px,
calc(((var(--non-content-max-height) / 3) * 2))
);
--footer-height: minmax(20px, calc(((var(--non-content-max-height) / 3))));
--non-content-max-height: calc(var(--page-height) - var(--content-height));
--header-height: minmax(30px, calc(var(--non-content-max-height) / 3 * 2));
--footer-height: minmax(20px, calc(var(--non-content-max-height) / 3));
--brand-base-color: #6a8372;
--brand-dark-color: #43676b;
--user-image-width: 32px;
Expand Down Expand Up @@ -44,8 +41,8 @@ a {
#page {
grid-template:
'head' var(--header-height)
'timer-panel' max(calc((var(--content-height) / 3)))
'users-panel' min(calc((var(--content-height) / 3) * 2))
'timer-panel' max(calc(var(--content-height) / 3))
'users-panel' min(calc(var(--content-height) / 3 * 2))
'foot' var(--footer-height) / 1fr;
}
}
Expand Down

0 comments on commit be2fe94

Please sign in to comment.