dootask/resources/assets/sass/pages/components/dialog-session-history.scss
2025-02-12 21:33:10 +08:00

122 lines
2.9 KiB
SCSS
Vendored

.dialog-session-history {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.session-history-title {
text-align: center;
height: 56px;
line-height: 56px;
border-bottom: 1px solid #eeeeee;
font-size: 16px;
font-weight: 500;
padding: 0 24px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.session-history-list {
flex: 1;
overflow: auto;
padding: 6px;
ul {
> li {
list-style: none;
padding: 12px;
margin: 0 6px;
position: relative;
&::after {
display: table;
clear: both;
content: "";
}
&::before {
content: "";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
background: #eeeeee;
}
&:hover {
background-color: rgba($primary-desc-color, 0.1);
}
&:last-child {
&::before {
display: none;
}
}
.history-title {
float: left;
line-height: 20px;
.history-load {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: top;
margin-top: 2px;
margin-right: 6px;
}
> em {
font-style: normal;
font-size: 12px;
margin-right: 6px;
background: #666;
color: #ffffff;
padding: 0 6px;
border-radius: 6px;
line-height: 20px;
display: inline-block;
}
}
.history-time {
float: right;
opacity: 0.5;
font-size: 13px;
}
}
}
}
.session-history-load {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 36px;
.common-loading {
width: 20px;
height: 20px;
}
}
}
body.window-portrait {
.dialog-session-history {
.session-history-list {
> ul {
> li {
&:hover {
background-color: transparent;
}
}
}
}
}
}