diff options
author | ADRN <adrien@luxeylab.net> | 2021-10-23 23:22:39 +0200 |
---|---|---|
committer | ADRN <adrien@luxeylab.net> | 2021-10-24 20:00:23 +0200 |
commit | 1ace9d27592b1c3e365f242ce2076636c12f4ee6 (patch) | |
tree | a8392a5192ad14ad7bbea5ac1dc4b54fae7f7424 /assets | |
parent | f898676f3e9d029fe1e067e6139063f6027888dd (diff) | |
download | design-1ace9d27592b1c3e365f242ce2076636c12f4ee6.tar.gz design-1ace9d27592b1c3e365f242ce2076636c12f4ee6.zip |
Flex menu on its way
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/blueprint.css | 145 | ||||
-rw-r--r-- | assets/fonts/firasans-regular.css | 8 |
2 files changed, 116 insertions, 37 deletions
diff --git a/assets/css/blueprint.css b/assets/css/blueprint.css index f4452d6..5c3c67d 100644 --- a/assets/css/blueprint.css +++ b/assets/css/blueprint.css @@ -4,55 +4,134 @@ @import url("../fonts/firasans-regular.css"); html, body { - background-color: white; - font-family: "Space Mono", Monaco, monospace !important; + background-color: white; + font-family: "Space Mono", Monaco, monospace !important; } p { - font-family: "Fira Sans"; + font-family: "Fira Sans", sans-serif; } -header { - background-image: url("../images/ronce/illustration-ronce_1200x765px.png"); - height: 100vh; - width: 100vw; - /* Create the parallax scrolling effect */ - /* background-attachment: fixed; */ - background-position: center; - /* background-repeat: no-repeat; */ - background-repeat: no-repeat; - background-size: cover; - margin-bottom: 5rem; + +nav { + background: white; + background: rgba(255, 255, 255, .8); + z-index: 10; + /*padding: 1rem 2rem;*/ + + position: fixed; + width: 100%; + /*position: -webkit-sticky; + position: sticky; + top: 0;*/ + + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: stretch; + -ms-flex-align: stretch; + align-items: stretch; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; } -header > p { - width: 40%; - position: relative; - left: 55%; - bottom: -75%; - text-align: right; +nav a { + display: block; + padding: 1rem 2rem; + line-height: 1; + + font-weight: bold; + text-decoration: none; + + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +nav h1 { + margin: 0; +} +nav .home { + font-weight: normal; + font-size: 2rem; } -header > nav { - background: none; - position: fixed; - width: 100vw; +nav .nav-left, nav .nav-right { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; +} +nav .nav-left { + -webkit-box-pack: start; + -ms-flex-pack: start; + justify-content: flex-start; +} +nav .nav-right { + -webkit-box-pack: end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +nav ul { + margin: 0; + list-style: none; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; } -nav.nav a { - font-weight: bold; +header { + height: 100vh; + width: 100%; + background-image: url("../images/ronce/illustration-ronce_1200x765px.png"); + /* Create the parallax scrolling effect */ + /*background-attachment: fixed;*/ + background-position: center; + background-repeat: no-repeat; + background-size: cover; + margin-bottom: 5rem; + padding: 0; } -header > p, header > nav.nav a { - color: white; - /* color | offset-x | offset-y | blur-radius */ - text-shadow: black 0px 0px 4px; +header > p { + width: 40%; + position: relative; + left: 55%; + bottom: -75%; + text-align: right; +} + + +header > p, nav a { + color: white; + /* color | offset-x | offset-y | blur-radius */ + text-shadow: black 0px 0px 4px; + margin: 0; } footer { - border-top: black solid 2px; - margin-top: 3rem; - padding-top: 2rem; + border-top: black solid 2px; + margin-top: 3rem; + padding-top: 2rem; }
\ No newline at end of file diff --git a/assets/fonts/firasans-regular.css b/assets/fonts/firasans-regular.css index 5602ad4..7bca780 100644 --- a/assets/fonts/firasans-regular.css +++ b/assets/fonts/firasans-regular.css @@ -1,24 +1,24 @@ @font-face { font-family: 'Fira Sans'; - src: url('../fonts/spacemono/FiraSans-BoldItalic.ttf') format('truetype'); + src: url('../fonts/firasans/FiraSans-BoldItalic.ttf') format('truetype'); font-weight: bold; font-style: italic; } @font-face { font-family: 'Fira Sans'; - src: url('../fonts/spacemono/FiraSans-Bold.ttf') format('truetype'); + src: url('../fonts/firasans/FiraSans-Bold.ttf') format('truetype'); font-weight: bold; font-style: normal; } @font-face { font-family: 'Fira Sans'; - src: url('../fonts/spacemono/FiraSans-Italic.ttf') format('truetype'); + src: url('../fonts/firasans/FiraSans-Italic.ttf') format('truetype'); font-weight: normal; font-style: italic; } @font-face { font-family: 'Fira Sans'; - src: url('../fonts/spacemono/FiraSans-Regular.ttf') format('truetype'); + src: url('../fonts/firasans/FiraSans-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }
\ No newline at end of file |