Skip to content

A free, self-hostable news aggregator…

refactor(themes): convert .horizontal-list from display:table to flex (#8823)

polybjornbe3606102aa6
diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css
index 6d7e7bf94..e184c6a25 100644
--- a/p/themes/base-theme/frss.css
+++ b/p/themes/base-theme/frss.css
@@ -755,14 +755,14 @@ input[type="checkbox"]:focus-visible {
.horizontal-list {
margin: 0;
padding: 0;
- display: table;
- table-layout: fixed;
+ display: flex;
+ align-items: center;
width: 100%;
+ list-style: none;
}
.horizontal-list .item {
- display: table-cell;
- vertical-align: middle;
+ flex: 0 0 auto;
}
.horizontal-list .item .item-element {
@@ -1514,11 +1514,6 @@ a.website:hover .favicon {
background-color: inherit;
}
-.flux .flux_header.has-thumbnail .item.titleAuthorSummaryDate,
-.flux .flux_header.has-summary .item.titleAuthorSummaryDate {
- vertical-align: top;
-}
-
.flux .flux_header .item.thumbnail {
line-height: 0;
padding: var(--frss-padding-top-bottom) var(--frss-padding-flux-items);
@@ -1569,6 +1564,9 @@ a.website:hover .favicon {
.flux .flux_header .item.titleAuthorSummaryDate {
position: relative;
overflow: hidden;
+ flex: 1;
+ min-width: 0;
+ align-self: stretch;
}
.flux .flux_header .item .title {
@@ -1768,7 +1766,7 @@ a.website:hover .favicon {
.content .article-header-topline.horizontal-list .item,
.content .subtitle.horizontal-list .item {
- vertical-align: top;
+ align-self: flex-start;
}
.content .article-header-topline.horizontal-list .item .website,
diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css
index 9c9e86943..71c581077 100644
--- a/p/themes/base-theme/frss.rtl.css
+++ b/p/themes/base-theme/frss.rtl.css
@@ -755,14 +755,14 @@ input[type="checkbox"]:focus-visible {
.horizontal-list {
margin: 0;
padding: 0;
- display: table;
- table-layout: fixed;
+ display: flex;
+ align-items: center;
width: 100%;
+ list-style: none;
}
.horizontal-list .item {
- display: table-cell;
- vertical-align: middle;
+ flex: 0 0 auto;
}
.horizontal-list .item .item-element {
@@ -1514,11 +1514,6 @@ a.website:hover .favicon {
background-color: inherit;
}
-.flux .flux_header.has-thumbnail .item.titleAuthorSummaryDate,
-.flux .flux_header.has-summary .item.titleAuthorSummaryDate {
- vertical-align: top;
-}
-
.flux .flux_header .item.thumbnail {
line-height: 0;
padding: var(--frss-padding-top-bottom) var(--frss-padding-flux-items);
@@ -1569,6 +1564,9 @@ a.website:hover .favicon {
.flux .flux_header .item.titleAuthorSummaryDate {
position: relative;
overflow: hidden;
+ flex: 1;
+ min-width: 0;
+ align-self: stretch;
}
.flux .flux_header .item .title {
@@ -1768,7 +1766,7 @@ a.website:hover .favicon {
.content .article-header-topline.horizontal-list .item,
.content .subtitle.horizontal-list .item {
- vertical-align: top;
+ align-self: flex-start;
}
.content .article-header-topline.horizontal-list .item .website,