1
0
mirror of synced 2024-11-29 08:36:12 +03:00
vue-formulario/themes/boilerplate/boilerplate.scss

122 lines
2.4 KiB
SCSS
Raw Normal View History

2020-02-27 22:47:24 +03:00
// Formulate inputs
// -----------------------------------------------------------------------------
.formulate-input {
// global wrapper styles
.formulate-input-label {
// global label styles
}
.formulate-input-element {
// Global field-level wrapper styles
}
.formulate-input-help {
// Global help text styles
}
.formulate-input-errors {
// Global error message list wrapper
}
.formulate-input-error,
.formulate-file-upload-error {
// Error message styles
}
.formulate-input-group-item {
// Group of items (like list of checkboxes) wrapper
}
// Text inputs
// -----------------------------------------------------------------------------
&[data-classification='text'] {
input {
// Style all text-like input elements
}
}
// Slider inputs
// -----------------------------------------------------------------------------
&[data-classification='slider'] {
input {
// Style range inputs
}
}
// Textarea inputs
// -----------------------------------------------------------------------------
&[data-classification='textarea'] {
textarea {
// Style textareas
}
}
// Button inputs
// -----------------------------------------------------------------------------
&[data-classification='button'] {
button {
// Style button inputs
}
}
// Select lists
// -----------------------------------------------------------------------------
&[data-classification='select'] {
select {
// Style select lists
}
}
// Box inputs
// -----------------------------------------------------------------------------
&[data-classification='box'] {
.formulate-input-element {
// Box input (checkbox and radio) wrapper (might want flex here)
input {
// Style box element itself
}
}
}
// File inputs
// -----------------------------------------------------------------------------
&[data-classification="file"] {
.formulate-input-upload-area {
input {
// The actual upload element
}
}
}
// Image uploads
// -----------------------------------------------------------------------------
[data-type="image"] {
// image uploads
}
}
// Form-level errors
// -----------------------------------------------------------------------------
.formulate-form-errors {
.formulate-form-error {
// form errors (not specific to a field)
}
}