From 95bfedd6bcce6a8319e6f83dd2b6e1a9221c441a Mon Sep 17 00:00:00 2001 From: Daniel Terry Date: Thu, 21 May 2020 22:17:11 -0400 Subject: [PATCH 1/4] started working on nav --- css/index.css | 8 +- index.css | 262 +++++++++++++++++++++++++++++++++++++++++++ index.html | 16 ++- less/index.less | 7 ++ less/mixins.less | 9 +- less/navigation.less | 30 ++++- less/variables.less | 6 +- 7 files changed, 332 insertions(+), 6 deletions(-) create mode 100644 index.css diff --git a/css/index.css b/css/index.css index e764f2b01f..48e8d9d364 100644 --- a/css/index.css +++ b/css/index.css @@ -1 +1,7 @@ -/* LESS needs to be processed */ \ No newline at end of file +@import "variables"; +@import "mixins"; +@import "reset"; +@import "global"; +@import "navigation"; +@import "footer"; +@import "home-page"; diff --git a/index.css b/index.css new file mode 100644 index 0000000000..ef05075eb3 --- /dev/null +++ b/index.css @@ -0,0 +1,262 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +img, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +b, +u, +i, +center, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +article, +aside, +canvas, +details, +embed, +figure, +figcaption, +footer, +header, +hgroup, +menu, +nav, +output, +ruby, +section, +summary, +time, +mark, +audio, +video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +menu, +nav, +section { + display: block; +} +body { + line-height: 1; +} +ol, +ul { + list-style: none; +} +blockquote, +q { + quotes: none; +} +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} +* { + box-sizing: border-box; +} +html { + font-size: 62.5%; +} +html, +body { + font-family: 'Roboto', sans-serif; +} +h1, +h2, +h3, +h4, +h5 { + font-family: 'Indie Flower', cursive; +} +h1 { + font-size: 4rem; +} +h2 { + font-size: 3.2rem; + padding-bottom: 10px; +} +h4 { + font-size: 2.5rem; + padding-bottom: 10px; +} +p { + line-height: 1.5; + font-size: 1.6rem; + padding-bottom: 10px; +} +img { + max-width: 100%; + height: auto; +} +.container { + max-width: 800px; + width: 100%; + margin: 0 auto; +} +header { + display: flex; + justify-content: space-evenly; + align-items: center; +} +@media (max-width:500px) { + header { + display: flex; + justify-content: space-between; + align-items: center; + flex-direction: column; + } +} +@media (max-width:500px) { + header h1 { + margin: 15px; + } +} +header .main-nav ul { + display: flex; + justify-content: space-evenly; + align-items: center; + flex-wrap: wrap; +} +@media (max-width:500px) { + header .main-nav ul { + display: flex; + justify-content: space-evenly; + align-items: flex-end; + } +} +header .main-nav ul li { + margin-left: 15px; + font-size: 1.2rem; +} +.footer { + width: 100%; + border-top: 2px dashed silver; + background: #FFEBCD; +} +.footer p { + text-align: center; + color: #212529; + font-size: 1.6rem; + padding: 20px; +} +.home .content-section { + margin: 30px 0; + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} +.home .content-section .text-content { + width: 48%; + padding-right: 1%; +} +.home .content-section .img-content { + width: 48%; + padding-left: 1%; +} +.home .content-section .img-content img { + border-radius: 10px; +} +.home .inverse-content { + padding-bottom: 30px; + border-bottom: 2px dashed #C0C0C0; +} +.home .inverse-content .text-content { + padding-left: 1%; + padding-right: 0; +} +.home .inverse-content .img-content { + padding-right: 1%; + padding-left: 0; +} +.home .content-destination { + width: 75%; + margin: 0 auto 30px; +} +.home .content-destination img { + border-radius: 10px; +} +.home .content-pick { + padding-top: 30px; + border-top: 2px dashed #C0C0C0; + display: flex; + justify-content: space-between; +} +.home .content-pick .destination { + width: 30%; + margin-bottom: 30px; +} diff --git a/index.html b/index.html index bb8663b768..70ff78bacb 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ Fun Bus Travel Agency - Solution - +