Changeset 46277
- Timestamp:
- 09/23/2019 08:53:02 PM (5 years ago)
- Location:
- trunk/src/wp-content/themes/twentytwenty/assets/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js
r46271 r46277 46 46 h: self.accentHue, 47 47 s: s, 48 l: l ,48 l: l 49 49 } ), 50 50 item; … … 53 53 color: colorObj, 54 54 contrastBackground: colorObj.getDistanceLuminosityFrom( self.bgColorObj ), 55 contrastText: colorObj.getDistanceLuminosityFrom( self.textColorObj ) ,55 contrastText: colorObj.getDistanceLuminosityFrom( self.textColorObj ) 56 56 }; 57 57 … … 134 134 * @return {Object} - this 135 135 */ 136 function twentyTwentyColor( backgroundColor, accentHue ) { 136 function twentyTwentyColor( backgroundColor, accentHue ) { // jshint ignore:line 137 137 var color = new _twentyTwentyColor( backgroundColor, accentHue ); 138 138 color.setAccentColorsArray(); -
trunk/src/wp-content/themes/twentytwenty/assets/js/customize-controls.js
r46271 r46277 65 65 text: colors.getTextColor(), 66 66 accent: colors.getAccentColor().toCSS(), 67 background: backgroundColor ,67 background: backgroundColor 68 68 }; 69 69 … … 72 72 h: colors.bgColorObj.h(), 73 73 s: colors.bgColorObj.s() * 0.3922, 74 l: colors.isDark ? colors.bgColorObj.l() + 9 : colors.bgColorObj.l() - 9 ,74 l: colors.isDark ? colors.bgColorObj.l() + 9 : colors.bgColorObj.l() - 9 75 75 } ).toCSS(); 76 76 … … 79 79 h: colors.bgColorObj.h(), 80 80 s: colors.bgColorObj.s() / 2, 81 l: ( colors.textColorObj.l() * 0.57 ) + ( colors.bgColorObj.l() * 0.43 ) ,81 l: ( colors.textColorObj.l() * 0.57 ) + ( colors.bgColorObj.l() * 0.43 ) 82 82 } ).toCSS(); 83 83 } -
trunk/src/wp-content/themes/twentytwenty/assets/js/index.js
r46271 r46277 143 143 width: '100%', 144 144 top: getAdminBarHeight( true ), 145 left: 0 ,145 left: 0 146 146 }; 147 147 } … … 206 206 modal.classList.remove( 'active' ); 207 207 } 208 } ,208 } 209 209 210 210 }; // twentytwenty.coverModals … … 238 238 } 239 239 } ); 240 } ,240 } 241 241 242 242 }; // twentytwenty.focusManagement … … 286 286 video.style.height = ( video.dataset.origheight * ratio ) + 'px'; 287 287 } ); 288 } ,288 } 289 289 290 290 }; // twentytwenty.instrinsicRatioVideos … … 379 379 } ); 380 380 } 381 } ,381 } 382 382 383 383 }; // twentytwenty.smoothScroll … … 405 405 } ); 406 406 } 407 } ,407 } 408 408 }; // twentytwenty.modalMenu 409 409 … … 566 566 } 567 567 } ); 568 } ,568 } 569 569 570 570 }; // twentytwenty.toggles
Note: See TracChangeset
for help on using the changeset viewer.