Skip to content

Commit 33fe628

Browse files
fix: Fix various outlines style
The "back" link outline was overflowing over the navigation bar and it was covered by the section image if it existed. In compact mode, the outline of links images was a square while the images were rounded. The outline of links titles and links comments was truncated in compact mode.
1 parent b8681a3 commit 33fe628

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/assets/stylesheets/components/layout.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
text-overflow: ellipsis;
9090
vertical-align: top;
9191
white-space: nowrap;
92+
93+
outline-offset: calc(-1 * var(--width-border-bold));
9294
}
9395

9496
@media (min-width: 800px) {

src/assets/stylesheets/custom/links.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
height: 75px;
113113

114114
flex-shrink: 0;
115+
116+
border-radius: var(--radius);
115117
}
116118

117119
.link__image {
@@ -127,6 +129,8 @@
127129
.link:not(.link--compact) .link__image-container {
128130
width: 100%;
129131
height: 156px;
132+
133+
border-radius: 0;
130134
}
131135

132136
.link:not(.link--compact) .link__image {
@@ -135,11 +139,8 @@
135139
}
136140

137141
.link__content {
138-
overflow: hidden;
139-
142+
min-width: 0;
140143
margin-left: var(--space-small);
141-
142-
flex-shrink: 1;
143144
}
144145

145146
@media (min-width: 800px) {

0 commit comments

Comments
 (0)