Only format labels of textual fields bold.
authorSam White <webmaster@ycra.org.uk>
Sat, 20 Nov 2021 16:42:25 +0000 (16:42 +0000)
committerSam White <webmaster@ycra.org.uk>
Sat, 20 Nov 2021 16:42:25 +0000 (16:42 +0000)
public_html/css/fields.css
public_html/includes/fields.php

index 66cb4457706fa9d352347ad58a44e60eb3b715e9..ba715335932cc34d0c3589806d436a319a419f0f 100644 (file)
@@ -3,7 +3,7 @@ div.field {
   margin: 1em 0;
 }
 
-div.field label {
+div.field.textual-input label {
   font-weight: bold;
   display: block;
 }
index fe851683907b29a894cd8f604c5862f5985d5f05..94e405994d6e8ea6c5dee495943f324f87617fb5 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 require_once('includes/utils.php');
 
-
 // TODO: Currently trivial, but we will want to handle more complicated cases 
 // later.
 function get_sent_field_value($values, $name) {
@@ -28,7 +27,7 @@ function field_label($name, $label) {
 }
 
 function general_field($type, $values, $name, $label, $attrs=[]) {?>
-  <div class="field<?php esc(array_key_exists('required', $attrs) ? ' required'
+  <div class="field textual-input<?php esc(array_key_exists('required', $attrs) ? ' required'
                                                                   : '');?>"><?php
     field_label($name, $label);
     general_bare_field($type, $values, $name, $attrs);?>