Skip to content

Commit 462ed6e

Browse files
authored
UX: allow tooltips to appear, fix mobile layout for minimal, blog options (#43)
1 parent 8a7e8f6 commit 462ed6e

File tree

2 files changed

+18
-32
lines changed

2 files changed

+18
-32
lines changed

common/common.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
.topic-list-item {
101101
display: grid;
102102
position: relative;
103-
overflow: hidden;
103+
min-width: 0;
104104
height: 250px;
105105

106106
grid-template-areas:
@@ -218,13 +218,13 @@
218218
.topic-list-item {
219219
display: grid;
220220
position: relative;
221-
overflow: hidden;
221+
min-width: 0;
222222
height: 250px;
223223
grid-template-areas:
224224
" image image image"
225225
" title likes posts";
226226
grid-template-rows: 1fr 45px;
227-
grid-template-columns: 70% 15% 15%;
227+
grid-template-columns: 70% minmax(0, 15%) minmax(0, 15%);
228228
border-bottom: none;
229229
&.visited {
230230
background-color: transparent !important;
@@ -263,6 +263,7 @@
263263
justify-content: flex-end;
264264
align-items: center;
265265
color: var(--primary-low-mid);
266+
overflow: hidden;
266267
.number {
267268
font-size: 13px;
268269
font-weight: bold;
@@ -276,7 +277,8 @@
276277
.posts-map {
277278
padding: 0;
278279
grid-area: posts;
279-
width: auto;
280+
overflow: hidden;
281+
width: auto !important; // overrides very specific core style
280282
.badge-posts {
281283
padding: 0;
282284
height: 100%;
@@ -322,6 +324,10 @@
322324
}
323325
}
324326
}
327+
328+
.d-tooltip-content {
329+
white-space: normal;
330+
}
325331
}
326332

327333
.topic-thumbnails-blog-style-grid {

mobile/mobile.scss

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,10 @@
3535
grid-column-gap: 10px;
3636
grid-row-gap: 5px;
3737
.topic-list-item {
38-
grid-template-columns: 1fr 45px;
39-
grid-template-rows: 1fr 30px;
40-
grid-template-areas:
41-
"image image"
42-
"title posts";
4338
height: 150px;
39+
grid-template-areas: "image image image" "title title title";
4440
.topic-thumbnail-likes {
45-
grid-area: posts;
46-
font-size: $font-down-3;
47-
.d-icon {
48-
font-size: 12px;
49-
}
41+
display: none;
5042
}
5143
.main-link {
5244
padding: 0 !important;
@@ -59,25 +51,13 @@
5951
}
6052
.posts-map {
6153
display: none;
62-
margin-top: 1px;
63-
span.number {
64-
color: var(--primary-low-mid);
65-
display: flex;
66-
font-size: $font-down-4;
67-
&:before {
68-
content: "";
69-
background-color: var(--primary-low-mid);
70-
-webkit-mask-repeat: no-repeat;
71-
mask-repeat: no-repeat;
72-
mask-image: url('data:image/svg+xml; utf8, <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="comment" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-comment fa-w-16 fa-2x"><path fill="gray" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z" class=""></path></svg>');
73-
-webkit-mask-image: url('data:image/svg+xml; utf8, <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="comment" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-comment fa-w-16 fa-2x"><path fill="gray" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z" class=""></path></svg>');
74-
display: block;
75-
height: 12px;
76-
width: 12px;
77-
margin-right: 3px;
78-
}
79-
}
8054
}
8155
}
8256
}
8357
}
58+
59+
.topic-thumbnails-blog-style-grid {
60+
.topic-list-data {
61+
max-width: unset;
62+
}
63+
}

0 commit comments

Comments
 (0)