first commit
This commit is contained in:
27
css/calendar-week.css
Normal file
27
css/calendar-week.css
Normal file
@@ -0,0 +1,27 @@
|
||||
.calendar-header.hours {
|
||||
grid-template-columns: 120px;
|
||||
}
|
||||
|
||||
.calendar-weekday-column {
|
||||
background: white;
|
||||
position: relative;
|
||||
gap: 1px;
|
||||
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.test-entry {
|
||||
position: initial;
|
||||
background: yellow;
|
||||
|
||||
padding: 0px 5px;
|
||||
top: calc(100% / 23 * 11 + 1px);
|
||||
height: calc(100% / 23 * 3 - 1px);
|
||||
}
|
||||
|
||||
.test-entry.two {
|
||||
background: red;
|
||||
|
||||
top: calc(100% / 23 * 1.1 + 1px);
|
||||
height: calc(100% / 23 * 3 - 1px);
|
||||
}
|
||||
188
css/calendar.css
Normal file
188
css/calendar.css
Normal file
@@ -0,0 +1,188 @@
|
||||
.calendar-parent {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
|
||||
background: #555;
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
/* Grid setup */
|
||||
.calendar-header,
|
||||
.calendar-body {
|
||||
display: grid;
|
||||
grid-template-columns: 120px repeat(7, 1fr);
|
||||
grid-auto-rows: 1fr;
|
||||
width: 100%;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
/* Body of the calendar */
|
||||
.calendar-body {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* Common layout of all grid elements */
|
||||
.calendar-header-value,
|
||||
.calendar-entry {
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Header elements within grid */
|
||||
.calendar-header-value {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
background: #000;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* First header, which shows the current month */
|
||||
.calendar-header-value.first {
|
||||
display: flex;
|
||||
/*justify-content: space-between;*/
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
font-size: larger;
|
||||
|
||||
-webkit-user-select: none; /* Safari */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Links in first header to change month */
|
||||
.calendar-header-value > a {
|
||||
margin: 0px 5px;
|
||||
text-decoration: none;
|
||||
color: #7a7ac7;
|
||||
}
|
||||
|
||||
/* Month day entry */
|
||||
.calendar-entry {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Day entry for previous or next month */
|
||||
.calendar-entry.other-month {
|
||||
background: #222 !important;
|
||||
color: #bbb;
|
||||
}
|
||||
.calendar-entry.other-month .day-event-entry {
|
||||
background: #444;
|
||||
border-color: #333;
|
||||
}
|
||||
|
||||
/* Two different backgrounds for odd and even rows*/
|
||||
.calendar-entry.even-row {
|
||||
background: #ccc;
|
||||
}
|
||||
.calendar-entry.odd-row {
|
||||
background: #aaa;
|
||||
}
|
||||
/* Yet again different backgrounds for weekend days */
|
||||
.calendar-entry.weekend {
|
||||
background: #777;
|
||||
}
|
||||
|
||||
/* Header of month day entry */
|
||||
.day-header {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
/* Modification of day-header that highlights today */
|
||||
.day-header.today > span {
|
||||
padding: 0px 5px;
|
||||
border-radius: 3px;
|
||||
background: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Scrollbox containing the day events element */
|
||||
.day-events-scrollbox {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* Element containing all event elements for a day */
|
||||
.day-events {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
|
||||
flex-direction: column;
|
||||
overflow: scroll;
|
||||
scroll-behavior: smooth;
|
||||
|
||||
gap: 2px;
|
||||
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
/* Hide day-events scrollbars */
|
||||
.day-events::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* Shadow for the scrollbox */
|
||||
.day-events-shadow {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Top, bottom and top-bottom shadows for day-events-scrollbox */
|
||||
.box-shadow-bottom {
|
||||
box-shadow: inset 0px -11px 8px -10px #000;
|
||||
}
|
||||
.box-shadow-top {
|
||||
box-shadow: inset 0px 11px 8px -10px #000;
|
||||
}
|
||||
.box-shadow-topbottom {
|
||||
box-shadow:
|
||||
inset 0px -11px 8px -10px #000,
|
||||
inset 0px 11px 8px -10px #000;
|
||||
}
|
||||
|
||||
/* Event entry for a day */
|
||||
.day-event-entry {
|
||||
background: yellow;
|
||||
border: 1px solid darkorange;
|
||||
border-radius: 3px;
|
||||
padding: 2px 4px;
|
||||
margin: 0px 2px;
|
||||
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/* Event timespan */
|
||||
.day-event-entry > .time {
|
||||
font-weight: bold;
|
||||
margin-right: 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Event Description */
|
||||
.day-event-entry > .description {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
54
css/dialog.css
Normal file
54
css/dialog.css
Normal file
@@ -0,0 +1,54 @@
|
||||
.dialog-parent {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.dialog {
|
||||
display: inline-flex;
|
||||
position: relative;
|
||||
min-width: 320px;
|
||||
min-height: 100px;
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
|
||||
background: white;
|
||||
box-shadow: 0px 0px 5px black;
|
||||
}
|
||||
|
||||
.dialog-content {
|
||||
display: inline-block;
|
||||
margin-bottom: 35px;
|
||||
padding: 10px;
|
||||
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.dialog-buttons {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
bottom: 0px;
|
||||
height: 35px;
|
||||
width: 100%;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
column-gap: 15px;
|
||||
}
|
||||
|
||||
.dialog-content > input[type=text] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dialog-content > label {
|
||||
font-size: smaller;
|
||||
}
|
||||
81
css/flow.css
Normal file
81
css/flow.css
Normal file
@@ -0,0 +1,81 @@
|
||||
body {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.flow-parent {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.flow-header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.flow-header-value {
|
||||
margin: 0px 18px;
|
||||
|
||||
font-weight: bold;
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
.flow-element, .flow-header {
|
||||
display: flex;
|
||||
margin: 10px;
|
||||
width: 100%;
|
||||
/*max-width: 400px;*/
|
||||
}
|
||||
|
||||
.flow-day-name,
|
||||
.flow-header-spacer {
|
||||
font-weight: bold;
|
||||
font-size: 175%;
|
||||
margin: 0px 10px;
|
||||
text-align: center;
|
||||
|
||||
min-width: 50px;
|
||||
}
|
||||
.flow-day-name .weekday {
|
||||
font-size: 50%;
|
||||
}
|
||||
|
||||
.flow-day-entries {
|
||||
display: grid;
|
||||
margin: 10px;
|
||||
gap: 5px;
|
||||
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.flow-day-entry {
|
||||
background: yellow;
|
||||
border: 1px solid darkorange;
|
||||
border-radius: 5px;
|
||||
|
||||
padding: 4px 6px;
|
||||
margin: 0px 2px;
|
||||
|
||||
min-width: 0;
|
||||
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.flow-day-entry > .time {
|
||||
font-size: smaller;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.flow-day-entry > .description {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
36
css/style.css
Normal file
36
css/style.css
Normal file
@@ -0,0 +1,36 @@
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0px;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: larger;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
margin: 10px;
|
||||
|
||||
box-shadow: 5px 7px #777;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Disabled/empty link */
|
||||
a[href="#"] {
|
||||
color: #555 !important;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
Reference in New Issue
Block a user