aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-01-31 15:54:55 +0100
committerRobert Jaros <rjaros@finn.pl>2020-01-31 15:54:55 +0100
commitaa22ebc3b9c34879687047a28d22c4487c6ac380 (patch)
tree9b990791690e34a49b9dfb8a78bfbe0a303ce515 /src/main/resources
parent2d8dcf194b83c39a1c3628dc207dda3bcc5652f0 (diff)
downloadkvision-aa22ebc3b9c34879687047a28d22c4487c6ac380.tar.gz
kvision-aa22ebc3b9c34879687047a28d22c4487c6ac380.tar.bz2
kvision-aa22ebc3b9c34879687047a28d22c4487c6ac380.zip
Support for fieldset HTML element both as a standalone container and within FormPanel (#129)
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/css/style.css33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/resources/css/style.css b/src/main/resources/css/style.css
index 2ab48b5e..5fa4d72c 100644
--- a/src/main/resources/css/style.css
+++ b/src/main/resources/css/style.css
@@ -405,3 +405,36 @@ select.form-control, .tabulator-row .tabulator-cell.tabulator-editing select {
.modal-dialog .modal-footer>button {
margin-top: 5px;
}
+
+.kv_fieldset {
+ border: 1px solid #dee2e6;
+ border-radius: 0.25rem;
+ padding-left: 1rem;
+ padding-right: 1rem;
+}
+
+.kv_fieldset legend {
+ border: 1px solid #dee2e6;
+ border-radius: 0.25rem;
+ margin-bottom: 0;
+ font-size: 1rem;
+ font-weight: bold;
+ padding: 3px 10px 3px 10px;
+ width: auto;
+}
+
+form fieldset.kv_fieldset {
+ padding-top: 5px;
+ margin-bottom: 8px;
+}
+
+form[class~="form-horizontal"] fieldset.kv_fieldset {
+ padding-left: 1.1rem;
+ padding-right: 2rem;
+ margin-right: -15px;
+ margin-left: -15px;
+}
+
+form[class~="form-horizontal"] div.form-group {
+ align-items: center;
+}