aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_form.scss
diff options
context:
space:
mode:
authorJieiku2022-03-27 19:19:28 -0700
committerJieiku2022-03-27 19:19:28 -0700
commit2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9 (patch)
tree33dda7250a49739153f501dbdec7c26792d87964 /sass/include/_form.scss
downloadabridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.tar.gz
abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.tar.bz2
abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.zip
init
Diffstat (limited to 'sass/include/_form.scss')
-rw-r--r--sass/include/_form.scss36
1 files changed, 36 insertions, 0 deletions
diff --git a/sass/include/_form.scss b/sass/include/_form.scss
new file mode 100644
index 0000000..5761c3f
--- /dev/null
+++ b/sass/include/_form.scss
@@ -0,0 +1,36 @@
+// Form elements (non-button)
+fieldset {
+ padding: .5rem .75rem;
+ border: var(--bw) solid var(--c3);
+ border-radius: .25rem;
+}
+legend {
+ padding: 0 .25rem;
+}
+label {
+ cursor: pointer;
+ display: block;
+ margin-bottom: .25rem;
+}
+select,
+input:not([size]):not([type="button" i]):not([type="submit" i]):not([type="reset" i]):not([type="checkbox" i]):not([type="radio" i]) {
+ width: 100%;
+}
+[type="color" i] {
+ min-height: 2.125rem;
+}
+select:not([multiple]):not([size]) {
+ padding-right: 1.5rem;
+ background-repeat: no-repeat;
+ background-position: right .5rem center;
+ -moz-appearance: none;
+ -webkit-appearance: none;
+ appearance: none;
+}
+textarea {
+ width: 100%;
+ resize: vertical;
+}
+textarea:not([rows]) {
+ height: 8rem;
+}