-
Notifications
You must be signed in to change notification settings - Fork 0
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 #19 from ministryofjustice/add-sass
Add sass via npm to compile stylesheets
- Loading branch information
Showing
15 changed files
with
11,235 additions
and
177 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,4 +163,6 @@ cython_debug/ | |
#static files dirs | ||
staticfiles/ | ||
|
||
local.py | ||
local.py | ||
|
||
node_modules |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"dependencies": { | ||
"@ministryofjustice/frontend": "^2.0.1", | ||
"govuk-frontend": "^5.0.0", | ||
"sass": "^1.70.0" | ||
}, | ||
"scripts": { | ||
"sass": "sass --load-path=. scss:static/assets/css" | ||
} | ||
} |
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,8 @@ | ||
$govuk-assets-path: '/static/'; | ||
$moj-assets-path: '/static'; | ||
|
||
// Removes need to put classes on all elements | ||
$govuk-global-styles: true; | ||
|
||
@import "node_modules/govuk-frontend/dist/govuk/all"; | ||
@import "node_modules/@ministryofjustice/frontend/moj/all"; |
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,31 @@ | ||
.search-container { | ||
display: flex; | ||
} | ||
.search-icon { | ||
height: 100%; | ||
} | ||
|
||
.search-button { | ||
background: #1d70b8; | ||
border: 0; | ||
color: #fff; | ||
cursor: pointer; | ||
height: 40px; | ||
margin-bottom: 0; | ||
padding: 0; | ||
width: 40px; | ||
} | ||
|
||
.govuk-input.search-input { | ||
border-right-width: 0; | ||
} | ||
|
||
.search-button:focus { | ||
box-shadow: inset 0 0 0 4px #0b0c0c; | ||
outline: 3px solid #fd0 | ||
} | ||
|
||
.search-input:focus { | ||
border-right-width: 2px; | ||
z-index: 1 | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.