Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRCH-2423 return assets used for affiliate type-ahead #763

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
356 changes: 356 additions & 0 deletions app/assets/stylesheets/legacy_sass/sayt/custom.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,356 @@
/* Stripped down version of jQuery UI autocomplete CSS
* nested under #usasearch_sayt
* loaded by the sayt loader to style autocompletion on affiliate websites

/*!
* jQuery UI CSS Framework 1.8.22
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API

/* Layout helpers
*----------------------------------

#usasearch_sayt
.ui-helper-hidden
display: none

.ui-helper-hidden-accessible
position: absolute !important
clip: rect(1px 1px 1px 1px)
clip: rect(1px, 1px, 1px, 1px)

.ui-helper-reset
margin: 0
padding: 0
border: 0
outline: 0
line-height: 1.3
text-decoration: none
font-size: 100%
list-style: none

.ui-helper-clearfix
&:before
content: ""
display: table
&:after
content: ""
display: table
clear: both
zoom: 1

.ui-helper-zfix
width: 100%
height: 100%
top: 0
left: 0
position: absolute
opacity: 0
filter: Alpha(Opacity = 0)

/* Interaction Cues
*----------------------------------

#usasearch_sayt
.ui-state-disabled
cursor: default !important

/* Icons
*----------------------------------

/* states and images

#usasearch_sayt
.ui-icon
display: block
text-indent: -99999px
overflow: hidden
background-repeat: no-repeat

/* Misc visuals
*----------------------------------

/* Overlays

#usasearch_sayt
.ui-widget-overlay
position: absolute
top: 0
left: 0
width: 100%
height: 100%

/*!
* jQuery UI CSS Framework 1.8.22
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px

/* Component containers
*----------------------------------

#usasearch_sayt
.ui-widget
font-family: Verdana,Arial,sans-serif
font-size: 1.1em
.ui-widget
font-size: 1em
input, select, textarea, button
font-family: Verdana,Arial,sans-serif
font-size: 1em

.ui-widget-content
border: 1px solid #aaaaaa
background: white image-url('legacy/sayt/ui-bg_flat_75_ffffff_40x100.png') 50% 50% repeat-x
color: #222222
a
color: #222222

.ui-widget-header
border: 1px solid #aaaaaa
background: #cccccc image-url('legacy/sayt/ui-bg_highlight-soft_75_cccccc_1x100.png') 50% 50% repeat-x
color: #222222
font-weight: bold
a
color: #222222

/* Interaction states
*----------------------------------

#usasearch_sayt
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default
border: 1px solid #d3d3d3
background: #e6e6e6 image-url('legacy/sayt/ui-bg_glass_75_e6e6e6_1x400.png') 50% 50% repeat-x
font-weight: normal
color: #555555

.ui-state-default a
color: #555555
text-decoration: none
&:link, &:visited
color: #555555
text-decoration: none

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus
border: 1px solid #999999
background: #dadada image-url('legacy/sayt/ui-bg_glass_75_dadada_1x400.png') 50% 50% repeat-x
font-weight: normal
color: #212121

.ui-state-hover a
color: #212121
text-decoration: none
&:hover
color: #212121
text-decoration: none

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active
border: 1px solid #aaaaaa
background: white image-url('legacy/sayt/ui-bg_glass_65_ffffff_1x400.png') 50% 50% repeat-x
font-weight: normal
color: #212121

.ui-state-active a
color: #212121
text-decoration: none
&:link, &:visited
color: #212121
text-decoration: none

.ui-widget :active
outline: none

/* Interaction Cues
*----------------------------------

#usasearch_sayt
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight
border: 1px solid #fcefa1
background: #fbf9ee image-url('legacy/sayt/ui-bg_glass_55_fbf9ee_1x400.png') 50% 50% repeat-x
color: #363636

.ui-state-highlight a, .ui-widget-content a, .ui-widget-header a
color: #363636

.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error
border: 1px solid #cd0a0a
background: #fef1ec image-url('legacy/sayt/ui-bg_glass_95_fef1ec_1x400.png') 50% 50% repeat-x
color: #cd0a0a

.ui-state-error a, .ui-widget-content a, .ui-widget-header a, .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text
color: #cd0a0a

.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary
font-weight: bold

.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary
opacity: .7
filter: Alpha(Opacity = 70)
font-weight: normal

.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled
opacity: .35
filter: Alpha(Opacity = 35)
background-image: none

/* Icons
*----------------------------------

/* states and images

#usasearch_sayt
.ui-icon
width: 16px
height: 16px
background-image: image-url('legacy/sayt/ui-icons_222222_256x240.png')

.ui-widget-content .ui-icon, .ui-widget-header .ui-icon
background-image: image-url('legacy/sayt/ui-icons_222222_256x240.png')

.ui-state-default .ui-icon
background-image: image-url('legacy/sayt/ui-icons_888888_256x240.png')

.ui-state-hover .ui-icon, .ui-state-focus .ui-icon, .ui-state-active .ui-icon
background-image: image-url('legacy/sayt/ui-icons_454545_256x240.png')

.ui-state-highlight .ui-icon
background-image: image-url('legacy/sayt/ui-icons_2e83ff_256x240.png')

.ui-state-error .ui-icon, .ui-state-error-text .ui-icon
background-image: image-url('legacy/sayt/ui-icons_cd0a0a_256x240.png')

/* Misc visuals
*----------------------------------

/* Corner radius

#usasearch_sayt
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl
-moz-border-radius-topleft: 4px
-webkit-border-top-left-radius: 4px
-khtml-border-top-left-radius: 4px
border-top-left-radius: 4px

.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr
-moz-border-radius-topright: 4px
-webkit-border-top-right-radius: 4px
-khtml-border-top-right-radius: 4px
border-top-right-radius: 4px

.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl
-moz-border-radius-bottomleft: 4px
-webkit-border-bottom-left-radius: 4px
-khtml-border-bottom-left-radius: 4px
border-bottom-left-radius: 4px

.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br
-moz-border-radius-bottomright: 4px
-webkit-border-bottom-right-radius: 4px
-khtml-border-bottom-right-radius: 4px
border-bottom-right-radius: 4px

/* Overlays

#usasearch_sayt
.ui-widget-overlay
background: #aaaaaa image-url('legacy/sayt/ui-bg_flat_0_aaaaaa_40x100.png') 50% 50% repeat-x
opacity: .30
filter: Alpha(Opacity = 30)

.ui-widget-shadow
margin: -8px 0 0 -8px
padding: 8px
background: #aaaaaa image-url('legacy/sayt/ui-bg_flat_0_aaaaaa_40x100.png') 50% 50% repeat-x
opacity: .30
filter: Alpha(Opacity = 30)
-moz-border-radius: 8px
-khtml-border-radius: 8px
-webkit-border-radius: 8px
border-radius: 8px

/*!
* * jQuery UI Autocomplete 1.8.22
* *
* * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* * Dual licensed under the MIT or GPL Version 2 licenses.
* * http://jquery.org/license
* *
* * http://docs.jquery.com/UI/Autocomplete#theming

#usasearch_sayt
.ui-autocomplete
position: absolute
cursor: default

/* workarounds

#usasearch_sayt
* .ui-autocomplete
width: 1px

/* without this, the menu expands to 100% in IE6

/*
* jQuery UI Menu 1.8.22
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Menu#theming

#usasearch_sayt
.ui-menu
list-style: none
padding: 2px
margin: 0
display: block
float: left
.ui-menu
margin-top: -3px
.ui-menu-item
margin: 0
padding: 0
zoom: 1
float: left
clear: left
width: 100%
.ui-menu-item-wrapper, a
text-decoration: none
display: block
padding: .2em .4em
line-height: 1.5
zoom: 1
&.ui-state-hover, &.ui-state-active
font-weight: normal
margin: -1px

/* custom css for SAYT

#usasearch_sayt
.ui-autocomplete
text-align: left
font-weight: bold
font-size: smaller
/* jQuery UI 1.12 toggle .ui-state-active instead of .ui-state-hover when hovering autocomplete selection
.ui-menu-item
.ui-menu-item-wrapper.ui-state-active
border: 1px solid #999999
background: #dadada image-url('legacy/sayt/ui-bg_glass_75_dadada_1x400.png') 50% 50% repeat-x
font-weight: normal
color: #212121

.ui-menu a
color: #1445ac
font-size: 0.9em
&.ui-state-hover, &.ui-state-active
font-weight: bold
3 changes: 3 additions & 0 deletions app/assets/stylesheets/sayt.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*
*= require legacy_sass/sayt/custom
*/