Thème enfant: que faire de la feuille theme.css (Créer un compte)

  • Statut : non résolu
7 sujets de 16 à 22 (sur un total de 22)
  • Auteur
    Messages
  • #937791
    lattachepresse
    Membre
    Padawan WordPress
    77 contributions

    Je vais installer le theme en question (Revera) sur un autre site qui ne me sert pas en attendant.

    #937792
    lattachepresse
    Membre
    Padawan WordPress
    77 contributions

    Voilà, donc on va se baser maintenant sur ce site:
    http://coraliejayne.com/

    J’ai donc installé le theme Revera, puis crée un theme enfant. J’ai crée ma feuille de style du theme enfant qui contient ça:

    /*
    Theme Name: Revera-child
    Theme URI:
    Description: Thème enfant pour le thème Revera
    Author: Coralie
    Author URI:
    Template: Revera
    Version: 0.1.0
    */

    @import url(« ../Revera/style.css »);




    /* =Reset
    ————————————————————– */

    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
    }
    html {
    font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
    overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
    -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
    -ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
    }
    body {
    background: #fff;
    }
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    nav,
    section {
    display: block;
    }
    ol, ul {
    list-style: none;
    }
    table { /* tables still need ‘cellspacing= »0″‘ in the markup */
    border-collapse: separate;
    border-spacing: 0;
    }
    caption, th, td {
    font-weight: normal;
    text-align: left;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
    content: «  »;
    }
    blockquote, q {
    quotes: «  » «  »;
    }
    a:focus {
    outline: thin dotted;
    }
    a:hover,
    a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
    outline: 0;
    }
    a img {
    border: 0;
    }


    /* =Global
    ———————————————– */

    body,
    button,
    input,
    select,
    textarea {
    color: #404040;
    font-family: sans-serif;
    font-size: 16px;
    font-size: 1.6rem;
    line-height: 1.5;
    }

    /* Headings */
    h1,h2,h3,h4,h5,h6 {
    clear: both;
    }
    hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
    }

    /* Text elements */
    p {
    margin-bottom: 1.5em;
    }
    ul, ol {
    margin: 0 0 1.5em 3em;
    }
    ul {
    list-style: disc;
    }
    ol {
    list-style: decimal;
    }
    li > ul,
    li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
    }
    dt {
    font-weight: bold;
    }
    dd {
    margin: 0 1.5em 1.5em;
    }
    b, strong {
    font-weight: bold;
    }
    dfn, cite, em, i {
    font-style: italic;
    }
    blockquote {
    margin: 0 1.5em;
    }
    address {
    margin: 0 0 1.5em;
    }
    pre {
    background: #eee;
    font-family: « Courier 10 Pitch », Courier, monospace;
    font-size: 15px;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    padding: 1.6em;
    overflow: auto;
    max-width: 100%;
    }
    code, kbd, tt, var {
    font: 15px Monaco, Consolas, « Andale Mono », « DejaVu Sans Mono », monospace;
    }
    abbr, acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
    }
    mark, ins {
    background: #fff9c0;
    text-decoration: none;
    }
    sup,
    sub {
    font-size: 75%;
    height: 0;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    }
    sup {
    bottom: 1ex;
    }
    sub {
    top: .5ex;
    }
    small {
    font-size: 75%;
    }
    big {
    font-size: 125%;
    }
    figure {
    margin: 0;
    }
    table {
    margin: 0 0 1.5em;
    width: 100%;
    }
    th {
    font-weight: bold;
    }
    img {
    height: auto; /* Make sure images are scaled correctly. */
    max-width: 100%; /* Adhere to container width. */
    }
    button,
    input,
    select,
    textarea {
    font-size: 100%; /* Corrects font size not being inherited in all browsers */
    margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
    vertical-align: baseline; /* Improves appearance and consistency in all browsers */
    *vertical-align: middle; /* Improves appearance and consistency in all browsers */
    }
    button,
    input {
    line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
    }
    button,
    html input[type= »button »],
    input[type= »reset »],
    input[type= »submit »] {
    border: 1px solid #ccc;
    border-color: #ccc #ccc #bbb #ccc;
    border-radius: 3px;
    background: #e6e6e6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, .8);
    cursor: pointer; /* Improves usability and consistency of cursor style between image-type ‘input’ and others */
    -webkit-appearance: button; /* Corrects inability to style clickable ‘input’ types in iOS */
    font-size: 12px;
    font-size: 1.2rem;
    line-height: 1;
    padding: .6em 1em .4em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    button:hover,
    html input[type= »button »]:hover,
    input[type= »reset »]:hover,
    input[type= »submit »]:hover {
    border-color: #ccc #bbb #aaa #bbb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
    }
    button:focus,
    html input[type= »button »]:focus,
    input[type= »reset »]:focus,
    input[type= »submit »]:focus,
    button:active,
    html input[type= »button »]:active,
    input[type= »reset »]:active,
    input[type= »submit »]:active {
    border-color: #aaa #bbb #bbb #bbb;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
    }
    input[type= »checkbox »],
    input[type= »radio »] {
    box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
    padding: 0; /* Addresses excess padding in IE8/9 */
    }
    input[type= »search »] {
    -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
    -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    }
    input[type= »search »]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
    -webkit-appearance: none;
    }
    button::-moz-focus-inner,
    input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
    border: 0;
    padding: 0;
    }
    input[type= »text »],
    input[type= »email »],
    input[type= »password »],
    input[type= »search »],
    textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    }
    input[type= »text »]:focus,
    input[type= »email »]:focus,
    input[type= »password »]:focus,
    input[type= »search »]:focus,
    textarea:focus {
    color: #111;
    }
    input[type= »text »],
    input[type= »email »],
    input[type= »password »],
    input[type= »search »] {
    padding: 3px;
    }
    textarea {
    overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
    padding-left: 3px;
    vertical-align: top; /* Improves readability and alignment in all browsers */
    width: 98%;
    }

    /* Links */
    a {
    color: royalblue;
    }
    a:visited {
    color: purple;
    }
    a:hover,
    a:focus,
    a:active {
    color: midnightblue;
    }

    /* Alignment */
    .alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
    }
    .alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
    }
    .aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
    }

    /* Text meant only for screen readers */
    .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    }

    .screen-reader-text:hover,
    .screen-reader-text:active,
    .screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar */
    }

    /* Clearing */
    .clear:before,
    .clear:after,
    [class*= »content »]:before,
    [class*= »content »]:after,
    [class*= »site »]:before,
    [class*= »site »]:after {
    content:  »;
    display: table;
    }

    .clear:after,
    [class*= »content »]:after,
    [class*= »site »]:after {
    clear: both;
    }


    /* =Menu
    ———————————————– */

    .main-navigation {
    clear: both;
    display: block;
    float: left;
    width: 100%;
    }
    .main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
    }
    .main-navigation li {
    float: left;
    position: relative;
    }
    .main-navigation a {
    display: block;
    text-decoration: none;
    }
    .main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    display: none;
    float: left;
    position: absolute;
    top: 1.5em;
    left: 0;
    z-index: 99999;
    }
    .main-navigation ul ul ul {
    left: 100%;
    top: 0;
    }
    .main-navigation ul ul a {
    width: 200px;
    }
    .main-navigation ul ul li {
    }
    .main-navigation li:hover > a {
    }
    .main-navigation ul ul :hover > a {
    }
    .main-navigation ul ul a:hover {
    }
    .main-navigation ul li:hover > ul {
    display: block;
    }
    .main-navigation li.current_page_item a,
    .main-navigation li.current-menu-item a {
    }

    /* Small menu */
    .menu-toggle {
    display: none;
    cursor: pointer;
    }

    @media screen and (max-width: 600px) {
    .menu-toggle,
    .main-navigation.toggled .nav-menu {
    display: block;
    }

    .main-navigation ul {
    display: none;
    }
    }


    /* =Content
    ———————————————– */

    .sticky {
    }
    .hentry {
    margin: 0 0 1.5em;
    }
    .byline,
    .updated {
    display: none;
    }
    .single .byline,
    .group-blog .byline {
    display: inline;
    }
    .page-content,
    .entry-content,
    .entry-summary {
    margin: 1.5em 0 0;
    }
    .page-links {
    clear: both;
    margin: 0 0 1.5em;
    }


    /* =Asides
    ———————————————– */

    .blog .format-aside .entry-title,
    .archive .format-aside .entry-title {
    display: none;
    }


    /* =Media
    ———————————————– */

    .page-content img.wp-smiley,
    .entry-content img.wp-smiley,
    .comment-content img.wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
    }
    .wp-caption {
    border: 1px solid #ccc;
    margin-bottom: 1.5em;
    max-width: 100%;
    }
    .wp-caption img[class*= »wp-image-« ] {
    display: block;
    margin: 1.2% auto 0;
    max-width: 98%;
    }
    .wp-caption-text {
    text-align: center;
    }
    .wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    }
    .site-content .gallery {
    margin-bottom: 1.5em;
    }
    .gallery-caption {
    }
    .site-content .gallery a img {
    border: none;
    height: auto;
    max-width: 90%;
    }
    .site-content .gallery dd {
    margin: 0;
    }
    .site-content .gallery-columns-4 .gallery-item {
    }
    .site-content .gallery-columns-4 .gallery-item img {
    }

    /* Make sure embeds and iframes fit their containers */
    embed,
    iframe,
    object {
    max-width: 100%;
    }


    /* =Navigation
    ———————————————– */

    .site-content [class*= »navigation »] {
    margin: 0 0 1.5em;
    overflow: hidden;
    }
    [class*= »navigation »] .nav-previous {
    float: left;
    width: 50%;
    }
    [class*= »navigation »] .nav-next {
    float: right;
    text-align: right;
    width: 50%;
    }

    /* =Comments
    ———————————————– */

    .comment-content a {
    word-wrap: break-word;
    }
    .bypostauthor {
    }



    /* =Infinite Scroll
    ———————————————– */

    /* Globally hidden elements when Infinite Scroll is supported and in use. */
    .infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */
    .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
    display: none;
    }

    /* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */
    .infinity-end.neverending .site-footer {
    display: block;
    }

    et je m’apperçoit que ce que je veux modifier (la couleur rose notamment, je voudrais tout passer en bleu, est dans une autre feuille de style: theme.css
    J’ai donc tenté de faire exactement comme pour la feuille de style.css et voici ce que ça donne:

    /*
    Theme Name: Revera-child
    Theme URI:
    Description: Thème enfant pour le thème Revera
    Author: Coralie
    Author URI:
    Template: Revera
    Version: 0.1.0
    */

    @import url(« ../Revera/theme.css »);

    @import url(http://fonts.googleapis.com/css?family=Oxygen:400,300,700);

    body,
    button,
    input,
    select,
    textarea {
    color: #606060;
    font-family: ‘Oxygen’,sans-serif;
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 1.6;
    }


    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }
    h6 { font-size: 14px; }

    code{
    white-space: normal;
    }


    /* Links */
    a {
    color: #216e80;

    }
    a:visited {
    color: #216e80;
    }
    a:hover,
    a:focus,
    a:active {
    color:#000;
    text-decoration: none;
    }

    /* Head */

    #masthead{
    position: relative;
    }
    .site-branding{
    margin-bottom: 20px;
    }
    h1.site-title{
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 25px;

    }
    h1.site-title a:link, h1.site-title a:visited{
    color: #000;
    }



    /* Menu */

    .menutoggle{
    width: 36px;
    height: 36px;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 3px;
    line-height: 36px;
    text-align: center;
    background: #fff;
    position: absolute;
    right: 20px;
    top:25px;
    font-size: 20px;
    display:none;
    }
    nav.main-navigation{

    margin-bottom: 20px;
    background: #3a4755;
    }
    #submenu {
    padding:0px 0px;
    margin: 15px 0px;
    height:60px;
    border-bottom: none;
    float: left;


    }

    #submenu ul {
    width: auto;
    float:left;
    list-style: none;
    margin: 0;
    padding: 0 0px;

    }

    #submenu li {
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #fff;
    font-weight:400;

    }

    #submenu li a {
    color: #777;
    display: block;
    margin: 0;
    padding: 19px 10px 19px 10px;
    text-decoration: none;
    position: relative;
    }

    #submenu li a:hover, #submenu li a:active, #submenu .current_page_item a {
    color: #216e80;

    }

    #submenu li a.sf-with-ul {
    padding-right: 10px;
    }



    #submenu li ul li a, #submenu li ul li a:link, #submenu li ul li a:visited,
    #submenu li ul li ul li a, #submenu li ul li ul li a:link, #submenu li ul li ul li a:visited,
    #submenu li ul li ul li ul li a, #submenu li ul li ul li ul li a:link, #submenu li ul li ul li ul li a:visited {
    color:#777;
    width: 148px;
    margin: 0;
    padding: 10px 10px;
    border-top:1px solid #ddd;
    position: relative;
    font-weight:400;

    }

    #submenu ul li ul li:first-child a,#submenu ul li ul li ul li:first-child a,#submenu ul li ul li ul li ul li:first-child a {
    border-top:none;


    }


    #submenu li ul li a:hover ,#submenu li ul li ul li a:hover ,#submenu li ul li ul li ul li a:hover {
    color: #216e80;

    }


    #submenu li ul {
    font-size: 12px;
    z-index: 9999;
    position: absolute;
    left: -999em;
    height: auto;
    width: 160px;
    margin: 0px 0px 0px 0px;
    padding: 5px 5px;
    background:#fff;

    }

    #submenu li ul a {
    width: 150px;
    }

    #submenu li ul a:hover, #submenu li ul a:active {
    }

    #submenu li ul ul {
    margin: -44px 0 0 160px;
    }

    #submenu li:hover ul ul, #submenu li:hover ul ul ul, #submenu li.sfHover ul ul, #submenu li.sfHover ul ul ul {
    left: -999em;
    }

    #submenu li:hover ul, #submenu li li:hover ul, #submenu li li li:hover ul, #submenu li.sfHover ul, #submenu li li.sfHover ul, #submenu li li li.sfHover ul {
    left: auto;
    }

    #submenu li:hover, #submenu li.sfHover {
    position: static;
    }






    /* Layout */

    #primary, #secondary{
    padding-top: 40px;
    padding-bottom: 40px;
    }

    /* Slider */

    #slidebox{
    max-height: 550px;

    position: relative;
    background: #000;
    }

    .doverlay{
    background: url(images/overlay.png);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top:0px;
    z-index: 100;

    }

    img.grayscale {
    filter: url(« data:image/svg+xml;utf8,#grayscale »); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
    }


    .flex-caption{
    width: 800px;
    position: absolute;
    top:40%;
    left: 50%;
    margin-left: -400px;
    text-align: center;
    z-index: 120;
    color: #fff;

    }

    .flex-caption h2{
    text-transform: uppercase;
    font-size: 36px;
    color: #fff;
    }

    .flex-caption h2 a:link, .flex-caption h2 a:visited{
    color: #fff;
    }

    .flex-caption p{
    font-size: 16px;
    }

    a.frmore{
    background: rgba(255,255,255,0.2);
    display: block;
    text-transform: uppercase;
    color: #fff;
    width: 150px;
    border: 1px solid #fff;
    padding: 5px 0px;
    margin: 10px auto;
    font-weight: bold;
    color: #fff!important;
    }


    /* Home widgets */

    .fwidgets{
    padding: 40px 0px;
    background: #216e80;
    border-top:5px solid #216e80;
    border-bottom:5px solid #216e80;
    }

    .homewidget{
    color: #fff;
    text-align: center;
    }

    .homewidget span{
    border: 5px solid #fff;
    background: transparent;
    width: 70px;
    height: 70px;
    border-radius: 35px;
    display: block;
    line-height: 65px;
    text-align: center;
    margin: 0px auto;
    font-size: 20px;
    }

    .homewidget h3{
    font-size: 24px;
    font-weight: bold;
    }

    /* Homepage */

    .section-wide{
    margin-top:40px;
    }
    .sec{
    margin-bottom: 40px;
    }
    .section-title{
    text-transform: uppercase;
    padding-bottom: 20px;
    }
    .section-title h2{
    font-size: 24px;
    color: #000;
    font-weight: bold;
    margin-bottom: 5px;
    }

    .section-title p{
    font-weight: bold;
    border-bottom: 1px solid #dfdfdf;
    color: #aaa;
    padding-bottom: 20px;
    }

    .portbox,.postbox,.hthumb{
    position: relative;

    }
    .hthumb a img{
    display: block;
    }
    .overlay{
    position: absolute;
    background: #216e80;
    width: 30px;
    height: 30px;
    line-height: 35px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    z-index: 100;
    right: 0px;
    bottom: 0px;
    }
    .portbox h3{
    text-align: center;
    color: #000;
    font-size: 14px;
    }

    .postbox h3{
    font-size: 16px;
    font-weight: bold;
    }
    .postbox h3 a:link, .postbox h3 a:visited, .portbox h3 a:link, .portbox h3 a:visited {
    color: #000;

    }

    .hometa{
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: bold;
    }


    /* Article */

    .page-head{
    background: #206E7F;
    padding: 20px 0px;
    color: #fff;
    border-top:5px solid #f96b61;
    border-bottom:5px solid #f96b61;
    }

    .page-head h3{
    font-size: 24px;
    text-transform: uppercase;
    font-weight: bold;
    }

    article.post, article.page, section.error-404{
    margin-bottom: 40px;
    }

    h1.entry-title{
    margin-top:10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 36px;
    color: #000;
    }

    h1.entry-title a:link, h1.entry-title a:visited{
    color: #000;
    }

    .entry-meta{
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    }




    /* Search */

    .widget_search{
    width: 100%;
    }
    .widget_search label{
    width: 100%;
    }
    input.search-field{
    border: 1px solid #ddd;
    background: #fafafa;
    height: 40px;
    border-radius: 20px;
    width: 90%;
    padding: 5px 5%;
    display: block;
    }



    /* Widgets */
    .widget {
    margin: 0 0px 30px 0px;

    }

    h1.widget-title, h3.sidetitl {
    font-size: 20px;
    color:#000;
    height: 60px;
    line-height: 60px;
    text-transform: uppercase;
    font-weight: bold;
    }

    .widget ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px 0px 20px 0px;
    }

    .widget li {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    }

    .widget ul ul {
    list-style-type: none;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    }

    .widget ul li {
    list-style-type: none;
    margin: 0px;
    margin: 0px 0px;
    color: #6f7779;
    }

    .widget ul li a:link,.widget ul li a:visited {
    color: #6f7779;
    text-decoration: none;
    }

    .widget ul li a:hover{
    color:#216e80;
    }

    .widget.widget_categories ul li,.widget.widget_pages ul li,.widget.widget_archive ul li,.widget.widget_links ul li,.widget.widget_meta ul li {
    border-bottom: 1px dotted #ddd;
    padding: 7px 0px;
    }

    .widget.widget_recent_entries ul li {
    padding: 7px 0px;
    border-bottom: 1px dotted #ddd;
    }

    .widget ul#recentcomments li.recentcomments {
    border-bottom: 1px dotted #ddd;
    padding: 7px 0;
    }

    .widget .textwidget p {
    padding: 0px 0px;
    }

    .widget .tagcloud {
    padding: 0px 0px 20px 0px;
    }

    .widget .tagcloud a{
    color:#F5634A;
    }

    .widget #calendar_wrap{
    padding:0px 20px 20px 20px;
    color: #6f7779;
    }

    .widget_ns_mailchimp{
    background: #fff;
    border:1px solid #eaeaea;
    padding: 20px 20px;
    }

    .widget_ns_mailchimp input.button{
    width: 110px;
    margin: 10px 0px 0px 0px;
    }

    .squarebanner{
    margin:0px;
    }


    .squarebanner ul{
    margin:0px 0px 0px 0px;
    padding:0px 0px 10px 0px !important;

    }

    .squarebanner ul li{
    margin:10px 20px 5px 0px;
    list-style:none;
    float:left;

    }
    .squarebanner ul li img{
    width: 110px;
    height: 110px;
    }

    li.rbanner{
    margin-right:0px!important;
    }



    /* Comments */

    #comments{

    }

    h2.comments-title{
    font-size: 24px;
    margin-bottom: 20px;
    color: #216e80;
    }

    #comments ol.comment-list {
    clear: both;
    overflow: hidden;
    list-style: none;
    margin: 0;
    }

    #comments ol.comment-list li.comment,#comments ol.comment-list li.pingback {
    margin: 0px 0px 10px 0px;
    padding: 0px 0px;
    line-height: 1.6;

    }

    ol.comment-list li .comment-author .avatar {
    margin: 10px 10px 20px 0px;
    float:left;
    width:64px;
    height: 64px;
    border-radius: 32px;
    }

    cite.fn {
    color: #444;
    font-style:normal;
    font-weight:bold;
    font-size:14px;
    padding-top: 10px;
    display: inline-block;
    }

    cite.fn a:link,cite.fn a:visited {
    color:#444;
    }

    ol.comment-list li .comment-meta{

    padding-bottom: 10px;
    }

    ol.comment-list li .comment-meta a {

    text-decoration: none!important;


    }

    .comment-metadata{
    font-size: 12px;
    color: #999;
    }

    .comment-metadata a:link, .comment-metadata a:visited{
    color: #999;
    }

    .comment-content{
    padding: 0px 10px 10px 74px;

    }

    ol.comment-list li .reply {
    color: #216e80;
    font-size: 12px;
    margin-left: 74px;
    }

    ol.comment-list li .reply a {
    color: #216e80;

    }

    .space{
    height:30px;
    }


    ol.comment-list li ul.children {
    list-style: none;
    text-indent: 0;
    margin: 20px 0px 0px 50px;
    }


    #respond {
    margin: 30px 0;

    }

    #respond h3 {
    font-size: 18px;
    color: #3a4755;
    padding: 5px 0px;
    margin:0px 0px;
    }

    #commentform {
    padding: 0px 0px;
    }

    #commentform p {
    color: #777;
    margin: 5px 0;
    }

    .form-allowed-tags{
    font-size:13px;
    }

    #respond label {
    display:inline;
    color: #777;
    padding: 5px 0;
    }

    #respond input {
    background: #fff;
    border: 1px solid #ddd;
    color: #777;
    margin: 0 10px 10px 0;
    padding: 5px;
    }

    #commentform input {
    width: 50%;
    display:block;
    margin-top:5px;
    }

    #respond input#submit {
    width:130px;
    background:#eee;
    color: #555;
    cursor: pointer;
    margin: 10px 0;
    padding: 5px 10px;
    border: 1px solid #bbb;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    }

    textarea#comment {
    display:block;
    margin-top:5px;
    background: #fff;
    border: 1px solid #ddd;
    width: 70%;
    color: #333;
    margin: 5px 0 0;
    padding: 10px 10px;
    }


    .form-allowed-tags{
    padding:20px 0px;

    }

    /* Footer widgets */

    #bottom{
    padding: 20px 0px 40px 0px;
    background: #216e80;
    border-top:5px solid #216e80;
    }

    #bottom ul{
    margin:0px 0px;
    padding:0px;
    }

    h3.bothead{
    font-size: 16px;
    margin-bottom: 10px;
    padding: 10px 0px;
    color:#fff;
    text-transform: uppercase;
    }

    .botwid{
    color: #aaa;
    }

    .botwid ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px 0px 0px 0px ;


    }
    .botwid li{
    list-style-type: none;
    margin: 0 ;
    padding: 0px 0px;
    border-bottom: 1px dotted rgba(255,255,255,.2);
    }
    .botwid ul ul {
    list-style-type: none;
    margin: 0;
    padding: 0px 0px 0px 0px;
    background-repeat:no-repeat;
    }

    .botwid ul ul ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    border:0;
    }

    .botwid ul ul ul ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    border:0;

    }

    .botwid ul li {
    height:100%;
    line-height:18px;
    clear: left;
    list-style-type: none;
    color: #aaa;
    }

    .botwid ul li a:link, .botwid ul li a:visited {
    color: #aaa;
    text-decoration: none;
    padding: 7px 0px 7px 0px;
    display:block;
    }

    .botwid ul li a:hover{
    color: #fff;
    }

    .botwid p{
    padding: 5px 0px;
    margin:0;
    line-height:150%;

    }

    .botwid table {
    width:100%;
    text-align:center;
    color: #818181;
    }

    .botwid ul#recentcomments li.recentcomments {
    padding:7px 0;
    }



    /* Footer */

    .site-footer{
    padding: 10px 0px;
    background:#292929;
    font-size: 12px;
    }

    .fcred{
    padding: 10px 0px;
    color: #eee;
    }

    .fcred a:link, .fcred a:visited{
    color:#eee;
    }

    @media screen and (max-width: 768px) {
    html{
    font-size: 60%;
    }

    h1.site-title{
    text-align: center;
    }

    select.mnav{
    width: 100%;
    margin-bottom: 20px;
    }

    #submenu{
    display:none;
    }

    .flex-caption{
    display: none;
    }
    .portbox, .postbox{
    margin-bottom: 30px;
    }

    }

    Mais les changements apportés (couleur) ne fonctionnent pas….

    #937793
    PapiBoyington
    Membre
    Maître WordPress
    1503 contributions

    Haaaa, voilà, je vois la barre header en rouge 🙂

    Alors effectivement, comme on le voit dans le code source de la page, le theme.css qui est chargé est toujours celui du thème parent (celui du thème enfant a l’air d’être simplement ignoré).

    Du coup, je pense qu’il vous faut mettre toutes vos directives de style dans votre style.css enfant (la seule feuille de style qui sera téléchargée en l’état).

    Mais comme theme.css est chargée après style.css, ce sont ses directives qui sont prioritaires.

    Pour modifier cela, vous pouvez essayer d’utiliser la directive ‘important!’ dans style.css quand il s’agit de directives qui sont reprises pat theme.css

    Par exemple, pour le background, vous pouvez mettre dans style.css:

    .page-head {
    background: none repeat scroll 0% 0% #00FF00 important!;
    }

    #937794
    lattachepresse
    Membre
    Padawan WordPress
    77 contributions

    Merci j’essaie tout de suite!
    Vous êtes supers sur ce forum!

    #937795
    lattachepresse
    Membre
    Padawan WordPress
    77 contributions

    aie non ça ne marche pas…

    y aurait t-il une autre façon de faire prendre en compte la feuille theme.css de mon theme enfant?

    #937796
    PapiBoyington
    Membre
    Maître WordPress
    1503 contributions

    la directive .page-head de ton style.css a l’air juste ignorée, il doit y avoir un bête problème de format.

    essaye avec:

    .page-head{
    background: #00ff00 important!;
    padding: 20px 0px;
    color: #fff;
    border-top:5px solid #f96b61;
    border-bottom:5px solid #f96b61;
    }

    qui devrait mettre le fond du header en vert…

    #937797
    Flobogo
    Modérateur
    Maître WordPress
    20915 contributions

    Bonsoir,

    Je me suis déjà heurtée à ce problème pour aider quelqu’un sur ce forum. Je sais que ça a un rapport avec cet article du Codex : fonction get_stylesheet_directory.
    Perso, je ne suis pas assez bonne en anglais (ni en WP) pour comprendre. 😕
    Mais si ça peut vous éclairer …

7 sujets de 16 à 22 (sur un total de 22)
  • Vous devez être connecté pour répondre à ce sujet.