mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
UPDATE: @noahtalerman: For the following bug: - https://github.com/fleetdm/fleet/issues/41862
178 lines
3.4 KiB
SCSS
178 lines
3.4 KiB
SCSS
.feed-list-item {
|
|
display: grid; // Grid system is used to create variable solid line lengths
|
|
grid-template-columns: 16px 16px 8px 1fr;
|
|
grid-template-rows: max-content;
|
|
|
|
&__avatar-wrapper {
|
|
box-sizing: border-box;
|
|
display: grid;
|
|
grid-template-columns: 16px 16px;
|
|
grid-template-rows: 8px 32px 1fr;
|
|
grid-column-start: 1;
|
|
grid-column-end: 3;
|
|
|
|
.avatar-wrapper {
|
|
grid-column-start: 1;
|
|
grid-column-end: 3;
|
|
grid-row-start: 2;
|
|
grid-row-end: 3;
|
|
}
|
|
}
|
|
|
|
&__avatar-upper-dash {
|
|
border-right: 1px solid $ui-fleet-black-10;
|
|
grid-column-start: 1;
|
|
grid-column-end: 2;
|
|
grid-row-start: 1;
|
|
grid-row-end: 2;
|
|
}
|
|
|
|
&__avatar-lower-dash {
|
|
border-right: 1px solid $ui-fleet-black-10;
|
|
grid-column-start: 1;
|
|
grid-column-end: 2;
|
|
grid-row-start: 3;
|
|
grid-row-end: 4;
|
|
}
|
|
|
|
&__details-wrapper {
|
|
all: unset; // reset of all browser default button styles.
|
|
display: flex;
|
|
gap: $pad-medium;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
grid-column-start: 4;
|
|
grid-row-start: 1;
|
|
padding: $pad-small;
|
|
margin-bottom: $pad-large;
|
|
|
|
&:focus {
|
|
outline: 2px solid $ui-fleet-black-75;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:focus-within {
|
|
border-radius: $border-radius-large;
|
|
background-color: $ui-off-white;
|
|
cursor: pointer;
|
|
|
|
.feed-list-item__action-button {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
.premium-icon-tip {
|
|
position: relative;
|
|
top: 4px;
|
|
padding-right: $pad-xsmall;
|
|
}
|
|
|
|
.feed-details {
|
|
margin: 0;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.button {
|
|
&--icon svg {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__details-actions {
|
|
display: flex;
|
|
gap: $pad-medium;
|
|
}
|
|
|
|
&__action-button {
|
|
visibility: hidden;
|
|
}
|
|
|
|
&__close-icon {
|
|
cursor: pointer;
|
|
&:hover {
|
|
svg {
|
|
path {
|
|
stroke: $ui-fleet-black-75-over;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&__details-topline {
|
|
font-size: $x-small;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
&__details-content {
|
|
margin-right: $pad-xsmall;
|
|
}
|
|
|
|
&__details-bottomline {
|
|
font-size: $xx-small;
|
|
color: $ui-fleet-black-50;
|
|
}
|
|
|
|
&__show-query-icon {
|
|
margin-left: $pad-xsmall;
|
|
}
|
|
|
|
&:first-child {
|
|
.feed-list-item__avatar-upper-dash {
|
|
border-right: none;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
.feed-list-item__avatar-lower-dash {
|
|
border-right: none;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Starting here are the styles for the activity item when it is the
|
|
* only activity that is being displayed (controlled by the `soloActivity prop`.
|
|
* We switch from grid to flexbox since we don't need the solid lines anymore.
|
|
* we also dont show to actions on hover
|
|
*/
|
|
&__solo-item {
|
|
border: 1px solid $ui-fleet-black-10;
|
|
border-radius: $border-radius-large;
|
|
padding: $pad-medium;
|
|
display: flex;
|
|
gap: $pad-medium;
|
|
|
|
.feed-list-item__avatar-wrapper {
|
|
display: block;
|
|
}
|
|
|
|
.feed-list-item__avatar-lower-dash {
|
|
display: none;
|
|
}
|
|
|
|
.feed-list-item__details-wrapper {
|
|
display: block;
|
|
padding: 0;
|
|
margin-bottom: 0;
|
|
|
|
&:hover {
|
|
cursor: auto;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
.feed-list-item__details-actions {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__no-details {
|
|
.feed-list-item__details-wrapper {
|
|
&:hover {
|
|
cursor: auto;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|