Skip to content

jkenyon/main-web-redesign_draft

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

main-web-redesign_draft

https://www.lib.uidaho.edu

Assets Notes

Bootstrap 4.1

Bootstrap components docs

Fontawesome 5.0.13 free

fontawesome cheatsheet

add icons in span, <span class="fas fa-stroopwafel"></span>.

All free icons are currently loaded. "regular" & "free" icons.

Could be loaded via two methods:

  1. CSS + webfonts: traditional method, load webfonts. good with lots of icons on the page, simple, low CPU use.
  2. JS + SVG: newer method, insert SVG icons using JS. good with fewer icons, higher CPU use.

Both methods are add the project, but it is using currently using CSS, check comments in _includes/head.html.

Accessibility info:

  • JS + SVG version adds accessibility aria labels automatically. If the icon has semantic meaning, add a title= attribute to the fa <span>.
  • CSS + webfonts version, need to add aria labels manually.
    • decorative icons: add aria-hidden to element, e.g. <span class="fas fa-camera-retro" aria-hidden></span>
    • semantic icons: add aria-hidden and a title to element, plus add description with class="sr-only".

Releases

No releases published

Packages

No packages published

Languages

  • HTML 88.1%
  • CSS 10.0%
  • JavaScript 1.6%
  • Ruby 0.3%