Dragon-Knight/public/css/admin.css

130 lines
2.1 KiB
CSS
Raw Permalink Normal View History

:root {
2024-12-19 18:33:17 -06:00
--font-size: 16px;
2024-12-19 23:16:59 -06:00
--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
2024-12-19 18:33:17 -06:00
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: var(--font-size);
2024-12-19 23:16:59 -06:00
font-family: var(--font-family);
}
2024-12-19 18:33:17 -06:00
body {
padding: 2rem;
color: rgb(108, 108, 108);
background-color: rgb(245, 245, 245);
}
h1, h2, h3, h4, h5 {
color: rgb(30, 30, 30);
}
div#admin-container {
max-width: 1280px;
margin: 0 auto;
padding: 1rem;
}
2024-12-19 18:33:17 -06:00
header {
margin-bottom: 2rem;
}
main {
display: flex;
gap: 2rem;
margin-bottom: 2rem;
}
main > nav {
flex: 0 0 auto;
}
main > section {
flex: 1;
}
table {
width: 100%;
2024-12-19 23:16:59 -06:00
border-collapse: collapse;
outline-width: none;
font-family: var(--font-family);
border: 1px solid rgba(0, 0, 0, 0.1);
& > caption {
margin: 1rem;
}
& :is(td,th) {
border: 1px solid rgba(0, 0, 0, 0.4);
padding: 0.5rem 1rem;
}
& thead tr {
background: rgba(0, 0, 0, 0.1);
}
& tbody tr:nth-of-type(even) {
background: rgba(0, 0, 0, 0.1);
&:hover { background: rgba(0, 0, 0, 0.2); }
}
td:hover {
color: white;
background: rgba(0, 0, 0, 0.1);
}
tr:hover {
background: rgba(0, 0, 0, 0.2);
}
}
2024-12-20 14:20:34 -06:00
.table-wrapper {
width: 100%; /* Ensure the wrapper takes 100% of the parent's width */
max-height: 300px; /* Set the desired height limit */
overflow-x: auto; /* Enable horizontal scrolling if the table overflows */
overflow-y: auto; /* Enable vertical scrolling if needed */
display: block; /* Ensure block-level behavior */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
}
a {
2024-12-19 18:33:17 -06:00
color: #015df7;
text-decoration: none;
2024-12-19 18:33:17 -06:00
cursor: pointer;
&:hover {
color: hsl(218, 99%, 29%);
text-decoration: underline;
}
}
2024-12-19 18:33:17 -06:00
.small {
font: 10px verdana;
}
.highlight {
color: red;
}
.light {
color: #999999;
}
.title {
border: solid 1px black;
background-color: #eeeeee;
font-weight: bold;
padding: 5px;
margin: 3px;
}
footer {
display: flex;
justify-content: space-around;
font-size: 0.8rem;
padding: 0.5rem;
2024-12-19 18:33:17 -06:00
margin: 2rem 0;
}