Skip to content
This repository was archived by the owner on Aug 3, 2020. It is now read-only.

Create doc about CSS #5

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Create doc about CSS #5

wants to merge 11 commits into from

Conversation

Niko998
Copy link

@Niko998 Niko998 commented Dec 21, 2018

First version of css file

@kvas-damian
Copy link
Contributor

@Niko998
For future, to make sure that your PR isn't forgotten or not noticed make sure you assign reviewers or at least ping @bethinkpl/bit

css.md Outdated
@@ -0,0 +1,34 @@
# CSS

**Prerequisite knowledge**: basic html elements, imagination
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "imagination"? Is it something you can learn about? Do we plan to create an article about it?

The initial idea was to list only documents that are describing given topic


### Apprentice aka _Short skillset description, example: "I can branch!", "My First TODO app"_
*I know what is a box model, and I know its basic elements (graphical interpretation)
*I know how html elements could be displayed (in line, in line block, flex, table)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about block and none?

*I can modify elements by ID
*I know the difference between basic selectors (*, #X and .X)
### Intermediate aka _..._
*I can make website looks like in given template
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you going to add more content here? If you have troubles with defining questions for more advanced levels please ping @ bethinkpl/bit - we're happy to help.

kvas-damian and others added 5 commits January 5, 2019 16:07
Co-Authored-By: Niko998 <[email protected]>
Co-Authored-By: Niko998 <[email protected]>
Co-Authored-By: Niko998 <[email protected]>
Co-Authored-By: Niko998 <[email protected]>

## Classification / acceptance questions

### Apprentice aka _Short skillset description, example: "I can branch!", "My First TODO app"_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how would you call a CSS apprentice? This is a placeholder for you to update.

## Classification / acceptance questions

### Apprentice aka _Short skillset description, example: "I can branch!", "My First TODO app"_
*I know what is a box model, and I know its basic elements (graphical interpretation)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### Apprentice aka _Short skillset description, example: "I can branch!", "My First TODO app"_
*I know what is a box model, and I know its basic elements (graphical interpretation)
*I know how html elements could be displayed (in line, in line block, flex, table)
*I know what is the difference between in line, in line block and flex
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would merge it with the previous one.

*I know how html elements could be displayed (in line, in line block, flex, table)
*I know what is the difference between in line, in line block and flex
*I know whats are classes
*I know how inheritance works
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean cascading?

css.md Outdated
*I know how inheritance works
*I can change colors and fonts of text
*I can use padding, margin, and border attributes
*I can modify elements by ID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify or apply styles? If the latter, then I'd merge it with the one about classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would create a more general point about writing css selectors and there you can define different selectors:

  • by tag name
  • by class
  • by id
    and more complex like:
  • by siblings
  • by attributes

I would mention somewhere the specifity of selectors (https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity)

*I can modify elements by ID
*I know the difference between basic selectors (*, #X and .X)
### Intermediate aka _..._
*I can make website looks like in given template
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is too broad. There are templates that you'll have to be a CSS master to apply.

@rogatty rogatty changed the title css Create doc about CSS Jan 9, 2019

## Intro
CSS (Cascading Style Sheets) is a style sheet language used for describing the presentation of document written in a markup language (like HTML).
CSS can improve content accessibility and readability by affecting layout, colors and fonts. Also provide more flexibility and control in the specification of presentation characteristics.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the second sentence lacks subject.

*I can modify elements by ID
*I know the difference between basic selectors (*, #X and .X)
### Intermediate aka _..._
*I can make website looks like in given template
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I this point I would mention stacking context. It's important knowledge and it's a bit more complex than adding colors and changing fonts - https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

Another thing you can mention is browser support, just to let the reader know it's important to check the browser support and different browser quirks when adding styles.

**Prerequisite knowledge**: JS apprentice level
* I know how to implent drag/drop feature
* I know how to use web storage
* I know how to use web workers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO these points are related to JS - not HTML

* I can customize <meta> tag
* I can use advantages of HTML5
* I can attach video, audio or youtube links to my website
### Advanced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this point, you can mention about blocking and non-block assets loading methods.

* I can customize <meta> tag
* I can use advantages of HTML5
* I can attach video, audio or youtube links to my website
### Advanced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's also a place to mention about dataURI as a method for performance improvement

* I can customize <meta> tag
* I can use advantages of HTML5
* I can attach video, audio or youtube links to my website
### Advanced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add an info form validation rules introduced in HTML5

* I know how to use web storage
* I know how to use web workers

### Master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's point contenteditable here

* I can customize <meta> tag
* I can use advantages of HTML5
* I can attach video, audio or youtube links to my website
### Advanced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about adding svg element here?

* I know how to use web storage
* I know how to use web workers

### Master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

srcset is a nice feature for optimization supported by HTML5

@gitkuba gitkuba removed their request for review March 7, 2019 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants