Project 2: Habit Tracker: Styling the habit tracker (+60, -0)
main.css (+60, -0)
From:
curriculum/section10/lectures/03_styling_habit_tracker/start/static/css/main.css
To:
curriculum/section10/lectures/03_styling_habit_tracker/end/static/css/main.css
index 301981e..9ca9aa1 100644
--- a/curriculum/section10/lectures/03_styling_habit_tracker/start/static/css/main.css
+++ b/curriculum/section10/lectures/03_styling_habit_tracker/end/static/css/main.css
@@ -8,3 +8,63 @@ body {
box-sizing: border-box;
font-family: "Inter", sans-serif;
}
+
+.header {
+ display: flex;
+ background: #000;
+ color: #fff;
+ justify-content: space-between;
+ align-items: center;
+ border-radius: 6px 6px 0px 0px;
+}
+
+.header,
+.main {
+ max-width: 40rem;
+ margin: 0 auto;
+ padding: 1rem;
+}
+
+.header__link {
+ text-decoration: none;
+ color: inherit;
+ transition: color 0.1s ease-in-out;
+}
+
+.header__link:hover {
+ color: #f9dba0;
+}
+
+.header__logo {
+ margin: 0;
+ font-size: 1.5rem;
+}
+
+/* The form class is used for the form where new habits are added. It's not for
+all form elements */
+.form {
+ display: flex;
+ flex-direction: column;
+ font-size: 1.1rem;
+}
+
+.form__input {
+ padding: 1rem;
+ font-family: inherit;
+ font-size: inherit;
+ resize: none;
+ border: 3px solid #000;
+ border-radius: 6px;
+ background: #fafafa;
+ margin-bottom: 1rem;
+}
+
+.form__button {
+ font-size: inherit;
+ background: #f9dba0;
+ cursor: pointer;
+ border-radius: 6px;
+ padding: 0.5rem 2.5rem;
+ align-self: flex-end;
+ border: none;
+}