diff --git a/public/assets/icons/trashcan.svg b/public/assets/icons/trashcan.svg
new file mode 100644
index 0000000..8bcb203
--- /dev/null
+++ b/public/assets/icons/trashcan.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/src/assets/scss/_variables.scss b/src/assets/scss/_variables.scss
index f999fcd..368ad97 100644
--- a/src/assets/scss/_variables.scss
+++ b/src/assets/scss/_variables.scss
@@ -4,7 +4,7 @@ $black: #000;
$purple: #4741e6;
$lilac: #7b76ff;
$light-blue: #00c2ff;
-$red: #ff0000;
+$red: #d50000;
$gray: #7f7f7f;
$gray-2: #696969;
$dark-gray: #454545;
diff --git a/src/assets/scss/login.scss b/src/assets/scss/login.scss
index 955855e..a6d6f88 100644
--- a/src/assets/scss/login.scss
+++ b/src/assets/scss/login.scss
@@ -84,7 +84,6 @@
&:hover {
background-color: rgba($lilac, 0.75);
- cursor: pointer;
}
}
}
@@ -107,7 +106,6 @@ p,
a,
li,
label {
- font-family: Arial, sans-serif;
color: $white;
}
diff --git a/src/assets/scss/main.scss b/src/assets/scss/main.scss
index da1d39a..983368c 100644
--- a/src/assets/scss/main.scss
+++ b/src/assets/scss/main.scss
@@ -27,6 +27,19 @@ h6 {
font-family: GentiumPlus, serif;
}
+p,
+span,
+li,
+a,
+button,
+label {
+ font-family: Arial, sans-serif;
+}
+
+button:hover {
+ cursor: pointer;
+}
+
::-webkit-scrollbar {
display: none;
}
diff --git a/src/components/screens/Characters.vue b/src/components/screens/Characters.vue
index 9a066a3..5645730 100644
--- a/src/components/screens/Characters.vue
+++ b/src/components/screens/Characters.vue
@@ -5,6 +5,11 @@
+
+
+
@@ -21,8 +26,6 @@
-
-
@@ -73,9 +76,9 @@ function select_character() {
}
// Delete character logics
-function delete_character() {
- if (!selected_character.value) return
- socket.getConnection.emit('character:delete', { character_id: selected_character.value })
+function delete_character(character_id) {
+ if (!character_id) return
+ socket.getConnection.emit('character:delete', { character_id: character_id })
}
// Create character logics
@@ -131,6 +134,7 @@ function create() {
background-color: transparent;
border: none;
height: 100%;
+ width: 100%;
padding: 40px 0;
display: flex;
flex-direction: column;
@@ -149,9 +153,6 @@ function create() {
color: $white;
font-size: 16px;
}
- &:hover {
- cursor: pointer;
- }
}
&::before,
&::after {
@@ -188,14 +189,27 @@ function create() {
}
label {
+ color: $white;
+ font-weight: bold;
position: absolute;
top: 20px;
width: 100%;
- text-align: center;
transform: translateY(-50%);
- font-family: Arial, sans-serif;
- color: $white;
- font-weight: bold;
+ text-align: center;
+ }
+
+ button.delete {
+ background-color: $red;
+ border: none;
+ width: 30px;
+ height: 30px;
+ padding: 5px;
+ border-radius: 100%;
+ z-index: 1;
+ right: -5px;
+ top: 0;
+ transform: translateY(-50%);
+ position: absolute;
}
span {
@@ -204,7 +218,6 @@ function create() {
width: 100%;
text-align: center;
transform: translateY(50%);
- font-family: Arial, sans-serif;
color: $white;
z-index: 1;
}
@@ -239,7 +252,6 @@ function create() {
&:hover {
background-color: rgba($lilac, 0.75);
- cursor: pointer;
}
}
}
diff --git a/src/components/utilities/Modal.vue b/src/components/utilities/Modal.vue
index 8d27731..8c9d985 100644
--- a/src/components/utilities/Modal.vue
+++ b/src/components/utilities/Modal.vue
@@ -126,8 +126,6 @@ onUnmounted(() => {
}
&:hover {
- cursor: pointer;
-
&::after {
content: '';
position: absolute;
@@ -164,7 +162,6 @@ onUnmounted(() => {
&:hover {
background-color: rgba($lilac, 0.75);
- cursor: pointer;
}
}
.modal-form {
@@ -174,7 +171,6 @@ onUnmounted(() => {
flex-direction: column;
margin-bottom: 20px;
label {
- font-family: Arial, sans-serif;
margin-bottom: 10px;
}
input {