scinote-web/app/assets/stylesheets/dashboard/recent_work.scss

101 lines
1.8 KiB
SCSS
Raw Normal View History

2020-03-06 20:51:18 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
2020-02-13 20:50:29 +08:00
.dashboard-container .recent-work-widget {
2020-03-06 20:51:18 +08:00
.widget-title {
flex-grow: 1;
}
.recent-work-container {
height: 100%;
padding: 0 8px;
position: relative;
.recent-work-item {
color: $color-volcano;
cursor: pointer;
display: flex;
line-height: 28px;
padding: 0 8px;
text-decoration: none;
.object-name {
flex-grow: 1;
font-weight: bold;
overflow: hidden;
padding-right: 15px;
text-overflow: ellipsis;
white-space: nowrap;
}
.object-type {
@include font-small;
color: $color-silver-chalice;
flex-basis: 120px;
flex-shrink: 0;
}
.object-changed {
@include font-small;
flex-basis: 160px;
flex-shrink: 0;
}
&:hover {
2023-06-27 17:58:02 +08:00
background: var(--sn-super-light-grey);
2020-03-06 20:51:18 +08:00
}
}
2020-03-12 22:00:14 +08:00
.widget-placeholder {
2020-03-06 20:51:18 +08:00
.no-results-arrow {
font-size: 32px;
padding-top: 50px;
}
}
}
2020-02-13 20:50:29 +08:00
}
2020-02-13 21:44:59 +08:00
@media (max-width: 1000px) {
2020-02-13 20:50:29 +08:00
.dashboard-container .recent-work-widget {
2020-03-06 20:51:18 +08:00
.no-results {
.no-results-arrow {
display: none;
}
}
2020-02-13 20:50:29 +08:00
}
}
2020-04-02 20:50:48 +08:00
2020-10-02 20:49:08 +08:00
@media (max-width: 1100px) {
2020-04-02 20:50:48 +08:00
.dashboard-container .recent-work-widget {
.widget-title {
line-height: 36px;
}
.recent-work-container {
.recent-work-item {
flex-wrap: wrap;
margin: 5px 0;
.object-name {
flex-basis: 100%;
line-height: 18px;
}
.object-type {
flex-basis: 0;
flex-grow: 1;
line-height: 18px;
}
.object-changed {
flex-basis: 0;
flex-grow: 1;
line-height: 18px;
text-align: right;
}
}
}
}
}