html-test/scss/style.scss

110 lines
2.5 KiB
SCSS
Raw Permalink Normal View History

2023-05-07 20:05:00 +00:00
#tracking {
.table {
display: grid;
grid-template-columns: 2rem repeat(4, auto);
align-items: center;
2023-05-08 19:24:03 +00:00
.row {
display: contents;
&:hover div {
cursor: pointer;
}
2023-05-07 20:05:00 +00:00
2023-05-08 19:24:03 +00:00
&:not(.open):hover div {
background: whitesmoke;
2023-05-07 20:05:00 +00:00
}
2023-05-08 19:24:03 +00:00
&.open {
.open-button::after {
// content: "\25BC";
content: "\02796";
}
2023-05-07 20:05:00 +00:00
}
2023-05-08 19:24:03 +00:00
.open-button {
&::after {
// content: "\25B6";
content: "\02795";
font-size: 13px;
color: #000;
float: right;
margin-right: 0.35rem;
}
}
}
div {
position: relative;
display: flex;
align-items: center;
padding: 0.5rem 0;
&.header {
font-weight: bold;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #0000001f;
2023-05-07 20:05:00 +00:00
}
}
2023-05-08 19:24:03 +00:00
.hidden {
display: none;
}
2023-05-07 20:05:00 +00:00
.details {
grid-column: 1 / 6;
2023-05-08 19:24:03 +00:00
box-sizing: border-box;
2023-05-07 20:05:00 +00:00
2023-05-08 19:24:03 +00:00
// padding: 0 18px;
// padding: 0.4rem 0;
padding: 0;
2023-05-07 20:05:00 +00:00
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
2023-05-08 19:24:03 +00:00
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #0000001f;
div {
padding: 2rem;
}
2023-05-07 20:05:00 +00:00
}
}
2023-05-08 19:24:03 +00:00
.page-navigation {
display: flex;
margin-top: 3rem;
justify-content: flex-end;
align-items: center;
2023-05-07 20:05:00 +00:00
2023-05-08 19:24:03 +00:00
.pagination {
margin-right: 2rem;
div {
color: black;
float: left;
padding: 8px 16px;
text-decoration: none;
transition: background-color 0.3s;
2023-05-07 20:05:00 +00:00
2023-05-08 19:24:03 +00:00
&:hover {
cursor: pointer;
&:not(.active) {
background-color: #ddd;
}
2023-05-07 20:05:00 +00:00
}
2023-05-08 19:24:03 +00:00
&.active {
background-color: #4caf50;
color: white;
}
2023-05-07 20:05:00 +00:00
}
}
}
}