Skip to content

Commit

Permalink
And then we make it look nice
Browse files Browse the repository at this point in the history
  • Loading branch information
V13Axel committed Jul 19, 2024
1 parent fde860c commit f0eb63a
Show file tree
Hide file tree
Showing 7 changed files with 292 additions and 38 deletions.
5 changes: 4 additions & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ import Quill from 'quill';
Alpine.data('rich_editor', () => ({
value: '',
init() {
let quill = new Quill(this.$refs.quill, { theme: 'snow' })
let quill = new Quill(this.$refs.quill, {
theme: 'snow',
placeholder: 'Compose an epic...',
})

quill.root.innerHTML = this.value

Expand Down
8 changes: 7 additions & 1 deletion resources/js/calendar-events-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ export default () => ({
this.cancel_edit_comment();
comment.editing = true;

this.event_editor = new Quill(document.querySelector(`#comment-editor-${comment.index} > div`), { theme: 'snow' });
this.event_editor = new Quill(
document.querySelector(`#comment-editor-${comment.index} > div`),
{
theme: 'snow',
placeholder: 'Compose an epic...',
},
);

this.event_editor.root.innerHTML = comment.content;

Expand Down
8 changes: 8 additions & 0 deletions resources/sass/calendar/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,11 @@ $m-current-day: #fdb44d;
// SVG image data
$disabled-crosshatch: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23111827' fill-opacity='0.3' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
$warning-crosshatch: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e3342f' fill-opacity='0.3' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");

:root {
--stroke-colour: white;
--fill-colour: white;
--picker-label-colour: white;
--editor-placeholder-colour: rgb(107 114 128);
--border-color: rgb(31 41 55);
}
8 changes: 8 additions & 0 deletions resources/sass/calendar/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,11 @@ $m-current-day: #fdb44d;
// SVG image data
$disabled-crosshatch: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20m40 20V20L20 40' fill='%23f9f9fa' fill-rule='evenodd'/%3E%3C/svg%3E");
$warning-crosshatch: url("data:image/svg+xml;charset=utf-8,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20m40 20V20L20 40' fill-opacity='0.3' fill='%23e3342f' fill-rule='evenodd'/%3E%3C/svg%3E");

:root {
--stroke-colour: $modal-content-border-color;
--fill-colour: $modal-content-border-color;
--picker-label-colour: $modal-content-border-color;
--editor-placeholder-colour: $modal-content-border-color;
--border-color: rgb(31 41 55);
}
25 changes: 20 additions & 5 deletions resources/sass/calendar/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -889,12 +889,26 @@ input[type="number"]:not(.spinner) {
display: flex;
flex-direction: column;
width: 100%;
margin-bottom: 10px;
}

.event_comment {
margin-bottom: 0.5em;
padding: 1rem;
border: 1px solid $calendar-border-color;
padding: 8px;
border: 1px solid $modal-content-bg-color;
}

.event_comment:first-of-type {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}

.event_comment:last-child {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}

.event_comment:not(:last-child) {
margin-bottom: -1px;
}

.event_comment.calendar_owner .username {
Expand All @@ -917,7 +931,7 @@ input[type="number"]:not(.spinner) {
margin: 0;
padding: 0;
line-height: 1.2rem;
font-size: 1.1rem;
font-size: 0.9rem;
}

.event_comment .username {
Expand All @@ -931,7 +945,8 @@ input[type="number"]:not(.spinner) {
font-size: 0.7rem;
}

body .event_comment .comment_context_btn:not(:hover) {
body .event_comment .calendar_action {
padding: 0.2px !important;
background-color: transparent !important;
border: none !important;
}
Expand Down
Loading

0 comments on commit f0eb63a

Please sign in to comment.