diff --git a/src/015-flex/example/example.css b/src/015-flex/example/example.css index c1e6824..e3c69df 100644 --- a/src/015-flex/example/example.css +++ b/src/015-flex/example/example.css @@ -1,5 +1,167 @@ /* * Practice : Flex * Version: 1 - * By: xxx + * By: Laura Alvarez */ + + .page-content { + padding: 0; + } + + .header-image { + background-image: url('../resources/images/image.jpg'); + background-attachment: fixed; + width: 100%; + height: 300px; + } + + .content-box { + display: flex; + flex-wrap: wrap; + justify-content: center; + top: -80px; + position: relative; + } + + .boxes { + margin: 20px; + border: 1px solid darkgray; + } + + .boxes > div { + border-bottom: 1px solid transparent; + overflow: hidden; + } + + img { + max-width: 100%; + transition: all 0.3s; + } + + .boxes div:first-child:hover img { + transform: scale(1.1); + } + + .paragraphs { + padding: 10px; + } + + .nav-box { + border-top: 1px solid darkgray; + padding: 5px 0 5px 10px; + display: flex; + justify-content: space-between; + } + + .nav-box div:nth-child(2) a { + padding-right: 5px; + } + + .nav-box div:nth-child(2) a:hover{ + background-color: lightgray; + padding: 5px; + margin-right: 3px; + } + + .links a{ + color: dimgray; + padding: 5px; + } + + .links a:hover{ + color: darkgray; + } + + .footer-content { + display: flex; + padding: 0 0 20px 20px; + } + + footer { + background-color: rgb(149, 112, 213); + color: white; + margin-top: -80px; + } + + footer h1 { + font-size: 16px; + margin: 20px 0; + } + + .fcontent { + width: 25%; + padding-right: 20px; + } + + .fcontent ul { + list-style: none; + padding-left: 0; + } + + .fcontent p { + margin: 0; + } + + ul li { + margin-bottom: 5px; + border-bottom: 1px solid rgba(255, 255, 255, .1); + } + + ul li span { + float: right; + } + + .img-box.small-sc img { + padding-bottom: 3px + } + + @media screen and (max-width: 425px) and (min-width: 390px) { + .boxes { + margin: 10px 40px; + } + } + + @media only screen and (min-width: 425px) { + .boxes { + width: 350px; + } + } + + @media only screen and (max-width: 1024px) { + .footer-content { + flex-wrap: wrap; + justify-content: space-between; + } + + .fcontent { + width: 45%; + } + + .img-box.small-sc { + width: 80%; + } + } + + @media only screen and (max-width: 784px){ + .footer-content { + flex-direction: column; + justify-content: center; + padding: 60px 0; + } + + .fcontent { + text-align: center; + width: 100%; + padding: 10px 0; + } + + .container { + display: none; + } + } + + @media only screen and (max-width: 784px) and (min-width: 426px) { + .boxes { + margin: 15px; + } + } \ No newline at end of file diff --git a/src/015-flex/example/index.html b/src/015-flex/example/index.html index 107af79..0e9b36c 100644 --- a/src/015-flex/example/index.html +++ b/src/015-flex/example/index.html @@ -36,19 +36,19 @@