Commit Graph

59 Commits

Author SHA1 Message Date
Penar Musaraj
03deda2147
Upgrade to FontAwesome 5 (take two) (#6673)
* Add missing icons to set

* Revert FA5 revert

 This reverts commit 42572ff

* use new SVG syntax in locales

* Noscript page changes (remove login button, center "powered by" footer text)

* Cast wider net for SVG icons in settings

- include any _icon setting for SVG registry (offers better support for plugin settings)

- let themes store multiple pipe-delimited icons in a setting

- also replaces broken onebox image icon with SVG reference in cooked post processor

* interpolate icons in locales

* Fix composer whisper icon alignment

* Add support for stacked icons

* SECURITY: enforce hostname to match discourse hostname

This ensures that the hostname rails uses for various helpers always matches
the Discourse hostname

* load SVG sprite with pre-initializers

* FIX: enable caching on SVG sprites

* PERF: use JSONP for SVG sprites so they are served from CDN

This avoids needing to deal with CORS for loading of the SVG

Note, added the svg- prefix to the filename so we can quickly tell in
dev tools what the file is

* Add missing SVG sprite JSONP script to CSP

* Upgrade to FA 5.5.0

* Add support for all FA4.7 icons

- adds complete frontend and backend for renamed FA4.7 icons

- improves performance of SvgSprite.bundle and SvgSprite.all_icons

* Fix group avatar flair preview

- adds an endpoint at /svg-sprites/search/:keyword

- adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset

* Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
Sam
42572ff138 Revert font awesome 5 changes
We are still pushing ahead on this 100% just need a bit longer to prepare
all plugins
2018-11-08 16:12:18 +11:00
Penar Musaraj
005e1ecb9b
FEATURE: Update Font Awesome to v5.4.1 and SVGs (#6557)
* First take on subsetting svg icons

* FontAwesome 5 svg subset WIP

* Include icons from plugins/badges into svg sprite subset

* add svg icon support to themes

* Add spec for SvgSprite

* Misc. SVG icon fixes

* Use FA5 svgs in local-dates plugin

* CSS adjustments, fix SVG icons in group flair

* Use SVG icons in poll plugin

* Add SVG icons to /wizard
2018-11-07 13:05:43 -05:00
Joe
fb0b54f7f8
UX: Styles for user-cards should the same with badges on / off 2018-08-27 11:16:48 +08:00
Kris
84d822959a Reducing some specificity, color fix 2018-08-03 17:44:22 -04:00
Joffrey JAFFEUX
174d392e5a
DEV: adds prettier (#5956)
Run `prettier --write "app/assets/stylesheets/**/*.scss" "plugins/**/*.scss"` after making sure you installed it with `yarn`

It's recommended to configure your editor to run prettier on file save.
2018-06-08 11:49:31 +02:00
Kris
903163a65c Updating group usercard layout 2018-05-08 15:38:55 -04:00
Jeff Wong
9738025bb2 Feature: display description for group cards 2018-05-07 10:45:21 -07:00
Neil Lalonde
bd77795d7a REFACTOR: move support for user card badge images to a plugin discourse-user-card-badges 2018-04-26 13:25:24 -04:00
Jeff Wong
e7e64998a3 FIX: calculate z-index for fixed usercard on preview 2018-04-20 15:47:45 -07:00
Jeff Wong
252dd32895 show card on preview panel.
refactor user and group cards

refactor userLoading to loading

add logic to display cards above mentions for fixed placements
2018-04-20 12:28:24 -07:00
Régis Hanol
b489edac1d UX: display staged status on user summary page 2018-04-20 17:42:06 +02:00
Jeff Wong
059f1d8df4 minor tweaks for css group card image 2018-04-17 09:27:48 -07:00
Jeff Wong
75e5f686fb FEATURE: group cards popup on mention clicks 2018-04-16 16:26:51 -07:00
Kris
677e126fbf UX: Implementing a box-shadow system, cleaning up existing shadows 2018-02-20 12:18:20 -05:00
Kris
d30c43e8cc usercard overflow fix 2018-02-10 21:27:25 -05:00
Kris
3d22ba35bc usercard website fix 2018-02-09 21:45:38 -05:00
Kris
56352137ca UX: Preventing usercard and profile URLs from overflowing 2018-02-09 16:55:43 -05:00
Kris
0c01e0b2fe
UX: Implementing a z-index system (#5507) 2018-01-16 19:05:12 -05:00
Kris
674013129a
UX: Type system rebuild (#5492) 2018-01-12 17:27:38 -05:00
Kris
4bf558f941 UX: Reducing number of overall font sizes 2017-12-20 15:57:49 -05:00
Neil Lalonde
3f58b18dab FEATURE: user card shows staff if a user is staged and lets them check the email address 2017-11-23 16:38:11 -05:00
Robin Ward
a6251f717b Convert user card buttons to {{d-button}} components 2017-08-24 12:23:08 -04:00
Robin Ward
5dd56a41d9 Merge branch 'master' into master 2017-07-24 12:01:48 -04:00
awesomerobot
c29b7aa65d initial pass at color simplification 2017-07-14 21:43:35 -04:00
Neil Lalonde
24db001bfa FIX: user card contents can go up out of the bounds of the card when user has a title and full name 2017-07-12 16:16:59 -04:00
Jeff Atwood
e6c6a9e2d3 minor user card spacing tweak 2017-02-16 01:49:29 -08:00
Neil Lalonde
e3e15182df FEATURE: avatar flair on user cards 2016-09-15 16:15:18 -04:00
awesomerobot
38d2131bd8 fixing usercard/profile mentions and staff counter bottom spacing 2016-07-04 11:36:59 -04:00
awesomerobot
3a8d366011 usercard background matches theme background (default = white) 2016-06-12 19:55:44 -04:00
David McClure
08298036e3 FIX: layout for location and website on user card when bio not displayed. 2016-04-18 20:59:54 -07:00
David McClure
2d8c8e26ea Use consistent link color for website name 2016-04-12 23:13:51 -07:00
Neil Lalonde
1b510447db FIX: chrome 47 started showing square outline around avatar on user cards 2015-12-03 10:34:11 -05:00
Jeff Atwood
7338f74f14 CSS order of operations incorrect 2015-10-15 17:10:02 -07:00
Kane York
72d32160b3 FIX: Mentions unreadable on user cards 2015-09-04 14:19:11 -07:00
Sam
a7d1c220e1 FIX: normalize transform usage, fix slideout on safari 2015-08-26 09:58:37 +10:00
Kane York
3baabd14f8 Use variables for user card colors 2015-08-18 13:28:02 -07:00
Kane York
6a0eba3ba2 Oops, that should fix it.. 2015-08-18 13:23:50 -07:00
Kane York
3edf0e662f FIX: Make user card colors absolute (xcpt shadow) 2015-08-18 12:04:35 -07:00
NomNuggetNom
5932f2d39c Fix circular avatars getting squished 2015-04-02 21:28:13 -04:00
Régis Hanol
809edd4da3 FIX: user-card tests 2015-03-04 13:02:36 +01:00
Régis Hanol
33df000bb7 more subtle scale up animation for user card 2015-03-03 00:02:16 +01:00
Régis Hanol
833d4f5247 FIX: subtle fade in + scale up animation on user cards for Safari 2015-03-02 21:23:33 +01:00
Régis Hanol
64d0d12632 FEATURE: subtle in & out animations for user cards 2015-03-02 18:12:25 +01:00
Kris Aubuchon
3eebc0e589 changing font sizes to ems, so fonts scale a bit more gracefully 2014-12-15 22:12:56 -05:00
Kris Aubuchon
5c84c74a69 some cleanup for new usercards on dark themes 2014-11-06 11:33:30 -05:00
Jeff Atwood
9ae7c3c595 address odd user card issue with buttons 2014-11-06 03:29:24 -08:00
Robin Ward
6a424cf469 UX: Make the user card badge image larger. If present, make text have a
smaller width to accomodate the larger image.
2014-11-04 16:30:46 -05:00
Robin Ward
74e2b8f674 FIX: User card @mentions looked pretty bad 2014-11-04 14:25:35 -05:00
Robin Ward
e96630c6f4 FIX: Malformed user card HTML 2014-11-04 13:13:45 -05:00