2023-08-01 00:13:42 +02:00
. flex-list {
list-style : none ;
}
. flex-item {
display : flex ;
gap : 8 px ;
align-items : flex-start ;
2023-11-02 05:30:38 +01:00
padding : 10 px 0 ;
2023-08-01 00:13:42 +02:00
}
. flex-item . flex-item-leading {
display : flex ;
align-items : flex-start ;
}
. flex-item . flex-item-main {
display : flex ;
flex-direction : column ;
2025-07-05 23:19:33 +08:00
gap : 0.25 em ;
2023-08-01 00:13:42 +02:00
flex-grow : 1 ;
2023-08-23 12:23:30 +08:00
flex-basis : 60 % ; /* avoid wrapping the "flex-item-trailing" too aggressively */
min-width : 0 ; /* make the "text truncate" work, otherwise the flex axis is not limited and the text just overflows */
2023-08-01 00:13:42 +02:00
}
. flex-item-header {
display : flex ;
gap : .25 rem ;
justify-content : space-between ;
flex-wrap : wrap ;
}
. flex-item a : not ( . label , . button ) : hover {
color : var ( - - color - primary ) !important ;
}
. flex-item . flex-item-trailing {
display : flex ;
gap : 0.5 rem ;
align-items : center ;
flex-grow : 0 ;
flex-wrap : wrap ;
justify-content : end ;
}
. flex-item . flex-item-title {
display : inline-flex ;
flex-wrap : wrap ;
align-items : center ;
2025-06-27 17:12:25 +02:00
/* labels are under effect of this gap here because they are display:contents. Ideally we should make wrapping
of labels work without display: contents and set this to a static value again. */
gap : var ( - - gap - inline ) ;
2023-08-01 00:13:42 +02:00
max-width : 100 % ;
color : var ( - - color - text ) ;
font-size : 16 px ;
font-weight : var ( - - font - weight - semibold ) ;
2024-05-10 14:25:49 +02:00
overflow-wrap : anywhere ;
2023-08-23 12:23:30 +08:00
min-width : 0 ;
2023-08-01 00:13:42 +02:00
}
. flex-item . flex-item-title a {
color : var ( - - color - text ) ;
overflow-wrap : anywhere ;
}
. flex-item . flex-item-body {
display : flex ;
align-items : center ;
flex-wrap : wrap ;
gap : .25 rem ;
color : var ( - - color - text - light -2 ) ;
2024-05-10 14:25:49 +02:00
overflow-wrap : anywhere ;
2023-08-01 00:13:42 +02:00
}
. flex-item . flex-item-body a {
color : inherit ;
overflow-wrap : anywhere ;
}
. flex-list > . flex-item + . flex-item {
border-top : 1 px solid var ( - - color - secondary ) ;
2023-08-30 07:13:30 +08:00
}
2024-03-24 19:23:38 +01:00
/* Fomantic UI segment has default "padding: 1em", so here it removes the padding-top and padding-bottom accordingly (there might also be some `tw-hidden` siblings).
2023-08-31 23:28:45 +02:00
Developers could also use "flex-space-fitted" class to remove the first item's padding-top and the last item's padding-bottom */
. flex-list . flex-space-fitted > . flex-item : first-child ,
2023-09-07 09:13:11 +08:00
. ui . segment > . flex-list > . flex-item : first-child {
2023-08-30 07:13:30 +08:00
padding-top : 0 ;
}
2023-08-31 23:28:45 +02:00
. flex-list . flex-space-fitted > . flex-item : last-child ,
2023-09-07 09:13:11 +08:00
. ui . segment > . flex-list > . flex-item : last-child {
2023-08-30 07:13:30 +08:00
padding-bottom : 0 ;
2023-08-01 00:13:42 +02:00
}
2023-08-31 23:28:45 +02:00
/* If there is a divider besides the flex-list, some padding/margin are not needs */
. divider + . flex-list > . flex-item : first-child {
padding-top : 0 ;
}
. flex-list + . divider {
margin-top : 0 ;
}