MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,133: Line 1,133:
     // one entry (#F6C500, a saturated gold) wasn't actually light at
     // one entry (#F6C500, a saturated gold) wasn't actually light at
     // all, which is very likely what read as "really dark" in practice.
     // all, which is very likely what read as "really dark" in practice.
     // Replaced with 10 colors chosen deliberately in the site's own
     // Replaced with 10 colors in the site's own warm palette (matching
     // warm palette (matching the maroon/cream tones already used
     // the maroon/cream tones already used throughout Common.css -
    // throughout Common.css - #b5451b, #fdf0eb, #fcf5f3, #f0cfc4),
    // #b5451b, #fdf0eb, #f0cfc4), all kept in the ~94-97% lightness
    // all kept in the ~94-97% lightness range so they stay easy to
    // range so they stay easy to read against dark text regardless of
    // read against dark text regardless of which one a given teeka
    // which one a given teeka lands on. First entry is #fcf5f3 - the
     // lands on.
     // exact background .teeka-block itself already uses on a native
    // teeka page (verified at 97.1% lightness), per direction, so the
    // most common single-commentary case matches the site's own
    // existing look exactly rather than introducing a new shade for it.
     var TEEKA_COLOR_PALETTE = [
     var TEEKA_COLOR_PALETTE = [
         '#FBF3EE', '#F5EFE6', '#F0F5EC', '#EEF3F6', '#F6EFF3',
         '#fcf5f3', '#F5EFE6', '#F0F5EC', '#EEF3F6', '#F6EFF3',
         '#F3F0F8', '#F8F3EA', '#EEF6F2', '#F6EEEE', '#F2F0EC'
         '#F3F0F8', '#F8F3EA', '#EEF6F2', '#F6EEEE', '#F2F0EC'
     ];
     ];