Ticket #21441: 21441.diff
File 21441.diff, 5.4 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/rtl.css
8 8 http://codex.wordpress.org/Right_to_Left_Language_Support 9 9 */ 10 10 11 /* =Reset 12 -------------------------------------------------------------- */ 13 11 14 caption, 12 15 th, 13 16 td { … … 18 21 -------------------------------------------------------------- */ 19 22 20 23 /* Images */ 21 .align right {24 .alignleft { 22 25 float: right; 23 26 } 24 .alignleft { 27 28 .alignright { 25 29 float: left; 26 30 } 27 #content .gallery-columns-4 .gallery-item { 28 padding-left: 2%; 29 padding-right: 0; 30 } 31 32 #content .gallery-columns-4 .gallery-item, 31 33 #content .gallery-columns-5 .gallery-item { 32 34 padding-left: 2%; 33 padding-right: 0;34 35 } 35 36 36 37 /* Navigation */ … … 45 46 } 46 47 47 48 /* Author profiles */ 48 #author-avatar { 49 float: right; 50 } 51 #author-description { 52 float: right; 53 margin-right: 15px; 54 margin-right: 1.071428571rem; 55 margin-left: auto; 56 } 49 @media screen and (min-width: 600px) { 50 #author-avatar { 51 float: right; 52 } 57 53 54 #author-description { 55 float: left; 56 } 57 } 58 58 59 59 /* =Basic structure 60 60 -------------------------------------------------------------- */ 61 61 62 /* Body, links, basics */ 63 body { 64 direction: rtl; 65 unicode-bidi: embed; 66 } 67 68 @media screen and (min-width: 600px) { 69 #primary { 70 float: right; 71 } 72 73 #secondary { 74 float: left; 75 } 76 } 77 78 /* Header */ 79 @media screen and (min-width: 600px) { 80 .site-header hgroup h1, 81 .site-header hgroup h2 { 82 text-align: right; 83 } 84 } 85 62 86 /* Navigation Menu */ 87 nav.main-navigation li ul li { 88 padding-right: 0; 89 } 90 63 91 nav.main-navigation li { 64 92 margin-left: 40px; 65 93 margin-left: 2.857142857rem; 66 margin-right: auto;67 94 } 95 68 96 nav.main-navigation li ul ul { 69 97 right: 100%; 70 left: auto;71 98 } 99 72 100 nav.main-navigation ul li:hover > ul { 73 101 border-right: 0; 74 border-left: none;75 102 } 76 103 77 104 78 105 /* =Basic post styling 79 106 -------------------------------------------------------------- */ 80 107 81 .entry-content img.alignright { 82 float: right; 83 margin: 0 0 0 24px; 84 } 85 .entry-content li { 108 .entry-content li, 109 .comment-content li { 86 110 margin: 0 24px 0 0; 111 margin: 0 1.714285714rem 0 0; 87 112 } 88 .entry-content img.alignright { 113 114 .entry-content img.alignleft { 89 115 margin: 12px 0 12px 24px; 116 margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; 90 117 } 91 .entry-content img.alignleft { 118 119 .entry-content img.alignright { 92 120 margin: 12px 24px 12px 0; 93 } 94 .entry-content td { 95 padding: 6px 0 6px 10px; 121 margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; 96 122 } 97 123 98 124 /* =Aside post styling 99 125 -------------------------------------------------------------- */ 100 126 101 127 article.format-aside .aside { 128 border-left: 0; 102 129 border-right: 22px solid #a8bfe8; 103 border-left: none;104 130 } 105 131 106 107 132 /* =Link post styling 108 133 -------------------------------------------------------------- */ 109 134 110 135 article.format-link header { 111 136 float: left; 112 137 } 138 113 139 article.format-link .entry-content { 114 140 float: right; 115 141 } 116 142 143 117 144 /* =Comment styling 118 145 -------------------------------------------------------------- */ 119 146 120 147 #comments article header img { 121 148 float: right; 122 149 } 150 123 151 #comments article header cite, 124 152 #comments article header time { 125 153 margin-right: 85px; 126 154 margin-right: 6.071428571rem; 127 margin-left: auto;128 155 } 156 129 157 #comments article header h4 { 130 158 left: 0; 131 right: auto;132 159 } 160 133 161 #comments li.bypostauthor cite span { 134 162 margin-right: 5px; 135 163 margin-right: 0.357142857rem; 136 margin-left: auto; 164 } 165 166 .commentlist .children { 167 margin-right: 48px; 168 margin-right: 3.428571429rem; 137 169 } 138 170 139 171 /* Comment form */ 140 172 #respond h3#reply-title #cancel-comment-reply-link { 141 173 margin-right: 10px; 142 174 margin-right: 0.714285714rem; 143 margin-left: auto;144 175 } 176 145 177 label ~ span.required { 146 178 float: right; 147 margin: -18px -16px 0 0;148 179 } 149 180 150 181 151 182 /* =Home page template styling 152 183 -------------------------------------------------------------- */ 153 184 185 @media screen and (min-width: 600px) { 186 .page-template-homepage-php.has-post-thumbnail article { 187 float: right; 188 } 189 190 .entry-page-image { 191 float: left; 192 } 193 } 194 154 195 .page-template-homepage-php #secondary aside.widget_text img { 155 196 float: right; 156 margin: 8px 0 8px 24px;157 197 } 158 198 159 199 @media screen and (min-width: 600px) { 160 .page-template-homepage-php #secondary aside .widget_text img{200 .page-template-homepage-php #secondary aside { 161 201 float: right; 162 margin: 8px 0 8px 24px; 202 } 203 204 .page-template-homepage-php #secondary aside:nth-child(even) { 205 float: left; 163 206 } 164 207 } 165 208 209 166 210 /* =Widget styling 167 211 -------------------------------------------------------------- */ 168 212 169 213 .widget ul ul { 170 214 margin-right: 12px; 171 215 margin-right: 0.857142857rem; 172 margin-left: auto;173 216 } 217 174 218 .widget_recent_entries .post-date { 175 219 margin-right: 12px; 176 220 margin-right: 0.857142857rem; 177 margin-left: auto;178 221 } 222 179 223 #wp-calendar th, 180 224 #wp-calendar td, 181 225 #wp-calendar caption { 182 226 text-align: right; 183 227 } 228 184 229 #wp-calendar #next { 185 230 padding-left: 24px; 186 231 padding-left: 1.714285714rem; 187 232 text-align: left; 188 padding-right: 0; 233 } 234 235 236 /* =Print 237 ----------------------------------------------- */ 238 239 @media print { 240 241 .site-header { 242 text-align: right; 243 } 244 245 .site-header hgroup h1 { 246 text-align: right; 247 } 248 249 .site-header hgroup h2 { 250 text-align: right; 251 } 252 253 img.header-image { 254 display: none; 255 } 256 257 #primary { 258 float: right; 259 } 260 261 /* Comments */ 262 .commentlist .avatar { 263 right: 2.2em; 264 } 265 266 #comments article header cite, 267 #comments article header time { 268 margin-right: 50px; 269 margin-right: 3.57142857rem; 270 } 189 271 } 272 No newline at end of file