|
Форум » Дизайн » Оценка работ » Вид материалов форума |
Вид материалов форума |
Дата: Воскресенье, 2015-12-13, 10:01 | Сообщение # 1
В общем сделал я эту кашу за минут 30. Заберайте если надо кому-то.. HTML Код <div class="vf_block"> <div class="vf_profile" align="center"> <a href="$PROFILE_URL$"><div class="vf_p_name">$USERNAME$</div></a> <div class="vf_p_ava"> <img src="<?if($AVATAR_URL$)?>$AVATAR_URL$<?else?>/img/noava.png<?endif?>" alt="$USERNAME$"> <div>Группа: $GROUP_NAME$</div> </div> <?if($USER_LOGGED_IN$)?><div class="vf_p_rating"> <a href="$READ_REP_URL$" title="Рейтинг пользователя"><div class="vf_p_r_score" <?ifnot($DO_REP_URL$)?>style="width: 100%;"<?endif?>>$REP_RATING$</div></a> <?if($DO_REP_URL$)?><a href="$DO_REP_URL$"><div class="vf_p_r_plus">+</div></a> <a href="$DO_REP_URL$"><div class="vf_p_r_minus">-</div></a><?endif?> </div><?endif?> <div class="vf_p_answer"><div style="float:right;">$POSTS$</div>Сообщений: </div> <a href="$AWARDS_DO_URL$"><div class="vf_p_honors"><div style="float:right;">$AWARDS$</div>Наград: </div></a> <div class="vf_p_title"><div style="float:right;">$USER_TITLE$</div>Титул: </div> </div> <div class="vf_message"> <div class="vf_m_info"> <div class="vf_panel_$ID$"> <div class="vf_panel_bottom_$ID$"></div> <div class="vf_panel_edit_$ID$"> <div class="vf_panel_bottom_off_$ID$"></div> <?if($QUOTE_URL$)?><a href="$QUOTE_URL$"><span>Цитировать</span></a><?endif?> <?if($EDIT_URL$)?><a href="$EDIT_URL$"><span>Изменить</span></a><?endif?> <?if($REPORT_URL$)?><a href="$REPORT_URL$"><span style="background:#D95757;">Пожаловаться</span></a><?endif?> <?if($DELETE_URL$)?><a href="$DELETE_URL$"><span style="background:#D95757;">Удалить</span></a><?endif?> </div> </div> <span style="margin-left: 15px;">Написал <b>$DATE$</b> в <b>$TIME$</b></span> | <span>№ <b>$NUMBER$</b></span> | <span>Отредактировал: $EDITEDBY$</span> </div> <div class="vf_m_message">$MESSAGE$</div> <?if($SIGNATURE$)?><div class="vf_m_signature">$SIGNATURE$</div><?endif?> </div> </div> <script> $(function() { $('.vf_panel_bottom_$ID$').click(function() { $(this).hide(); $('.vf_panel_edit_$ID$').css('display', 'block'); }); $('.vf_panel_bottom_off_$ID$').click(function() { $('.vf_panel_edit_$ID$').css('display', 'none'); $('.vf_panel_bottom_$ID$').show(); }); }); </script> CSS Код .vf_block {width: 99%; display: table; overflow-x:hidden; margin: 0 0 10px;} .vf_profile, .vf_message {display: table-cell; vertical-align: top;} .vf_profile {width: 21%;} .vf_message {width: 78%;} .vf_profile a:hover, .vf_panel_$ID$ a:hover {opacity: .8; text-decoration: none;} .vf_p_name, .vf_p_ava, .vf_p_ava div, .vf_p_ava img, .vf_p_rating, .vf_p_answer, .vf_p_honors, .vf_p_title {width: 180px; margin: 0 0px 4px;} .vf_p_name, .vf_p_answer, .vf_p_honors, .vf_p_title {height: 31px; text-align: left; line-height: 31px; padding: 0 10px; box-sizing: padding-box; border-radius: 6px; box-shadow: 0 -2px 0 0 rgba(0,0,0,.5) inset; color: #fff;} .vf_p_name, .vf_p_r_score, .vf_p_r_plus, .vf_p_r_minus {background: #4772A9;} .vf_p_name {text-align: center;} .vf_p_ava {background: #2F2F2F; height: 141px; overflow: hidden; border-radius: 6px;} .vf_p_ava img {height: 141px; object-fit: cover;} .vf_p_ava div {background: rgba(0,0,0,.9); color: #FFF; transform: translate(0,-32px); padding: 3px 5px 8px; box-sizing: padding-box;} .vf_p_rating {height: 31px; line-height: 31px; padding: 0 5px; box-sizing: padding-box;} .vf_p_r_score, .vf_p_r_plus, .vf_p_r_minus {display: inline-block; height: 31px; border-radius: 6px; box-shadow: 0 -2px 0 0 rgba(0,0,0,.5) inset; color: #fff;} .vf_p_r_score {width: 102px;} .vf_p_r_plus, .vf_p_r_minus {width: 30px;} .vf_p_r_minus {} .vf_p_answer {background: #363636;} .vf_p_honors {background: #D95757;} .vf_p_title {background: #363636;} .vf_m_info {width: 100%; background: #363636; font-size: 10px; border-radius: 6px; padding: 5px 10px; box-sizing: padding-box; color: #5F5F5F;} .vf_m_info span, .vf_m_info span a {color: #fff !important;} .vf_m_message {margin: 5px 3px 5px;} .vf_m_message img {max-width: 700px;} .vf_m_signature {border-top: 2px solid #D95757; width: 100%;} .vf_m_signature img {max-width: 700px;} .vf_panel_$ID$ {position: absolute; margin: -3px 0 0 -6px;} .vf_panel_edit_$ID$ {transform: translate(9px, -6px); display: none; background: #6E6E6E; width: 100%; padding: 3px 10px; box-sizing: padding-box; border-radius: 3px; margin: 15px 0 0;} .vf_panel_edit_$ID$ span {display: inline-block; background: #4772A9; padding: 5px 7px; border-radius: 6px; box-shadow: 0 -2px 0 0 rgba(0,0,0,.5) inset; color: #FFF;} .vf_panel_bottom_$ID$, .vf_panel_bottom_off_$ID$ {height: 18px; width: 18px; box-sizing: border-box; border: 1px solid #D9DEDF; border-radius: 100%; position: absolute; z-index: 10; cursor: pointer;} .vf_panel_bottom_$ID$ {background: #FFF url("/.s/src/moder_panel/moder-sm.png") no-repeat scroll -21px -21px;} .vf_panel_bottom_off_$ID$ {background: #FFF url("/.s/src/moder_panel/moder-sm.png") no-repeat scroll -2px -23px; transform: translate(-19px, -12px);} Прикрепления:
6893453.png
(44.7 Kb)
|
| |||
| |||