Skip to content

kyunwang/css-to-the-rescue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repo is for a course from the Minor: Everything Web called CSS To The Rescue. The main goal of this course is to only use CSS selectors, meaning no classes, id's ect. and to make the components/site keyboard accessible.

Purpose: Learn and explore more of CSS Accessibility using keyboard

In parallel with the course Web App From Scratch

Here Live

The constrains

  • No classes or id's to use for styling (Navigating with id is ok)
  • No JavaScript
  • Preprocessors allowed but only the css counts. (So scss won't be taken in the judgement)
  • You have to use CSS grid
  • Apply flexbox if you want to
  • Use custom properties
  • Use relative units
  • Apply selected techniques from the book CSS Secrets by Lea Verou

Proces

The process and planning.

Week 1

What I've done, learned and plan to do in week 1.

Result of week 1 HERE

What I've done

  • Thinking out how each component will look like

  • Trying to implement modals (not succeeded)

  • Login modal base implemented

  • Implementing from CSS Secrets

    • Fancy ampersand
    • De-emphasize by dimming
    • Instrinsic sizing (With max-content instead of min-content)
  • Working on focus-within nested navigation

  • Thinking about adding id's to the components/sections so that you can jump to a component right away without having to tab through everything.

What I've learned

  • The basics of CSS Grid with CssGridGarden: CssGridGarden: A quick and fun introduction to the new CSS module, CSS Grid. I've learned come in contact and learned the basic syntax of CSS Grid.

Wes Boss CSS Grid course: Learning more about CSS Grid's syntax and using it in practical sense.

  • How to use some pseudo selectors like :target
  • Css only modal
  • How to focus within a nested navigation

What to do/planned

  • Adding a jump to content or something similiar
  • Style and test each component one by one
  • Create a cohesive concept
  • Change the content

Week 2

Result of week 2 HERE

What I've done

  • Started all over, because I now got an idea what I want to make/do
  • Started styling the component from scratch
  • Added teeny animations
  • Base for the Home/Overview page made
  • Base for the Account/Login screen set

What I've learned

  • Learning to use keyframes
  • Never heard about :placeholder-shown and ::-webkit-input-placeholder before. Now I have 😉
  • That you cannot create a masonry layout with CSS Grid. 😞

What to do/planned

  • Implementing all the assignments. (Implementing from the book CSS Secrets from Lea Verou)
  • Retouching the styling
  • Update the readme

Week 3

Result of week 3 HERE

What I've done

  • Fixing, retouching, corrections
  • Used column-count instead of grid for a masonry layout.
  • Adding and adjusting little animations
  • Applied all the selected techniques from the book CSS Secrets

What I've learned

  • Got more familiar with keyframes
  • Got more familiar with styling the <progress> tag
  • Learned some tricks from the book CSS Secrets
  • More usages of psuedo selectors e.g. :not(:placeholder-shown)

Components

The component that had to be styled can be found here

Media Item in Overview

An overview of all the items

Login

An login form

Navigation

An navigation bar with four items

Chat

A chat

Picture with Subtitle & Rating

A modal of a selected item

Step Indicator

Card with stepindicator

Rating example makes use of Emoji from: http://emojione.com

To be applied form the book CSS Secrets from Lea Verou

  • fancy ampersand - 5.25 In the header

  • de-emphasize by dimming - 6.32

  • de-emphasize by blurring - 6.33 The background when a card is selected - similar to 6.32

  • Instrinsic sizing (Styling by sibling count) -7.36, (7.38) min-content and max-content incorporated into few components

  • 7.40 Vertical centering Had no need to vertically center something. What comes the closest is the card modal.

  • Frame by frame - Loading spinner — 8.43 The png sprite sheet loader added to mimic the loading of logging in. Shows when the Stay logged in checkbox is checked to mimic the loading

  • Elastic transition - Transitions op :hovers en :focus—8.42 On selecting a card. A modal will bounce in.

  • Picking the right Cursor — 6.29 Default on links and set on buttons

  • Extending the clickable area — 6.30 On nav links and link in the login page using transparent borders.

  • Custom checkboxes — 6.31 In the login form under account.html

  • (Pseudo)random background — 2.7 Set on the progressbar in /learn.html

About

CSS To The Rescue - A 3 week course of Minor Everything Web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • HTML 51.8%
  • CSS 47.3%
  • JavaScript 0.9%