Skip to content

Commit

Permalink
OEL-1175: Image and styles added to solve required fields on forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxfire committed Feb 24, 2022
1 parent 61d1401 commit fa499f9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/images/required.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/sass/components/_all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
// -----------------------------------------------------------------------------
@import 'blockquote';
@import 'navbar';
@import 'form';
19 changes: 19 additions & 0 deletions resources/sass/components/_form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// form
// https://getbootstrap.com/docs/5.0/forms/overview/
// -----------------------------------------------------------------------------

// Custom css for forms.
/**
* Required field
*/
.form-required:after {
content: '';
vertical-align: super;
display: inline-block;
background-image: url(../images/required.svg);
background-repeat: no-repeat;
background-size: 6px 6px;
width: 6px;
height: 6px;
margin: 0 0.3em;
}

0 comments on commit fa499f9

Please sign in to comment.