Skip to content

Commit

Permalink
fix: School text-box dropdown in manage/questionnaires/edit missing b…
Browse files Browse the repository at this point in the history
…ackground (#296)

* fix(questionnaire): fixed background in school autocomplete

fixed the questionnaire edit page so that it was blank in the management
edit page

* fix(questionnaire): sperated autocomplete sass into its own file

seperated the sass for the autocomplete into its own file so that manage
could use it without the other sass in forms.sass

* Use grays for manage backgrouind

Co-authored-by: Chris Baudouin, Jr <cjb5326@rit.edu>
Co-authored-by: Peter Kos <pkos91@icloud.com>
  • Loading branch information
3 people authored Sep 20, 2020
1 parent 113cd61 commit c9d6658
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 24 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.sass
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
@import general/table
@import forms/forms
@import forms/confirmation
@import forms/autocomplete

@import general/theming-editor

Expand Down
24 changes: 24 additions & 0 deletions app/assets/stylesheets/forms/_autocomplete.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

// jquery ui override
.ui-autocomplete
@include css4
background: var(--input--background--focus)
border: 1px solid var(--input--border-color--focus)
color: var(--input--text--focus)
list-style: none
padding: 0
.ui-menu-item div
padding: 2px 5px
display: block
cursor: pointer
overflow: hidden
text-overflow: ellipsis
white-space: nowrap
&:hover
@include css4
background: var(--primary)
@include css4
color: var(--white)
// needed for ellipsis in text to work and acts as a min-width
.ui-menu
width: 50px
24 changes: 0 additions & 24 deletions app/assets/stylesheets/forms/_forms.sass
Original file line number Diff line number Diff line change
Expand Up @@ -258,30 +258,6 @@ input[type=submit]
margin-bottom: 3px


// jquery ui override
.ui-autocomplete
@include css4
background: var(--input--background--focus)
border: 1px solid var(--input--border-color--focus)
color: var(--input--text--focus)
list-style: none
padding: 0
.ui-menu-item div
padding: 2px 5px
display: block
cursor: pointer
overflow: hidden
text-overflow: ellipsis
white-space: nowrap
&:hover
@include css4
background: var(--primary)
@include css4
color: var(--white)
// needed for ellipsis in text to work and acts as a min-width
.ui-menu
width: 50px

// form wizard
.wizard-stage
display: none
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/manage.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
@import manage/selectize-fix
@import vendor/simplemde.min
@import vendor/codemirror
@import general/variables
@import general/css4
@import manage/autocomplete

$grey-dark: #555
$grey-med: #999
Expand Down Expand Up @@ -172,6 +175,7 @@ $grey-med: #999
.sidebar-mobile .sidebar-sticky
height: auto


/*
* Datatable changes
*/
Expand Down
12 changes: 12 additions & 0 deletions app/assets/stylesheets/manage/_autocomplete.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

@import ../forms/autocomplete

// jquery ui override
.ui-autocomplete
background: white
border: 1px solid #333
color: #222
.ui-menu-item div
&:hover
background: #999
color: white

0 comments on commit c9d6658

Please sign in to comment.