This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
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 #136 from 18F/je-search_bar
Cloud.gov search bar styles
- Loading branch information
Showing
12 changed files
with
162 additions
and
3 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
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,44 @@ | ||
@import '../core.scss'; | ||
|
||
.js-search-button { | ||
display: none; | ||
|
||
@include media(950px) { | ||
|
||
background-image: url('#{$static-img-path}/i-search.png'); | ||
background-image: url('#{$static-img-path}/i-search.svg'); | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
background-size: auto $hit-area / 2; | ||
display: inline-block; | ||
height: 3rem; | ||
left: -1rem; | ||
position: relative; | ||
text-align: center; | ||
top: -11px; | ||
width: $hit-area; | ||
|
||
&:hover { | ||
|
||
background-image: url('#{$static-img-path}/i-search-hover.svg'); | ||
background-image: url('#{$static-img-path}/i-search-hover.png'); | ||
cursor: pointer; | ||
} | ||
|
||
&.is-hidden { | ||
background-image: none; | ||
|
||
&:after { | ||
content: 'X'; | ||
clear: both; | ||
font-size: 30px; | ||
font-weight: 300; | ||
} | ||
} | ||
|
||
span { | ||
@include sr-only(); | ||
} | ||
|
||
} | ||
} |
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
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.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
require('./analytics.js'); | ||
require('uswds'); |