You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/javascript/styles
Shin Kojima e7c0d87d98 Fix embedded SVG fill attribute (#4086)
* Fix embedded SVG fill attribute

SCSS darken/lighten functions may not return a color value, but a color
name like "white".  See following example:

https://www.sassmeister.com/gist/c41da93b87d536890ddf30a1f42e7816

This patch will normalize $color argument to FFFFFF style.

I also changed the function name from "url-friendly-colour" to
"hex-color", Because...

1. The name "url-friendly" is not meaningful enough to describe what it
   does.

2. It is familier to me using "color" rather than "colour"

    kojima:kojiMac mastodon[master]$ git grep -l colour
    app/javascript/styles/boost.scss
    spec/fixtures/files/attachment.jpg

    kojima:kojiMac mastodon[master]$ git grep -l color
    .rspec
    .scss-lint.yml
    Gemfile.lock
    app/javascript/mastodon/features/status/components/action_bar.js
    app/javascript/styles/about.scss
    app/javascript/styles/accounts.scss
    app/javascript/styles/admin.scss
    app/javascript/styles/basics.scss
    app/javascript/styles/boost.scss
    app/javascript/styles/compact_header.scss
    app/javascript/styles/components.scss
    app/javascript/styles/containers.scss
    app/javascript/styles/footer.scss
    app/javascript/styles/forms.scss
    app/javascript/styles/landing_strip.scss
    app/javascript/styles/reset.scss
    app/javascript/styles/stream_entries.scss
    app/javascript/styles/tables.scss
    app/javascript/styles/variables.scss
    app/views/admin/subscriptions/_subscription.html.haml
    app/views/layouts/application.html.haml
    app/views/layouts/error.html.haml
    app/views/manifests/show.json.rabl
    bin/webpack-dev-server
    config/initializers/httplog.rb
    public/500.html
    public/emoji/1f1e6-1f1e8.svg
    public/emoji/1f1ec-1f1f8.svg
    public/emoji/1f1f3-1f1ee.svg
    public/emoji/1f1fb-1f1ec.svg
    spec/fixtures/requests/idn.txt
    yarn.lock

* Add semicolon
8 years ago
..
fonts Fix local fonts and change font-face values (#2877) 8 years ago
_mixins.scss Show boosted user's avatar (#2518) 8 years ago
about.scss Improve scss color variables (#2912) 8 years ago
accounts.scss Add missing background center on public profile headers (#3340) 8 years ago
admin.scss Fix #3910 - Require OTP authentication to disable 2FA (#3935) 8 years ago
application.scss Show boosted user's avatar (#2518) 8 years ago
basics.scss Replace onboarding elephant with friendlier graphic, shorter animation (#3337) 8 years ago
boost.scss Fix embedded SVG fill attribute (#4086) 8 years ago
compact_header.scss Improve scss color variables (#2912) 8 years ago
components.scss Fix height issue in report modal 8 years ago
containers.scss Fix style regressions (#3062) 8 years ago
footer.scss Improve scss color variables (#2912) 8 years ago
forms.scss Fix #3910 - Require OTP authentication to disable 2FA (#3935) 8 years ago
landing_strip.scss Improve scss color variables (#2912) 8 years ago
lists.scss Fix #3910 - Require OTP authentication to disable 2FA (#3935) 8 years ago
reset.scss Improve scss color variables (#2912) 8 years ago
rtl.scss Fix #3658 - Update RTL styles (#3669) 8 years ago
stream_entries.scss Improve scss color variables (#2912) 8 years ago
tables.scss Add overview of active sessions (#3929) 8 years ago
variables.scss Allow SCSS variables to be overridden (#2987) 8 years ago