BassMan Well-known member Aug 22, 2019 #6 Add to your extra.less template: Less: @media (min-width: @xf-responsiveWide) { .structItem-title .label { width: 130px; text-align: center; } } This code will leave prefix on screens smaller than your setting for responsive wide intact. Change width: 130px; for your prefixes to suit, change text-align: center; to right if you want to align text in prefix to the right. Upvote 0 Downvote
Add to your extra.less template: Less: @media (min-width: @xf-responsiveWide) { .structItem-title .label { width: 130px; text-align: center; } } This code will leave prefix on screens smaller than your setting for responsive wide intact. Change width: 130px; for your prefixes to suit, change text-align: center; to right if you want to align text in prefix to the right.
BassMan Well-known member Aug 22, 2019 #7 You can have it like this if for some reason you like/need it like this: Upvote 0 Downvote
sbj Well-known member Aug 22, 2019 #8 For mobile a different approach would be better, if possible. Same width as your example, but: Instead of this: It would be better, if all prefixes would be like a title and then the thread titles, like this (first one). But only if possible easily. BassMan said: You can have it like this if for some reason you like/need it like this: Click to expand... That looks also nice and modern, have to test it though how it would work. Also is it somehow possible say to enable first approach for node X, and second approach for the rest or sth.? Upvote 0 Downvote
For mobile a different approach would be better, if possible. Same width as your example, but: Instead of this: It would be better, if all prefixes would be like a title and then the thread titles, like this (first one). But only if possible easily. BassMan said: You can have it like this if for some reason you like/need it like this: Click to expand... That looks also nice and modern, have to test it though how it would work. Also is it somehow possible say to enable first approach for node X, and second approach for the rest or sth.?
BassMan Well-known member Aug 22, 2019 #9 Examples: OR something like this: sbj said: That looks also nice and modern, have to test it though how it would work. Click to expand... Add this to your extra.less template: Less: .structItem-title .label { float: right; } If you use this on mobile it will look like this: sbj said: Also is it somehow possible say to enable first approach for node X, and second approach for the rest or sth.? Click to expand... Add the data-container-key like this: Less: @media (min-width: @xf-responsiveWide) { [data-container-key="node-92"] .structItem-title .label { width: 130px; text-align: center; } } Change node number to suit your needs. Last edited: Aug 22, 2019 Upvote 0 Downvote
Examples: OR something like this: sbj said: That looks also nice and modern, have to test it though how it would work. Click to expand... Add this to your extra.less template: Less: .structItem-title .label { float: right; } If you use this on mobile it will look like this: sbj said: Also is it somehow possible say to enable first approach for node X, and second approach for the rest or sth.? Click to expand... Add the data-container-key like this: Less: @media (min-width: @xf-responsiveWide) { [data-container-key="node-92"] .structItem-title .label { width: 130px; text-align: center; } } Change node number to suit your needs.
sbj Well-known member Aug 22, 2019 #10 Thanks, perfect! Much cleaner approach in my opinion. BassMan said: Examples: OR something like this: Click to expand... What's the code for this? Upvote 0 Downvote
Thanks, perfect! Much cleaner approach in my opinion. BassMan said: Examples: OR something like this: Click to expand... What's the code for this?
BassMan Well-known member Aug 22, 2019 #11 Less: @media (max-width: @xf-responsiveWide) { .structItem-title .label { display: block; width: 130px; text-align: center; } } You'll need to play with max-width: @xf-responsiveWide to suit your needs for mobile and bigger screens. To have it like this only on mobile change it to max-width: @xf-responsiveMedium, for instance. Also, remove width: 130px for different look. Upvote 0 Downvote
Less: @media (max-width: @xf-responsiveWide) { .structItem-title .label { display: block; width: 130px; text-align: center; } } You'll need to play with max-width: @xf-responsiveWide to suit your needs for mobile and bigger screens. To have it like this only on mobile change it to max-width: @xf-responsiveMedium, for instance. Also, remove width: 130px for different look.