Compare commits

..

No commits in common. "e3d6d0c3793e12ea25ef22fcee0e5ddd8386bc3f" and "7e0f332f761d4e4c07150a54597086766ee65ffb" have entirely different histories.

2 changed files with 18 additions and 66 deletions

View File

@ -22,52 +22,8 @@ export default {
</script>
<style>
:root {
--text-color: #003049;
--secondary-text-color: #eae2b7;
--theme-color: #003049;
--background-color: #eae2b7;
--secondary-background: #d62828;
background-color: var(--background-color);
color: var(--text-color);
}
* {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.shortcuthelp {
position: absolute;
right: 0;
top: 0;
color: var(--background-color);
background-color: var(--theme-color);
padding: 0.5rem;
margin: 1rem 1rem 0 0;
}
@media (max-width: 450px) {
.shortcuthelp {
display: none;
}
}
ul {
margin: 0;
padding: 0;
}
li {
list-style-type: none;
color: var(--background-color);
}
kbd {
background-color: var(--secondary-background);
color: var(--secondary-text-color);
display: inline-block;
padding: 0.1rem;
margin: 0.1rem 0.5rem;
}
</style>

View File

@ -32,7 +32,7 @@ export default {
},
methods: {
addNote() {
this.notes.push({ id: this.notes.length, text: this.content })
this.notes.push({ id: this.notes.length + 1, text: this.content })
this.content = ''
}
},
@ -86,38 +86,34 @@ export default {
</script>
<style scoped>
@media (min-width: 575px) {
.note {
width: 550px;
}
}
textarea {
width: 100%;
border-width: 0 0 0.1rem 0;
border-color: var(--theme-color);
border-width: 0 0 1px 0;
border-color: black;
resize: none;
background-color: var(--background-color);
margin-bottom: 1rem;
}
.note {
padding: 0.5rem;
margin-bottom: 0.5rem;
border: 0.1rem solid transparent;
max-width: 550px;
border-width: 1px;
padding: 5px;
margin-bottom: 5px;
}
.selected {
border: 0.1rem dashed var(--theme-color);
border-style: dashed;
border-width: 1px;
}
.noteid {
background-color: var(--theme-color);
color: var(--secondary-text-color);
padding: 0 0.5rem;
display: inline-block;
width: 5rem;
margin-right: 0.5rem;
background-color: slateblue;
color: white;
border-radius: 5px;
margin-right: 5px;
margin-bottom: 2px;
padding: 1px 15px;
font-size: 0.7rem;
display: block;
width: 15px;
font-family: monospace;
}
</style>