Цвет текста и фона при наведении на кнопку

(Ответов: 1, Просмотров: 2053)
  1. Tux Аватар для InFakes
    • Регистрация: 21.06.2011
    • Сообщений: 697
    • Репутация: 186
    • Webmoney BL: ?
    Ситуация по идее нубская, но найти выход у меня не получилось. Есть сайт на WP - _http://wikibuntu.ru. Создал свое меню через админку ("Произвольное меню"). Теперь кнопки не слушаются и при нажатии на одну из них раздел открывается, а сама кнопка не горит нужным цветом, как будто она не нажата еще.

    Другая проблема - на открытой главной странице текст кнопки "Главная" всегда черного цвета, хотя при наведении мышью цвет меняется на белый. Подскажите, что нужно добавить? В css - active, hover или еще что-то?

    CSS

    PHP код:
    /*
    Theme Name: NewStone
    Theme URI: http://www.pcdiy.com/themes/newstone
    Description: NewStone is a simple and clean two-columns ( It can become three-columns by using particular widgets ), fixed-width theme. It is compatible with WordPress 3.x standard features: Custom Menu, Header Image, Custom Background and Featured Images. NewStone supports 4 widgets for normal use, 4 widgets for placing Ads, 1 widget for Javascript (Google Analytics or similar services).
    Author: Terry Lin
    Author URI: http://www.pcdiy.com
    Version: 1.2.2
    License: GNU General Public License
    License URI: license.txt
    Tags: gray, white, two-columns, three-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats
    */

    /* Reset CSS */

    htmlbodydivspanappletobjectiframe,
    h1h2h3h4h5h6pblockquotepre,
    aabbracronymaddressbigcitecode,
    deldfnemfontimginskbdqssamp,
    smallstrikestrongsubsuptt, var,
    buicenter,
    dldtddolulli,
    fieldsetformlabellegend,
    tablecaptiontbodytfoottheadtrthtd {
        
    border0;
        
    margin0;
        
    padding0;
        
    vertical-alignbaseline;
        
    }
    body {
        
    line-height1;
        -
    webkit-text-size-adjust:none;
    }
    h1h2h3h4h5h6 {
        
    clearboth;
        
    font-weightnormal;
    }
    olul {
        list-
    stylenone;
    }
    blockquote{
        
    quotesnone;
    }
    blockquote:beforeblockquote:afterq:beforeq:after {
        
    content'';
        
    contentnone;
    }
    del {
        
    text-decorationline-through;
    }
    table {
        
    border-collapsecollapse;
        
    border-spacing0;
    }

    /* Preload images for CSS spirits */

    .bg {
        
    background:url(images/layout_background.gifrepeat-y
    }
    .
    layout {
        
    background:url(images/layout_infront.pngno-repeat;
    }
    .
    icon, .tagcloud a {
        
    background:url(images/layout_icons.pngno-repeat;
    }
    #the_menu ul li a:hover,
    #the_menu ul li.current_page_item a,
    #the_menu ul.sub-menu li a:hover,
    #the_menu div.menu ul.children li a:hover {
        
    background:url(images/layout_icons.pngrepeat-x;
    }

    .
    base_bg {
        
    background:url(images/background.gif);
    }

    /* Icons */

    .post-meta .time,
    .
    post-meta .author
    .
    post-meta .comment
    .
    post-meta .category
    .
    post-tag  .tag
    .
    post-meta .admin-edit,
    .
    post-meta .the-gallery,
    .
    post-meta .magnifier {
        
    line-height19px;
        
    padding-left23px;
        
    margin-right5px;
        
    floatleft;
    }
    .
    post-meta .time        background-position-173px; }
    .
    post-meta .author      background-position-202px; }
    .
    post-meta .comment     background-position-231px; }
    .
    post-meta .category    background-position-347px; }
    .
    post-tag  .tag         background-position-581px; }
    .
    post-meta .admin-edit  background-position-318px; }
    .
    post-meta .the-gallery background-position-289px; }
    .
    post-meta .magnifier   background-position-260px; }

    /* Font Family */

    body
    #site-title {
        
    font-familyVerdanaArialSans-Serif;
    }
    h1h2h3h4h5h6 {
        
    font-family'Trebuchet MS'VerdanaArialSans-Serif;
    }
    pre {
        
    font-family"Courier 10 Pitch"Couriermonospace;
    }
    code
    #respond p.form-allowed-tags {
        
    font-family"Courier New"CourierFixed;
    }
    #author-description h2, 
    #comments h3 {
        
    font-familyVerdana;
    }

    /* Font Size */

    #site-title   { font-size: 28px; }
    #site-description  { font-size: 13px; }
    #wp-calendar caption  { font-size: 14px; }
    #wp-calendar thead    { font-size: 11px; }
    #wp-calendar tbody td { font-size: 11px; }
    #prev a, #next a { font-size: 12px; }
    #content h1 { font-size: 26px; }
    #content h2 { font-size: 22px; }
    #content h3 { font-size: 20px; }
    #content h4 { font-size: 18px; }
    #content h5 { font-size: 16px; }
    #content h6 { font-size: 14px; }
    #content input, #content textarea { font-size: 16px; }
    #content var  { font-size: 15px; }
    #content code { font-size: 13px; }
    #nav-below a { font-size: 12px; }
    #post-author-info { font-size: 12px; }
    #post-author-info h2 { font-size: 16px; }
    #comments-title h3, #respond h3 { font-size: 14px; }
    #comments-title h4, #respond h4 { font-size: 13px; }
    #respond, .archive-meta { font-size: 12px; }
    #comments .pingback p { font-size: 12px; }
    #comments .pingback .url { font-size: 13px; }
    #respond .comment-notes { font-size: 11px; }
    #respond label { font-size: 12px; }
    #respond .form-allowed-tags { font-size: 12px; }
    #respond .form-allowed-tags code { font-size: 11px; }
    #respond .form-submit input { font-size: 14px; }
    #credit, #credit a { font-size: 11px; }
    .post-content font-size13px; }
    .
    post-meta, .post-tag, .post-utility font-size11px; }
    .
    side-widget ul li, .side-widget-s ul li font-size12px; }
    .
    side-widget-header h3, .side-widget-header-s h3 font-size16px; }
    .
    attachment_return_link font-size12px; }
    .
    wp-caption p.wp-caption-text {font-size11px; }
    .
    gallery .gallery-caption font-size12px; }
    .
    navigation font-size12px; }
    .
    comment-meta font-size10px; }
    .
    commentlist font-size12px; }
    .
    reply font-size12px; }
    h1 span font-size13px; }
    .
    menu_bardiv.menu font-size13px; }
    .
    nopassword, .nocomments font-size12px; }
    #author-description {font-size: 11px; }
    #author-description h2 {font-size: 13px; }
    .textwidget font-size12px; }

    /* Structure */

    #wrapper {
        
    width986px;
        
    overflowhidden;
        
    margin0 auto;
    }
    #newstone {
        
    width966px;
        
    margin0 auto;
    }
    #main {
        
    width966px;
        
    margin-top4px;
    }
    #footer {
        
    clearboth;
        
    width966px;
    }

    /* Structure - Header */

    #header-info {
        
    width966px;
        
    height100px;
        
    line-height100px;
        
    overflowhidden;
    }
    #header-info-left {
        
    width483px;
        
    floatleft;
        
    overflowhidden;
    }
    #header-info-right {
        
    width483px;
        
    floatright;
        
    overflowhidden;
    }
    #header-info-right .textwidget {
        
    margin-top20px;
    }
    #site-title {
        
    floatleft;
        
    line-height100px;
        
    margin0px 10px 0px 10px
    }
    #site-title a {
        
    color#000;
        
    font-weightbold;
        
    text-decorationnone;
    }
    #site-description {
        
    floatleft;
        
    width:446px;
        
    line-height100px;
        
    text-alignright;
        
    font-styleitalic;
        
    margin0px 10px 0px 10px;
        
    }
    #feature-image {
        
    width966px;
        
    height130px;
        
    background-position: -1274px 0;
        
    positionrelative;
        
    z-index50;
    }
    #show-feature-image {
        
    width960px;
        
    height130px;
        
    margin0 3px 0 3px;
    }
    #feature-image-frame {
        
    width966px;
        
    height8px;
        
    z-index150;
        
    background:url(images/header_img_frame.gifno-repeat;;
        
    positionabsolute;
        
    top122px;
        
    left0;
    }
    #header-shadow {
        
    width966px;
        
    height3px;
        
    overflowhidden;
        
    background-position-136px;
    }
    /* Structure - Main */

    #mainbox {
        
    floatleft;
        
    width650px;
        
    margin-right4px;
        
    background-position0 0;
    }
    #mainbox-fullwidth {
        
    width966px;
        
    background-position: -1274px 0;
    }

    .
    main-layout-top {
        
    width650px;
        
    height13px;
        
    overflowhidden;
        
    background-position-42px;
    }
    .
    main-layout-bottom {
        
    width650px;
        
    height13px;
        
    overflowhidden;
        
    background-position-56px;
    }

    .
    main-fullwidth-layout-top {
        
    width966px;
        
    height13px;
        
    overflowhidden;
        
    background-position-113px;
    }
    .
    main-fullwidth-layout-bottom {
        
    width966px;
        
    height13px;
        
    overflowhidden;
        
    background-position-127px;
    }
    #content {
        
    padding0 20px;
    }


    /* Structure - Sidebar */

    #sidebox {
        
    width312px;
        
    floatleft;
    }
    #side-widget-left {
        
    width154px;
        
    floatleft;
    }
    #side-widget-right {
        
    width154px;
        
    floatright;
    }
    .
    side-widget {
        
    width312px;
        
    background-position: -650px 0;
        
    margin-bottom4px;
        
    overflowhidden;
    }
    .
    side-widget-{
        
    width154px;
        
    background-position: -962px 0;
        
    margin-bottom4px;
        
    overflowhidden;
    }
    .
    side-widget-header {
        
    width312px;
        
    height43px;
        
    line-height43px;
        
    background-position: -654px -42px;
        
    overflowhidden;
    }
    .
    side-widget-header-ad {
        
    width312px;
        
    height13px;
        
    line-height13px;
        
    background-position: -654px -99px;
        
    overflowhidden;
    }
    .
    side-widget-header-{
        
    width154px;
        
    height43px;
        
    line-height43px;
        
    background-position: -338px -69px;
        
    overflowhidden;
    }

    .
    side-widget-header h3,
    .
    side-widget-header-s h3 {
        
    margin-left40px;
        
    line-height40px;
        
    padding-bottom3px;
        
    color#000;
        
    font-weightbold;
    }
    .
    side-widget-footer {
        
    width312px;
        
    height12px;
        
    background-position: -654px -86px;
    }
    .
    side-widget-footer-{
        
    width154px;
        
    height12px;
        
    background-position: -493px -99px;
    }
    .
    side-widget ul
    .
    side-widget-s ul {
        
    padding10px;
    }
    .
    side-widget ul li
    .
    side-widget-s ul li {
        
    line-height150%;
    }
    .
    side-widget ul.children
    .
    side-widget-s ul.children {
        
    padding3px;
    }
    .
    side-widget ul.children li
    .
    side-widget-s ul.children li {
        
    line-height150%;
    }

    .
    textwidget {
        
    overflowhidden;
        
    line-height150%;
    }
    .
    textwidget p {
        
    margin0px;
        
    padding0px;
    }
    .
    side-widget .textwidget,
    .
    side-widget-.textwidget {
        
    margin6px;
        
    }
    /* Structure - Sidebar - .side-widget */

    .side-widget select
    .
    side-widget form,
    .
    side-widget-s select,
    .
    side-widget-s form {
        
    margin6px 16px;
    }
    .
    side-widget .textwidget {
        
    margin6px;
    }
    .
    side-widget-.textwidget {
        
    margin4px;
    }
    .
    tagcloud {
        
    margin6px 12px;
    }
    .
    tagcloud a 
        
    height14px;
        
    line-height14px;
        
    border-top1px solid #eee;
        
    border-right1px solid #ddd;
        
    border-bottom1px solid #ddd;
        
    border-left1px solid #eee;
        
    background-color#f1f1f1;
        
    background-position0px -89px;
        
    padding0px 5px 0px 20px;
        
    margin3px;
        
    displayinline-block;
    }
    .
    tagcloud a:hover 
        
    background-color#fff;
        
    color#000;
        
    text-decorationnone;
    }
    /* Structure - Footer */

    #footer-widget {
        
    width966px;
        
    text-aligncenter;
    }
    #footer-widget .textwidget {
        
    margin10px;
    }

    /* Search Form */

    #searchform input {
        
    padding4px;
        *
    padding1px;
    }

    #searchform input[type="submit"] {
        
    padding3px;
        *
    padding0px;
        *
    font-size11px;
    }
    #s {
        
    width40%;
    }
    /* Calendar */
    #calendar_wrap {
        
    width280px;
        
    margin16px;
    }
    #wp-calendar {
        
    width280px;
    }
    #wp-calendar caption {
        
    color#000;
        
    line-height14px;
        
    font-weightbold;
        
    border-bottom1px solid #eee;
        
    text-alignleft;
        
    padding3px;
        
    margin-bottom10px;
    }
    #wp-calendar thead th {
        
    padding-bottom5px;
        
    border-bottom3px solid #DDD;
    }
    #wp-calendar tbody {
        
    color#999;
    }
    #wp-calendar tbody td {
        
    background#f1f1f1;
        
    border1px solid #fff;
        
    padding3px;
        
    text-aligncenter;
    }
    #wp-calendar tbody .pad {
        
    backgroundnone;
    }
    #wp-calendar tfoot #next {
        
    text-alignright;
    }
    #wp-calendar #today {
        
    font-weightbold;
    }

    /* Global Elements */

    body {
        
    background:url(images/background.gif#ffffff;
    }

    hr {
        
    background-color#e7e7e7;
        
    border0;
        
    clearboth;
        
    height1px;
        
    margin-bottom18px;
    }

    /* Text elements */
    {
        
    margin-bottom18px;
    }
    ul {
        list-
    stylesquare;
        
    margin0 0 0 1.8em;
    }
    ol {
        list-
    styledecimal;
        
    margin0 0 18px 2.2em;
    }
    ol ol {
        list-
    styleupper-alpha;
    }
    ol ol ol {
        list-
    stylelower-roman;
    }
    ol ol ol ol {
        list-
    stylelower-alpha;
    }
    ul ul,
    ol ol,
    ul ol,
    ol ul {
        
    margin-bottom0;
    }
    dl {
        
    margin0 0 24px 0;
    }
    dt {
        
    font-weightbold;
    }
    dd {
        
    margin-bottom18px;
    }
    strong {
        
    font-weightbold;
    }
    cite,
    em,
    {
        
    font-styleitalic;
    }
    big {
        
    font-size131.25%;
    }
    ins {
        
    background#ffc;
        
    text-decorationnone;
    }
    blockquote {
        
    font-styleitalic;
        
    padding0 3em;
    }
    blockquote cite,
    blockquote em,
    blockquote i {
        
    font-stylenormal;
    }
    pre {
        
    background#f7f7f7;
        
    color#222;
        
    line-height18px;
        
    margin-bottom18px;
        
    padding1.5em;
    }
    abbr,
    acronym {
        
    border-bottom1px dotted #666;
        
    cursorhelp;
    }
    sup,
    sub {
        
    height0;
        
    line-height1;
        
    positionrelative;
        
    vertical-alignbaseline;
    }
    sup {
        
    bottom1ex;
    }
    sub {
        
    top.5ex;
    }
    input[type="text"],
    textarea {
        
    background#fafafa;
        
    border1px solid #ccc;
        
    box-shadowinset 1px 1px 1px rgba(0,0,0,0.1);
        -
    moz-box-shadowinset 1px 1px 1px rgba(0,0,0,0.1);
        -
    webkit-box-shadowinset 1px 1px 1px rgba(0,0,0,0.1);
        
    padding2px;
    }
    {
        
    color:#0072BC;
        
    text-decoration:none;
    }
    a:hover {
        
    color:#F26522;
        
    text-decoration:underline;
    }
    embed 
        
    width610px;
    }
    /* Text meant only for screen readers */

    .screen-reader-text {
        
    positionabsolute;
        
    left: -9000px;
    }

    /* Menu */

    #the_menu {
        
    width966px;
        
    height40px;
        
    background-position0 0;
        
    positionrelative;
        
    z-index200;
    }
    #the_menu .menu_bar,
    #the_menu div.menu {
        
    width934px;
        
    height36px;
        
    positionabsolute;
        
    top4px;
        
    left16px;
    }
    #the_menu .menu_bar ul,
    #the_menu div.menu ul {
        
    list-stylenone;
        
    margin0;
    }
    #the_menu .menu_bar li,
    #the_menu div.menu li {
        
    floatleft;
        
    positionrelative;
    }

    #the_menu ul li a {
        
    color#000;
        
    displayblock;
        
    line-height36px;
        
    padding0 17px;
        
    text-decorationnone;
    }
    #the_menu ul li a:hover {
        
    background-position0 0;
        
    color#fff;
    }
    #the_menu ul ul {
        
    box-shadow0px 3px 3px rgba(0,0,0,0.2);
        -
    moz-box-shadow0px 3px 3px rgba(0,0,0,0.2);
        -
    webkit-box-shadow0px 3px 3px rgba(0,0,0,0.2);
        
    displaynone;
        
    positionabsolute;
        
    top36px;
        
    left0;
        
    floatleft;
        
    width180px;
        
    z-index99999;
    }
    #the_menu ul ul li {
        
    min-width180px;
    }
    #the_menu ul ul ul {
        
    left100%;
        
    top0;
    }
    #the_menu ul.sub-menu li a,
    #the_menu div.menu ul.children li a {
        
    background#f5f5f5;
        
    color#333;
        
    line-height1em;
        
    padding10px;
        
    width160px;
        
    heightauto;
        
    border-top1px solid #fff;
        
    border-bottom1px solid #ddd;
    }
    #the_menu ul.sub-menu li a:hover,
    #the_menu div.menu ul.children li a:hover {
        
    background-position0 0;
        
    border-top1px solid #000;
        
    border-bottom1px solid #000;
        
    color#fff;
    }
    #the_menu ul li:hover > ul {
        
    displayblock;
    }
    #the_menu .menu_bar ul.sub-menu li.current-menu-item a,
    #the_menu div.menu ul.children li.current-page-item a {
        
    color#333;
    }
    #the_menu div.menu ul li.current_page_item a,
    #the_menu .menu_bar ul li.current_menu_item a,
    #the_menu .menu_bar ul.sub-menu li.current-menu-item a:hover {
        
    color#fff;
    }
    /* Content */
    .hentry {
        
    border-bottom1px dashed #ddd;
        
    margin-bottom20px;
        
    padding-bottom20px;
    }
    .
    single .hentry {
        
    border0px;
        
    margin0px;
        
    padding0px;
    }
    #content,
    #content input,
    #content textarea {
        
    color#333;
        
    line-height24px;
    }
    #content p,
    #content ul,
    #content ol,
    #content dd,
    #content pre,
    #content hr {
        
    margin-bottom24px;
    }
    #content ul ul,
    #content ol ol,
    #content ul ol,
    #content ol ul {
        
    margin-bottom0;
    }
    #content pre,
    #content kbd,
    #content tt,
    #content var {
        
    line-height21px;
    }
    #content dt,
    #content th {
        
    color#000;
    }
    #content h1,
    #content h2,
    #content h3,
    #content h4,
    #content h5,
    #content h6 {
        
    color#000;
        
    font-weightbold;
        
    line-height1.5em;
        
    margin0 0 20px 0;
    }
    #content table {
        
    border1px solid #e7e7e7;
        
    margin-1px 24px 0;
        
    text-alignleft;
        
    width100%;
    }
    #content tr th,
    #content thead th {
        
    color#888;
        
    font-weightbold;
        
    line-height18px;
        
    padding9px 24px;
    }
    #content tr td {
        
    border-top1px solid #e7e7e7;
        
    padding6px 24px;
    }
    #content tr.odd td {
        
    background#f2f7fc;
    }

    .
    home .sticky {
        
    border-bottom3px solid #ddd;
        
    margin-left: -10px;
        
    margin-right: -10px;
        
    padding18px 10px;
    }
    #content .post-title {
        
    color#000;
        
    font-weightbold;
        
    margin-bottom10px;
    }

    .
    post-title a:link,
    .
    post-title a:visited {
        
    color#000;
        
    text-decorationnone;
    }
    .
    post-title a:active,
    .
    post-title a:hover {
        
    color#ff4b33;
    }

    /* .page-link is used in wp_link_pages() */

    .page-link {
        
    clearboth;
        
    color#000;
        
    font-weightbold;
        
    margin0 0 22px 0;
        
    word-spacing0.5em;
    }
    .
    page-link a:link,
    .
    page-link a:visited {
        
    background#f1f1f1;
        
    color#333;
        
    font-weightnormal;
        
    padding0.5em 0.75em;
        
    text-decorationnone;
    }
    .
    home .sticky .page-link a {
        
    background#d9e8f7;
    }
    .
    page-link a:active,
    .
    page-link a:hover {
        
    color#ff4b33;
    }
    body.page .edit-link {
        
    clearboth;
        
    displayblock;
    }
    h1 span {
        
    margin-left10px;
        
    color#888;
    }
    #post-author-info {
        
    background-color#F7FCFE;
        
    border1px solid #D6EEF7;
        
    clearboth;
        
    line-height20px;
        
    margin10px 0;
        
    overflowhidden;
        
    padding18px 20px;
    }
    .
    archive-meta p{
        
    background-color#F5F5F5;
        
    padding5px 5px 5px 20px;
    }

    #author-avatar {
        
    background#fff;
        
    border1px solid #e7e7e7;
        
    floatleft;
        
    height60px;
        
    margin-92px 0 0;
        
    padding5px;
    }
    #author-description {
        
    floatleft;
        
    margin0 0 0 92px;
    }
    #post-author-info h2 {
        
    color#000;
        
    font-weightbold;
        
    margin-bottom0;
    }

    #content .video-player {
        
    padding0;
    }
    .
    clearboth {
        
    clearboth;
    }
    .empty {
        
    displaynone;
    }
    .
    post-meta a, .post-tag a, .post-utility a {
        
    color#333;
    }
    .
    comma {
        
    color#aaa;
    }
    .
    padding-top-10 
        
    padding-top10px;
    }
    .
    margin-top-10 
        
    margin-top10px;
    }
    .
    post-meta, .post-tag, .post-utility {
        
    overflowhidden;
        
        
    height1%;
    }
    .
    post-content {
        
    overflowhidden;
    }
    /* =Asides */

    #content .format-aside p {}

    /*  Gallery */



    .gallery-thumb {
        
    floatleft;
        
    margin-right20px;
        
    padding5px;
        
    text-aligncenter;
        
    background-color#f1f1f1;
        
    margin-bottom15px;
        
    overflowhidden;
    }

    .
    gallery-thumb img {
        
    border1px solid #e7e7e7;
        
    margin0;
        
    background-color#ffffff;
        
    padding5px;
    }
    #content .gallery-thumb p {
        
    margin0;
        
    padding0;
    }

    /* Attachment pages */

    .attachment_return_link {
        
    margin-bottom20px;
    }
    .
    attachment img {
        
    border1px solid #e7e7e7;
        
    margin0;
        
    background-color#ffffff;
        
    padding5px;
    }
    .
    post-caption {
        
    font-weightbold;
        
    margin10px 0;
    }
    /* Images */

    .post-content img,
    img.size-auto,
    img.size-full,
    img.size-large,
    img.size-medium,
    .
    attachment img {
        
    max-width100%;
        
    heightauto;
    }

    .
    alignleft,
    img.alignleft {
        
    displayinline;
        
    floatleft;
        
    margin-right24px;
        
    margin-top4px;
    }
    .
    alignright,
    img.alignright {
        
    displayinline;
        
    floatright;
        
    margin-left24px;
        
    margin-top4px;
    }
    .
    aligncenter,
    img.aligncenter {
        
    clearboth;
        
    displayblock;
        
    margin-leftauto;
        
    margin-rightauto;
    }
    img.alignleft,
    img.alignright,
    img.aligncenter {
        
    margin-bottom12px;
    }
    .
    wp-caption {
        
    line-height18px;
        
    margin-bottom20px;
        
    max-width610px;
        
    text-aligncenter;
    }
    .
    wp-caption img {
        
    max-width590px;
        
    border1px solid #e7e7e7;
        
    padding5px;
    }
    .
    wp-caption p.wp-caption-text {
        
    color#888;
        
    font-styleitalic;
    }
    .
    wp-smiley {
        
    margin0;
    }

    /* Gallery in posts */

    .gallery {
        
    margin-bottom18px;
        
    border1px solid #e7e7e7;
        
    padding10px 0px;
        
    background-color#f5f5f5;
        
    overflowhidden;
    }
    .
    gallery .gallery-item {
        
    floatleft;
        
    margin-top0;
        
    text-aligncenter;
        
    width33%;
    }

    .
    gallery-columns-.gallery-item {
        
    width50%;
    }
    .
    gallery-columns-.gallery-item {
        
    width25%;
    }

    .
    gallery-columns-.attachment-medium {
        
    max-width92%;
        
    heightauto;
    }
    .
    gallery-columns-.attachment-thumbnail {
        
    max-width84%;
        
    heightauto;
    }
    .
    gallery .gallery-caption {
        
    color#888;
        
        
    margin0 0 12px;
    }
    .
    gallery dl {
        
    margin0;
    }
    .
    gallery img {
        
    border1px solid #e7e7e7;
        
    padding5px;
        
    background-color#fff;
    }
    .
    gallery br+br {
        
    displaynone;
    }

    #content .attachment img {
        
    displayblock;
        
    margin0 auto;
    }

    /* Navigation */

    #nav-below {
        
    margin-top10px;
    }
    .
    navigation {
        
    color#888;
        
    line-height18px;
        
    overflowhidden;
    }
    .
    nav-previous {
        
    floatleft;
        
    width50%;
    }
    .
    nav-next {
        
    floatright;
        
    text-alignright;
        
    width50%;
    }

    /* Comments */

    #comments {
        
        
    width610px;
        
    margin10px 0;
        
    padding10px 0;
        
    clearboth;
    }
    .
    commentlist ol, .commentlist ul  {
        
    margin0;
        
    padding0;
        list-
    stylenone;
    }
    .
    commentlist li.comment {
        
    margin0 0 0px 0;
        
    padding0 0 0 50px;
        
    positionrelative;
        
    height1%;
    }
    .
    commentlist .bypostauthor {
    }
    .
    commentbox {
        
    padding-top10px;
    }
    .
    depth-.commentbox,
    .
    depth-.commentbox,
    .
    depth-.commentbox,
    .
    depth-.commentbox,
    .
    depth-.commentbox {
        
    border1px solid #e7e7e7;
        
    margin0px 0px 20px 0px;
    }
    .
    depth-width560px; }
    .
    depth-width510px; }
    .
    depth-width460px; }
    .
    depth-width410px; }
    .
    depth-width360px; }

    .
    commentlist li:last-child {
        
    margin-bottom0;
    }
    #comments .comment-body {
        
    margin-bottom30px;
        
    padding-left10px;
    }
    #comments .comment-body ul,
    #comments .comment-body ol {
        
    margin-bottom18px;
    }
    #comments .comment-body p:last-child {
        
    margin-bottom6px;
    }
    #comments .comment-body blockquote p:last-child {
        
    margin-bottom24px;
    }
    .
    commentlist .avatar {
        
    positionabsolute;
        
    border1px solid #e7e7e7;
        
    padding2px;
        
    top5px;
        
    left5px;
    }
    .
    comment-author {
        
    padding-left10px;
    }
    .
    commentlist {

    }
    .
    comment-meta {
        
    margin0 0 18px 0;
        
    padding-left10px;
        
    color#888;
    }
    .
    commentlist .even {
        
    }

    .
    reply {
        
    margin-bottom30px;
    }
    .
    comment-meta a,
    a.comment-edit-link {
        
    color#888;
    }
    .
    reply a:hover,
    a.comment-edit-link:hover {
        
    color#ff4b33;
    }
    .
    commentlist .children {
        list-
    stylenone;
        
    margin0;
    }
    .
    commentlist .children li {
        
        
    margin0;
    }
    .
    nopassword,
    .
    nocomments {
        
    font-weightbold;
    }
    #comments .pingback {
        
    border-bottom1px solid #e7e7e7;
        
    margin-bottom18px;
        
    padding-bottom18px;
    }
    .
    commentlist li.comment+li.pingback {
        
    margin-top: -6px;
    }
    #comments .pingback p {
        
    color#888;
        
    displayblock;
        
    line-height18px;
        
    margin0;
    }
    #comments .pingback .url {
        
    font-styleitalic;
    }
    /* Comments form */

    #respond {
        
    margin24px 0;
        
    overflowhidden;
        
    positionrelative;
    }
    #respond p {
        
    margin0;
    }
    #respond .comment-notes {
        
    margin-bottom1em;
    }

    #respond .required {
        
    color#ff4b33;
        
    font-weightbold;
    }
    #respond label {
        
    color#888;
    }
    #respond input {
        
    margin0 0 9px;
        
    width60%;
        
    displayblock;
    }
    #respond textarea {
        
    width90%;
    }

    #respond .form-allowed-tags {
        
    margin20px;
        
    color#333;
        
    line-height18px;
    }
    #respond .form-allowed-tags code {
        
    displayblock;
        
    color#888;
    }

    #respond .form-submit {
        
    margin12px 0;
    }
    #respond .form-submit input {
        
    widthauto;
    }
    #content .post-content input {
        
    margin30px 0px 0px 0px;
    }

    /* footer */

    #footer {
        
    margin-bottom20px;
    }
    .
    footer-line {
        
    width966px;
        
    height10px;
        
    background-position-140px;
        
    margin10px 0;
        
    overflowhidden;
    }
    #credit {
        
    width966px;
    }
    #credit-left {
        
    width50%;
        
    text-alignleft;
        
    floatleft;
    }
    #credit-right {
        
    width50%;
        
    text-alignright;
        
    floatleft;
    }
    #credit, #credit a {
        
    color#666;
        
    text-shadow#fff 1px 1px 1px;
        
    font-styleitalic;
    }
    #site-info, 
    #theme-designer,
    #site-generator {
        
    height27px;
        
    line-height27px;
        
    text-alignleft;
        
    displayinline;
        
    margin0 5px;
    }
    #theme-designer,
    #site-generator {
        
    floatright;
    }
    #site-info {
        
    floatleft;
    }
    #theme-designer {
        
    background-position0px -115px;
        
    padding-left28px;
    }
    #site-generator {
        
    background-position0px -142px;
        
    padding-left28px;

    [свернуть]
    Последний раз редактировалось InFakes; 13.02.2012 в 11:51.
    • 0
  2. Tux Аватар для InFakes
    • Регистрация: 21.06.2011
    • Сообщений: 697
    • Репутация: 186
    • Webmoney BL: ?
    Как выяснилось после курения мануалов подсвечивание уже нажатых пунктов меню невозможно через css, такие штуки прописываются в header.php (при помощи current, в данном случае current-cat). Если кому интересно, перерисовал меню по-своему, пусть плохо смотрится, но функционирует.

    header

    PHP код:
    <div id="bar">
        <ul id="catmenu">
        <li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php ?>><a href="<?php bloginfo('home'); ?>/">Главная</a></li>
        <?php wp_list_categories('hide_empty=0&depth=1&title_li='); ?>
        </ul>
    <div class="clear"></div>
    </div>
    [свернуть]


    style

    PHP код:
    #bar {
        
    width1000px;
        
    height24px;
    }

    ul#catmenu {
        
    width1000px;
    }

    ul#catmenu li {
        
    floatleft;
        
    margin-right5px;
    }

    ul#catmenu li a {
        
    floatleft;
        
    font-size0.8em;
        
    font-weightbold;
        
    color#000;
        
    background#fff;
        
    padding5px;
    }

    ul#catmenu li a:hover {
        
    color#fff;
        
    background#000;
    }

    ul#catmenu li.current-cat a {
        
    color#fff;
        
    background#000;
    }

    ul#catmenu li.current-cat a:hover {
        
    color#fff;
        
    background#000;

    [свернуть]


    Темку можно закрывать
    • 1

    Спасибо сказали:

    ArhStrAngeR(14.02.2012),

Похожие темы

Темы Раздел Ответов Последний пост
Смена фона
Web программирование 4 26.09.2011 23:53
как задать ширину фона в % через CSS
Web программирование 4 28.04.2011 11:17
Стиль всплывающего текста при наведении на ссылку
Web дизайн 9 09.02.2011 03:06
Создание фона для twitter в Power Point
Дайджест блогосферы 0 29.04.2010 23:04

У кого попросить инвайт?

Вы можете попросить инвайт у любого модератора:

Информеры