From 5a39c4983bbed11624f9fb2f2ceb5cea7e018bf9 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Mon, 4 Oct 2021 11:30:35 -0600 Subject: [PATCH] Start separate stylesheet for submit page --- public/stylesheets/style.css | 4 ---- public/stylesheets/submit.css | 4 ++++ views/index.pug | 3 +++ views/layout.pug | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 public/stylesheets/submit.css diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 5f4624e..4f3025f 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -7,7 +7,3 @@ a { color: #00B7FF; } -form { - display: flex; - flex-direction: column; -} \ No newline at end of file diff --git a/public/stylesheets/submit.css b/public/stylesheets/submit.css new file mode 100644 index 0000000..df8ee7a --- /dev/null +++ b/public/stylesheets/submit.css @@ -0,0 +1,4 @@ +form { + display: flex; + flex-direction: column; +} \ No newline at end of file diff --git a/views/index.pug b/views/index.pug index 0b587c6..9cc4f1b 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,5 +1,8 @@ extends layout +block stylesheets + link(rel='stylesheet', href='/stylesheets/submit.css') + block content h1 Submit Score form(action='/submit', method='POST') diff --git a/views/layout.pug b/views/layout.pug index 15af079..f91cc8c 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -2,6 +2,7 @@ doctype html html head title= title - link(rel='stylesheet', href='/stylesheets/style.css') + block stylesheets + link(rel='stylesheet', href='/stylesheets/style.css') body block content