diff --git a/package-lock.json b/package-lock.json index 6aaf3bc..486f987 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "tables-and-forms", "version": "1.0.0", "license": "ISC", "dependencies": { diff --git a/static/form-styles.css b/static/form-styles.css new file mode 100644 index 0000000..e7ec6cb --- /dev/null +++ b/static/form-styles.css @@ -0,0 +1,77 @@ +* { + color: rgb(173, 38, 164); +} + +form, select, input { + font-family: "Segoe UI Light", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +form { + font-size: 25px; + padding: 10px; + background-color: #EEE; + text-align: start; +} + +fieldset { + margin-bottom: 10px; +} + +a { + color: cornflowerblue; + text-decoration: none; +} + +label[for="rules"] { + font-size: smaller; +} + +form, fieldset, .field, .btn { + border-radius: 0.3em; +} + +.row { + display: flex; + margin: 5px; + flex-flow: row wrap; + justify-content: center; + align-items: baseline; +} + +.field, .btn { + padding: 5px; + background-color: #FFF; +} + +.field:hover, .btn:hover { + background-color: #DDD; +} + +.field:focus-within, .btn:active { + background-color: #CCC; +} + +.field.row { + gap: 5px; +} + +input, select, option { + color: #D659CB; +} + +.buttons input[type="reset"] { + float: right; +} + +input[type="radio"] { + display: none; +} + +.btn, +input[type="radio"]:checked + label { + font-weight: bold; +} + +select, input { + font-size: 20px; +} diff --git a/static/index.html b/static/index.html index 514b62f..6a589fc 100644 --- a/static/index.html +++ b/static/index.html @@ -4,13 +4,79 @@