Changeset 31573
- Timestamp:
- 02/27/2015 01:40:03 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r31547 r31573 173 173 } 174 174 }, 175 cssjanus: { 175 rtlcss: { 176 options: { 177 // rtlcss options 178 config: { 179 swapLeftRightInUrl: false, 180 swapLtrRtlInUrl: false, 181 autoRename: false, 182 preserveDirectives: true, 183 stringMap: [ 184 { 185 name: 'import-rtl-stylesheet', 186 search: [ '.css' ], 187 replace: [ '-rtl.css' ], 188 options: { 189 scope: 'url', 190 ignoreCase: false 191 } 192 } 193 ] 194 }, 195 saveUnmodified: false 196 }, 176 197 core: { 177 options: {178 swapLtrRtlInUrl: false,179 processContent: function( src ) {180 return src.replace( /url\((.+?)\.css\)/g, 'url($1-rtl.css)' );181 }182 },183 198 expand: true, 184 199 cwd: SOURCE_DIR, … … 191 206 }, 192 207 colors: { 193 options: {194 processContent: function( src ) {195 return src.replace( /([^/]+)\.css/gi, '$1-rtl.css' );196 }197 },198 208 expand: true, 199 209 cwd: BUILD_DIR, … … 504 514 SOURCE_DIR + 'wp-includes/css/*.css' 505 515 ], 506 tasks: [' cssjanus:dynamic'],516 tasks: ['rtlcss:dynamic'], 507 517 options: { 508 518 spawn: false, … … 523 533 524 534 // RTL task. 525 grunt.registerTask('rtl', [' cssjanus:core', 'cssjanus:colors']);535 grunt.registerTask('rtl', ['rtlcss:core', 'rtlcss:colors']); 526 536 527 537 // Color schemes task. … … 577 587 // On `watch:all`, automatically updates the `copy:dynamic` and `clean:dynamic` 578 588 // configurations so that only the changed files are updated. 579 // On `watch:rtl`, automatically updates the ` cssjanus:dynamic` configuration.589 // On `watch:rtl`, automatically updates the `rtlcss:dynamic` configuration. 580 590 grunt.event.on('watch', function( action, filepath, target ) { 581 591 if ( target !== 'all' && target !== 'rtl' ) { … … 589 599 grunt.config(['clean', 'dynamic', 'src'], cleanSrc); 590 600 grunt.config(['copy', 'dynamic', 'src'], copySrc); 591 grunt.config([' cssjanus', 'dynamic', 'src'], copySrc);601 grunt.config(['rtlcss', 'dynamic', 'src'], copySrc); 592 602 }); 593 603 }; -
trunk/package.json
r31557 r31573 23 23 "grunt-contrib-uglify": "~0.6.0", 24 24 "grunt-contrib-watch": "~0.6.1", 25 "grunt-cssjanus": "~0.2.4",26 25 "grunt-jsvalidate": "~0.2.2", 27 26 "grunt-legacy-util": "^0.2.0", 28 27 "grunt-patch-wordpress": "~0.3.0", 28 "grunt-rtlcss": "~1.5.1", 29 29 "grunt-sass": "~0.16.0", 30 30 "matchdep": "~0.3.0" -
trunk/src/wp-admin/css/about.css
r31422 r31573 264 264 } 265 265 266 /* rtl:ignore */ 266 267 .about-wrap .dfw-container .overlay-image.from-left { 267 268 -webkit-transform: translate3d(-100%, 0, 0); … … 297 298 float: left; 298 299 clear: left; 299 margin: 15px 15px 0 0 300 margin: 15px 15px 0 0; 300 301 height: 90px; 301 302 width: 90px; -
trunk/src/wp-admin/css/admin-menu.css
r31564 r31573 593 593 } 594 594 595 /* rtl:ignore */ 595 596 .folded #collapse-button div:after, 596 597 .rtl #collapse-button div:after { … … 724 725 } 725 726 727 /* rtl:ignore */ 726 728 .auto-fold #collapse-button div:after { 727 729 -webkit-transform: rotate(180deg); -
trunk/src/wp-admin/css/common.css
r31569 r31573 391 391 } 392 392 393 /* @noflip*/393 /* rtl:ignore */ 394 394 .ltr { 395 395 direction: ltr; 396 396 } 397 397 398 /* @noflip*/398 /* rtl:ignore */ 399 399 .code, 400 400 code { … … 2376 2376 } 2377 2377 2378 /* @noflip*/2378 /* rtl:ignore */ 2379 2379 #plugin-information .section { 2380 2380 direction: ltr; 2381 2381 } 2382 2382 2383 /* @noflip*/2383 /* rtl:ignore */ 2384 2384 #plugin-information .section ul, 2385 2385 #plugin-information .section ol { … … 2409 2409 } 2410 2410 2411 /* @noflip*/2411 /* rtl:ignore */ 2412 2412 #plugin-information #section-screenshots li p { 2413 2413 font-style: italic; … … 2421 2421 } 2422 2422 2423 /* @noflip*/2423 /* rtl:ignore */ 2424 2424 #plugin-information .review { 2425 2425 overflow: hidden; /* clearfix */ … … 2433 2433 } 2434 2434 2435 /* @noflip*/2435 /* rtl:ignore */ 2436 2436 #plugin-information .review-title-section h4 { 2437 2437 display: inline-block; … … 2446 2446 } 2447 2447 2448 /* @noflip*/2448 /* rtl:ignore */ 2449 2449 #plugin-information .reviewer-info .avatar { 2450 2450 float: left; … … 2452 2452 } 2453 2453 2454 /* @noflip*/2454 /* rtl:ignore */ 2455 2455 #plugin-information .reviewer-info .star-rating { 2456 2456 float: left; 2457 2457 } 2458 2458 2459 /* @noflip*/2459 /* rtl:ignore */ 2460 2460 #plugin-information .review-meta { 2461 2461 float: left; … … 2463 2463 } 2464 2464 2465 /* @noflip*/2465 /* rtl:ignore */ 2466 2466 #plugin-information .review-body { 2467 2467 float: left; … … 2711 2711 } 2712 2712 2713 /* @noflip*/2713 /* rtl:ignore */ 2714 2714 #template textarea, 2715 2715 #docs-list { -
trunk/src/wp-admin/css/edit.css
r31505 r31573 1311 1311 } 1312 1312 1313 /* @noflip */1314 1313 .focus-on #adminmenuback, 1315 1314 .focus-on #adminmenuwrap { … … 1317 1316 -ms-transform: translateX( -100% ); 1318 1317 transform: translateX( -100% ); 1319 }1320 1321 /* @noflip */1322 .rtl.focus-on #adminmenuback,1323 .rtl.focus-on #adminmenuwrap {1324 -webkit-transform: translateX( 100% );1325 -ms-transform: translateX( 100% );1326 transform: translateX( 100% );1327 1318 } 1328 1319 -
trunk/src/wp-admin/css/forms.css
r31534 r31573 62 62 } 63 63 64 /* @noflip*/64 /* rtl:ignore */ 65 65 input[type="email"], 66 66 input[type="url"] { -
trunk/src/wp-admin/css/install.css
r31505 r31573 238 238 } 239 239 240 /* @noflip*/240 /* rtl:ignore */ 241 241 #dbname, 242 242 #uname, -
trunk/src/wp-admin/css/themes.css
r31519 r31573 1525 1525 } 1526 1526 1527 /* rtl:ignore */ 1527 1528 .wp-full-overlay.collapsed .collapse-sidebar-arrow:before, 1528 1529 .rtl .wp-full-overlay .collapse-sidebar-arrow:before { -
trunk/src/wp-includes/css/editor.css
r31505 r31573 2113 2113 } 2114 2114 2115 /* @noflip*/2115 /* rtl:ignore */ 2116 2116 .mce-rtl .mce-flow-layout .mce-flow-layout-item > div { 2117 2117 direction: rtl; 2118 2118 } 2119 2119 2120 /* @noflip*/2120 /* rtl:ignore */ 2121 2121 .mce-rtl .mce-listbox i.mce-caret { 2122 2122 left: 6px; -
trunk/src/wp-includes/css/jquery-ui-dialog.css
r31569 r31573 129 129 left: 0; 130 130 } 131 /* @noflip*/131 /* rtl:ignore */ 132 132 .ui-resizable-e { 133 133 cursor: e-resize; … … 137 137 height: 100%; 138 138 } 139 /* @noflip*/139 /* rtl:ignore */ 140 140 .ui-resizable-w { 141 141 cursor: w-resize; … … 145 145 height: 100%; 146 146 } 147 /* @noflip*/147 /* rtl:ignore */ 148 148 .ui-resizable-se { 149 149 cursor: se-resize; … … 153 153 bottom: 1px; 154 154 } 155 /* @noflip*/155 /* rtl:ignore */ 156 156 .ui-resizable-sw { 157 157 cursor: sw-resize; … … 161 161 bottom: -5px; 162 162 } 163 /* @noflip*/163 /* rtl:ignore */ 164 164 .ui-resizable-nw { 165 165 cursor: nw-resize; … … 169 169 top: -5px; 170 170 } 171 /* @noflip*/171 /* rtl:ignore */ 172 172 .ui-resizable-ne { 173 173 cursor: ne-resize; -
trunk/src/wp-includes/css/media-views.css
r31569 r31573 887 887 } 888 888 889 /* @noflip */890 889 .wp-core-ui .attachment .thumbnail img { 891 890 top: 0; … … 893 892 } 894 893 895 /* @noflip */896 894 .wp-core-ui .attachment .thumbnail .centered { 897 895 position: absolute; -
trunk/src/wp-includes/css/wp-pointer.css
r28897 r31573 111 111 } 112 112 113 /* @noflip*/113 /* rtl:ignore */ 114 114 .wp-pointer-left { 115 115 padding-left: 13px; 116 116 } 117 /* @noflip*/117 /* rtl:ignore */ 118 118 .wp-pointer-right { 119 119 margin-left: -13px; … … 169 169 } 170 170 171 /* @noflip*/171 /* rtl:ignore */ 172 172 .wp-pointer-left .wp-pointer-arrow { 173 173 left: 0; … … 176 176 } 177 177 178 /* @noflip*/178 /* rtl:ignore */ 179 179 .wp-pointer-left .wp-pointer-arrow-inner { 180 180 left: 1px; … … 187 187 } 188 188 189 /* @noflip*/189 /* rtl:ignore */ 190 190 .wp-pointer-right .wp-pointer-arrow { 191 191 right: 0; … … 194 194 } 195 195 196 /* @noflip*/196 /* rtl:ignore */ 197 197 .wp-pointer-right .wp-pointer-arrow-inner { 198 198 right: 1px;
Note: See TracChangeset
for help on using the changeset viewer.