/* Constants */ :root { /* Colors */ --color-red: #CF5C56; --color-brown: #A04642; --color-green: #9FD2A5; --color-blue: #6CA2A4; --color-gray: #EEEEEE; --color-gray-light: #F8F8F8; --color-yellow: #FFF09E; /* Sizes */ --size-bee: 0.2rem; --size-mouse: 0.5rem; --size-cat: 0.75rem; --size-dog: 1rem; --size-lion: 1.25rem; --size-bear: 1.5rem; --size-horse: 2rem; --size-camel: 2.625rem; --size-rhino: 3.375rem; --size-elephant: 4.25rem; --size-mammoth: 5.25rem; } /* Reset */ html { box-sizing: border-box; height: 100%; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; height: 100%; } p { margin: 0; } a { color: inherit; text-decoration: none; } h1 { font-size: inherit; font-weight: normal; margin: 0; } select { height: inherit; font-size: inherit; } input { color: inherit; font-size: inherit; } ul { list-style-type: none; margin: 0; padding-left: 0; } /* Media */ @media screen and (max-width: 500px) { html { font-size: 14px; } .g-Media__Large { display: none !important; } } @media screen and (min-width: 500px) and (max-width: 900px) { html { font-size: 15px; } } @media screen and (min-width: 900px) { html { font-size: 16px; } } /* Layout */ body { display: flex; font-family: sans-serif; flex-direction: column; align-items: center; } .g-Header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: var(--size-cat) var(--size-dog); } .g-Header__Title { display: block; font-size: var(--size-horse); color: var(--color-red); } .g-Header__Logout { cursor: pointer; margin-left: var(--size-cat); background-color: transparent; border: none; } .g-Header__Logout:hover { text-decoration: underline; } .g-Header__Logout:focus { text-decoration: underline; } .g-Nav { width: 100%; display: flex; background-color: var(--color-red); color: white; overflow-y: auto; } .g-Nav__Link { padding: var(--size-mouse) var(--size-dog); } .g-Nav__Link:hover { background-color: var(--color-brown); } .g-Nav__Link:focus { background-color: var(--color-brown); } .g-Nav__Link--Current { background-color: var(--color-brown); } .g-Main { display: flex; width: 100%; height: 100%; overflow-x: hidden; } .g-Aside { height: 100%; display: flex; flex-direction: column; background-color: var(--color-gray-light); border-right: 2px solid #DDDDDD; padding: var(--size-horse) var(--size-bear); } .g-Section { display: flex; width: 100%; flex-direction: column; align-items: center; margin: var(--size-horse) 0; } .g-Title { font-size: var(--size-lion); color: var(--color-red); margin-bottom: var(--size-lion); text-decoration: underline; } .g-Paragraph { margin-bottom: var(--size-lion); } /* Heading */ .g-H1 { font-size: var(--size-lion); text-decoration: underline; margin-bottom: var(--size-lion); } /* Link */ .g-Link { color: var(--color-blue); } .g-Link:hover { text-decoration: underline; } /* Table */ .g-Table { display: table; margin: 0 auto var(--size-bear); } .g-Table__Row { display: table-row; text-decoration: none; color: inherit; } .g-Table__Row--Highlight { background-color: var(--color-yellow); } .g-Table__Row:not(.g-Table__Row--Header):not(.g-Table__Row--Highlight):hover { background-color: var(--color-gray); } .g-Table__Row--Header { font-weight: bold; } .g-Table__Cell { display: table-cell; padding: var(--size-mouse) var(--size-dog); white-space: nowrap; } .g-Table__Cell:first-child { padding-left: 0; } .g-Table__Cell:last-child { padding-right: 0; } .g-Table__NumericCell { text-align: right; } .g-Table__NoResults { margin: var(--size-camel) 0 var(--size-lion); text-align: center; } /* Paging */ .g-Paging { display: flex; justify-content: center; } .g-Paging__Link { padding: 0 var(--size-dog); } .g-Paging__Link--Active { color: var(--color-blue); } /* Form */ .g-Form { display: flex; flex-direction: column; margin-bottom: var(--size-lion); } @media screen and (min-width: 500px) { .g-Form { width: 450px; } } .g-Form__Label { margin-bottom: var(--size-mouse); position: relative; } .g-Form__Input { margin: var(--size-mouse) 0 var(--size-lion); background-color: white; border: 1px solid black; height: var(--size-camel); padding: 0 var(--size-cat); width: 100%; } .g-Form__InputColor { padding: 0; } .g-Form__Select { margin: var(--size-mouse) 0 var(--size-lion); background-color: white; border: 1px solid black; height: var(--size-camel); padding: 0 var(--size-cat); width: 100%; } .g-Form__ResetSelect { cursor: pointer; position: absolute; top: -3px; right: 0; } .g-Form__Error { color: var(--color-red); text-align: center; margin-bottom: var(--size-bear); } /* Buttons */ .g-Button__Validate { display: flex; align-items: center; justify-content: center; cursor: pointer; background-color: var(--color-green); color: white; border: none; height: var(--size-camel); padding: 0 var(--size-dog); border-radius: var(--size-bee); } .g-Button__Validate:hover { text-decoration: underline; } .g-Button__Danger { cursor: pointer; background-color: var(--color-red); color: white; border: none; height: var(--size-camel); padding: 0 var(--size-dog); border-radius: var(--size-bee); } .g-Button__Danger:hover { text-decoration: underline; } .g-Button__Danger:disabled { background-color: var(--color-gray); cursor: pointer; } /* Login */ .g-Login { display: flex; width: 100%; align-items: center; margin-top: 20vh; flex-direction: column; } .g-Login__Title { margin-bottom: var(--size-lion); } .g-Login__Button { width: 100%; } /* Payment */ .g-Payments__Header { display: flex; justify-content: space-between; align-items: center; } @media screen and (max-width: 500px) { .g-Payments__Header { flex-direction: column; } } .g-Payments__Filters { display: flex; flex-direction: column; } @media screen and (max-width: 500px) { .g-Payments__New { margin-top: var(--size-dog); } } .g-Payments__Refund { color: var(--color-green); } /* Balance */ .g-Balance__ExceedingPayers { background-color: var(--color-green); border-radius: var(--size-bee); color: white; padding: var(--size-bee); margin-bottom: var(--size-bear); text-align: center; } .g-Balance__ExceedingPayer { padding: var(--size-mouse); } /* Chart */ .g-Chart { width: 80%; margin: 0 auto; }