Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.idea
.idea/
*.map
.sass-cache/
.DS_Store/
.DS_Store
39 changes: 20 additions & 19 deletions src/001-float-property/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,42 @@

## Evaluation Criteria

1. Make it Readable.
2. Good Practices.
3. Use HTML5.
4. Structured Naming Convention.
5. Responsive code is not required.
6. Use correct Cascade code.
7. Use correct Inheritance.
8. Goal: The practice should look as the required design.
1. Make it Readable.
2. Good Practices.
3. Use HTML5.
4. Structured Naming Convention.
5. Responsive code is not required.
6. Use correct Cascade code.
7. Use correct Inheritance.
8. Goal: The practice should look as the required design.

### Before

You should read about Float CSS Property Documentation here:
1. [The Mystery Of The CSS Float Property][1]

> The estimation for this practice is: 2 hours.
1. [The Mystery Of The CSS Float Property][1]

> The estimation for this practice is: 2 hours.

### To Do

- [Watch this video with the design][2]
* [Watch this video with the design][2]

- Run the base project.
* Run the base project.

```sh
$ npm install http-server -g
$ cd u-css/
$ http-server ./src -p 3000
```
- Using Float CSS Property, create the next items:

1. A horizontal nav bar menu.
2. Two columns below nav bar.
3. In the first column created, float an image with text wrapping it.
4. Below the columns created, make a gallery of images.
5. Follow the design specified for this practice.
* Using Float CSS Property, create the next items:

1. A horizontal nav bar menu. _done_
2. Two columns below nav bar. _done_
3. In the first column created, float an image with text wrapping it. _done_
4. Below the columns created, make a gallery of images. _donde_
5. Follow the design specified for this practice. _done_

[1]: https://www.smashingmagazine.com/2009/10/the-mystery-of-css-float-property/
[2]: https://drive.google.com/a/talosdigital.com/file/d/1JJ2sibPhLORN9KkOdeFFRw-YJz5Tpjyd/view?usp=sharing

101 changes: 101 additions & 0 deletions src/001-float-property/example/css/example.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

146 changes: 146 additions & 0 deletions src/001-float-property/example/css/example.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
/*
* Practice : Float Property
* Version: 1.0.0
* By: Elías Rodelo
*/

* {
box-sizing: border-box;
}

ul {
margin: 0;
padding: 0;
list-style: none;
}

@mixin clearfix() {
&::after {
visibility: hidden;
display: block;
font-size: 0;
content: '';
clear: both;
height: 0;
}
}
.wrapper {
max-width: 900px;
margin: 0 auto;
}

.block {
padding: 0.5rem 1rem;
}

.page-header {
background-color: #e9e7e9;
}

.navigation {
@extend .block;

background-color: #e5e4e5;

&-list {
overflow: hidden;
}

&-item {
float: left;
}

&-link {
padding: 0.5rem 1rem;
display: block;

&:first-of-type {
padding-left: 0;
}
}
}

.container {
overflow: hidden;
}

.col {
@extend .block;
padding-bottom: 100%;
margin-bottom: -100%;

&--left {
@extend .float-left;
width: 200px;
background-color: #e9e7e9;
height: 100%;
}

&--right {
@extend .float-right;
background-color: #d3d1d3;
width: 700px;
}
}

.gallery {
background-color: #f9f7f9;
&-list {
overflow: hidden;
}

&-item {
@extend .float-left;

margin: 0 1rem 1rem 0;
}
}

.comments {
background-color: #e9e7e9;
@include clearfix();

&--green {
border: 2px solid green;
border-radius: 2px;
}
}

.clear {
clear: both;
}

.float-left {
float: left;
}

.float-right {
float: right;
}

.mb-1 {
margin-bottom: 1rem;
}

.mt-1 {
margin-bottom: 1rem;
}

.mb-2 {
margin-bottom: 0.5rem;
}

.ml-2 {
margin-left: 0.5rem;
}

.mr-1 {
margin-right: 1rem;
}

.esp-letter {
font-size: 4rem;
line-height: 100%;
margin-right: 1rem;
float: left;
}
5 changes: 0 additions & 5 deletions src/001-float-property/example/example.css

This file was deleted.

Loading