151 lines
2.4 KiB
CSS
151 lines
2.4 KiB
CSS
:root {
|
|
--fore: #202020;
|
|
--back: #fdfdfd;
|
|
--back2: #f0f0f0;
|
|
--shade: rgba(0, 0, 0, 0.05);
|
|
--highlight: yellow;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
* {
|
|
margin: 0;
|
|
}
|
|
button {
|
|
color: inherit;
|
|
background: none;
|
|
border: 1px solid var(--fore);
|
|
border-radius: 4px;
|
|
}
|
|
button, [role="button"] {
|
|
cursor: pointer;
|
|
}
|
|
code {
|
|
font-family:
|
|
ui-monospace,
|
|
SFMono-Regular,
|
|
Menlo,
|
|
Monaco,
|
|
Consolas,
|
|
"Liberation Mono",
|
|
"Courier New",
|
|
monospace;
|
|
font-size: 1em;
|
|
}
|
|
img,
|
|
svg {
|
|
display: block;
|
|
}
|
|
img,
|
|
video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
html {
|
|
line-height: 1.5;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: var(--fore);
|
|
background-color: var(--back);
|
|
padding-bottom: 4em;
|
|
font-family:
|
|
ui-sans-serif,
|
|
system-ui,
|
|
-apple-system,
|
|
BlinkMacSystemFont,
|
|
"Segoe UI",
|
|
Roboto,
|
|
"Helvetica Neue",
|
|
Arial,
|
|
"Noto Sans",
|
|
sans-serif,
|
|
"Apple Color Emoji",
|
|
"Segoe UI Emoji",
|
|
"Segoe UI Symbol",
|
|
"Noto Color Emoji";
|
|
}
|
|
|
|
.calendar__calendar {
|
|
width: 18em;
|
|
margin: 1em auto;
|
|
border-radius: 2em;
|
|
padding: 1em;
|
|
background-color: var(--back2);
|
|
}
|
|
.calender__cash {
|
|
margin: 4px 0.5em;
|
|
}
|
|
.calendar__head {
|
|
text-align: center;
|
|
margin: 0.5em 0;
|
|
}
|
|
.calendar__days {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
width: 16em;
|
|
text-align: center;
|
|
}
|
|
.calendar__date {
|
|
display: inline-block;
|
|
width: 4em;
|
|
text-align: center;
|
|
}
|
|
.calendar__days > span {
|
|
width: 3.2em;
|
|
padding: 4px 0;
|
|
}
|
|
.calendar__days > span.p {
|
|
background-color: var(--highlight);
|
|
}
|
|
.calendar__events {
|
|
width: 21cm;
|
|
margin: 1em auto;
|
|
}
|
|
|
|
.calendar__alert > * {
|
|
color: orange;
|
|
font-weight: bold;
|
|
width: 21cm;
|
|
margin: 0.5em auto;
|
|
}
|
|
|
|
.calendar__storage {
|
|
width: 12em;
|
|
margin: 1em auto;
|
|
border-radius: 2em;
|
|
padding: 0.5em;
|
|
background-color: var(--back2);
|
|
}
|
|
.calendar__storage td {
|
|
padding: 0 8px;
|
|
width: 12em;
|
|
}
|
|
.calendar__storage td:nth-child(1) {
|
|
text-align: end;
|
|
}
|
|
|
|
/* .calendar__events {} */
|
|
.calendar__events thead > tr,
|
|
.calendar__events tr:nth-of-type(2n) {
|
|
background-color: var(--shade);
|
|
}
|
|
.calendar__events tr:hover {
|
|
background-color: rgba(0, 255, 0, 0.2) !important;
|
|
}
|
|
|
|
a:any-link {
|
|
color: var(--fore);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--fore: #a0a0a0;
|
|
--back: #303030;
|
|
--back2: #383838;
|
|
--shade: rgba(255, 255, 255, 0.05);
|
|
--highlight: rgba(255, 255, 0, 0.15);
|
|
}
|
|
}
|