diff --git a/app/assets/stylesheets/colors.css b/app/assets/stylesheets/colors.css new file mode 100644 index 0000000..9051222 --- /dev/null +++ b/app/assets/stylesheets/colors.css @@ -0,0 +1,5 @@ +:root { + --inset-bg-color: #eee; + + --border-radius: .5em; +} diff --git a/app/assets/stylesheets/forms.css b/app/assets/stylesheets/forms.css new file mode 100644 index 0000000..20a230b --- /dev/null +++ b/app/assets/stylesheets/forms.css @@ -0,0 +1,22 @@ +form { + display: grid; + gap: 1rem; + grid-template-columns: 1fr 2fr; + + input, label { + padding: .5em; + } + + label { + grid-column: 1; + text-align: right; + } + + input { + grid-column: 2; + } + + input[type="submit"] { + grid-column: 1/3; + } +} diff --git a/app/assets/stylesheets/layout.css b/app/assets/stylesheets/layout.css new file mode 100644 index 0000000..5ce12c7 --- /dev/null +++ b/app/assets/stylesheets/layout.css @@ -0,0 +1,27 @@ +* { + box-sizing: border-box; +} + +body { + font-size: 1.1em; + margin: 0 auto; + max-width: 80em; +} + +main { + display: flex; + flex-direction: column; +} + +section.inset { + width: 70%; + max-width: 60em; + background-color: var(--inset-bg-color); + border-radius: var(--border-radius); + padding: 1em; + margin: 0 auto; +} + +h1, h2 { + text-align: center; +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a7c1096..11af577 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -17,6 +17,8 @@