New post forum background color

Welcome to Sniper_E Styles
tester
Magic user status: Offline
Posts: 2
Joined: Mon Jan 27, 2020 8:34 pm
Apr 2020 29 19:44

New post forum background color

Post by tester

I added this in the dmzx/colourforumcategory extension. Expanded what he had for new posts.
migration/colourforumcategory_install/m2_initial_file.php

Code: Select all

	public function data()
	{
		$replacements = array(
			'files' => array(
				0 => '/styles/prosilver/template/forumlist_body.html',
				1 => '/styles/prosilver/template/forumlist_body.html',
				2 => '/styles/prosilver/template/viewforum_body.html',
				),
			'searches' => array(
				0 => array(
					0 => '		<div class="forabg">'
					),
				1 => array(
					0 => '		<li class="row">'
					),
				2 => array(
					0 => '		<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">'
					)
				),
			'replaces' => array(
				0 => array(
					0 => '		<div class="forabg<!-- IF forumrow.S_UNREAD_FORUM --> block-new block-new<!-- ENDIF -->">'
					),
				1 => array(
					0 => '		<li class="row<!-- IF forumrow.S_UNREAD_FORUM --> row-new<!-- ENDIF -->">'
					),
				2 => array(
					0 => '		<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF --><!-- IF topicrow.S_UNREAD_TOPIC --> row-new<!-- ENDIF -->">'
					)
				)
			);
		return $replacements;
	}
Then added his missing @-webkit-keyframes throb { plus some extra css to light it up.
style/prosilver/theme/colourforumcategory.css

Code: Select all

.block-new .header a:link, .block-new .header a:visited, .block-new th a:link, .block-new th a:visited {
	color: #FEDF14;
	-webkit-animation: block-throb 1s infinite;
	-webkit-animation-iteration-count: infinite;
}

@-webkit-keyframes block-throb {
	0% { color: #FEDF14; }
	50% { color: inherit; }
	100% { color: #FEDF14; }
}

.block-new .header a:hover, .block-new .header a:active, .block-new th a:hover, .block-new th a:active {
	color: #a8d8ff;
}

li.row.row-new {
	box-shadow:inset 0px 0px 10px rgba(255,0,0,0.8);
	-webkit-animation: row-throb 1s ease-out;
	-webkit-animation-iteration-count: infinite;
}

@-webkit-keyframes row-throb {
	0% { box-shadow:inset 0px 0px 10px rgba(255,0,0,0.8); }
	50% { box-shadow: none; }
	100% { box-shadow:inset 0px 0px 10px rgba(255,0,0,0.8); }
}
Martin
Magic user status: Offline
Posts: 20
Joined: Fri Jan 10, 2020 3:53 am
May 2020 03 14:42

Re: New post forum background color

Post by Martin

flash flash.