diff --git a/01/1280px-Haupteingang_Oktoberfest_2012.jpg b/01/1280px-Haupteingang_Oktoberfest_2012.jpg new file mode 100644 index 00000000..2754be6d Binary files /dev/null and b/01/1280px-Haupteingang_Oktoberfest_2012.jpg differ diff --git a/01/Capture.PNG b/01/Capture.PNG new file mode 100644 index 00000000..e4f3f55c Binary files /dev/null and b/01/Capture.PNG differ diff --git a/01/index.html b/01/index.html index 194076af..ade71cec 100644 --- a/01/index.html +++ b/01/index.html @@ -1,12 +1,193 @@ - - - - - devmentor.pl - HTML & CSS BASICS - #01 - - - - - \ No newline at end of file + + + + + NG Dev - Home + + +
+ Logo NG Dev + +
+
+
+

Visit Oktoberfest in Germany

+ Oktoberfest main entrance +

+ Oktoberfest in Germany, held annually in Munich, is the world's + largest folk festival, attracting millions of visitors. It is famous + for its traditional Bavarian beer served in massive tents, lively + music, and hearty food like pretzels, sausages, and roast chicken.
+ Visitors wear traditional outfits like lederhosen and dirndls, adding + to the festive atmosphere. Beyond beer, Oktoberfest features amusement + rides, parades, and cultural performances, making it a unique blend of + tradition and celebration.
+
+ Neil Gorski +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Oktoberfest statistics +
YearAttendence (Million)Beer Consupsion (Million Liters)Notes
20246.77.0Beer prices reached up to €15 per liter
20237.26.5 + Record attendance; increase in non-alcoholic drinks (+50%) and + food sales (+15%) +
20225.77.1Festival returns after two-year break
202100Canceled due to COVID-19
202000Canceled due to COVID-19
+
+
+
+
+ Have you already been there? +
+
+
+
+ +
+
+
+
+
+ Flynn Wilson
+ +

+ As I stepped into Oktoberfest, the energy was electric—music, + laughter, and the clinking of massive beer steins filled the air. + Dressed in my freshly bought lederhosen, I found a spot in a packed + beer tent, where strangers quickly became friends over a shared Maß. + The rich aroma of roasted chicken and pretzels tempted me between + sips of the smoothest beer I’d ever tasted. As the brass band + played, I stood on the bench, singing along with thousands of + others, completely lost in the moment. Under the glowing festival + lights, I knew—I’d be back next year. +

+
+ +
+ Ruth Byrd
+ +

+ The moment I entered Oktoberfest, I was swept up in a whirlwind of + music, laughter, and the smell of sizzling bratwurst. I grabbed a + Maß of golden beer, its foam spilling over as I toasted with + strangers who felt like old friends. The band struck up a lively + tune, and before I knew it, I was standing on a bench, singing at + the top of my lungs. Between bites of warm pretzels and spinning + rides, I felt pure joy. As the night ended, I smiled, knowing this + was an experience I’d never forget. +

+
+
+ Fatimah Best
+ +

+ As I stepped into Oktoberfest, I expected a dreamlike festival, but + the reality was different. The crowds were overwhelming, pushing in + every direction, and finding a seat in a beer tent felt impossible. + When I finally got a Maß, the price nearly made me choke—€15 for a + single beer! The music was deafening, and after hours of standing + shoulder to shoulder with sweaty strangers, the excitement faded. + The lines for food were endless, and even the famous pretzel felt + dry and overpriced. As I left, dodging puddles of spilled beer, I + couldn’t help but think—maybe Oktoberfest just isn’t for me. +

+
+
+
+ + + diff --git a/02/styles/index.css b/02/styles/index.css index 6f4fd057..6897df48 100644 --- a/02/styles/index.css +++ b/02/styles/index.css @@ -7,7 +7,7 @@ Znacznik label, którego przodkiem jest klasa .ac-container (0, 1, 1) */ -?? { + .ac-container label { height: 30px !important; line-height: 21px !important; font-size: 12px !important; @@ -47,7 +47,7 @@ Zmiana koloru tła po najechaniu przez kursor myszy na znacznik label, który znajduje się wewnątrze elementu o klasie .ac-container (0, 2, 1) */ -?? { +.ac-container > label:hover { background: #fff; } @@ -61,8 +61,8 @@ i ten brat musi posiadać przodka o klasie .ac-container to samo co w 1) ale z efektem najechania kursorem na label (0, 3, 2) */ -??, -?? { +.ac-container input:checked + label, +.ac-container input:checked + label:hover { background: #f1f2f3; color: #666; text-shadow: 0 1px 1px rgba(255,255,255,0.6); @@ -89,7 +89,7 @@ którego poprzedni brat jest zaznaczonym inputem (użyj pseudoklasy), którego przodek to element o klasie .ac-container (0, 3, 3) */ -?? { +.ac-container input:checked + label:hover:after { background-image: url(../images/arrow_up.png); } @@ -126,7 +126,7 @@ Rodzeństwo o typie article, dla elementu input, który jest zaznaczony (użyj p oraz posiada przodka o klasie .ac-container (0, 2, 2) */ -?? { +.ac-container input:active ~ article { -webkit-transition: height 0.5s ease-in-out,box-shadow 0.1s linear; -moz-transition: height 0.5s ease-in-out,box-shadow 0.1s linear; -o-transition: height 0.5s ease-in-out,box-shadow 0.1s linear; diff --git a/03/fonts/source-sans-pro/SIL Open Font License.txt b/03/fonts/source-sans-pro/SIL Open Font License.txt new file mode 100644 index 00000000..295975a5 --- /dev/null +++ b/03/fonts/source-sans-pro/SIL Open Font License.txt @@ -0,0 +1,43 @@ +Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/03/fonts/source-sans-pro/SourceSansPro-Black.otf b/03/fonts/source-sans-pro/SourceSansPro-Black.otf new file mode 100644 index 00000000..0c25f3d9 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-Black.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-BlackIt.otf b/03/fonts/source-sans-pro/SourceSansPro-BlackIt.otf new file mode 100644 index 00000000..da3504c6 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-BlackIt.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-Bold.otf b/03/fonts/source-sans-pro/SourceSansPro-Bold.otf new file mode 100644 index 00000000..98dbee74 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-Bold.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-BoldIt.otf b/03/fonts/source-sans-pro/SourceSansPro-BoldIt.otf new file mode 100644 index 00000000..6600c863 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-BoldIt.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-ExtraLight.otf b/03/fonts/source-sans-pro/SourceSansPro-ExtraLight.otf new file mode 100644 index 00000000..f885ce7f Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-ExtraLight.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-ExtraLightIt.otf b/03/fonts/source-sans-pro/SourceSansPro-ExtraLightIt.otf new file mode 100644 index 00000000..f9320242 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-ExtraLightIt.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-It.otf b/03/fonts/source-sans-pro/SourceSansPro-It.otf new file mode 100644 index 00000000..2d627d9c Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-It.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-Light.otf b/03/fonts/source-sans-pro/SourceSansPro-Light.otf new file mode 100644 index 00000000..159979f6 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-Light.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-LightIt.otf b/03/fonts/source-sans-pro/SourceSansPro-LightIt.otf new file mode 100644 index 00000000..e3d49b5f Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-LightIt.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-Regular.otf b/03/fonts/source-sans-pro/SourceSansPro-Regular.otf new file mode 100644 index 00000000..bdcfb27a Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-Regular.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-Semibold.otf b/03/fonts/source-sans-pro/SourceSansPro-Semibold.otf new file mode 100644 index 00000000..fffdbafe Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-Semibold.otf differ diff --git a/03/fonts/source-sans-pro/SourceSansPro-SemiboldIt.otf b/03/fonts/source-sans-pro/SourceSansPro-SemiboldIt.otf new file mode 100644 index 00000000..e90515b3 Binary files /dev/null and b/03/fonts/source-sans-pro/SourceSansPro-SemiboldIt.otf differ diff --git a/03/index.html b/03/index.html index 0c018343..382c2ac8 100644 --- a/03/index.html +++ b/03/index.html @@ -1,38 +1,54 @@ - - - - + + + + + + devmentor.pl - HTML & CSS BASICS - #03 - - - -
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?
+ + +
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, + asperiores. +
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis + praesentium in possimus! +
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure? +
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, + asperiores. +
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis + praesentium in possimus! +
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure? +
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, + asperiores. +
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis + praesentium in possimus! +
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure? +
- - \ No newline at end of file + + diff --git a/03/styles/reset.css b/03/styles/reset.css new file mode 100644 index 00000000..ca67d254 --- /dev/null +++ b/03/styles/reset.css @@ -0,0 +1,89 @@ +html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {margin: 0; padding: 0; border: 0; font-size: 100%; font-weight: normal; vertical-align: baseline; background: transparent;} + +main, article, aside, figure, footer, header, nav, section, details, summary {display: block;} + +html {box-sizing: border-box;} + +*, *:before, *:after {box-sizing: inherit;} + +img {max-width: 100%;} + +ul {list-style: none;} /* we'll restore bullets as needed for content */ + +blockquote, q {quotes: none;} + +blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;} + +a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;} + +del {text-decoration: line-through;} + +abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;} + +table {border-collapse: separate; border-spacing: 0; text-align: left;} +th {font-weight: bold; vertical-align: bottom;} +td {font-weight: normal; vertical-align: top;} +td img {vertical-align: top;} + +hr {display: block; height: 1px; border: 0; border-top: 1px solid #999; margin: 1rem 0; padding: 0;} + +input, select {vertical-align: middle;} + +pre {white-space: pre-line;} + +input[type="radio"] {vertical-align: text-bottom;} +input[type="checkbox"] {vertical-align: bottom;} + +small {font-size: .8rem;} + +strong {font-weight: bold;} + +sub, sup {font-size: .8rem; line-height: 0; position: relative;} +sup {top: -0.5rem;} +sub {bottom: -0.25rem;} + +pre, code, kbd, samp {font-family: monospace, sans-serif;} + +label, input[type=button], input[type=submit], input[type=file], button {cursor: pointer;} + +button, input, select, textarea {margin: 0;} + +ins {background-color: var(--highlight-color); color: #000; text-decoration: none;} +mark {background-color: var(--highlight-color); color: #000; font-style: italic; font-weight: bold;} + +blockquote {padding: 2rem; border-left: 1px solid #333;} + +.clearfix:after {content: ""; display: table; clear: both;} /* https://css-tricks.com/snippets/css/clear-fix/ */ + +h1, h2, h3, h4, h5, h6 {text-wrap: balance} + +p {text-wrap: pretty;} + +@media (prefers-reduced-motion: no-preference) { + :has(:target) { + scroll-behavior: smooth; + } +} + +/* ———— END THE GENERIC RESETS ———— */ + +:root { + --font-system: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* https://css-tricks.com/snippets/css/system-font-stack */ + --text-color: #333; + --featured-color: #03f; + --featured-color-hover: #69f; + --highlight-color: #fcd700; +} + +body {font-size: 16px; font-family: var(--font-system); color: var(--text-color);} + +a {color: var(--featured-color);} +a:hover {color: var(--featured-color-hover);} + +@media screen and (max-width: 480px) { + +} + +@media print { + +} \ No newline at end of file diff --git a/03/styles/style.css b/03/styles/style.css new file mode 100644 index 00000000..823388ee --- /dev/null +++ b/03/styles/style.css @@ -0,0 +1,69 @@ +/* To see the outlines of the Element uncomment the CSS rules*/ + +@font-face { + font-family: "Source Sans PRO"; + src: url("./fonts/source-sans-pro/SourceSansPro-Regular.otf") format("opentype"); + font-style: normal; + font-weight: normal; +} +@font-face { + font-family: "Source Sans PRO"; + src: url("./fonts/source-sans-pro/SourceSansPro-Bold.otf") format("opentype"); + font-style: normal; + font-weight: bold; +} +@font-face { + font-family: "Source Sans PRO"; + src: url("./fonts/source-sans-pro/SourceSansPro-It.otf") format("opentype"); + font-style: italic; + font-weight: normal; +} + +.parent { + width: 600px; + padding: 20px; + /* outline: 1px solid rgb(34, 3, 3); */ +} + +.parent--inline-block .child{ + display: inline-block; + white-space: wrap; +} + +.parent--float::after { + content: ""; + display: block; + clear: both; +} + +.parent--float .child{ + float: left; +} + +.parent--flexbox { + display: flex; +} + +/* .child { +outline: 1px solid red; +} */ + + +.child:nth-child(1) { + width: calc(30% - 5px); + font-family: "Source Sans PRO", "Times New Roman", "serif"; + font-style: normal; +} +.child:nth-child(2) { + width: calc(30% - 10px); + font-family: "Source Sans PRO", "Times New Roman", "serif"; + font-weight: bold; +} +.child:nth-child(3) { + width: calc(40% - 5px); + font-family: "Source Sans PRO", "Times New Roman", "serif"; + font-style: italic; +} +.child--middle { + margin: 0 10px ; +} \ No newline at end of file diff --git a/04/index.html b/04/index.html new file mode 100644 index 00000000..a0fb1432 --- /dev/null +++ b/04/index.html @@ -0,0 +1,30 @@ + + + + + + + + Nav Demo + + + + + diff --git a/04/styles/reset.css b/04/styles/reset.css new file mode 100644 index 00000000..ca67d254 --- /dev/null +++ b/04/styles/reset.css @@ -0,0 +1,89 @@ +html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {margin: 0; padding: 0; border: 0; font-size: 100%; font-weight: normal; vertical-align: baseline; background: transparent;} + +main, article, aside, figure, footer, header, nav, section, details, summary {display: block;} + +html {box-sizing: border-box;} + +*, *:before, *:after {box-sizing: inherit;} + +img {max-width: 100%;} + +ul {list-style: none;} /* we'll restore bullets as needed for content */ + +blockquote, q {quotes: none;} + +blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;} + +a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;} + +del {text-decoration: line-through;} + +abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;} + +table {border-collapse: separate; border-spacing: 0; text-align: left;} +th {font-weight: bold; vertical-align: bottom;} +td {font-weight: normal; vertical-align: top;} +td img {vertical-align: top;} + +hr {display: block; height: 1px; border: 0; border-top: 1px solid #999; margin: 1rem 0; padding: 0;} + +input, select {vertical-align: middle;} + +pre {white-space: pre-line;} + +input[type="radio"] {vertical-align: text-bottom;} +input[type="checkbox"] {vertical-align: bottom;} + +small {font-size: .8rem;} + +strong {font-weight: bold;} + +sub, sup {font-size: .8rem; line-height: 0; position: relative;} +sup {top: -0.5rem;} +sub {bottom: -0.25rem;} + +pre, code, kbd, samp {font-family: monospace, sans-serif;} + +label, input[type=button], input[type=submit], input[type=file], button {cursor: pointer;} + +button, input, select, textarea {margin: 0;} + +ins {background-color: var(--highlight-color); color: #000; text-decoration: none;} +mark {background-color: var(--highlight-color); color: #000; font-style: italic; font-weight: bold;} + +blockquote {padding: 2rem; border-left: 1px solid #333;} + +.clearfix:after {content: ""; display: table; clear: both;} /* https://css-tricks.com/snippets/css/clear-fix/ */ + +h1, h2, h3, h4, h5, h6 {text-wrap: balance} + +p {text-wrap: pretty;} + +@media (prefers-reduced-motion: no-preference) { + :has(:target) { + scroll-behavior: smooth; + } +} + +/* ———— END THE GENERIC RESETS ———— */ + +:root { + --font-system: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* https://css-tricks.com/snippets/css/system-font-stack */ + --text-color: #333; + --featured-color: #03f; + --featured-color-hover: #69f; + --highlight-color: #fcd700; +} + +body {font-size: 16px; font-family: var(--font-system); color: var(--text-color);} + +a {color: var(--featured-color);} +a:hover {color: var(--featured-color-hover);} + +@media screen and (max-width: 480px) { + +} + +@media print { + +} \ No newline at end of file diff --git a/04/styles/style.css b/04/styles/style.css new file mode 100644 index 00000000..9f72292d --- /dev/null +++ b/04/styles/style.css @@ -0,0 +1,96 @@ +body { + background-color: #F7F7F7; +} + +.navbar { + background-color: #FFFFFF; + margin: 20px 12px; +} + +.navbar > ul { + display: flex; + position: relative; +} + +.navbar > ul > li{ + padding: 12px 18px; + color: #1BB8ED; + position: relative; +} +.navbar > ul > li:hover::before{ + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background-color: #1BB8ED; +} +.navbar > ul > li:nth-child(3), +.navbar > ul > li:nth-child(4) { + color: #000000; +} + +.navbar__dropdown { + position: relative; +} +.navbar__dropdown ul { + background-color: #333333; + color: #D9E2C1; +} +.navbar__dropdown ul li:hover { + background-color: #4b4a4a; + +} +.navbar__dropdown::after { + content: ">"; + display: inline-block; + transform: rotate(90deg); + + visibility: hidden; +} +.navbar__dropdown:hover::after{ + visibility: visible; +} + +.navbar__dropdown > ul { + position: absolute; + left: 0; + top: 100%; + display: none; +} +.navbar__dropdown:hover > ul { + display: block; +} + + +.navbar__dropdown > ul li { + padding: 5px 18px 5px 18px; + width: 175px; + font-size: 0.8rem; +} + +.navbar__dropdown > ul > li:nth-child(2)::after { + position: absolute; + display: inline-block; + content: ">"; + right: 8px; + visibility: hidden; +} +.navbar__dropdown > ul > li:nth-child(2):hover::after { + visibility: visible; +} + +.navbar__dropdown > ul > li > ul { + position: absolute; + left: 175px; + top: 27px; +} + +.navbar__dropdown--second { + display: none; +} + +li:hover > .navbar__dropdown--second { + display: block; +} \ No newline at end of file diff --git a/05/index.html b/05/index.html new file mode 100644 index 00000000..2baeccbe --- /dev/null +++ b/05/index.html @@ -0,0 +1,34 @@ + + + + + + 05-page-layout + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/05/styles/reset.css b/05/styles/reset.css new file mode 100644 index 00000000..ca67d254 --- /dev/null +++ b/05/styles/reset.css @@ -0,0 +1,89 @@ +html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {margin: 0; padding: 0; border: 0; font-size: 100%; font-weight: normal; vertical-align: baseline; background: transparent;} + +main, article, aside, figure, footer, header, nav, section, details, summary {display: block;} + +html {box-sizing: border-box;} + +*, *:before, *:after {box-sizing: inherit;} + +img {max-width: 100%;} + +ul {list-style: none;} /* we'll restore bullets as needed for content */ + +blockquote, q {quotes: none;} + +blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;} + +a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;} + +del {text-decoration: line-through;} + +abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;} + +table {border-collapse: separate; border-spacing: 0; text-align: left;} +th {font-weight: bold; vertical-align: bottom;} +td {font-weight: normal; vertical-align: top;} +td img {vertical-align: top;} + +hr {display: block; height: 1px; border: 0; border-top: 1px solid #999; margin: 1rem 0; padding: 0;} + +input, select {vertical-align: middle;} + +pre {white-space: pre-line;} + +input[type="radio"] {vertical-align: text-bottom;} +input[type="checkbox"] {vertical-align: bottom;} + +small {font-size: .8rem;} + +strong {font-weight: bold;} + +sub, sup {font-size: .8rem; line-height: 0; position: relative;} +sup {top: -0.5rem;} +sub {bottom: -0.25rem;} + +pre, code, kbd, samp {font-family: monospace, sans-serif;} + +label, input[type=button], input[type=submit], input[type=file], button {cursor: pointer;} + +button, input, select, textarea {margin: 0;} + +ins {background-color: var(--highlight-color); color: #000; text-decoration: none;} +mark {background-color: var(--highlight-color); color: #000; font-style: italic; font-weight: bold;} + +blockquote {padding: 2rem; border-left: 1px solid #333;} + +.clearfix:after {content: ""; display: table; clear: both;} /* https://css-tricks.com/snippets/css/clear-fix/ */ + +h1, h2, h3, h4, h5, h6 {text-wrap: balance} + +p {text-wrap: pretty;} + +@media (prefers-reduced-motion: no-preference) { + :has(:target) { + scroll-behavior: smooth; + } +} + +/* ———— END THE GENERIC RESETS ———— */ + +:root { + --font-system: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* https://css-tricks.com/snippets/css/system-font-stack */ + --text-color: #333; + --featured-color: #03f; + --featured-color-hover: #69f; + --highlight-color: #fcd700; +} + +body {font-size: 16px; font-family: var(--font-system); color: var(--text-color);} + +a {color: var(--featured-color);} +a:hover {color: var(--featured-color-hover);} + +@media screen and (max-width: 480px) { + +} + +@media print { + +} \ No newline at end of file diff --git a/05/styles/style.css b/05/styles/style.css new file mode 100644 index 00000000..cee91a00 --- /dev/null +++ b/05/styles/style.css @@ -0,0 +1,69 @@ +:root { + --green: #0ED145; + --blue: #00A8F3; + --orange: #FFCA18; +} + +body { + height: calc(100vh - 15px); + padding: 5px; +} + +header, +section, +footer { + width: 100%; + border: solid 3px var(--green); + display: flex; +} + +header, +footer { + height: 10%; +} + +section { + height: 40%; + margin: 5px 0; +} + +.container { + margin: auto; + width: 1000px; + height: calc(100% - 10px); + border: solid 3px var(--blue); + display: flex; + justify-content: space-between; + align-items: center; +} + +.container div { + height: calc(100% - 10px); + background-color: var(--orange); +} + +.header__container div:first-child { + width: 125px; +} + +.header__container div:last-child { + width: 400px; +} + +.section__container--top div { + width: calc(100% / 2 - 6px ); +} + +.section__bottom { + justify-content: space-around; +} +.section__container-bottom div { + width: calc(100% / 3 - 9px); +} + +.footer__container { + justify-content: center; +} +.footer__container div { + width: 15%; +} \ No newline at end of file