diff --git a/experiments/3melie/1_basics.html b/experiments/3melie/1_basics.html index 3491b7f..bdc3e44 100644 --- a/experiments/3melie/1_basics.html +++ b/experiments/3melie/1_basics.html @@ -22,11 +22,12 @@ } section{ - opacity: 1; + opacity: .2; padding: 20px; transition: all 1s ease; width: 70%; margin: auto; + border-radius: 10%; } section:hover { @@ -34,37 +35,44 @@ background-color: rgb(247, 247, 212); transform: scale(1.05); color: rgb(80, 70, 55); - + border-radius: 0%; + border-style:double; + border-width: thick; + transition-duration: 0.5s; } +h1{ + font-variant: small-caps; + color: rgb(255, 213, 77); + text-align: center; + } + h2{ font-variant: small-caps; } + img{ max-width: 100%; height: auto; - opacity: .5; } - img:hover{ - opacity: 1; - } - - a:link{ + :link{ color: rgb(80, 70, 55); + font-variant: small-caps; + font-size: larger; } - a:visited{ + :visited{ color: rgb(80, 70, 55); } - a:link:hover{ + :link:hover{ opacity: 1; color: rgb(225, 172, 0); } - a:visited:hover{ + :visited:hover{ opacity: 0; color:rgb(247, 247, 212) } @@ -74,6 +82,7 @@
+

The box model

The box model

diff --git a/experiments/DAI YU SYUAN/1_basics.html b/experiments/DAI YU SYUAN/1_basics.html index 9dd7708..d50f80e 100644 --- a/experiments/DAI YU SYUAN/1_basics.html +++ b/experiments/DAI YU SYUAN/1_basics.html @@ -8,6 +8,7 @@ diff --git a/experiments/kaheller/1_basics.html b/experiments/kaheller/1_basics.html index 5e83995..d8ee8af 100644 --- a/experiments/kaheller/1_basics.html +++ b/experiments/kaheller/1_basics.html @@ -2,7 +2,7 @@ -The box model - Interactive Information +The box model </p>Interactive Information -
-
-
-

The box model

-
-
-

- Everything in CSS has a box around it, and understanding these boxes is key to being able to create more - complex layouts with CSS, or to align items with other items. In this lesson, we will take a look at the - CSS - Box Model - . You'll get an understanding of how it works and the terminology that relates to it. -

-
- - - - - - - - - - - -
Prerequisites: - Basic - software installed - , basic knowledge of +
+
+
+ + + + + +
+
+
- working - with files - , HTML basics (study - Introduction - to HTML - ), and an idea of how CSS works (study - CSS first - steps - .) -
Objective: - To learn about the CSS Box Model, what makes up the box model and how to - switch to the alternate model. -
-
-
-
-

- Block and inline boxes -

-
-

- In CSS we have several types of boxes that generally fit into the categories of - block boxes - and - inline boxes - . The type refers to how the box behaves in terms of page flow and in relation to other boxes on the - page. Boxes have an - inner display type - and an - outer display type - . -

-

- In general, you can set various values for the display type using the - - display - - property, which can have various values. -

-
-
-
-

- Outer display type -

-
-

- If a box has an outer display type of - block - , then: -

-
    -
  • The box will break onto a new line.
  • -
  • - The - - width - - and - - height - - properties are respected. -
  • -
  • Padding, margin and border will cause other elements to be pushed away from the box.
  • -
  • - If - - width - - is not specified, the box will extend in the inline direction to fill the space available in its - container. In most cases, the box will become as wide as its container, filling up 100% of the - space available. -
  • -
-

- Some HTML elements, such as - <h1> - and - <p> - , use - block - as their outer display type by default. -

-

- If a box has an outer display type of - inline - , then: -

-
    -
  • The box will not break onto a new line.
  • -
  • - The - - width - - and - - height - - properties will not apply. -
  • -
  • Top and bottom padding, margins, and borders will apply but will not cause other inline boxes to - move away from the box.
  • -
  • Left and right padding, margins, and borders will apply and will cause other inline boxes to - move away from the box.
  • -
-

- Some HTML elements, such as - <a> - , - <span> - , - <em> - and - <strong> - use - inline - as their outer display type by default. -

-
-
-
-

- Inner display type -

-
-

- Boxes also have an - inner - display type, which dictates how elements inside that box are laid out. -

-

- Block and inline layout is the default way things behave on the web. By default and without any - other instruction, the elements inside a box are also laid out in - - normal - flow - - and behave as block or inline boxes. -

-

- You can change the inner display type for example by setting - display: flex; - . The element will still use the outer display type - block - but this changes the inner display type to - flex - . Any direct children of this box will become flex items and behave according to the - Flexbox - specification. -

-

- When you move on to learn about CSS Layout in more detail, you will encounter - - flex - - , and various other inner values that your boxes can have, for example - - grid - - . -

-
-

- Note: - To read more about the values of display, and how boxes work in block and inline layout, take a - look at the MDN guide - Block - and Inline Layout - . -

-
-
-
-
-

- Examples of different display types -

-
-

- The example below has three different HTML elements, all of which have an outer display type of - block - . -

-
    -
  • -

    A paragraph with a border added in CSS. The browser renders this as a block box. The - paragraph starts on a new line and extends the entire available width.

    -
  • -
  • -

    - A list, which is laid out using - display: flex - . This establishes flex layout for the children of the container, which are flex items. The - list itself is a block box and — like the paragraph — expands to the full container width - and breaks onto a new line. -

    -
  • -
  • -

    - A block-level paragraph, inside which are two - <span> - elements. These elements would normally be - inline - , however, one of the elements has a class of "block" which gets set to - display: block - . -

    -
  • -
- -

- In the next example, we can see how - inline - elements behave. -

-
    -
  • -

    - The - <span> - elements in the first paragraph are inline by default and so do not force line breaks. -

    -
  • -
  • -

    - The - <ul> - element that is set to - display: inline-flex - creates an inline box containing some flex items. -

    -
  • -
  • -

    - The two paragraphs are both set to - display: inline - . The inline flex container and paragraphs all run together on one line rather than breaking - onto new lines (as they would do if they were displaying as block-level elements). -

    -
  • -
-

- - To toggle between the display modes, you can change - display: inline - to - display: block - or - display: inline-flex - to - display: flex - . - -

- -

- The key thing to remember for now is: Changing the value of the - display - property can change whether the outer display type of a box is block or inline. This changes the way - it displays alongside other elements in the layout. -

-
-
-
-

- What is the CSS box model? -

-
-

- The CSS box model as a whole applies to block boxes and defines how the different parts of a box — - margin, border, padding, and content — work together to create a box that you can see on a page. - Inline boxes use just - some - of the behavior defined in the box model. -

-

To add complexity, there is a standard and an alternate box model. By default, browsers use the - standard box model.

-
-
-
-

- Parts of a box -

-
-

Making up a block box in CSS we have the:

-
    -
  • - Content box - : The area where your content is displayed; size it using properties like - - inline-size - - and - - block-size - - or - - width - - and - - height - - . -
  • -
  • - Padding box - : The padding sits around the content as white space; size it using - - padding - - and related properties. -
  • -
  • - Border box - : The border box wraps the content and any padding; size it using - - border - - and related properties. -
  • -
  • - Margin box - : The margin is the outermost layer, wrapping the content, padding, and border as whitespace - between this box and other elements; size it using - - margin - - and related properties. -
  • -
-

The below diagram shows these layers:

-

- Diagram of the box model -

-
-
-
-

- The standard CSS box model -

-
-

- In the standard box model, if you set - inline-size - and - block-size - (or - width - and - height - ) property values on a box, these values define the - inline-size - and - block-size - ( - width - and - height - in horizontal languages) of the - content box - . Any padding and borders are then added to those dimensions to get the total size taken up by the - box (see the image below). -

-

If we assume that a box has the following CSS:

-
-
- css -
-
-                                        .box {
-                                          width: 350px;
-                                          height: 150px;
-                                          margin: 10px;
-                                          padding: 25px;
-                                          border: 5px solid black;
-                                        }
-                                        
-                                    
-
-

- The - actual - space taken up by the box will be 410px wide (350 + 25 + 25 + 5 + 5) and 210px high (150 + 25 + 25 + - 5 + 5). -

-

- Showing the size of the box when the standard box model is being used. -

-
-

- Note: - The margin is not counted towards the actual size of the box — sure, it affects the total space - that the box will take up on the page, but only the space outside the box. The box's area stops - at the border — it does not extend into the margin. -

-
-
-
-
-

- The alternative CSS box model -

-
-

In the alternative box model, any width is the width of the visible box on the page. The content area - width is that width minus the width for the padding and border (see image below). No need to add up - the border and padding to get the real size of the box.

-

- To turn on the alternative model for an element, set - box-sizing: border-box - on it: -

-
-
- css -
-
-                                        .box {
-                                          box-sizing: border-box;
-                                        }
-                                        
-                                    
-
-

If we assume the box has the same CSS as above:

-
-
- css -
-
-                                        .box {
-                                          width: 350px;
-                                          inline-size: 350px;
-                                          height: 150px;
-                                          block-size: 150px;
-                                          margin: 10px;
-                                          padding: 25px;
-                                          border: 5px solid black;
-                                        }
-                                        
-                                    
-
-

- Now, the - actual - space taken up by the box will be 350px in the inline direction and 150px in the block direction. -

-

- Showing the size of the box when the alternate box model is being used. -

-

- To use the alternative box model for all of your elements (which is a common choice among - developers), set the - box-sizing - property on the - <html> - element and set all other elements to inherit that value: -

-
-
- css -
-
-                                        html {
-                                          box-sizing: border-box;
-                                        }
 
-                                        *,
-                                        *::before,
-                                        *::after {
-                                          box-sizing: inherit;
-                                        }
-                                        
-                                    
-
-

- To understand the underlying idea, you can read - the CSS Tricks article on box-sizing - . -

-
-
-
-

- Playing with box models -

-
-

- In the example below, you can see two boxes. Both have a class of - .box - , which gives them the same - width - , - height - , - margin - , - border - , and - padding - . The only difference is that the second box has been set to use the alternative box model. -

-

- - Can you change the size of the second box (by adding CSS to the - .alternate - class) to make it match the first box in width and height? - -

- -
-

- Note: - You can find a solution for this task - here - . -

-
-
-
-
-

- Use browser DevTools to view the box model -

-
-

- Your - browser - developer tools - can make understanding the box model far easier. If you inspect an element in Firefox's DevTools, - you can see the size of the element plus its margin, padding, and border. Inspecting an element in - this way is a great way to find out if your box is really the size you think it is! -

-

- Inspecting the box model of an element using Firefox DevTools -

-
-
-
-

- Margins, padding, and borders -

-
-

- You've already seen the - - margin - - , - - padding - - , and - - border - - properties at work in the example above. The properties used in that example are - shorthands - and allow us to set all four sides of the box at once. These shorthands also have equivalent - longhand properties, which allow control over the different sides of the box individually. -

-

Let's explore these properties in more detail.

-
-
-
-

- Margin -

-
-

The margin is an invisible space around your box. It pushes other elements away from the box. Margins - can have positive or negative values. Setting a negative margin on one side of your box can cause it - to overlap other things on the page. Whether you are using the standard or alternative box model, - the margin is always added after the size of the visible box has been calculated.

-

- We can control all margins of an element at once using the - - margin - - property, or each side individually using the equivalent longhand properties: -

- -

- In the example below, try changing the margin values to see how the box is pushed around due - to the margin creating or removing space (if it is a negative margin) between this element and - the containing element. -

- -

Margin collapsing

-

Depending on whether two elements whose margins touch have positive or negative margins, the results - will be different:

-
    -
  • Two positive margins will combine to become one margin. Its size will be equal to the largest - individual margin.
  • -
  • Two negative margins will collapse and the smallest (furthest from zero) value will be used. -
  • -
  • - If one margin is negative, its value will be - subtracted - from the total. -
  • -
-

- In the example below, we have two paragraphs. The top paragraph has a - margin-bottom - of 50 pixels, the other has a - margin-top - of 30 pixels. The margins have collapsed together so the actual margin between the boxes is 50 - pixels and not the total of the two margins. -

-

- - You can test this by setting the - margin-top - of paragraph two to 0. The visible margin between the two paragraphs will not change — it - retains the 50 pixels set in the - margin-bottom - of paragraph one. If you set it to -10px, you'll see that the overall margin becomes 40px — it - subtracts from the 50px. - -

- -

- A number of rules dictate when margins do and do not collapse. For further information see the - detailed page on - mastering - margin collapsing - . The main thing to remember is that margin collapsing is a thing that happens if you are creating - space with margins and don't get the space you expect. -

-
-
-
-

- Borders -

-
-

- The border is drawn between the margin and the padding of a box. If you are using the standard box - model, the size of the border is added to the - width - and - height - of the content box. If you are using the alternative box model, then the bigger the border is, the - smaller the content box is, as the border takes up some of that available - width - and - height - of the element box. -

-

For styling borders, there are a large number of properties — there are four borders, and each border - has a style, width, and color that we might want to manipulate.

-

- You can set the width, style, or color of all four borders at once using the - - border - - property. -

-

To set the properties of each side individually, use:

- -

To set the width, style, or color of all sides, use:

- -

To set the width, style, or color of a single side, use one of the more granular longhand properties: -

- -

In the example below, we have used various shorthands and longhands to create borders. Play around - with the different properties to check that you understand how they work. The MDN pages for the - border properties give you information about the different available border styles.

- -
-
-
-

- Padding -

-
-

The padding sits between the border and the content area and is used to push the content away from - the border. Unlike margins, you cannot have a negative padding. Any background applied to your - element will display behind the padding.

-

- The - - padding - - property controls the padding on all sides of an element. To control each side individually, use - these longhand properties: -

- -

- In the example below, you can change the values for padding on the class - .box - to see that this changes where the text begins in relation to the box. You can also change the - padding on the class - .container - to create space between the container and the box. You can change the padding on any element to - create space between its border and whatever is inside the element. -

- -
-
-
-

- The box model and inline boxes -

-
-

- All of the above fully applies to block boxes. Some of the properties can apply to inline boxes too, - such as those created by a - <span> - element. -

-

- In the example below, we have a - <span> - inside a paragraph. We have applied a - width - , - height - , - margin - , - border - , and - padding - to it. You can see that the width and height are ignored. The top and bottom margin, padding, and - border are respected but don't change the relationship of other content to our inline box. The - padding and border overlap other words in the paragraph. The left and right padding, margins, and - borders move other content away from the box. -

- -
-
-
-

- Using display: inline-block -

-
-

- display: inline-block - is a special value of - display - , which provides a middle ground between - inline - and - block - . Use it if you do not want an item to break onto a new line, but do want it to respect - width - and - height - and avoid the overlapping seen above. -

-

- An element with - display: inline-block - does a subset of the block things we already know about: -

-
    -
  • - The - width - and - height - properties are respected. -
  • -
  • - padding - , - margin - , and - border - will cause other elements to be pushed away from the box. -
  • -
-

- It does not, however, break onto a new line, and will only become larger than its content if you - explicitly add - width - and - height - properties. -

-

- - In this next example, we have added - display: inline-block - to our - <span> - element. Try changing this to - display: block - or removing the line completely to see the difference in display models. - -

- -

- Where this can be useful is when you want to give a link a larger hit area by adding - padding - . - <a> - is an inline element like - <span> - ; you can use - display: inline-block - to allow padding to be set on it, making it easier for a user to click the link. -

-

- You see this fairly frequently in navigation bars. The navigation below is displayed in a row using - flexbox and we have added padding to the - <a> - element as we want to be able to change the - background-color - when the - <a> - is hovered. The padding appears to overlap the border on the - <ul> - element. This is because the - <a> - is an inline element. -

-

- - Add - display: inline-block - to the rule with the - .links-list a - selector, and you will see how it fixes this issue by causing the padding to be respected by - other elements. - -

- -
-
-
-

- Test your skills! -

-
-

- You've reached the end of this article, but can you remember the most important information? You can - find some further tests to verify that you've retained this information before you move on — see - Test - your skills: The box model - . -

-
-
-
-

- Summary -

-
-

That's most of what you need to understand about the box model. You may want to return to this lesson - in the future if you ever find yourself confused about how big boxes are in your layout.

-

- In the next article, we'll take a look at how - backgrounds - and borders - can be used to make your plain boxes look more interesting. -

- -
-
-
-
\ No newline at end of file diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.otf new file mode 100644 index 0000000..4f6e9df Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.ttf new file mode 100644 index 0000000..0aa4b71 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.woff new file mode 100644 index 0000000..002d491 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.woff2 new file mode 100644 index 0000000..707f86c Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Bold.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.otf new file mode 100644 index 0000000..a0a128e Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.ttf new file mode 100644 index 0000000..2efaf37 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.woff new file mode 100644 index 0000000..a4d8fc8 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.woff2 new file mode 100644 index 0000000..496ccc0 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-BoldItalic.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.otf new file mode 100644 index 0000000..332230d Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.ttf new file mode 100644 index 0000000..3a43b40 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.woff new file mode 100644 index 0000000..2451ffe Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.woff2 new file mode 100644 index 0000000..6555985 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Heavy.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.otf new file mode 100644 index 0000000..46c5a0f Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.ttf new file mode 100644 index 0000000..f9b3352 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.woff new file mode 100644 index 0000000..0704e7d Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.woff2 new file mode 100644 index 0000000..1357e78 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-HeavyItalic.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.otf new file mode 100644 index 0000000..ebd8ac9 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.ttf new file mode 100644 index 0000000..087fabe Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.woff new file mode 100644 index 0000000..1154360 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.woff2 new file mode 100644 index 0000000..624752d Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Light.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.otf new file mode 100644 index 0000000..f4a2c52 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.ttf new file mode 100644 index 0000000..a27fa6f Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.woff new file mode 100644 index 0000000..35a8232 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.woff2 new file mode 100644 index 0000000..bec757c Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-LightItalic.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.otf new file mode 100644 index 0000000..4a02be1 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.ttf new file mode 100644 index 0000000..f3ef6bc Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.woff new file mode 100644 index 0000000..a1fd0a0 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.woff2 new file mode 100644 index 0000000..00500ef Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Medium.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.otf new file mode 100644 index 0000000..03c2df6 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.ttf new file mode 100644 index 0000000..169e93e Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.woff new file mode 100644 index 0000000..6a1d2b3 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.woff2 new file mode 100644 index 0000000..5865aed Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-MediumItalic.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.otf new file mode 100644 index 0000000..d4dcf8f Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.ttf new file mode 100644 index 0000000..acd54cc Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.woff new file mode 100644 index 0000000..977f31f Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.woff2 new file mode 100644 index 0000000..5a49be6 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-Regular.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.otf new file mode 100644 index 0000000..28fae4d Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.ttf new file mode 100644 index 0000000..8152cf1 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.woff new file mode 100644 index 0000000..d91724c Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.woff2 new file mode 100644 index 0000000..5e859e4 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-RegularItalic.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.otf new file mode 100644 index 0000000..9cc6290 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.ttf new file mode 100644 index 0000000..a6cea85 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.woff new file mode 100644 index 0000000..be63780 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.woff2 new file mode 100644 index 0000000..0e46e33 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBold.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.otf b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.otf new file mode 100644 index 0000000..3b08d84 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.otf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.ttf b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.ttf new file mode 100644 index 0000000..fc30c7e Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.woff b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.woff new file mode 100644 index 0000000..920946e Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.woff2 new file mode 100644 index 0000000..5fe3ab2 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIAL-SemiBoldItalic.woff2 differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIALVF.ttf b/experiments/lucazell/assets/fonts/RoobertTRIALVF.ttf new file mode 100644 index 0000000..a5ac184 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIALVF.ttf differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIALVF.woff b/experiments/lucazell/assets/fonts/RoobertTRIALVF.woff new file mode 100644 index 0000000..7de8113 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIALVF.woff differ diff --git a/experiments/lucazell/assets/fonts/RoobertTRIALVF.woff2 b/experiments/lucazell/assets/fonts/RoobertTRIALVF.woff2 new file mode 100644 index 0000000..8bbf331 Binary files /dev/null and b/experiments/lucazell/assets/fonts/RoobertTRIALVF.woff2 differ diff --git a/experiments/lucazell/style.css b/experiments/lucazell/style.css new file mode 100644 index 0000000..2dc812a --- /dev/null +++ b/experiments/lucazell/style.css @@ -0,0 +1,77 @@ +@font-face { + font-family: 'Roobert'; + src: url('http://127.0.0.1:5500/assets/fonts/RoobertTRIAL-Regular.ttf'); /* imported a beautiful font */ +} + +body { + font-family: Roobert, sans-serif; + background-color: #E2EDEC; +} + +div{ + display: block; + unicode-bidi: isolate; +} + +.main_section{ + width: 100%; + background-color: rgba(239, 242, 255, 0); + padding: 100px 1.88em 50px; +} + +.container{ + width: 100%; + max-width: 100em; + margin-left: auto; + margin-right: auto; +} + +.main_grid{ + width: 100%; + display: grid; + grid-template-columns: 1fr 2fr; + grid-template-rows: 1fr; + grid-column-gap: 16px; + grid-row-gap: 0px; +} + +.sticky_menu_wrapper{ + z-index: 0; + height: 400px; + flex-direction: column; + margin-bottom: 0; + padding: 0 24px 0 0; + display: flex; + position: -webkit-sticky; + position: sticky; + top: 182px; + overflow: scroll; +} + +.sticky_menu_item{ + color: #696969; + margin-bottom: 12px; + font-size: 15px; + font-weight: 400; + line-height: 1.6; + text-decoration: none; + transition: color .2s; +} + +a{ + color: #696969; + background-color: transparent; +} + +a:hover{ + color: #0CAEB5; /* hover effect for the navigation */ +} + +.content_wrapper{ + background-color: #fff; + border: 1px solid rgba(105, 105, 105, .1); + border-radius: 20px; + margin-left: 10px; + padding: 24px 40px; + overflow: visible; +} diff --git a/experiments/michelle/1_basics.html b/experiments/michelle/1_basics.html index 5c48aaf..38732c1 100644 --- a/experiments/michelle/1_basics.html +++ b/experiments/michelle/1_basics.html @@ -6,8 +6,61 @@ @@ -16,7 +69,8 @@
-

The box model

+

the BLOCK MODEL

@@ -70,20 +124,20 @@

In CSS we have several types of boxes that generally fit into the categories of - block boxes + block boxes and - inline boxes + inline boxes . The type refers to how the box behaves in terms of page flow and in relation to other boxes on the page. Boxes have an - inner display type + inner display type and an - outer display type + outer display type .

In general, you can set various values for the display type using the - display + display property, which can have various values.

@@ -104,11 +158,11 @@

  • The - width + width and - height + height properties are respected.
  • @@ -116,7 +170,7 @@

  • If - width + width is not specified, the box will extend in the inline direction to fill the space available in its container. In most cases, the box will become as wide as its container, filling up 100% of the @@ -142,11 +196,11 @@

  • The - width + width and - height + height properties will not apply.
  • @@ -203,11 +257,11 @@

    When you move on to learn about CSS Layout in more detail, you will encounter - flex + flex , and various other inner values that your boxes can have, for example - grid + grid .

    @@ -340,47 +394,47 @@

    Making up a block box in CSS we have the:

  • -
    -

    - Block and inline boxes +
    +

    + Block and inline boxes