Skip to content

Commit

Permalink
Fix a few more id names and collect static files
Browse files Browse the repository at this point in the history
  • Loading branch information
nfoert committed Oct 20, 2024
1 parent 929f412 commit 1343d41
Show file tree
Hide file tree
Showing 14 changed files with 141 additions and 141 deletions.
20 changes: 10 additions & 10 deletions cardie/main/templates/authentication.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
{% block body %}
<div id="authentication_box" x-data="box_param_check()">
{% csrf_token %}
<img id="authentication-box-image"
<img id="authentication_box_image"
@click="window.location.href = server_ip"
src="{% static '/main/images/logo_light.png' %}">
<div class="ui_status_critical"
id="authentication-error"
id="authentication_error"
style="display: none">
<i class="ph-bold ph-warning-octagon ui_status_icon"></i>
<p class="ui_status_text">Critical status box</p>
Expand All @@ -29,46 +29,46 @@
<i class="ph-bold ph-keyhole"></i> Sign In
</p>
<div class="ui_separator_horizontal"></div>
<input id="signin-username"
<input id="signin_username"
type="text"
class="ui_input_generic"
placeholder="Username">
<input id="signin-password"
<input id="signin_password"
type="password"
class="ui_input_generic"
placeholder="Password">
<button id="signin_signin" class="ui_button_large">
<strong>Sign In</strong> <i class="ph-bold ph-sign-in"></i>
</button>
<button id="signin-createaccount"
<button id="signin_createaccount"
class="ui_button_small"
@click="sign_in = !sign_in">
Create an Account <i class="ph-bold ph-arrow-right"></i>
</button>
</div>
<div id="createaccount-box"
<div id="createaccount_box"
x-show="!sign_in"
x-transition:enter.delay.200ms>
<p class="ui_text_header">
<i class="ph-bold ph-key"></i> Create Account
</p>
<div class="ui_separator_horizontal"></div>
<input id="createaccount-username"
<input id="createaccount_username"
type="text"
class="ui_input_generic"
placeholder="Username">
<input id="createaccount-password"
<input id="createaccount_password"
type="password"
class="ui_input_generic"
placeholder="Password">
<input id="createaccount-email"
<input id="createaccount_email"
type="text"
class="ui_input_generic"
placeholder="Email">
<button id="createaccount_createaccount" class="ui_button_large">
<strong>Create Account</strong> <i class="ph-bold ph-user-plus"></i>
</button>
<button id="createaccount-signin"
<button id="createaccount_signin"
class="ui_button_small"
@click="sign_in = !sign_in">
Sign In <i class="ph-bold ph-arrow-right"></i>
Expand Down
4 changes: 2 additions & 2 deletions cardie/main/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
</div>
<div x-data="{ cards: true, cards_disabled: true, wallet_disabled: false }">
<div id="home_navigation">
<button id="home-navigation-wallet"
<button id="home_navigation_wallet"
class="ui_button_grid"
@click="cards = false; cards_disabled = false; wallet_disabled = true;"
x-bind:disabled="wallet_disabled">
Wallet <i class="ph-bold ph-wallet"></i>
</button>
<button id="home-navigation-cards"
<button id="home_navigation_cards"
class="ui_button_grid"
@click="cards = true; wallet_disabled = false; cards_disabled = true;"
x-bind:disabled="cards_disabled">
Expand Down
20 changes: 10 additions & 10 deletions cardie/static/main/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,30 +276,30 @@ html {
box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.75);
}

.editor-iconselector-icon:hover {
.editor_iconselector_icon:hover {
scale: 1.05;
}

.editor-iconselector-icon:active {
.editor_iconselector_icon:active {
scale: 0.95;
}

.editor-iconselector-icon-icon {
.editor_iconselector_icon_icon {
color: white;
font-size: clamp(3vh, 30px, 3vw);
text-align: center;
margin-top: clamp(0.3vh, 3px, 0.3vw);
}

.editor-iconselector-icon-text {
.editor_iconselector_icon_text {
color: white;
font-family: "Noto Sans Mono", "Courier New", monospace;
font-size: clamp(1vh, 10px, 1vw);
text-align: center;
user-select: none;
}

@keyframes show-rename {
@keyframes show_rename {
from {
opacity: 0;
scale: 0.8;
Expand All @@ -311,7 +311,7 @@ html {
}
}

@keyframes hide-rename {
@keyframes hide_rename {
from {
opacity: 1;
scale: 1;
Expand All @@ -323,12 +323,12 @@ html {
}
}

.show-rename {
animation: show-rename 0.2s ease-in-out forwards;
.show_rename {
animation: show_rename 0.2s ease-in-out forwards;
}

.hide-rename {
animation: hide-rename 0.2s ease-in-out forwards;
.hide_rename {
animation: hide_rename 0.2s ease-in-out forwards;
}

@media (min-width: 1000px) {
Expand Down
8 changes: 4 additions & 4 deletions cardie/static/main/scripts/editor/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ function show_rename() {
show_background_blur();

document.querySelector("#editor_rename").style.display = "flex";
document.querySelector("#editor_rename").classList.remove("hide-rename");
document.querySelector("#editor_rename").classList.add("show-rename");
document.querySelector("#editor_rename").classList.remove("hide_rename");
document.querySelector("#editor_rename").classList.add("show_rename");
}

function hide_rename() {
document.querySelector("#editor_rename").classList.add("hide-rename");
document.querySelector("#editor_rename").classList.add("hide_rename");

setTimeout(function() {
document.querySelector("#editor_rename").classList.remove("show-rename");
document.querySelector("#editor_rename").classList.remove("show_rename");
document.querySelector("#editor_rename").style.display = "none";

hide_background_blur();
Expand Down
52 changes: 26 additions & 26 deletions cardie/staticfiles/admin/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -807,15 +807,15 @@ a.deletelink:focus, a.deletelink:hover {

/* OBJECT HISTORY */

#change_history table {
#change-history table {
width: 100%;
}

#change_history table tbody th {
#change-history table tbody th {
width: 16em;
}

#change_history .paginator {
#change-history .paginator {
color: var(--body-quiet-color);
border-bottom: 1px solid var(--hairline-color);
background: var(--body-bg);
Expand Down Expand Up @@ -866,12 +866,12 @@ a.deletelink:focus, a.deletelink:hover {
width: 600px;
}

#content_main {
#content-main {
float: left;
width: 100%;
}

#content_related {
#content-related {
float: right;
width: 260px;
position: relative;
Expand All @@ -893,13 +893,13 @@ a.deletelink:focus, a.deletelink:hover {
margin-left: 300px;
}

.colSM #content_related {
.colSM #content-related {
float: left;
margin-right: 0;
margin-left: -300px;
}

.colSM #content_main {
.colSM #content-main {
float: right;
}

Expand All @@ -920,7 +920,7 @@ a.deletelink:focus, a.deletelink:hover {
color: var(--header-color);
}

#header a:link, #header a:visited, #logout_form button {
#header a:link, #header a:visited, #logout-form button {
color: var(--header-link-color);
}

Expand All @@ -932,7 +932,7 @@ a.deletelink:focus, a.deletelink:hover {
display: flex;
}

#site_name {
#site-name {
padding: 0;
margin: 0;
margin-inline-end: 20px;
Expand All @@ -941,7 +941,7 @@ a.deletelink:focus, a.deletelink:hover {
color: var(--header-branding-color);
}

#site_name a:link, #site_name a:visited {
#site-name a:link, #site-name a:visited {
color: var(--accent);
}

Expand All @@ -957,82 +957,82 @@ a.deletelink:focus, a.deletelink:hover {
text-decoration: none;
}

#logout_form {
#logout-form {
display: inline;
}

#logout_form button {
#logout-form button {
background: none;
border: 0;
cursor: pointer;
font-family: var(--font-family-primary);
}

#user_tools {
#user-tools {
float: right;
margin: 0 0 0 20px;
text-align: right;
}

#user_tools, #logout_form button{
#user-tools, #logout-form button{
padding: 0;
font-weight: 300;
font-size: 0.6875rem;
letter-spacing: 0.5px;
text-transform: uppercase;
}

#user_tools a, #logout_form button {
#user-tools a, #logout-form button {
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

#user_tools a:focus, #user_tools a:hover,
#logout_form button:active, #logout_form button:hover {
#user-tools a:focus, #user-tools a:hover,
#logout-form button:active, #logout-form button:hover {
text-decoration: none;
border-bottom: 0;
}

#logout_form button:active, #logout_form button:hover {
#logout-form button:active, #logout-form button:hover {
margin-bottom: 1px;
}

/* SIDEBAR */

#content_related {
#content-related {
background: var(--darkened-bg);
}

#content_related .module {
#content-related .module {
background: none;
}

#content_related h3 {
#content-related h3 {
color: var(--body-quiet-color);
padding: 0 16px;
margin: 0 0 16px;
}

#content_related h4 {
#content-related h4 {
font-size: 0.8125rem;
}

#content_related p {
#content-related p {
padding-left: 16px;
padding-right: 16px;
}

#content_related .actionlist {
#content-related .actionlist {
padding: 0;
margin: 16px;
}

#content_related .actionlist li {
#content-related .actionlist li {
line-height: 1.2;
margin-bottom: 10px;
padding-left: 18px;
}

#content_related .module h2 {
#content-related .module h2 {
background: none;
padding: 16px;
margin-bottom: 16px;
Expand Down
Loading

0 comments on commit 1343d41

Please sign in to comment.