Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
728da00
Created file index.html with header Hello World
grercoli Oct 12, 2018
8ec392d
Changed the header to My todo list
grercoli Oct 12, 2018
d4929ff
Added some daily chores to the header
grercoli Oct 12, 2018
a9b599a
Created file index2.html with a table of my expenses
grercoli Oct 12, 2018
61ad67f
Created file index3.html and added some media features
grercoli Oct 12, 2018
4eedfb8
Added a sign up form to index3.html
grercoli Oct 12, 2018
2795a64
Added doctype to all html files
grercoli Oct 12, 2018
8f41c73
Added favicon to img folder
grercoli Oct 12, 2018
281e8e5
Added metatags
grercoli Oct 12, 2018
b625779
Added meta viewport tag
grercoli Oct 12, 2018
e164939
Tested with W3 Validator and replaced table attr with css style
grercoli Oct 12, 2018
bc49724
Tested with W3 Validator and fixed select options, also added placeho…
grercoli Oct 12, 2018
004b87b
Fixed css format
grercoli Oct 12, 2018
e7f646b
Added Accessibility
grercoli Oct 12, 2018
d4cc136
Added accessibility
grercoli Oct 12, 2018
e36e1c3
Renamed index2.html to table.html
grercoli Oct 12, 2018
44d1813
Renamed index3.html to media-form.html
grercoli Oct 12, 2018
8e03583
Renamed index.html to header-list.html
grercoli Oct 12, 2018
4727715
Created file basics-css.html
grercoli Oct 12, 2018
b5772d4
Created css folder with style.css file
grercoli Oct 12, 2018
7d63f93
Linked style.css to basics-css.html
grercoli Oct 12, 2018
eb0ed96
Created normalize.css file and linked it to basics-css.html
grercoli Oct 12, 2018
899b348
Added structure and content
grercoli Oct 14, 2018
52589e6
Added some css styles
grercoli Oct 14, 2018
f41b069
Modified header structure and renamed classes
grercoli Oct 14, 2018
d095c50
Made some changes to style.css
grercoli Oct 14, 2018
180e21b
Created file README.md and answered exercises questions
grercoli Oct 14, 2018
be1a5c8
Deleted unnecessary property
grercoli Oct 14, 2018
fdf560c
Created file mock-up.css and added some css styles
grercoli Oct 14, 2018
bf8d096
Created file mock-up.html and made all the structure
grercoli Oct 14, 2018
537704e
Added 6 images to use for mock-up.html
grercoli Oct 14, 2018
6aa0ef9
Minor fix to albums titles
grercoli Oct 14, 2018
4c04936
Added media queries
grercoli Oct 14, 2018
196198a
Fixed markdown layout
grercoli Oct 15, 2018
3102153
Fixed albums list and deleted unnecessary code
grercoli Oct 15, 2018
3f58590
Fixed some css styles and media queries
grercoli Oct 15, 2018
8314aed
Corrected semantic in form, changed p with span
grercoli Oct 22, 2018
ad73e76
Deleted main-header class in main
grercoli Oct 22, 2018
d6e3a99
Changed rule main-container to main
grercoli Oct 22, 2018
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
22 changes: 22 additions & 0 deletions 00-HTML-CSS-basics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## How could you add weight to the global font definition to win over the classes added by point 3?

I could use something like this:
```
* {
font-weight: bold;
}
```
I also could add !important to the end of property value (but it's not recommended as possible to use), like this:
```
html {
font-weight: bold!important;
}
```
## Imagine there is a declaration like class=”oh-no-inline-styles” style=”background:red” and you need to change the background to green without changing the inline style. How could you accomplish this?

Inline styles always override styles written in css files, so here we can use !important:
```
oh-no-inline-styles {
background: green!important;
}
```
87 changes: 87 additions & 0 deletions 00-HTML-CSS-basics/basics-css.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Basics CSS</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>

<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->

<!-- Add your site or application content here -->
<header class="header">
<div>
<h1>Welcome to my site</h1>
</div>
</header>

<main class="clearfix">
<nav class="navigation">
<h2>Main Menu</h2>
<a href="#">Page N°1</a>
<br>
<a href="#">Page N°2</a>
<br>
<a href="#">Page N°3</a>
<br>
<a href="#">Page N°4</a>
<br>
<a href="#">Page N°5</a>
</nav><!-- End nav ".main-nav"

--><section class="content">
<header>
<h2>My Blogs</h2>
</header>
<article>
<h3>Blog N°1</h3>
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.</p>
</div>
</article>
<footer>

</footer>
</section><!-- End section ".main-section"

--><aside class="sidebar">
<h2>More Information</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint eius, error quod ex, velit, sunt eum ea cupiditate aut aliquam molestiae omnis eaque, necessitatibus eos distinctio vel quos blanditiis explicabo.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint eius, error quod ex, velit, sunt eum ea cupiditate aut aliquam molestiae omnis eaque, necessitatibus eos distinctio vel quos blanditiis explicabo.</p>
</aside>

</main> <!-- .container -->


<footer class="footer">
<p class="copyright">All rights reserved &copy;. My Blog 2018</p>
</footer>

<script src="js/vendor/modernizr-{{MODERNIZR_VERSION}}.min.js"></script>
<script src="https://code.jquery.com/jquery-{{JQUERY_VERSION}}.min.js" integrity="{{JQUERY_SRI_HASH}}" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-{{JQUERY_VERSION}}.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>

<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
</body>

</html>
144 changes: 144 additions & 0 deletions 00-HTML-CSS-basics/css/mock-up.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/** GLOBAL **/
/* apply a natural box layout model to all elements, but allowing components to change */
html {
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}

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

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

.container {
margin: 0 auto;
width: 98%;
}

/** HELPER CLASSES**/

.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}

.clearfix:after {
clear: both;
}

/** HEADER **/

.introduction {
margin-bottom: 60px;
}

.site-title {
float: left;
font-weight: bold;
padding-left: 20px;
width: 30%;
}

.site-information {
float: right;
padding: 0 200px 0 20px;
width: 70%;
}

@media all and (max-width: 768px) {
.site-title {
float: none;
}

.site-information {
float: none;
width: 100%;
padding: 0 20px;
}
}

.site-information p span {
font-weight: bold;
}

/** ALBUMS **/

.albums-list li {
float: left;
padding: 10px;
width: 33.3%;
}

@media all and (max-width: 600px){
.albums-list li {
width: 100%;
}
}

@media all and (max-width: 1020px) and (min-width: 600px){
.albums-list li {
width: 50%;
}
}

.album {
position: relative;
}

.album img {
filter: gray;
-moz-filter: grayscale(1);
-ms-filter: grayscale(1);
-webkit-filter: grayscale(1);
-moz-transition: all .5s ease-in-out;
-ms-transition: all .5s ease-in-out;
-webkit-transition: all .5s ease-in-out;
}

.screen {
background-color: rgba(0,0,0,0.5);
left: 0;
top: 0;
height: 30%;
width: 100%;
position: absolute;
opacity: 0;
z-index: 1000;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}

.album a:hover .screen,
.album a:hover img {
opacity: 1;
-moz-filter: grayscale(0);
-ms-filter: grayscale(0);
-webkit-filter: grayscale(0);
}

.title {
color: #fff;
font-size: 16px;
font-weight: bold;
margin-left: 10px;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}

.album img {
width: 100%;
}


Loading