Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 43 users online :: 0 Registered, 0 Hidden and 43 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[Implemented] Forum Stats Look
Page 1 of 1 • Share
@Ange Tuteur
The forum stats (topics, posts, views) are kind of elevated.
I know this is picky but this works on my forum and I modified it to work here on FMDesign.
Edit: Hey AT <3
The forum stats (topics, posts, views) are kind of elevated.
I know this is picky but this works on my forum and I modified it to work here on FMDesign.
- Code:
$(function() {
var e = $('.forum-block .forum-block-inner > div'), s, h;
if ( e.html() != undefined ) {
s = window.getComputedStyle(e.filter('.forum-lastpost')[0]);
h = s.getPropertyValue('height');
e.filter('.forum-stats').css('height', h);
e.filter('.forum-stats').find('.number').css('line-height', ( h.replace('px', '') / (3 / 2) ) + 'px');
}
});
Edit: Hey AT <3
— | — | — | — | — | — |
Last edited by Ace 1 on Fri 04 Nov 2016, 14:46; edited 14 times in total
Ah yeah, I know about that, it's the same on phpbb3 too. It doesn't bother me, but I'm sure your script will be useful to people who don't like it either. Personally, I don't like making style modifications via JS, but in some instances it's necessary like in this case. Still, I wonder if we can reach the same result with CSS. I have a few ideas, but they're kind of hackish -- especially the position related ones.. perhaps calc might be useful ..? hm.. this is something to think about..
I was thinking calc might come in handy, but at the moment I'm drawing a blank.
It's like a journy for the holy grail, finding a solution that doesn't require javascript. I always used to do it back in the day. I'll probably look over it more later unless you beat me to the grail.
It's like a journy for the holy grail, finding a solution that doesn't require javascript. I always used to do it back in the day. I'll probably look over it more later unless you beat me to the grail.
@Ange Tuteur Guess I won lol
- Code:
.forum-stats { height: 40px; }
.forum-stats > div {
position: relative;
top: 50%;
transform: translateY(-50%);
}
Last edited by Ace 1 on Fri 04 Nov 2016, 13:55; edited 1 time in total (Reason for editing : 42px --> 40px)
Oh damn, that seems to be spot on ! Nice
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables
There's a lot of experimental tech. Did you check out the CSS variables ? It's sorta like SASS.Ace 1 wrote:Oh WHAT I didn't think normal CSS could pass functions as the property values
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables
Nah, since the tech isn't a standard yet I just used a class name for the majority of colors. They are :
- .color-primary (69C)
- .color-secondary (345)
- .color-tertiary (FFF)
First two were used the most if I recall correctly.
- .color-primary (69C)
- .color-secondary (345)
- .color-tertiary (FFF)
First two were used the most if I recall correctly.
I read the browser compatibility and it works on everything but Explorer ._.
And everything I read about is "experimental" and "hasn't been released yet" smh. W3C needs to stop keeping all this good stuff from us.
And everything I read about is "experimental" and "hasn't been released yet" smh. W3C needs to stop keeping all this good stuff from us.
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum