From b669bfd591efcdb29cba841545df85d0798e687f Mon Sep 17 00:00:00 2001 From: matttelliott-flosports <34247704+matttelliott-flosports@users.noreply.github.com> Date: Fri, 17 Apr 2020 10:04:55 -0500 Subject: [PATCH] feat: svg logos and icons (#29) --- README.md | 1 + scss/_sprite.scss | 462 ++++++++++++++++++------ scss/_variables.scss | 12 +- site/_data/icons.yml | 22 +- site/_data/nav.yml | 1 + site/_includes/icon-sprite.svg | 2 +- site/docs/assets/scss/_brand-logos.scss | 27 ++ site/docs/assets/scss/_variables.scss | 5 + site/docs/assets/scss/docs.scss | 3 + site/docs/components/badge.md | 8 + site/docs/components/icons.md | 189 ++++++---- site/docs/components/logos.md | 351 ++++++++++++++++++ svg/android_flo_tomahawk.svg | 6 +- svg/android_logo.svg | 5 +- svg/android_logo_stacked.svg | 5 +- svg/apple_logo.svg | 4 +- svg/apple_tv_logo.svg | 4 +- svg/back_10.svg | 5 +- svg/bell_regular.svg | 5 +- svg/bell_solid.svg | 4 +- svg/calendar_alt.svg | 4 +- svg/cc_amex.svg | 4 +- svg/cc_default.svg | 3 + svg/cc_discover.svg | 4 +- svg/cc_mastercard.svg | 4 +- svg/cc_visa.svg | 4 +- svg/check.svg | 4 +- svg/check_circle_outline.svg | 3 + svg/checklist_no.svg | 4 +- svg/checklist_yes.svg | 4 +- svg/chevron.svg | 6 +- svg/chevron_down.svg | 4 +- svg/chevron_right.svg | 3 + svg/chevron_up.svg | 3 + svg/close.svg | 4 +- svg/close_circle.svg | 6 +- svg/close_circle_outline.svg | 3 + svg/close_x_mark.svg | 15 +- svg/cog.svg | 5 +- svg/cog_hd.svg | 13 +- svg/collapse.svg | 11 +- svg/equalizer.svg | 3 + svg/expand.svg | 9 +- svg/external_link.svg | 3 + svg/filters.svg | 4 +- svg/fire_tv_logo.svg | 4 +- svg/flo_hawk.svg | 4 +- svg/flobaseball-hawk.svg | 1 + svg/flobikes-hawk.svg | 1 + svg/flobowling-hawk.svg | 1 + svg/flocheer-hawk.svg | 1 + svg/flocombat-hawk.svg | 1 + svg/flodance-hawk.svg | 1 + svg/floelite-hawk.svg | 1 + svg/flofc-hawk.svg | 1 + svg/flofootball-hawk.svg | 1 + svg/flograppling-hawk.svg | 1 + svg/flogymnastics-hawk.svg | 1 + svg/flohockey-hawk.svg | 1 + svg/flohoops-hawk.svg | 1 + svg/flolive-hawk.svg | 1 + svg/flomarching-hawk.svg | 1 + svg/floracing-hawk.svg | 1 + svg/florodeo-hawk.svg | 1 + svg/flosoftball-hawk.svg | 1 + svg/flosports-hawk.svg | 1 + svg/flosports_logo.svg | 22 +- svg/floswimming-hawk.svg | 1 + svg/flotrack-hawk.svg | 1 + svg/flovoice-hawk.svg | 1 + svg/flovolleyball-hawk.svg | 1 + svg/flowrestling-hawk.svg | 1 + svg/forward_10.svg | 5 +- svg/google_logo.svg | 7 +- svg/info_circle.svg | 3 + svg/info_circle_solid.svg | 3 + svg/ios_logo.svg | 13 +- svg/left_arrow.svg | 3 + svg/location.svg | 3 + svg/location_blocked.svg | 5 +- svg/lock.svg | 4 +- svg/menu_hamburger.svg | 3 + svg/mic.svg | 3 + svg/mic_mute.svg | 3 + svg/milesplit.svg | 4 + svg/minus.svg | 4 +- svg/minus_circle_outline.svg | 3 + svg/minus_outline.svg | 5 +- svg/outlook_logo.svg | 7 +- svg/plus.svg | 5 +- svg/plus_circle_outline.svg | 3 + svg/plus_outline.svg | 5 +- svg/right_arrow.svg | 7 +- svg/roku_logo.svg | 4 +- svg/search.svg | 4 +- svg/share.svg | 8 +- svg/streaming.svg | 4 +- svg/tv.svg | 3 + svg/user.svg | 3 + svg/varsity_logo.svg | 18 + svg/varsity_logo_pill.svg | 18 + svg/varsity_rounded_logo.svg | 4 + svg/varsity_stacked.svg | 4 + svg/varsity_stacked_color.svg | 6 + svg/varsity_white_logo.svg | 18 +- svg/vid_2up_active.svg | 15 +- svg/vid_2up_inactive.svg | 13 +- svg/vid_4up_active.svg | 13 +- svg/vid_4up_inactive.svg | 9 +- svg/vid_pause.svg | 7 +- svg/vid_pause_outline.svg | 3 + svg/vid_pip_active.svg | 10 +- svg/vid_pip_inactive.svg | 9 +- svg/vid_play.svg | 4 +- svg/vid_play_icon.svg | 4 +- svg/vid_play_icon_outline.svg | 3 + svg/vid_single_active.svg | 7 +- svg/vid_single_inactive.svg | 6 +- svg/volume_high.svg | 11 +- svg/volume_low.svg | 9 +- svg/volume_medium.svg | 10 +- svg/volume_mute.svg | 10 +- 122 files changed, 1221 insertions(+), 419 deletions(-) create mode 100644 site/docs/assets/scss/_brand-logos.scss create mode 100644 site/docs/components/logos.md create mode 100644 svg/cc_default.svg create mode 100644 svg/check_circle_outline.svg create mode 100644 svg/chevron_right.svg create mode 100644 svg/chevron_up.svg create mode 100644 svg/close_circle_outline.svg create mode 100644 svg/equalizer.svg create mode 100644 svg/external_link.svg create mode 100644 svg/flobaseball-hawk.svg create mode 100644 svg/flobikes-hawk.svg create mode 100644 svg/flobowling-hawk.svg create mode 100644 svg/flocheer-hawk.svg create mode 100644 svg/flocombat-hawk.svg create mode 100644 svg/flodance-hawk.svg create mode 100644 svg/floelite-hawk.svg create mode 100644 svg/flofc-hawk.svg create mode 100644 svg/flofootball-hawk.svg create mode 100644 svg/flograppling-hawk.svg create mode 100644 svg/flogymnastics-hawk.svg create mode 100644 svg/flohockey-hawk.svg create mode 100644 svg/flohoops-hawk.svg create mode 100644 svg/flolive-hawk.svg create mode 100644 svg/flomarching-hawk.svg create mode 100644 svg/floracing-hawk.svg create mode 100644 svg/florodeo-hawk.svg create mode 100644 svg/flosoftball-hawk.svg create mode 100644 svg/flosports-hawk.svg create mode 100644 svg/floswimming-hawk.svg create mode 100644 svg/flotrack-hawk.svg create mode 100644 svg/flovoice-hawk.svg create mode 100644 svg/flovolleyball-hawk.svg create mode 100644 svg/flowrestling-hawk.svg create mode 100644 svg/info_circle.svg create mode 100644 svg/info_circle_solid.svg create mode 100644 svg/left_arrow.svg create mode 100644 svg/location.svg create mode 100644 svg/menu_hamburger.svg create mode 100644 svg/mic.svg create mode 100644 svg/mic_mute.svg create mode 100644 svg/milesplit.svg create mode 100644 svg/minus_circle_outline.svg create mode 100644 svg/plus_circle_outline.svg create mode 100644 svg/tv.svg create mode 100644 svg/user.svg create mode 100644 svg/varsity_logo.svg create mode 100644 svg/varsity_logo_pill.svg create mode 100644 svg/varsity_rounded_logo.svg create mode 100644 svg/varsity_stacked.svg create mode 100644 svg/varsity_stacked_color.svg create mode 100644 svg/vid_pause_outline.svg create mode 100644 svg/vid_play_icon_outline.svg diff --git a/README.md b/README.md index 055cce908..03f58be2b 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ Read the [Getting started page](https://flo-scss.flo.center/docs/getting-started Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/docs/assets/js/src/search.js` file. + ## Contributing Commit messages should follow semantic versioning. diff --git a/scss/_sprite.scss b/scss/_sprite.scss index f233e0add..78055ab55 100644 --- a/scss/_sprite.scss +++ b/scss/_sprite.scss @@ -4,93 +4,113 @@ } .svg-android_logo-dims { - width: 2000px; - height: 304.58px; + width: 500px; + height: 500px; } .svg-android_logo_stacked-dims { width: 500px; - height: 436.44px; + height: 500px; } .svg-apple_logo-dims { - width: 604.16px; - height: 604.16px; + width: 500px; + height: 500px; } .svg-apple_tv_logo-dims { - width: 1050px; + width: 500px; height: 500px; } .svg-back_10-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; } .svg-bell_regular-dims { - width: 512px; - height: 585.14px; + width: 500px; + height: 500px; } .svg-bell_solid-dims { - width: 512px; - height: 585.18px; + width: 500px; + height: 500px; } .svg-calendar_alt-dims { - width: 512px; - height: 512px; + width: 500px; + height: 500px; } .svg-cc_amex-dims { - width: 27px; - height: 20px; + width: 500px; + height: 500px; +} + +.svg-cc_default-dims { + width: 500px; + height: 500px; } .svg-cc_discover-dims { - width: 26px; - height: 20px; + width: 500px; + height: 500px; } .svg-cc_mastercard-dims { - width: 26px; - height: 20px; + width: 500px; + height: 500px; } .svg-cc_visa-dims { - width: 26px; - height: 20px; + width: 500px; + height: 500px; } .svg-check-dims { - width: 512px; - height: 512px; + width: 500px; + height: 500px; +} + +.svg-check_circle_outline-dims { + width: 500px; + height: 500px; } .svg-checklist_no-dims { - width: 10px; - height: 10px; + width: 500px; + height: 500px; } .svg-checklist_yes-dims { - width: 13px; - height: 10px; + width: 500px; + height: 500px; } .svg-chevron-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; } .svg-chevron_down-dims { - width: 14px; - height: 9px; + width: 500px; + height: 500px; +} + +.svg-chevron_right-dims { + width: 500px; + height: 500px; +} + +.svg-chevron_up-dims { + width: 500px; + height: 500px; } .svg-close-dims { - width: 24px; - height: 24px; + width: 500px; + height: 500px; } .svg-close_circle-dims { @@ -98,29 +118,44 @@ height: 500px; } +.svg-close_circle_outline-dims { + width: 500px; + height: 500px; +} + .svg-close_x_mark-dims { - width: 12px; - height: 12px; + width: 500px; + height: 500px; } .svg-cog-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; } .svg-cog_hd-dims { - width: 22px; - height: 16px; + width: 500px; + height: 500px; } .svg-collapse-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; +} + +.svg-equalizer-dims { + width: 500px; + height: 500px; } .svg-expand-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; +} + +.svg-external_link-dims { + width: 500px; + height: 500px; } .svg-filters-dims { @@ -129,28 +164,158 @@ } .svg-fire_tv_logo-dims { - width: 932.39px; + width: 500px; height: 500px; } .svg-flo_hawk-dims { - width: 518.51px; + width: 500px; height: 500px; } -.svg-flosports_logo-dims { +.svg-flobaseball-hawk-dims { + width: 2000px; + height: 185.64px; +} + +.svg-flobikes-hawk-dims { + width: 2000px; + height: 257.76px; +} + +.svg-flobowling-hawk-dims { + width: 2000px; + height: 195.93px; +} + +.svg-flocheer-hawk-dims { + width: 2000px; + height: 240.86px; +} + +.svg-flocombat-hawk-dims { + width: 2000px; + height: 210.64px; +} + +.svg-flodance-hawk-dims { + width: 2000px; + height: 237.97px; +} + +.svg-floelite-hawk-dims { + width: 2000px; + height: 263.71px; +} + +.svg-flofc-hawk-dims { + width: 2000px; + height: 371.19px; +} + +.svg-flofootball-hawk-dims { + width: 2000px; + height: 183.6px; +} + +.svg-flograppling-hawk-dims { + width: 2000px; + height: 171.26px; +} + +.svg-flogymnastics-hawk-dims { + width: 2000px; + height: 156.71px; +} + +.svg-flohockey-hawk-dims { + width: 2000px; + height: 211.12px; +} + +.svg-flohoops-hawk-dims { + width: 2000px; + height: 234.67px; +} + +.svg-flolive-hawk-dims { + width: 2000px; + height: 296.29px; +} + +.svg-flomarching-hawk-dims { + width: 2000px; + height: 179.58px; +} + +.svg-floracing-hawk-dims { + width: 2000px; + height: 225.37px; +} + +.svg-florodeo-hawk-dims { + width: 2000px; + height: 237.07px; +} + +.svg-flosoftball-hawk-dims { + width: 2000px; + height: 185.1px; +} + +.svg-flosports-hawk-dims { width: 2000px; height: 226.11px; } +.svg-flosports_logo-dims { + width: 500px; + height: 500px; +} + +.svg-floswimming-hawk-dims { + width: 2000px; + height: 179.43px; +} + +.svg-flotrack-hawk-dims { + width: 2000px; + height: 238.83px; +} + +.svg-flovoice-hawk-dims { + width: 2000px; + height: 254.09px; +} + +.svg-flovolleyball-hawk-dims { + width: 2000px; + height: 159.37px; +} + +.svg-flowrestling-hawk-dims { + width: 2000px; + height: 167.52px; +} + .svg-forward_10-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; } .svg-google_logo-dims { - width: 512px; - height: 512px; + width: 500px; + height: 500px; +} + +.svg-info_circle-dims { + width: 500px; + height: 500px; +} + +.svg-info_circle_solid-dims { + width: 500px; + height: 500px; } .svg-ios_logo-dims { @@ -158,143 +323,228 @@ height: 500px; } +.svg-left_arrow-dims { + width: 500px; + height: 500px; +} + +.svg-location-dims { + width: 500px; + height: 500px; +} + .svg-location_blocked-dims { - width: 24px; - height: 24px; + width: 500px; + height: 500px; } .svg-lock-dims { - width: 10px; - height: 12px; + width: 500px; + height: 500px; +} + +.svg-menu_hamburger-dims { + width: 500px; + height: 500px; +} + +.svg-mic-dims { + width: 500px; + height: 500px; +} + +.svg-mic_mute-dims { + width: 500px; + height: 500px; +} + +.svg-milesplit-dims { + width: 753px; + height: 183.2px; } .svg-minus-dims { - width: 28px; - height: 28px; + width: 500px; + height: 500px; +} + +.svg-minus_circle_outline-dims { + width: 500px; + height: 500px; } .svg-minus_outline-dims { - width: 36px; - height: 36px; + width: 500px; + height: 500px; } .svg-outlook_logo-dims { - width: 512px; - height: 517.66px; + width: 500px; + height: 500px; } .svg-plus-dims { - width: 28px; - height: 28px; + width: 500px; + height: 500px; +} + +.svg-plus_circle_outline-dims { + width: 500px; + height: 500px; } .svg-plus_outline-dims { - width: 36px; - height: 36px; + width: 500px; + height: 500px; } .svg-right_arrow-dims { - width: 13px; - height: 9px; + width: 500px; + height: 500px; } .svg-roku_logo-dims { - width: 1625px; + width: 500px; height: 500px; } .svg-search-dims { - width: 12px; - height: 12px; + width: 500px; + height: 500px; } .svg-share-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; } .svg-streaming-dims { - width: 10px; - height: 10px; + width: 500px; + height: 500px; +} + +.svg-tv-dims { + width: 500px; + height: 500px; +} + +.svg-user-dims { + width: 500px; + height: 500px; +} + +.svg-varsity_logo-dims { + width: 500px; + height: 500px; +} + +.svg-varsity_logo_pill-dims { + width: 500px; + height: 500px; +} + +.svg-varsity_rounded_logo-dims { + width: 500px; + height: 500px; +} + +.svg-varsity_stacked-dims { + width: 500px; + height: 500px; +} + +.svg-varsity_stacked_color-dims { + width: 500px; + height: 500px; } .svg-varsity_white_logo-dims { - width: 123px; - height: 28px; + width: 500px; + height: 500px; } .svg-vid_2up_active-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_2up_inactive-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_4up_active-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_4up_inactive-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_pause-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; +} + +.svg-vid_pause_outline-dims { + width: 500px; + height: 500px; } .svg-vid_pip_active-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_pip_inactive-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_play-dims { - width: 16px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_play_icon-dims { - width: 50px; - height: 50px; + width: 500px; + height: 500px; +} + +.svg-vid_play_icon_outline-dims { + width: 500px; + height: 500px; } .svg-vid_single_active-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-vid_single_inactive-dims { - width: 24px; - height: 16px; + width: 500px; + height: 500px; } .svg-volume_high-dims { - width: 17px; - height: 17px; + width: 500px; + height: 500px; } .svg-volume_low-dims { - width: 17px; - height: 17px; + width: 500px; + height: 500px; } .svg-volume_medium-dims { - width: 17px; - height: 17px; + width: 500px; + height: 500px; } .svg-volume_mute-dims { - width: 17px; - height: 17px; + width: 500px; + height: 500px; } diff --git a/scss/_variables.scss b/scss/_variables.scss index e9e84597a..592f539b5 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -70,6 +70,12 @@ $utility-success: #00b338; $utility-warning: #ff621c; $utility-danger: #b31f1d; +// Flo Co-brand colors TODO: Keep if colors are documented +// $varsity-blue: #247BB8; +// $milesplit-blue: #000062; +// $milesplit-red: #C80000; + + $colors: () !default; // stylelint-disable-next-line scss/dollar-variable-default $colors: map-merge( @@ -138,7 +144,7 @@ $brand-colors: map-merge( "visa": $visa, "fire-tv": $fire-tv, "outlook": $outlook, - "roku": $roku + "roku": $roku, ), $brand-colors ); @@ -684,8 +690,8 @@ $input-btn-border-width: $border-width !default; // // For each of Bootstrap's buttons, define text, background, and border color. -$btn-font-size: from-pixels(14) !default; -$btn-padding-y: from-pixels(10) !default; +$btn-font-size: from-pixels(14) !default; +$btn-padding-y: from-pixels(10) !default; $btn-padding-x: from-pixels(24) !default; $btn-font-family: $input-btn-font-family !default; $btn-line-height: 20 / 14 !default; diff --git a/site/_data/icons.yml b/site/_data/icons.yml index 0268d57c6..9d0f442a7 100644 --- a/site/_data/icons.yml +++ b/site/_data/icons.yml @@ -9,20 +9,27 @@ - name: calendar_alt - name: cc_amex - name: cc_discover +- name: cc_default - name: cc_mastercard - name: cc_visa - name: check - name: checklist_no - name: checklist_yes +- name: check_circle_outline - name: chevron - name: chevron_down +- name: chevron_right +- name: chevron_up - name: close - name: close_circle +- name: close_circle_outline - name: close_x_mark - name: cog - name: cog_hd - name: collapse - name: expand +- name: external_link +- name: equalizer - name: filters - name: fire_tv_logo - name: flo_hawk @@ -30,29 +37,42 @@ - name: forward_10 - name: google_logo - name: ios_logo +- name: info_circle +- name: info_circle_solid +- name: left_arrow +- name: location - name: location_blocked - name: lock +- name: menu_hamburger +- name: mic +- name: mic_mute - name: minus - name: minus_outline +- name: minus_circle_outline - name: outlook_logo - name: plus +- name: plus_circle_outline - name: plus_outline - name: right_arrow - name: roku_logo - name: search - name: share - name: streaming -- name: varsity_white_logo +- name: tv +- name: user - name: vid_2up_active - name: vid_2up_inactive - name: vid_4up_active - name: vid_4up_inactive - name: vid_pause +- name: vid_pause_outline - name: vid_pip_active - name: vid_pip_inactive - name: vid_play - name: vid_play_icon +- name: vid_play_icon_outline - name: vid_single_active +- name: vid_single_inactive - name: volume_high - name: volume_low - name: volume_medium diff --git a/site/_data/nav.yml b/site/_data/nav.yml index 6e15796a4..f355eb268 100644 --- a/site/_data/nav.yml +++ b/site/_data/nav.yml @@ -42,6 +42,7 @@ - title: Input group - title: Jumbotron - title: List group + - title: Logos - title: Media object - title: Modal - title: Navs diff --git a/site/_includes/icon-sprite.svg b/site/_includes/icon-sprite.svg index 0f73cb1c3..0d1d5f139 100644 --- a/site/_includes/icon-sprite.svg +++ b/site/_includes/icon-sprite.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/site/docs/assets/scss/_brand-logos.scss b/site/docs/assets/scss/_brand-logos.scss new file mode 100644 index 000000000..12935b813 --- /dev/null +++ b/site/docs/assets/scss/_brand-logos.scss @@ -0,0 +1,27 @@ +// color Hawk in FloSports logo +.cbflo-svg-logo-graphic{ + color: #ff140f; +} + +//Co brand Colors - MileSplit +.logo-text-mile{ + fill: #000062; + } +.logo-text-split{ + fill:#C80000; +} + +// TODO: Remove before merge if not needed -- Classes for all brands hawk graphic with extra characters bj, bk, ... added to sub classes in svg by processing sprite sheet + +// .bjflo-svg-logo-graphic, .bkflo-svg-logo-graphic, .blflo-svg-logo-graphic, +// .bmflo-svg-logo-graphic, .bnflo-svg-logo-graphic, .boflo-svg-logo-graphic, +// .bpflo-svg-logo-graphic, .bqflo-svg-logo-graphic, .brflo-svg-logo-graphic, +// .bsflo-svg-logo-graphic, .btflo-svg-logo-graphic, .bqflo-svg-logo-graphic, +// .brflo-svg-logo-graphic, .bsflo-svg-logo-graphic, .btflo-svg-logo-graphic, +// .buflo-svg-logo-graphic, .bvflo-svg-logo-graphic, .bwflo-svg-logo-graphic, +// .bxflo-svg-logo-graphic, .byflo-svg-logo-graphic, .bzflo-svg-logo-graphic, +// .caflo-svg-logo-graphic, .cbflo-svg-logo-graphic, .ccflo-svg-logo-graphic, +// .cdflo-svg-logo-graphic, .ceflo-svg-logo-graphic, .cfflo-svg-logo-graphic, +// .cgflo-svg-logo-graphic, .chflo-svg-logo-graphic { color: #ff140f; } + + diff --git a/site/docs/assets/scss/_variables.scss b/site/docs/assets/scss/_variables.scss index 02a8f8f73..9a805e054 100644 --- a/site/docs/assets/scss/_variables.scss +++ b/site/docs/assets/scss/_variables.scss @@ -12,3 +12,8 @@ $bd-danger: #d9534f; // The weird if test is made as a workaround to prevent a false fusv error. // $enable-responsive-font-sizes: if($enable-responsive-font-sizes, true, true); + +// For icon display +$icon-size: 1.42em !default; +$icon-size-lg: 2em !default; +$icon-size-sm: 1.06em !default; diff --git a/site/docs/assets/scss/docs.scss b/site/docs/assets/scss/docs.scss index 7804fdb7d..a2591ac0d 100644 --- a/site/docs/assets/scss/docs.scss +++ b/site/docs/assets/scss/docs.scss @@ -43,8 +43,11 @@ @import "clipboard-js"; @import "placeholder-img"; @import "navbar"; +@import "brand-logos"; + // Load docs dependencies @import "syntax"; @import "anchor"; @import "algolia"; + diff --git a/site/docs/components/badge.md b/site/docs/components/badge.md index a74b5a622..a7ad1c397 100644 --- a/site/docs/components/badge.md +++ b/site/docs/components/badge.md @@ -7,6 +7,14 @@ toc: true --- # NOT Updated for FLO-SCSS yet +TODO: - These badges are currently used in web-app and are svgs. + +- badge_live.svg +- badge_not_live.svg +- badge_pro_dark.svg +- badge_pro_light.svg +- badge_replay.svg + ## Example Badges scale to match the size of the immediate parent element by using relative font sizing and `em` units. diff --git a/site/docs/components/icons.md b/site/docs/components/icons.md index fe85e60da..9c29b8212 100644 --- a/site/docs/components/icons.md +++ b/site/docs/components/icons.md @@ -1,111 +1,164 @@ --- layout: docs -title: Icons (FloSports) (WIP) -description: Use SVG Icons in HTML +title: Icons +description: SVG Icons in HTML group: components toc: true --- -# NOT Updated for FLO-SCSS yet -## Icons +We use svgs in the design system and not a font library to display icons. Look here for details on [Brand Logos]({{ site.baseurl }}/docs/components/logos) or [Badges]({{ site.baseurl }}/docs/components/badge). + +## SVGs + +Each icon in the Flo-SCSS system is a formatted svg with a `viewBox="0 0 500 500"`, a path fill="currentColor" and a descriptive class name. + +The SVG is created on a 500px x 500px art board. SVG's created in a design program such as Adobe Illustrator or Sketch. Clean up an svg with this online tool https://jakearchibald.github.io/svgomg/. Make sure no extra `g` `tags`, `masks`, or `nested paths` are present. + +Format Guidelines +* `fill=currentColor` is set +* `viewBox="0 0 500 500"` is present +* no inline width, height, or colors +* use of classes to reference the SVG +* the svg is flat with only a path tag. No `g` `tags`, `masks`, or `nested paths` + +``` + + + +``` + +#### Flo-SCSS Sprite Sheet -### Size +FLO-SCSS svg icons are displayed in a grid list generated using `svg-sprite`, is a module that takes a bunch of SVG files, optimizes them and puts them all into one svg sprite which is located here,` _includes/icon-sprite.svg`, in this app. with their names referenced in `site/_data/icons.yml.` The "All icons" section of icons.md loops through these names to presents the full svg list. +To add or remove an svg, update the name in the `icons.yml` and run `npm run process-svg` + +TODO: explain the difference between fill="currentColor" and the use of classes in the svg. + +## Manipulating SVG's + +### Sizing +Icons inherit width and height from the parent container, so the parent container can set its dimensions. + +#### Modify Class Apply `.icon`, `.icon-sm`, and `.icon-lg` to size icons {% capture example %} -
+
- + - + - +
{% endcapture %} {% include example.html content=example %} - ### Color -add `.text-$color` classes to apply colors to icons and select logos +Setting `fill=currentColor` in the SVG allows the SVG's colors to be controlled by CSS and added classes. Below you can see the SVG's color changing by adding `.color-class` to the svg or parent tag. {% capture example %} - - - - - - - - - +
+ + + + + + + + + +
{% endcapture %} {% include example.html content=example %} -#### Brand Colors - -The following brand-specific color classes are provided +### Brand colors +The following brand-specific color classes are provided: -{% capture example %} - - - - - - - - - - - - - - - - - - - - - - - - -{% endcapture %} -{% include example.html content=example %} +
+
+ + + +

class="color-amex"

+
+
+ + + +

class="color-android"

+
+
+ + + +

class="color-apple"

+
+
+ + + +

class="color-discover"

+
+
+
+
+ + + +

class="color-visa"

+
+
+ + + +

class="color-fire-tv"

+
+
+ + + +

class="color-outlook"

+
+
+ + + +

class="color-roku"

+
+
### Transform Transform icons with [transform utilities](/docs/utilities/transform) {% capture example %} - - - +
+ + + + + + + + + +
{% endcapture %} {% include example.html content=example %} -## All Icons +## Icons +A complete list of all the SVG icons in the system. -{% capture example %}
{% for icon in site.data.icons %} -
- - - -

{{ icon.name }}

-
-{% endfor %} -
-
-{% for icon in site.data.icons %} -
- +
+

{{ icon.name }}

@@ -113,5 +166,3 @@ Transform icons with [transform utilities](/docs/utilities/transform) {% endfor %}
-{% endcapture %} -{% include example.html content=example %} diff --git a/site/docs/components/logos.md b/site/docs/components/logos.md new file mode 100644 index 000000000..866f981c9 --- /dev/null +++ b/site/docs/components/logos.md @@ -0,0 +1,351 @@ +--- +layout: docs +title: Logos +description: FloSports Brands and Co-Brands +group: components +toc: true +--- + +## Add Logo +Logos are stored on AWS library, and accessed with the API. + +## Modifiers +### Sizing +Logos inherit width and height from the parent container, so the parent container can set the SVG's dimensions. + +{% capture example %} +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +{% endcapture %} +{% include example.html content=example %} + + +### Color +Logos can have one color or variant colors. Descriptive classes can change the icon(hawk) or the brand name colors. Setting `fill=currentColor` in the SVG allows the SVG's colors to be controlled by CSS and added classes. + +#### One Color +Below you can see the SVG's color changing by adding `.color-class` to the svg or parent tag. + +{% capture example %} +
+ + + + + + + + + +
+{% endcapture %} +{% include example.html content=example %} + + +#### Multiple Colors +Targeted class are available to color the hawk or text independent of each other. In the FloSports logo below `class="flo-svg-logo-graphic"` is targeted to color the hawk red independently of the logo title. + +- `class="flo-svg-logo-title"` will change the color of the text +- `class="flo-svg-logo-graphic"` will change the color of the icon(hawk) + +## FloSports +Corporate Logo + +
+
+ + + +

flosports-hawk

+
+
+ + + +

flosports-hawk

+
+
+ +## Brands +FloSports network of brands (verticals). + +
+ +
+ + + +

flobaseball-hawk

+
+ +
+ + + +

flobikes-hawk

+
+ +
+ + + +

flobowling-hawk

+
+ +
+ + + +

flocheer-hawk

+
+ +
+ + + +

flocombat-hawk

+
+ +
+ + + +

flodance-hawk

+
+ +
+ + + +

floelite-hawk

+
+ +
+ + + +

flofc-hawk

+
+ +
+ + + +

flofootball-hawk

+
+ +
+ + + +

flograppling-hawk

+
+ +
+ + + +

flogymnastics-hawk

+
+ +
+ + + +

flohockey-hawk

+
+ +
+ + + +

flohoops-hawk

+
+ +
+ + + +

flolive-hawk

+
+ +
+ + + +

flomarching-hawk

+
+ +
+ + + +

floracing-hawk

+
+ +
+ + + +

florodeo-hawk

+
+ +
+ + + +

flosoftball-hawk

+
+ +
+ + + +

floswimming-hawk

+
+ +
+ + + +

flotrack-hawk

+
+ +
+ + + +

flovoice-hawk

+
+ +
+ + + +

flovolleyball-hawk

+
+ +
+ + + +

flowrestling-hawk

+
+
+ + +#### Live player +A one color white logo is used on the Live player. + +
+
+ + + +

flo_hawk

+
+
+ + +## Co-brands +Other brands part of FloSports network + + +### Varsity +Varsity has one color and multiple color svg options. + +**One color SVGs** +* `varsity_stacked.svg` +* `varsity_white_logo.svg` + +**Multiple Color SVGs** +These have additional class to control color independently. +- `varsity_stacked_color.svg` + - change the V color with `class="varsity_stacked_v"` + - change teh pill color with `class="varsity_stacked_pill"` + - change the text color with `class="varsity_stacked_pill_text"` +- `varsity_logo` + - change the V color with `class="varsity_logo_v"` + - change the text color with `class="varsity_logo_text"` +- `varsity_logo_pill` + - change the V color with `class="varsity_logo_pill_v` + - change the text with `class="varsity_logo_pill_text"` + - change the pill with `class="varsity_logo_pill"` + + +
+
+ + + +

varsity_stacked

+
+
+ + + +

varsity_white_logo

+
+
+ + + +

varsity_stacked_color

+
+
+ + + +

varsity_logo

+
+
+ + + +

varsity_logo_pill

+
+
+ +#### Live player +A one color white logo is used on the Live player. + +
+
+ + + +

varsity_white_logo

+
+
+ + +### MileSplit +Co-brand logo used on Stripe and funnel. +
+
+ + + +

milesplit

+
+
+ +### Dirt on Dirt + +Co-brand not part of design system. [DirtOnDirt.com](https://www.dirtondirt.com/ "Dirt on Dirt") diff --git a/svg/android_flo_tomahawk.svg b/svg/android_flo_tomahawk.svg index 45e7d221e..82381bffb 100644 --- a/svg/android_flo_tomahawk.svg +++ b/svg/android_flo_tomahawk.svg @@ -1 +1,5 @@ - + + + + + diff --git a/svg/android_logo.svg b/svg/android_logo.svg index d7dbd8445..d353a1dcb 100644 --- a/svg/android_logo.svg +++ b/svg/android_logo.svg @@ -1,4 +1,3 @@ - - - + + diff --git a/svg/android_logo_stacked.svg b/svg/android_logo_stacked.svg index 10b54d669..1fc16d68f 100644 --- a/svg/android_logo_stacked.svg +++ b/svg/android_logo_stacked.svg @@ -1,4 +1,3 @@ - - - + + diff --git a/svg/apple_logo.svg b/svg/apple_logo.svg index 26c9b2af3..6d1212884 100644 --- a/svg/apple_logo.svg +++ b/svg/apple_logo.svg @@ -1,3 +1,3 @@ - - + + diff --git a/svg/apple_tv_logo.svg b/svg/apple_tv_logo.svg index 49f6748c4..6671dc902 100644 --- a/svg/apple_tv_logo.svg +++ b/svg/apple_tv_logo.svg @@ -1 +1,3 @@ - + + + diff --git a/svg/back_10.svg b/svg/back_10.svg index 1a654c2cd..8e2eacf13 100644 --- a/svg/back_10.svg +++ b/svg/back_10.svg @@ -1,4 +1,3 @@ - - - + + diff --git a/svg/bell_regular.svg b/svg/bell_regular.svg index 13293ce25..4132933b3 100644 --- a/svg/bell_regular.svg +++ b/svg/bell_regular.svg @@ -1 +1,4 @@ - + + + + diff --git a/svg/bell_solid.svg b/svg/bell_solid.svg index 636290c2e..4775960d7 100644 --- a/svg/bell_solid.svg +++ b/svg/bell_solid.svg @@ -1,3 +1,3 @@ -