Skip to content

Commit

Permalink
chore: add biome for lint and format CSS and JS
Browse files Browse the repository at this point in the history
  • Loading branch information
ar4s committed Oct 5, 2024
1 parent 31c4c31 commit d08e6a6
Show file tree
Hide file tree
Showing 29 changed files with 2,266 additions and 807 deletions.
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"charliermarsh.ruff"
"charliermarsh.ruff",
"biomejs.biome"
]
}
11 changes: 8 additions & 3 deletions cardie/static/main/authentication.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ html {

z-index: 0;

background: rgb(61,132,148);
background: linear-gradient(120deg, rgb(61, 84, 148) 9%, rgb(62, 34, 139) 47%, rgb(37, 210, 187) 91%);
background: rgb(61, 132, 148);
background: linear-gradient(
120deg,
rgb(61, 84, 148) 9%,
rgb(62, 34, 139) 47%,
rgb(37, 210, 187) 91%
);
}

#authentication_privacypolicy {
Expand All @@ -84,4 +89,4 @@ html {
#authentication_privacypolicy:hover {
scale: 1.1;
opacity: 1;
}
}
7 changes: 4 additions & 3 deletions cardie/static/main/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.card_card {
margin: 10px;

width: 600px;
aspect-ratio: 1.75;

Expand All @@ -11,7 +11,8 @@
display: block;
}

.card_card_front, .card_card_back {
.card_card_front,
.card_card_back {
position: absolute;
top: 0;
width: 100%;
Expand Down Expand Up @@ -198,4 +199,4 @@
border: none;
background-color: none;
color: rgb(64, 163, 255);
}
}
2 changes: 1 addition & 1 deletion cardie/static/main/card_view.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ html {

#cardview_bottom_owned {
opacity: 0.8;
}
}
61 changes: 30 additions & 31 deletions cardie/static/main/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,26 +177,26 @@ html {
border: var(--default-glass-border);
backdrop-filter: var(--default-glass-blur);
border-radius: 20px;

aspect-ratio: 1;
width: auto;
height: 40%;
max-height: 40%;

z-index: 3;

position: fixed;
top: 50%;
left: 50%;
translate: -50% -50%;

padding: clamp(1.5vh, 15px, 1.5vw);

display: flex;
flex-direction: column;

display: none; /* Keep hidden until needed */

/* Starting properties for animation */
opacity: 0;
scale: 0.8;
Expand All @@ -209,25 +209,25 @@ html {
#editor-iconselector {
background-color: var(--default-glass-background);
backdrop-filter: var(--default-glass-blur);

aspect-ratio: 1;
width: calc(100vw - 1.5vh);
height: 100vh;
max-height: 100vh;

z-index: 3;

position: fixed;
top: 0px;
left: 0px;

padding: clamp(1.5vh, 15px, 1.5vw);

display: flex;
flex-direction: column;

display: none; /* Keep hidden until needed */

/* Starting properties for animation */
opacity: 0;
scale: 0.8;
Expand Down Expand Up @@ -270,9 +270,9 @@ html {
justify-content: center;
margin: clamp(0.8vh, 8px, 0.8vw);

-webkit-box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.75);
box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.75);
}

.editor-iconselector-icon:hover {
Expand Down Expand Up @@ -338,21 +338,21 @@ html {
border: var(--default-glass-border);
backdrop-filter: var(--default-glass-blur);
border-radius: 20px;

z-index: 3;

position: fixed;
top: 50%;
left: 50%;
translate: -50% -50%;

padding: clamp(2vh, 20px, 2vw);

display: flex;
flex-direction: column;

display: none; /* Keep hidden until needed */

/* Starting properties for animation */
opacity: 0;
scale: 0.8;
Expand All @@ -371,21 +371,21 @@ html {
border: var(--default-glass-border);
backdrop-filter: var(--default-glass-blur);
border-radius: 20px;

z-index: 3;

position: fixed;
top: 50vh;
left: 50vw;
translate: -50% -50%;

padding: clamp(2vh, 20px, 2vw);

display: flex;
flex-direction: column;

display: none; /* Keep hidden until needed */

/* Starting properties for animation */
opacity: 0;
scale: 0.8;
Expand Down Expand Up @@ -488,5 +488,4 @@ html {

margin-left: clamp(1.5vh, 15px, 1.5vw);
margin-right: clamp(1vh, 10px, 1vw);

}
}
14 changes: 7 additions & 7 deletions cardie/static/main/editor_print.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
min-height: 2in;
max-width: 3.5in;
max-height: 2in;

}

.card_card_front, .card_card_back {
.card_card_front,
.card_card_back {
position: unset;
top: unset;
border: 2px solid rgb(0, 0, 0);
Expand All @@ -67,7 +67,8 @@
overflow: hidden;
}

.card_card_back, .card_card_front {
.card_card_back,
.card_card_front {
transform: rotateY(0);
}

Expand Down Expand Up @@ -110,7 +111,7 @@
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-column-gap: 0.1in;
grid-row-gap: 0.1in;
grid-row-gap: 0.1in;
}

#print_back_div {
Expand All @@ -120,8 +121,7 @@
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-column-gap: 0.1in;
grid-row-gap: 0.1in;

grid-row-gap: 0.1in;
}

#print_front_div * {
Expand All @@ -131,4 +131,4 @@
#print_back_div * {
visibility: visible;
}
}
}
Loading

0 comments on commit d08e6a6

Please sign in to comment.