Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to use CSS to make your App look amazing an...

How to use CSS to make your App look amazing and be accessible on any device

Oracle code one 2019

Andres Galante

September 16, 2019
Tweet

More Decks by Andres Galante

Other Decks in Technology

Transcript

  1. MEDIA QUERIES How to use CSS to make your App

    look amazing and be accessible on any device @andresgalante
  2. -Eric Meyer “The Web is the most hostile environment to

    developer assumptions imaginable.” Devices
  3. “Assumptions are beguiling. If only we could agree on certain

    boundaries, then wouldn’t web design be so much easier to control?” Jeremy Keith, Resilient Web Design
  4. Responsive Design is adapting our design to an unknown browser

    without assuming where it’ll be accessed. Thanks Eric Bailey for this slide!
  5. Inclusive design is adapting our design to an unknown user

    without assuming who will use it. Thanks Eric Bailey for this slide too.
  6. Screen Dimensions Media Features
 Display Quality Media Features
 Color Media

    Features
 Interaction Media Features Scripting Media Features 1 2 3 4 5
  7. width height aspect-ratio orientation resolution scan grid update overflow-block overflow-inline

    color color-index monochrome color-gamut hover any-hover pointer any-pointer Media Queries Level 4 Media Features
  8. width height aspect-ratio orientation resolution scan grid update overflow-block overflow-inline

    color color-index monochrome color-gamut hover any-hover pointer any-pointer Media Queries Level 4 Media Features
  9. width height aspect-ratio orientation resolution scan grid update overflow-block overflow-inline

    color color-index monochrome color-gamut hover any-hover pointer any-pointer Media Queries Level 4 Media Features
  10. Orientation landscape portrait The orientation media feature is portrait when

    the value of the height media feature is greater than or equal to the value of the width media feature. Otherwise orientation is landscape
  11. Hover none hover Indicates that the primary pointing device can’t

    hover, or that there is no pointing device. Pointing devices that can hover, but for which doing so is inconvenient and not part of the normal way they are used, also match this value. Indicates that the primary pointing device can easily hover over parts of the page.
  12. Pointer none coarse fine The primary input mechanism of the

    device does not include a pointing device. The primary input mechanism of the device includes a pointing device of limited accuracy. The primary input mechanism of the device includes an accurate pointing device
  13. Reduce motion no-preference reduce Indicates that the user has made

    no preference known to the system. This keyword value evaluates as false in the boolean context. Indicates that user has notified the system that they prefer an interface that minimizes the amount of movement or animation, preferably to the point where all non-essential movement is removed.
  14. High contrast Indicates that the subsequent styling rules will be

    applied when the system is placed in high contrast mode with any color variation. Indicates that the subsequent styling rules will be applied when the system is placed in high contrast mode with a black-on-white color variation. Indicates that the subsequent styling rules will be applied when the system is placed in high contrast mode with a white-on-black color variation. active black-on-white white-on-black
  15. Light level dim normal washed The device is used in

    a dim environment, where excessive contrast and brightness would be distracting or uncomfortable to the reader. For example: night time, or a dimly illuminated indoor environment. The device is used in a environment with a light level in the ideal range for the screen, and which does not necessitate any particular adjustment. The device is used in an exceptionally bright environment, causing the screen to be washed out and difficult to read. For example: bright daylight.
  16. .componente This is a an example of a title Here

    goes some body text that the component might have 360px
  17. .componente 300px 600px This is a an example of a

    title Here goes some body text that the component might have 900px
  18. 300px 600px This is a an exampl e of a

    title Here goes some body text that the 900px This is a an exampl e of a title Here goes some body text that the .componente .componente
  19. 300px 600px 900px .componente This is a an example of

    a title Here goes some body text that the .componente This is a an example of a title Here goes some body text that the component might have
  20. 300px 600px 900px .componente This is a an example of

    a title Here goes some body text that the .componente This is a an example of a title Here goes some body text that the
  21. Tips 1- Avoid using width 2- Try using grid or

    flex 3- Use container queries (EQCSS)
  22. No.

  23. “The more complex our interfaces are, the more we have

    to think to maintain them properly” Brad Frost
  24. CSS is like a bear cub. Cute and inoffensive, but

    when he grows he’ll eat you alive.
  25. Universal design is the design of products to be usable

    by all people, to the greatest extent possible, without the need for adaptation or specialized design. https://abookapart.com/products/accessibility-for-everyone
  26. width height aspect-ratio orientation resolution scan grid update overflow-block overflow-inline

    color color-index monochrome color-gamut hover any-hover pointer any-pointer Media Queries Level 4 Media Features