WordPress.org

Making WordPress.org

Changeset 4880


Ignore:
Timestamp:
02/04/2017 10:51:35 AM (3 years ago)
Author:
obenland
Message:

Learn: Update theme to be a child theme of wporg.

See #1015.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn
Files:
27 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn/functions.php

    r2043 r4880  
    3333    }
    3434
    35     return $parts; 
     35    return $parts;
    3636}
    3737add_filter( 'document_title_parts', 'learn_remove_frontpage_name_from_title' );
    3838
     39function learn_scripts() {
     40    wp_enqueue_style( 'wporg-learn-fonts', '//fonts.googleapis.com/css?family=Roboto+Condensed:700', array(), 1, 'screen' );
     41    wp_enqueue_style( 'buttons' );
     42}
     43add_action( 'wp_enqueue_scripts', 'learn_scripts', 9 );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn/style.css

    r4 r4880  
    1 /* 
     1/*
    22Theme Name: Learn-wporg
    33Version: 1.0
    44Description: Theme for learn.wordpress.org
     5Template: wporg
    56*/
    6 
    7 
    8 html,body {margin:0; padding:0; font-family:sans-serif; color:#464646; font-weight:300;}
    9 a {color:#21759b; text-decoration:none}
    10 a:hover {color:#d54e21; text-decoration:underline;}
    11 
    12 .learn-main input[type="submit"] { background: #21759B url(http://s.wordpress.org/images/button-grad.png) repeat-x scroll left top; padding:0 10px 1px !important;}
    13 
    14 section.homewrap {}
    15 section.homewrap h1,
    16 section.homewrap h2,
    17 section.homewrap h3,
    18 section.homewrap h4 {font-family:Georgia,Times,"Times New Roman",serif; font-weight:400; text-shadow:0 1px 0 #fff;}
    19 section.homewrap > hgroup {background:#f7f7f7; border-bottom:1px solid #dfdfdf; }
    20 section.homewrap > hgroup h1 {margin:0 auto; max-width:940px; padding:20px 10px; font-size:28px; font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif; line-height:1em; font-weight:300; color:#555; text-shadow:0 1px 0 #fff;}
    21 
    22 section.homewrap > header {background:#1a89c2; position:relative; overflow:hidden;}
    23 section.homewrap > header:before {background:url(wp-white.svg) 50% 50% no-repeat; background-size:contain; content:''; position:absolute; left:0; top:-70px; height:370px; width:370px; opacity:.05;}
    24 section.homewrap > header > .wrap {max-width:940px; padding:30px 10px; margin:0 auto; overflow:hidden; position:relative; z-index:1; line-height:normal}
    25 section.homewrap > header > .wrap img {float:right; display:block; border:3px solid #fff; box-shadow:0 0 20px rgba(0,0,0,.5); margin-left:40px; max-width:98%; height:auto;}
    26 section.homewrap > header > .wrap h1 {font-size:48px; color:#fff; font-family:'Roboto Condensed',sans-serif; font-weight:700; text-shadow:-1px -1px 1px rgba(0,0,0,.4); margin:0;}
    27 section.homewrap > header > .wrap h5 {margin:20px 0; font-family:Georgia,Times,"Times New Roman",serif; font-weight:400; color:#0a4c6b; font-size:20px; line-height:28px;}
    28 section.homewrap > header > .wrap p {color:#fff; font-size:13px; line-height:20px;}
    29 
    30 section.homewrap > nav.subhead {background:#0d587d; border-top:1px solid #0a4c6b; border-bottom:1px solid #003245; position:relative;}
    31 section.homewrap > nav.subhead:before {content:''; position:absolute; top:-2px; left:0; height:1px; width:100%; background:#1473a3;}
    32 section.homewrap > nav.subhead:after {content:''; position:absolute; top:0px; left:0; height:1px; width:100%; background:#22698b;}
    33 section.homewrap > nav.subhead h3 {max-width:940px; padding:15px 10px; margin:0 auto; font-family:Helvetica,Arial,sans-serif; font-size:16px;}
    34 section.homewrap > nav.subhead h3 a {text-transform:uppercase; color:#fff; text-shadow:-1px -1px 1px rgba(0,0,0,.4); text-decoration:none;}
    35 section.homewrap > nav.subhead h3 a:hover {color:#eee;}
    36 
    37 section.homewrap > nav.subhead ul {max-width:940px; padding:10px; margin:0 auto; font-family:Helvetica,Arial,sans-serif; font-size:16px;}
    38 section.homewrap > nav.subhead ul li {display:inline-block; margin:0 20px 0 -10px;}
    39 section.homewrap > nav.subhead ul li a {color:#fff; text-shadow:-1px -1px 1px rgba(0,0,0,.4); text-decoration:none; display:inline-block; padding:5px 10px;}
    40 section.homewrap > nav.subhead ul li a:hover {color:#eee;}
    41 
    42 section.learn-main {max-width:940px; padding:30px 10px; margin:0 auto; overflow:hidden;}
    43 .blog section.learn-main {max-width:660px; margin:0; float:left;}
    44 section.learn-main article {float:left; font-size:14px;}
    45 section.learn-main article h1 {margin:0; font-size:26px;}
    46 section.learn-main article small {display:block; margin:10px 0; opacity:.8;}
    47 section.learn-main article p {margin: 1em 0; line-height:22px;}
    48 .home section.learn-main form {float:right; width:35%;}
    49 section.learn-main form label {display:block; text-transform:uppercase; font-size:13px; font-weight:700; margin-bottom:20px; line-height:normal;}
    50 section.learn-main form input[type="text"],
    51 section.learn-main form input[type="email"],
    52 section.learn-main form textarea {padding:5px; width:95%; border:1px solid #aaa; background:#ddd; display:block; margin-top:5px;}
    53 section.learn-main form input[type="submit"] {margin-top:10px; float:right;}
    54 
    55 section.learn-main ul {padding-left:25px;}
    56 
    57 section.learn-main article {width:100%}
    58 
    59 .main {
    60     margin:0 auto;
    61     max-width:940px;
    62 }
    63 
    64 .widget-area aside {
    65         margin: 0 0 40px 0;
    66         padding: 0 20px 0 0;
    67     font-size: 12px;
    68 }
    69 .widget-area aside ul {
    70         border: none;
    71         margin-left: 1.3em;
    72         padding: 0;
    73 }
    74 .widget-area aside h4 {
    75     font-size:16px;
    76 }
    77 .widget-area {
    78         float: left;
    79         margin: 30px 0 0 30px;
    80         width: 220px;
    81 }
    82 
    83 /* Small Screen Sizes */
    84 @media screen and (max-width: 959px) {
    85 
    86 }
    87 
    88 @media screen and (max-width: 800px) {
    89 
    90 }
    91 
    92 @media screen and (max-width: 550px) {
    93 
    94     section.homewrap > header > .wrap img {float:none; width:98%; margin:0 auto 10px;}
    95     section.learn-main article {float:none; width:auto;}
    96     section.learn-main form {float:none; width:auto;}
    97 
    98 
    99 }
Note: See TracChangeset for help on using the changeset viewer.