1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-19 09:18:18 +03:00

Фикс голосования за топик

This commit is contained in:
Denis Shakhov 2012-06-26 22:05:15 +07:00
parent c4c7e76ecc
commit a1b31a2a84
3 changed files with 8 additions and 4 deletions

View file

@ -26,7 +26,7 @@
.vote-topic .vote-item.vote-up { border-radius: 0 15px 15px 0; }
.vote-topic .vote-item.vote-up i { background-position: -83px -23px; }
.vote-topic .vote-item.vote-up span { padding: 2px 7px 3px 4px; }
.vote-topic .vote-item.vote-up span { padding: 2px 7px 3px 4px; border-radius: 0 15px 15px 0; }
.vote-topic.not-voted .vote-item.vote-up:hover {
background: #e4fae2;
background: -moz-linear-gradient(top, #e4fae2 0%, #b0e3ac 100%);
@ -41,10 +41,10 @@
.vote-topic.not-voted .vote-item.vote-up:hover i { background-position: -83px -39px; }
.vote-topic.not-voted .vote-item.vote-up:hover span { border-color: transparent; }
.vote-topic .vote-item.vote-count { color: #628fa5; line-height: 23px; }
.vote-topic .vote-item.vote-count { color: #628fa5; line-height: 23px; border-left: transparent; border-right: transparent; }
.vote-topic .vote-item.vote-count i { background-position: -99px -23px; margin-top: 1px; }
.vote-topic .vote-item.vote-count span { padding: 1px 4px 5px 5px; }
.topic .vote-topic.vote-not-self.not-voted .vote-item.vote-count:hover {
.topic .vote-topic.vote-not-self.not-voted.vote-not-expired .vote-item.vote-count:hover {
background: #4ec4ff;
background: -moz-linear-gradient(top, #4ec4ff 0%, #22b3fe 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4ec4ff), color-stop(100%,#22b3fe));

View file

@ -45,7 +45,7 @@
}
.nav.nav-menu li:first-child { border-top-left-radius: 13px; border-bottom-left-radius: 13px; }
.nav.nav-menu li:first-child a { border-top-left-radius: 13px; border-bottom-left-radius: 13px; padding-left: 15px; box-shadow: 1px 0 0 #dfe3e8 inset, 0 1px 0 #fff inset; }
.nav.nav-menu li:last-child { border-top-right-radius: 13px; border-bottom-right-radius: 13px; }
.nav.nav-menu li:last-child { border-top-right-radius: 13px; border-bottom-right-radius: 13px; box-shadow: 0 1px 0 #dfe3e8 inset, 0 -1px 0 #dfe3e8 inset; padding-right: 0; }
.nav.nav-menu li:last-child a { border-top-right-radius: 13px; border-bottom-right-radius: 13px; padding-right: 15px; box-shadow: -1px 0 0 #dfe3e8 inset, 0 1px 0 #fff inset; }
.nav.nav-menu li:hover { box-shadow: -1px 0 0 #27ace8 inset, 0 1px 0 #27ace8 inset, 0 -1px 0 #27ace8 inset; }

View file

@ -111,6 +111,10 @@
{if (strtotime($oTopic->getDateAdd()) < $smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time') && !$oVote) || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId())}
vote-nobuttons
{/if}
{if strtotime($oTopic->getDateAdd()) > $smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}
vote-not-expired
{/if}">
{if $oVote || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || strtotime($oTopic->getDateAdd()) < $smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}
{assign var="bVoteInfoShow" value=true}