diff --git a/config/packages/translation.yaml b/config/packages/translation.yaml deleted file mode 100644 index 05a2b3d..0000000 --- a/config/packages/translation.yaml +++ /dev/null @@ -1,6 +0,0 @@ -framework: - default_locale: en - translator: - default_path: '%kernel.project_dir%/translations' - fallbacks: - - en diff --git a/public/styles/form.css b/public/styles/form.css new file mode 100644 index 0000000..f9f80d8 --- /dev/null +++ b/public/styles/form.css @@ -0,0 +1,80 @@ +form { + width: 100%; +} + +button, label { + font-family: 'Kanit', sans-serif; + font-weight: bold; +} + +input, button, textarea { + border-radius: 0; + font-weight: bold; + font-size: 1em; + padding: 0.2em; + margin-top: 0.5em; + margin-bottom: 0.5em; + margin-left: 0; + margin-right: 0.2em; +} + +input[type=text], +textarea { + background-color: var(--light); + border-width: 0 0 0 0.2em; + border-color: var(--secondary-light); + border-style: solid; + padding-left: 0.75em; + padding-top: 0.6em; + outline: none; +} + +input[type=text]:focus, +textarea:focus { + border-color: var(--secondary-dark); +} + +button { + color: black; + background-color: var(--light); + position: relative; + top: 0; + margin-left: 0; + margin-right: 0; + padding: 0.25em; + font-size: 1.25em; + border: none; + border-color: var(--dark); + box-shadow: 0 0.2em 0 var(--dark); + transition-property: box-shadow, border-radius, top; + transition-duration: 0.1s; + transition-timing-function: linear; + border-radius: 0; +} + +button:hover { + box-shadow: 0 0.2em 0.5em var(--dark); + border-radius: 0.5em; +} + +button:active { + top: 0.1em; +} + +label { + font-weight: bold; + margin-bottom: 0; +} + +label[class*=input-text-label] { + position: relative; + overflow: visible; + width: 0; + height: 0; + display: block; + white-space: nowrap; + left: 1.5em; + color: black; + font-weight: bold; + font-size: 0.75em; +} \ No newline at end of file diff --git a/templates/_includes/html/base.html.twig b/templates/_includes/html/base.html.twig index 36707b5..e6a13c0 100644 --- a/templates/_includes/html/base.html.twig +++ b/templates/_includes/html/base.html.twig @@ -6,6 +6,7 @@ baseUrl~"icofont/icofont.css", baseUrl~"styles/card.css", baseUrl~"styles/colors.css", + baseUrl~"styles/form.css", baseUrl~"styles/main.css", baseUrl~"styles/nav.css", baseUrl~"styles/table.css",