From fab2f8a03bdd1ff63d723f4c9b3c1b39b1db0a95 Mon Sep 17 00:00:00 2001 From: tlawlor15 Date: Mon, 7 Oct 2024 21:03:16 -0400 Subject: [PATCH] adding all exercises --- .github/PULL_REQUEST_TEMPLATE.md | 32 --------------- flex/01-flex-center/style.css | 3 ++ flex/02-flex-header/style.css | 11 ++++- flex/03-flex-header-2/index.html | 26 +++++++----- flex/03-flex-header-2/style.css | 13 ++++++ flex/04-flex-information/index.html | 33 ++++++++------- flex/04-flex-information/style.css | 7 ++++ flex/05-flex-modal/index.html | 15 ++++--- flex/05-flex-modal/style.css | 23 +++++++++++ flex/06-flex-layout/style.css | 40 ++++++++++++++++++ flex/07-flex-layout-2/index.html | 35 ++++++++-------- flex/07-flex-layout-2/style.css | 41 +++++++++++++++++++ foundations/01-css-methods/index.html | 11 ++++- foundations/01-css-methods/styles.css | 9 ++++ foundations/02-class-id-selectors/index.html | 10 ++--- foundations/02-class-id-selectors/style.css | 21 ++++++++++ foundations/03-grouping-selectors/index.html | 6 +-- foundations/03-grouping-selectors/style.css | 14 +++++++ foundations/04-chaining-selectors/style.css | 12 +++++- .../05-descendant-combinator/style.css | 6 +++ foundations/06-cascade-fix/style.css | 10 ++++- .../01-margin-and-padding-1/style.css | 11 ++--- .../02-margin-and-padding-2/style.css | 18 ++++++++ 23 files changed, 310 insertions(+), 97 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 foundations/01-css-methods/styles.css diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 1edf6010f7e..00000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,32 +0,0 @@ - - -## Because - - - -## This PR - - - -## Issue - -Closes #XXXXX - -## Additional Information - - - -## Pull Request Requirements - -- [ ] I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md) -- [ ] The title of this PR follows the `location of change: brief description of change` format, e.g. `01-flex-center: Update self check` -- [ ] The `Because` section summarizes the reason for this PR -- [ ] The `This PR` section has a bullet point list describing the changes in this PR -- [ ] If this PR addresses an open issue, it is linked in the `Issue` section -- [ ] If applicable, I have ensured that the TOP solution files match the Desired Outcome image diff --git a/flex/01-flex-center/style.css b/flex/01-flex-center/style.css index e35feacd28d..52dbe94f0a5 100644 --- a/flex/01-flex-center/style.css +++ b/flex/01-flex-center/style.css @@ -3,6 +3,9 @@ border: 4px solid midnightblue; width: 400px; height: 300px; + display: flex; + justify-content: center; + align-items: center; } .box { diff --git a/flex/02-flex-header/style.css b/flex/02-flex-header/style.css index cb598c93548..07e5f098cf0 100644 --- a/flex/02-flex-header/style.css +++ b/flex/02-flex-header/style.css @@ -1,6 +1,10 @@ .header { font-family: monospace; background: papayawhip; + display: flex; + align-items: center; + justify-content: space-between; + padding: 8px } .logo { @@ -9,11 +13,16 @@ color: tomato; background: white; padding: 4px 32px; + justify-content: center; } ul { /* this removes the dots on the list items*/ list-style-type: none; + display: flex; + margin: 0; + padding: 0; + gap: 8px; } a { @@ -22,4 +31,4 @@ a { padding: 8px; /* this removes the line under the links */ text-decoration: none; -} \ No newline at end of file +} diff --git a/flex/03-flex-header-2/index.html b/flex/03-flex-header-2/index.html index 21d56170b0b..5fabc457da0 100644 --- a/flex/03-flex-header-2/index.html +++ b/flex/03-flex-header-2/index.html @@ -9,18 +9,22 @@
- \ No newline at end of file diff --git a/flex/03-flex-header-2/style.css b/flex/03-flex-header-2/style.css index bf4c8af10d4..9193c64faab 100644 --- a/flex/03-flex-header-2/style.css +++ b/flex/03-flex-header-2/style.css @@ -12,6 +12,9 @@ body { background: white; border-bottom: 1px solid #ddd; box-shadow: 0 0 8px rgba(0,0,0,.1); + display: flex; + padding: 8px; + justify-content: space-between; } .profile-image { @@ -45,4 +48,14 @@ a { ul { list-style-type: none; + display: flex; + gap: 16px; + margin: 0; + padding: 0; } + +.left, .right { + display: flex; + align-items: center; + gap: 16px; +} \ No newline at end of file diff --git a/flex/04-flex-information/index.html b/flex/04-flex-information/index.html index 3cc3efd262a..88d9bb104e6 100644 --- a/flex/04-flex-information/index.html +++ b/flex/04-flex-information/index.html @@ -8,20 +8,25 @@ -
Information!
- - barberry -
This is a type of plant. We love this one.
- - chili -
This is another type of plant. Isn't it nice?
- - pepper -
We have so many plants. Yay plants.
- - saffron -
I'm running out of things to say about plants.
- +
+
Information!
+
+ barberry +
This is a type of plant. We love this one.
+
+
+ chili +
This is another type of plant. Isn't it nice?
+
+
+ pepper +
We have so many plants. Yay plants.
+
+
+ saffron +
I'm running out of things to say about plants.
+
+