mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-29 00:04:35 +00:00
353 lines
5.2 KiB
CSS
353 lines
5.2 KiB
CSS
:root {
|
|
--hue: 280;
|
|
--b0: hsl(var(--hue), 27%, 15%);
|
|
--b1: hsl(var(--hue), 26%, 20%);
|
|
--b2: hsl(var(--hue), 25%, 24%);
|
|
--t0: hsl(var(--hue), 00%, 89%);
|
|
--t1: hsl(var(--hue), 13%, 51%);
|
|
}
|
|
|
|
.trans {
|
|
background: linear-gradient(#60d0fa50 0%,
|
|
#60d0fa50 19%,
|
|
#f5acba50 20%
|
|
#f5acba50 39%,
|
|
#FFFFFF50 40%,
|
|
#FFFFFF50 59%,
|
|
#f5acba50 60%,
|
|
#f5acba50 79%,
|
|
#60d0fa50 80%);
|
|
}
|
|
|
|
body {
|
|
background-color: var(--b1);
|
|
}
|
|
|
|
body>* {
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
.container {
|
|
display: grid;
|
|
flex-direction: column;
|
|
justify-content: left;
|
|
grid-template-columns: auto auto;
|
|
list-style-type: none;
|
|
}
|
|
|
|
.container.firstchildlarge> :first-child {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.container>* {
|
|
display: block;
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3em;
|
|
}
|
|
|
|
/* nav bar */
|
|
*,
|
|
.logo {
|
|
color: var(--t0);
|
|
font-family: "Roboto", sans-serif;
|
|
}
|
|
|
|
nav {
|
|
background-color: var(--b0);
|
|
margin: 0;
|
|
padding: 1em;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
nav a {
|
|
padding-right: 1em;
|
|
text-decoration: none;
|
|
color: var(--t1);
|
|
}
|
|
|
|
nav h2 {
|
|
display: inline-block
|
|
}
|
|
|
|
nav> :last-child {
|
|
float: right;
|
|
padding-right: 0;
|
|
}
|
|
|
|
/* notification stuff */
|
|
.notif {
|
|
padding: 0.5em;
|
|
background-color: var(--b0);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.notif.error {
|
|
background-color: rgb(118, 13, 13);
|
|
}
|
|
|
|
.notif p {
|
|
margin: 5px;
|
|
}
|
|
|
|
/* landing page */
|
|
form#user_creation {
|
|
background-color: var(--b2);
|
|
padding: 1em;
|
|
margin-top: 2em;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
form#user_creation>h3 {
|
|
margin: 5px;
|
|
margin-right: 2em;
|
|
}
|
|
|
|
input {
|
|
color: var(--b2);
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: calc(100% - 40em);
|
|
min-width: 10em;
|
|
}
|
|
|
|
form#user_creation>* {
|
|
display: inline-block;
|
|
margin-right: 1.5em;
|
|
}
|
|
|
|
ul.userlist > li a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
ul.userlist {
|
|
display: grid;
|
|
justify-content: left;
|
|
grid-auto-rows: minmax(5em, auto);
|
|
gap: 1em;
|
|
grid-template-columns: repeat(auto-fill, minmax(8em, 1fr));
|
|
list-style-type: none;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.userlist > li > a {
|
|
border-radius: 4px;
|
|
background-color: var(--b2);
|
|
padding: 1em;
|
|
display: inline-block;
|
|
width: 6em;
|
|
height: 3.5em;
|
|
}
|
|
|
|
.name {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
/* user page */
|
|
.balance {
|
|
display: block;
|
|
line-break: normal;
|
|
}
|
|
|
|
.balance-value {
|
|
padding-left: 1rem;
|
|
font-size: 2em;
|
|
}
|
|
|
|
h1 {
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.userinfo {
|
|
margin-left: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Amount selector user page */
|
|
.amount {
|
|
display: block;
|
|
padding-top: 1em;
|
|
}
|
|
|
|
.amount-presets {
|
|
display: grid;
|
|
justify-content: left;
|
|
grid-auto-rows: minmax(5em, 2);
|
|
grid-template-columns: repeat(6, 6em);
|
|
list-style-type: none;
|
|
}
|
|
|
|
input.button {
|
|
place-content: center;
|
|
padding: 0.8em 0.5em;
|
|
border: none;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.amount-presets>form>input {
|
|
width: 6em;
|
|
margin: 1em;
|
|
}
|
|
|
|
.amount-presets input:not([type=submit]) {
|
|
display: none !important;
|
|
}
|
|
|
|
.amount-pos {
|
|
color: rgb(0, 204, 29);
|
|
}
|
|
|
|
input.amount-pos {
|
|
background: rgb(21, 89, 73);
|
|
}
|
|
|
|
.amount-neg {
|
|
color: rgb(245, 73, 99);
|
|
}
|
|
|
|
input.amount-neg {
|
|
background-color: rgb(84, 64, 82);
|
|
}
|
|
|
|
/* amount neutral */
|
|
.amount-ntr {
|
|
color: #00e1ff;
|
|
}
|
|
|
|
input.amount-ntr {
|
|
background-color: #0e646f;
|
|
}
|
|
|
|
h3 {
|
|
margin: 4px;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.backgroundbox {
|
|
width: fit-content;
|
|
background-color: var(--b0);
|
|
padding: 1em;
|
|
}
|
|
|
|
.transactions.container> :first-child {
|
|
width: 36em;
|
|
}
|
|
|
|
/* create transaction box */
|
|
.box {
|
|
display: grid;
|
|
justify-content: left;
|
|
/* grid-auto-rows: minmax(5em, 2); */
|
|
/* grid-template-columns: repeat(2, calc(50% - 2em)); */
|
|
grid-template-columns: auto 10em;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
form.box> :first-child,
|
|
form.box> :last-child {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
form.box>* {
|
|
margin: .3em;
|
|
width: auto;
|
|
}
|
|
|
|
|
|
table {
|
|
padding: 1em;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
td {
|
|
padding: .3em;
|
|
min-width: 5em;
|
|
}
|
|
|
|
tr:nth-child(2n) {
|
|
background-color: var(--b0);
|
|
}
|
|
|
|
table.log>tbody {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
table.log>tbody>tr {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
input {
|
|
background-color: inherit;
|
|
color: white;
|
|
}
|
|
|
|
input:not([type=submit]) {
|
|
border: none;
|
|
border-bottom: 1px solid var(--t0);
|
|
}
|
|
|
|
@media print {
|
|
nav,
|
|
.container {
|
|
display: none;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
table.log:before {
|
|
content: attr(printtitle);
|
|
font-size: 2em;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
div.userlist:before {
|
|
content: attr(printtitle);
|
|
clear: right;
|
|
width: 100vw;
|
|
font-size: 2em;
|
|
text-decoration: underline;
|
|
display: block;
|
|
}
|
|
|
|
.userlist a,
|
|
ul {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.userlist>li>a {
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
tr :last-child {
|
|
display: none;
|
|
}
|
|
|
|
td {
|
|
border-bottom: 1px solid black;
|
|
}
|
|
|
|
*,
|
|
body {
|
|
background-color: white;
|
|
color: black;
|
|
}
|
|
|
|
form {
|
|
display: none;
|
|
}
|
|
}
|