aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/static/scss/forms
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
commiteeaddb27560d723ca7d61359744ceb2709fccd2d (patch)
tree04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /alphabetlearning/static/scss/forms
parent7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff)
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to '')
-rw-r--r--alphabetlearning/static/scss/forms/_floating-labels.scss (renamed from pyblackbird_cc/static/scss/forms/_floating-labels.scss)0
-rw-r--r--alphabetlearning/static/scss/forms/_form-check.scss (renamed from pyblackbird_cc/static/scss/forms/_form-check.scss)0
-rw-r--r--alphabetlearning/static/scss/forms/_form-control.scss (renamed from pyblackbird_cc/static/scss/forms/_form-control.scss)0
-rw-r--r--alphabetlearning/static/scss/forms/_form-range.scss (renamed from pyblackbird_cc/static/scss/forms/_form-range.scss)0
-rw-r--r--alphabetlearning/static/scss/forms/_form-select.scss (renamed from pyblackbird_cc/static/scss/forms/_form-select.scss)0
-rw-r--r--alphabetlearning/static/scss/forms/_form-text.scss11
-rw-r--r--alphabetlearning/static/scss/forms/_input-group.scss (renamed from pyblackbird_cc/static/scss/forms/_input-group.scss)0
-rw-r--r--alphabetlearning/static/scss/forms/_labels.scss36
-rw-r--r--alphabetlearning/static/scss/forms/_validation.scss12
9 files changed, 59 insertions, 0 deletions
diff --git a/pyblackbird_cc/static/scss/forms/_floating-labels.scss b/alphabetlearning/static/scss/forms/_floating-labels.scss
index 2cf0470..2cf0470 100644
--- a/pyblackbird_cc/static/scss/forms/_floating-labels.scss
+++ b/alphabetlearning/static/scss/forms/_floating-labels.scss
diff --git a/pyblackbird_cc/static/scss/forms/_form-check.scss b/alphabetlearning/static/scss/forms/_form-check.scss
index 8a1b639..8a1b639 100644
--- a/pyblackbird_cc/static/scss/forms/_form-check.scss
+++ b/alphabetlearning/static/scss/forms/_form-check.scss
diff --git a/pyblackbird_cc/static/scss/forms/_form-control.scss b/alphabetlearning/static/scss/forms/_form-control.scss
index 67ae5f4..67ae5f4 100644
--- a/pyblackbird_cc/static/scss/forms/_form-control.scss
+++ b/alphabetlearning/static/scss/forms/_form-control.scss
diff --git a/pyblackbird_cc/static/scss/forms/_form-range.scss b/alphabetlearning/static/scss/forms/_form-range.scss
index 4732213..4732213 100644
--- a/pyblackbird_cc/static/scss/forms/_form-range.scss
+++ b/alphabetlearning/static/scss/forms/_form-range.scss
diff --git a/pyblackbird_cc/static/scss/forms/_form-select.scss b/alphabetlearning/static/scss/forms/_form-select.scss
index 69ace52..69ace52 100644
--- a/pyblackbird_cc/static/scss/forms/_form-select.scss
+++ b/alphabetlearning/static/scss/forms/_form-select.scss
diff --git a/alphabetlearning/static/scss/forms/_form-text.scss b/alphabetlearning/static/scss/forms/_form-text.scss
new file mode 100644
index 0000000..f080d1a
--- /dev/null
+++ b/alphabetlearning/static/scss/forms/_form-text.scss
@@ -0,0 +1,11 @@
+//
+// Form text
+//
+
+.form-text {
+ margin-top: $form-text-margin-top;
+ @include font-size($form-text-font-size);
+ font-style: $form-text-font-style;
+ font-weight: $form-text-font-weight;
+ color: $form-text-color;
+}
diff --git a/pyblackbird_cc/static/scss/forms/_input-group.scss b/alphabetlearning/static/scss/forms/_input-group.scss
index 58e4d40..58e4d40 100644
--- a/pyblackbird_cc/static/scss/forms/_input-group.scss
+++ b/alphabetlearning/static/scss/forms/_input-group.scss
diff --git a/alphabetlearning/static/scss/forms/_labels.scss b/alphabetlearning/static/scss/forms/_labels.scss
new file mode 100644
index 0000000..39ecafc
--- /dev/null
+++ b/alphabetlearning/static/scss/forms/_labels.scss
@@ -0,0 +1,36 @@
+//
+// Labels
+//
+
+.form-label {
+ margin-bottom: $form-label-margin-bottom;
+ @include font-size($form-label-font-size);
+ font-style: $form-label-font-style;
+ font-weight: $form-label-font-weight;
+ color: $form-label-color;
+}
+
+// For use with horizontal and inline forms, when you need the label (or legend)
+// text to align with the form controls.
+.col-form-label {
+ padding-top: add($input-padding-y, $input-border-width);
+ padding-bottom: add($input-padding-y, $input-border-width);
+ margin-bottom: 0; // Override the `<legend>` default
+ @include font-size(inherit); // Override the `<legend>` default
+ font-style: $form-label-font-style;
+ font-weight: $form-label-font-weight;
+ line-height: $input-line-height;
+ color: $form-label-color;
+}
+
+.col-form-label-lg {
+ padding-top: add($input-padding-y-lg, $input-border-width);
+ padding-bottom: add($input-padding-y-lg, $input-border-width);
+ @include font-size($input-font-size-lg);
+}
+
+.col-form-label-sm {
+ padding-top: add($input-padding-y-sm, $input-border-width);
+ padding-bottom: add($input-padding-y-sm, $input-border-width);
+ @include font-size($input-font-size-sm);
+}
diff --git a/alphabetlearning/static/scss/forms/_validation.scss b/alphabetlearning/static/scss/forms/_validation.scss
new file mode 100644
index 0000000..c48123a
--- /dev/null
+++ b/alphabetlearning/static/scss/forms/_validation.scss
@@ -0,0 +1,12 @@
+// Form validation
+//
+// Provide feedback to users when form field values are valid or invalid. Works
+// primarily for client-side validation via scoped `:invalid` and `:valid`
+// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
+// server-side validation.
+
+// scss-docs-start form-validation-states-loop
+@each $state, $data in $form-validation-states {
+ @include form-validation-state($state, $data...);
+}
+// scss-docs-end form-validation-states-loop