Skip to content

Commit

Permalink
Feat: Implement #27
Browse files Browse the repository at this point in the history
  • Loading branch information
nfoert committed Oct 7, 2024
1 parent efc2f64 commit e1fb8c9
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 34 deletions.
30 changes: 20 additions & 10 deletions cardie/static/main/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ html {
margin-right: auto;
}

.text_item {
display: flex;
flex-direction: row-reverse;
}

.link_item {
display: flex;
flex-direction: row-reverse;
}

@keyframes show-iconselector {
from {
opacity: 0;
Expand Down Expand Up @@ -490,4 +480,24 @@ html {
margin-left: clamp(1.5vh, 15px, 1.5vw);
margin-right: clamp(1vh, 10px, 1vw);

}

@keyframes show-item {
from {
opacity: 0;
scale: 0.8;
}

to {
opacity: 1;
scale: 1;
}
}

.item {
animation: show-item 0.3s ease-in-out forwards;

/* Starting properties for animation */
opacity: 0;
scale: 0.8;
}
6 changes: 0 additions & 6 deletions cardie/static/main/scripts/editor/editor_information.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ var link_items = new Array();
var currently_editing_icon;
var items_list;

function open_iconselector_foritem(event) {
let item = event.target.closest(".link_item, .text_item");
currently_editing_icon = item;
show_iconselector();
}

function editor_create_json() {
let card_json = {
"uuid": "unknown",
Expand Down
30 changes: 20 additions & 10 deletions cardie/staticfiles/main/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ html {
margin-right: auto;
}

.text_item {
display: flex;
flex-direction: row-reverse;
}

.link_item {
display: flex;
flex-direction: row-reverse;
}

@keyframes show-iconselector {
from {
opacity: 0;
Expand Down Expand Up @@ -490,4 +480,24 @@ html {
margin-left: clamp(1.5vh, 15px, 1.5vw);
margin-right: clamp(1vh, 10px, 1vw);

}

@keyframes show-item {
from {
opacity: 0;
scale: 0.8;
}

to {
opacity: 1;
scale: 1;
}
}

.item {
animation: show-item 0.3s ease-in-out forwards;

/* Starting properties for animation */
opacity: 0;
scale: 0.8;
}
Binary file modified cardie/staticfiles/main/images/home_cards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cardie/staticfiles/main/images/home_editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions cardie/staticfiles/main/scripts/editor/editor_information.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ var link_items = new Array();
var currently_editing_icon;
var items_list;

function open_iconselector_foritem(event) {
let item = event.target.closest(".link_item, .text_item");
currently_editing_icon = item;
show_iconselector();
}

function editor_create_json() {
let card_json = {
"uuid": "unknown",
Expand Down
1 change: 0 additions & 1 deletion cardie/staticfiles/main/scripts/global/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ function card_set_layout(card_selector, layout) {
}

function card_set_font(card_selector, name) {
console.log(name)
let font_style = get_font_style(name);
load_font(font_style["header"]["name"], font_style["header"]["url"]);
load_font(font_style["text"]["name"], font_style["text"]["url"]);
Expand Down
7 changes: 6 additions & 1 deletion cardie/staticfiles/main/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@

.ui_button_large:hover:enabled {
scale: 1.05;
cursor: pointer;
}

.ui_button_large:active:enabled {
Expand Down Expand Up @@ -112,6 +113,7 @@

.ui_button_grid:hover:enabled {
scale: 1.05;
cursor: pointer;
}

.ui_button_grid:active:enabled {
Expand Down Expand Up @@ -150,6 +152,7 @@

.ui_button_icon:hover:enabled {
scale: 1.1;
cursor: pointer;
}

.ui_button_icon:active:enabled {
Expand Down Expand Up @@ -190,6 +193,7 @@

.ui_button_smallicon:hover:enabled {
scale: 1.05;
cursor: pointer;
}

.ui_button_smallicon:active:enabled {
Expand Down Expand Up @@ -229,6 +233,7 @@

.ui_button_small:hover:enabled {
scale: 1.05;
cursor: pointer;
}

.ui_button_small:active:enabled {
Expand Down Expand Up @@ -630,4 +635,4 @@
.ui_link_generic:visited {
color: var(--default-text-color);
text-decoration: none;
}
}

0 comments on commit e1fb8c9

Please sign in to comment.