-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from edx/lbirch/search-styles
fix: add styles to SearchHeader
- Loading branch information
Showing
9 changed files
with
3,366 additions
and
2,376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable func-names, no-var, import/no-extraneous-dependencies */ | ||
|
||
var path = require('path'); | ||
var fs = require('fs'); | ||
|
||
var sass = require('sass'); | ||
var Fiber = require('fibers'); | ||
|
||
// Resolve tildas the way webpack does | ||
var tildaImporter = function (url) { | ||
if (url[0] === '~') { | ||
// eslint-disable-next-line no-param-reassign | ||
url = path.resolve('node_modules', url.substr(1)).trim(); | ||
} | ||
|
||
return { file: url }; | ||
}; | ||
|
||
var coreResult = sass.renderSync({ | ||
file: './src/index.scss', | ||
outputStyle: 'compressed', | ||
importer: tildaImporter, | ||
fiber: Fiber, | ||
}); | ||
|
||
fs.writeFileSync('./dist/frontend-enterprise.css', coreResult.css); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.facet-list { | ||
.dropdown { | ||
@extend .mb-3; | ||
|
||
.dropdown-toggle { | ||
text-align: left; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
|
||
&:before { | ||
border-radius: 0; | ||
} | ||
|
||
&:after { | ||
margin-left: 10px; | ||
} | ||
} | ||
|
||
.facet-item-label { | ||
font-weight: normal; | ||
|
||
&.is-refined { | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
input:focus + .facet-item-label { | ||
text-decoration: underline; | ||
} | ||
|
||
.dropdown-menu { | ||
max-height: 250px; | ||
overflow: scroll; | ||
max-width: 420px; | ||
width: max-content; | ||
|
||
.dropdown-item { | ||
padding-left: 30px; | ||
white-space: break-spaces; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.mobile-filter-menu { | ||
.modal-dialog { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
max-width: unset; | ||
} | ||
|
||
.modal-header .btn-close { | ||
right: 10px; | ||
color: $gray-700; | ||
} | ||
|
||
.modal-content { | ||
height: auto; | ||
min-height: 100%; | ||
border: 0 none; | ||
border-radius: 0; | ||
box-shadow: none; | ||
} | ||
|
||
.modal-footer { | ||
background-color: $gray-200; | ||
|
||
.btn { | ||
@extend .flex-grow-1; | ||
} | ||
} | ||
|
||
.facet-list .dropdown { | ||
@extend .mb-0; | ||
|
||
.dropdown-toggle { | ||
@extend .border-bottom; | ||
@extend .py-3; | ||
width: 100%; | ||
|
||
&:after { | ||
position: table; | ||
float: right; | ||
height: 100%; | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
&:first-child { | ||
border: none; | ||
} | ||
|
||
.dropdown-menu { | ||
position: relative; | ||
width: 100%; | ||
box-shadow: none; | ||
overflow-y: unset; | ||
max-height: unset; | ||
max-width: unset; | ||
border: none; | ||
@extend .border-bottom; | ||
} | ||
|
||
.dropdown-item { | ||
padding-left: 30px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import "./FacetList"; | ||
@import "./MobileSearchFilters"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import "~@edx/brand/paragon/fonts"; | ||
@import "~@edx/brand/paragon/variables"; | ||
@import "~@edx/paragon/scss/core/core"; | ||
@import "~@edx/brand/paragon/overrides"; | ||
|
||
@import "./src/course-search/styles/index"; |