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
Binary file added 00-HTML-CSS-basics/assets/blues-song.mp3
Binary file not shown.
Binary file added 00-HTML-CSS-basics/assets/dan-gold-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions 00-HTML-CSS-basics/css/mockup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: 'Lato', sans-serif;
margin:0;
padding: 0;
}

html{
font-family: 'Lato', sans-serif;
}
body{
width: 90%;
margin: 0 auto;
}
.header{
height: 25vh;
padding: 25px;
}
.clearfix{
clear: both;
padding:20px;
}
.container{
width: 100%;
}

.column{
padding: 2px;
float:left;
}
.column.two-thirds {
width: 66.7%;
}
@media all and (max-width: 700px){
.column.two-thirds{
width:50%;
}
p.column.two-thirds{
width: 100%;
}
}
@media all and (min-width: 700px) and (max-width:900px){
.column.two-thirds{
width:50%;
}
p.column.two-thirds{
width: 50%;
}
}

.column.third {
width: 33.3%;
}

@media all and (max-width: 700px){
.column.third{
width:50%;
}
h1.column.third{
width: 100%;
}
}
@media all and (min-width: 700px) and (max-width:900px){
.column.third{
width:50%;
}
h1.column.third{
width: 50%;
}
}
.item{
position: relative;
width: 100%;
}
.item img{
width:100%;
height: auto;
}
.overlay{
padding:10px;
position: absolute;
left:0;
top:0;
right: 0;
bottom: 0;
width: 100%;
height: 100px;
opacity: 0;
background: black;
transition: 0.5s ease;
}
.overlay p,.overlay h3{
font-size: 16px;
color:white;

}
.item:hover .overlay{
opacity: 0.5;
}
Loading