Making WordPress.org

Changeset 1619


Ignore:
Timestamp:
05/24/2015 09:47:38 PM (11 years ago)
Author:
ocean90
Message:

Rosetta Theme: Update RTL stylesheet.

This is the LTR stylesheet run through grunt-rtlcss.

see #1049.

Location:
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/header.php

    r1617 r1619  
    11<?php
    22
    3 wp_enqueue_style( 'rosetta', get_stylesheet_uri(), array(), 17, 'screen' );
     3$stylesheet = get_stylesheet_uri();
     4if ( is_rtl() ) {
     5        $stylesheet = str_replace( '.css', '-rtl.css', $stylesheet );
     6}
    47
    5 if ( is_rtl() ) {
    6         wp_enqueue_style( 'rosetta-rtl', get_locale_stylesheet_uri(), array( 'rosetta' ), 2, 'screen' );
    7 }
     8wp_enqueue_style( 'rosetta', $stylesheet, array(), 17 );
    89
    910if ( is_locale_css() ) {
     
    1213
    1314require WPORGPATH . 'header.php';
    14 
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/style-rtl.css

    r1616 r1619  
    1 /* Better RTL for Rosetta WP theme */
     1/*
     2Theme Name: Rosetta
     3Theme URI: http://wordpress.org
     4Version: 1.0
     5Description: The default theme for new official foreign-language WordPress sites.
     6Author: Matt Thomas
     7*/
     8
    29body {
    3         font-family: sans-serif;
    4         direction: rtl;
    5         unicode-bidi: embed;
    6 }
    7 
    8 h1, h2, h3, h4, h5, h6 {
    9         font-family: sans-serif;
    10 }
    11 
    12 h3, h4, h5, h6 {
     10        font-family: 'Open Sans', sans-serif;
     11}
     12
     13.nextprev {
     14        margin-bottom: 2em;
     15}
     16
     17.blog-categories ul li ul {
     18        margin-bottom: 0 !important;
     19}
     20
     21.storycontent div {
     22        margin-top: 2em;
     23        margin-bottom: 2em;
     24}
     25
     26.storycontent div.googleplus1_button,
     27.storycontent .wp-playlist div,
     28.storycontent .mejs-video div {
     29        margin-top: 0;
     30        margin-bottom: 0;
     31}
     32
     33@media screen and (max-width:692px) {
     34        .col-9 {
     35                width:100%;
     36        }
     37}
     38
     39#pagebody {
     40        font-size: 15px;
     41        line-height: 1.5;
     42}
     43
     44.section .col-9 h3,
     45.section .col-12 h3,
     46#pagebody h2.fancy {
     47        margin-bottom: 20px;
     48        font-size: 36px;
     49        font-weight: 300;
     50        line-height: 1.3;
     51}
     52
     53#pagebody .meta {
     54        margin-bottom: 20px;
     55        font-size: 12px;
     56        color: #999;
     57}
     58
     59.storycontent {
     60        padding-left: 60px;
     61}
     62
     63.storycontent ul li {
     64        margin-bottom: 5px;
     65}
     66
     67.col-3 p, .col-3 ul li {
     68        font-size: 14px;
     69}
     70
     71.feedback {
     72        margin-bottom: 40px;
     73}
     74
     75hr {
     76        margin: 2em 0 3em;
     77}
     78
     79.col-9 h2 {
     80        margin: 15px 0 20px;
     81        font-family: 'Open Sans', sans-serif;
     82        font-size: 26px;
     83}
     84
     85.storycontent h3 {
     86        margin: 0 0 5px 0;
     87        font-size: 16px;
    1388        font-weight: bold;
     89}
     90
     91.col-9 h2.aligncenter,
     92.col-9 h3.aligncenter {
     93        text-align: center;
     94}
     95
     96.col-3 p, .col-3 ul li {
     97        font-size: 13px;
     98}
     99
     100h2.fancy:nth-of-type(1) {
     101        margin-top: 0;
     102}
     103
     104#pagebody ul {
     105        margin-right: 17px;
     106}
     107
     108#pagebody dt {
     109        font-style: italic;
     110        margin: 22px 0 10px;
     111}
     112
     113#mid-wrapper {
     114        background-color: #f7f7f7;
     115        border-bottom: 1px solid #dfdfdf;
     116        margin-top: -29px;
     117}
     118
     119.section {
     120        padding-top: 27px;
     121        padding-bottom: 17px;
     122        clear: both;
     123        border-bottom: 1px solid #DADADA;
     124}
     125
     126.section .post h4 {
     127        font-size: 16px;
     128        margin-bottom: 5px;
     129        border-bottom: 0;
     130}
     131
     132.section .post:last-child .entry {
     133        border-bottom: 0;
     134}
     135
     136.wrapper:last-child .section,
     137#mid-wrapper .section {
     138        border-bottom: none;
     139}
     140
     141.section:after  {
     142        content: ".";
     143        display: block;
     144        height: 0;
     145        clear: both;
     146        visibility: hidden;
    14147}
    15148
    16149.section img.shot {
    17150        float: left;
     151        border: 1px solid #ccc;
     152        padding: 2px;
    18153        margin: 0 25px 5px 0;
    19154}
    20155
    21 .main {
     156/**
     157 * Sidebar
     158 */
     159.sidebar p {
     160        font-size: 13px;
     161        line-height: 1.6em;
     162        margin-top: 10px;
     163        margin-bottom: 10px;
     164}
     165.sidebar ul {
     166        font-size: 12px;
     167        margin-right: 15px;
     168        margin-top: 10px;
     169}
     170
     171p.download-tar {
     172        padding-top: 5px;
     173        font-size: 12px;
     174}
     175
     176/**
     177 * Page Template: Releases
     178 */
     179table.releases {
     180        clear: right;
     181        margin: 5px 5px 24px 5px;
     182}
     183table.releases td {
     184        width: 120px;
     185        text-align: center;
     186        padding: 8px;
     187}
     188table.releases tr {
     189        background-color: rgb(238, 238, 238);
     190        text-align: center;
     191}
     192table.releases tr.alt {
     193        background-color: white;
     194}
     195table.releases tr.beta-first {
     196        font-weight: bold;
     197}
     198table.releases small, table.releases small a {
     199        font-size: 9px;
     200}
     201table.latest tr {
     202        background-color: #d54e21;
     203        color: white;
     204}
     205table.latest a {
     206        color: white;
     207        font-weight: bold;
     208}
     209table.latest a:hover {
     210        text-decoration: underline;
     211}
     212
     213/**
     214 * Page Template: Contact
     215 */
     216form#contactme td {
     217        padding: 6px;
     218}
     219form#contactme input, form#contactme textarea {
     220        padding: 3px;
     221}
     222form#contactme input {
     223        width: 20em;
     224}
     225form#contactme textarea {
     226        width: 30em;
     227        height: 10em;
     228        line-height: 1.5em;
     229}
     230
     231form#contactme .submit input,
     232form#contactme input[type=button],
     233form#contactme input[type=submit],
     234form#contactme .button,
     235form#contactme .download-button,
     236form#contactme .button-secondary {
     237        padding: 11px 0;
     238        font-size: 13px;
     239        height: auto;
     240        max-width: 230px;
     241}
     242
     243/**
     244 * Showcase
     245 */
     246ul#showcase {
     247        text-align: center;
     248        margin: 0;
     249        font-size: 85%;
     250}
     251
     252#showcase li {
     253        display: inline-block;
     254        margin-left: 6%;
     255        width: 20%;
     256}
     257
     258#showcase li:last-child {
     259        margin-left: 0;
     260}
     261
     262#showcase a.shot {
     263        display: block;
     264        margin-bottom: 6px;
     265        background-color: rgb(245, 245, 245);
     266        border: 1px solid rgb(204, 204, 204);
     267        padding: 0;
     268}
     269
     270#showcase a {
     271        font-size: 110%;
     272}
     273
     274span#showcase-front-slate {
     275        font-style: italic;
     276        font-weight: bold;
     277}
     278
     279.feedback {
     280        text-align: left;
     281        font-size: 10px;
     282        text-transform: uppercase;
     283        border-bottom: 1px solid #dadada;
     284        padding-bottom: 1px;
     285        margin-bottom: 25px;
     286}
     287
     288.feedback a {
     289        text-decoration: none;
     290}
     291
     292
     293/* Hide visually but not from screen readers */
     294.screen-reader-text,
     295.screen-reader-text span {
     296        position: absolute;
     297        margin: -1px;
     298        padding: 0;
     299        height: 1px;
     300        width: 1px;
     301        overflow: hidden;
     302        clip: rect(0 0 0 0);
     303        border: 0;
     304        word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */
     305}
     306
     307/**
     308 * Forms
     309 */
     310button,
     311input,
     312select,
     313textarea {
     314        background-color: #fff;
     315        border-radius: 0;
     316        font-size: 14px;
     317        line-height: 1.5;
     318        margin: 0;
     319        max-width: 100%;
     320        vertical-align: baseline;
     321}
     322
     323button,
     324input {
     325        line-height: normal;
     326}
     327
     328input,
     329textarea {
     330        background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); /* Removing the inner shadow on iOS inputs */
     331        border: 1px solid #ccc;
     332        color: #333;
     333}
     334
     335input[type="text"],
     336input[type="email"],
     337input[type="url"],
     338input[type="password"],
     339input[type="search"],
     340textarea {
     341        padding: 0.375em;
     342        width: 100%;
     343}
     344
     345textarea {
     346        overflow: auto;
     347        vertical-align: top;
     348}
     349
     350/**
     351 * Comments
     352 */
     353.comments-area {
     354        border-top: 1px solid #eaeaea;
     355}
     356
     357.comments-area > :last-child {
     358        margin-bottom: 0;
     359}
     360
     361.comment-list + .comment-respond {
     362        border-top: 1px solid #eaeaea;
     363}
     364
     365.comment-list + .comment-respond,
     366.comment-navigation + .comment-respond {
     367        padding-top: 1.6em;
     368}
     369
     370.comments-title,
     371.comment-reply-title {
     372        font-size: 18px;
     373        line-height: 1.3333;
     374}
     375
     376.comments-title {
     377        margin-bottom: 1.3333em;
     378}
     379
     380#pagebody .comment-list {
     381        list-style: none;
     382        margin: 0;
     383}
     384
     385.comment-list .alt {
     386        background: none;
     387}
     388
     389.comment-list article,
     390.comment-list .pingback,
     391.comment-list .trackback {
     392        border-top: 1px solid #eaeaea;
     393        padding: 1.6em 0;
     394}
     395
     396.comment-list .children {
     397        list-style: none;
     398        margin: 0;
     399}
     400
     401.comment-list .children > li {
     402        padding-right: 0.8em;
     403}
     404
     405.comment-author {
     406        color: #999;
     407        margin-bottom: 0.4em;
     408}
     409
     410.comment-author .avatar {
    22411        float: right;
    23         padding: 0 0 0 30px;
    24 }
    25 
    26 .download-button span, .download-tar {
    27         direction: ltr;
    28         unicode-bidi: embed;
    29 }
    30 
    31 h4, h6 {
    32         float: none;
    33         margin-right: 0;
    34 }
    35 
    36 ul, ol {
    37         margin: 0 25px 0 0;
    38 }
    39 
    40 .narrow {
    41         float: right;
    42         margin: 0 0 0 20px;
    43 }
    44 
    45 span.author {
     412        height: 24px;
     413        margin-left: 0.8em;
     414        width: 24px;
     415}
     416
     417.comment-metadata,
     418.pingback .edit-link {
     419        color: #999;
     420        font-size: 12px;
     421        line-height: 1.5;
     422}
     423
     424.comment-metadata a,
     425.pingback .edit-link a {
     426        color: #777;
     427        border-bottom: 1px solid #dfdfdf;
     428}
     429
     430.comment-metadata a:hover,
     431.comment-metadata a:focus,
     432.pingback .edit-link a:hover,
     433.pingback .edit-link a:focus {
     434        color: #d54e21;
     435        border-bottom-color: #d54e21;
     436}
     437
     438.comment-metadata {
     439        margin-bottom: 1.6em;
     440}
     441
     442.comment-metadata .edit-link {
     443        margin-right: 1em;
     444}
     445
     446.pingback .edit-link {
     447        margin-right: 1em;
     448}
     449
     450.pingback .edit-link:before {
     451        top: 5px;
     452}
     453
     454.comment-content ul,
     455.comment-content ol {
     456        margin: 0 1.3333em 1.6em 0;
     457}
     458
     459.comment-content li > ul,
     460.comment-content li > ol {
     461        margin-bottom: 0;
     462}
     463
     464.comment-content > :last-child {
     465        margin-bottom: 0;
     466}
     467
     468.comment-list .reply {
     469        font-size: 12px;
     470}
     471
     472.comment-list .reply a {
     473        border: 1px solid #eaeaea;
     474        color: #707070;
     475        display: inline-block;
     476        font-weight: 700;
     477        line-height: 1;
     478        margin-top: 2em;
     479        padding: 0.4167em 0.8333em;
     480        text-transform: uppercase;
     481}
     482
     483.comment-list .reply a:hover,
     484.comment-list .reply a:focus {
     485        border-color: #333;
     486        color: #333;
     487        outline: 0;
     488}
     489
     490.comment-form {
     491        padding-top: 1.6em;
     492}
     493
     494.comment-form label {
     495        font-size: 12px;
     496        font-weight: 700;
    46497        display: block;
    47 }
     498        letter-spacing: 0.04em;
     499        line-height: 1.5;
     500}
     501
     502.comment-form input[type="text"],
     503.comment-form input[type="email"],
     504.comment-form input[type="url"] {
     505        width: 100%;
     506}
     507
     508.comment-notes,
     509.comment-awaiting-moderation,
     510.logged-in-as,
     511.form-allowed-tags {
     512        font-size: 12px;
     513        line-height: 1.5;
     514        margin-bottom: 2em;
     515}
     516
     517.no-comments {
     518        border-top: 1px solid #eaeaea;
     519        color: #999;
     520        font-weight: 700;
     521        padding-top: 1.6em;
     522}
     523
     524.comment-navigation + .no-comments {
     525        border-top: 0;
     526}
     527
     528.form-allowed-tags code {
     529        font-family: Inconsolata, monospace;
     530}
     531
     532.form-submit {
     533        margin-bottom: 0;
     534}
     535
     536.required {
     537        color: #c0392b;
     538}
     539
     540/**
     541 * Media Queries
     542 */
     543@-ms-viewport {
     544        width: device-width;
     545}
     546
     547@viewport {
     548        width: device-width;
     549}
     550
     551
     552@media screen and (min-width: 620px) {
     553        .comments-area {
     554                border-top: 0;
     555        }
     556
     557        .comment-content ul,
     558        .comment-content ol {
     559                margin-right: 0;
     560        }
     561
     562        .comment-content li > ul,
     563        .comment-content li > ol,
     564        .comment-content blockquote > ul,
     565        .comment-content blockquote > ol {
     566                margin-right: 1.3333em;
     567        }
     568}
     569
     570@media screen and (min-width: 740px) {
     571        .comments-title {
     572                margin-bottom: 1.4em;
     573        }
     574
     575        .comment-list article,
     576        .comment-list .pingback,
     577        .comment-list .trackback {
     578                padding: 1.6471em 0;
     579        }
     580
     581        .comment-list + .comment-respond,
     582        .comment-navigation + .comment-respond {
     583                padding-top: 1.6471em;
     584        }
     585
     586        .comment-list .children > li {
     587                padding-right: 1.2353em;
     588        }
     589
     590        .comment-meta {
     591                position: relative;
     592        }
     593
     594        .comment-author {
     595                margin-bottom: 0;
     596        }
     597
     598        .comment-author .avatar {
     599                height: 42px;
     600                margin-left: 1.64705em;
     601                position: relative;
     602                top: 5px;
     603                width: 42px;
     604        }
     605
     606        .comment-content ul,
     607        .comment-content ol {
     608                margin-bottom: 1.6471em;
     609        }
     610
     611        .comment-list .reply a {
     612                padding: 0.4286em 0.8571em;
     613        }
     614
     615        .comment-form,
     616        .no-comments {
     617                padding-top: 1.6471em;
     618        }
     619}
     620
     621@media screen and (min-width: 880px) {
     622        .comment-form label {
     623                font-size: 15px;
     624        }
     625
     626        .comments-title {
     627                margin-bottom: 1.4545em;
     628        }
     629
     630        .comment-list article,
     631        .comment-list .pingback,
     632        .comment-list .trackback {
     633                padding: 1.6842em 0;
     634        }
     635
     636        .comment-list + .comment-respond,
     637        .comment-navigation + .comment-respond {
     638                padding-top: 1.6842em;
     639        }
     640
     641        .comment-list .children > li {
     642                padding-right: 1.4737em;
     643        }
     644
     645        .comment-author .avatar {
     646                height: 56px;
     647                margin-left: 1.6842em;
     648                top: 3px;
     649                width: 56px;
     650        }
     651
     652        .comment-metadata {
     653                line-height: 2;
     654        }
     655
     656        .comment-content ul,
     657        .comment-content ol {
     658                margin-bottom: 1.6842em;
     659        }
     660
     661        .comment-list .reply a {
     662                padding: 0.4375em 0.875em;
     663        }
     664
     665        .comment-form,
     666        .no-comments {
     667                padding-top: 1.6842em;
     668        }
     669}
Note: See TracChangeset for help on using the changeset viewer.