This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #427 from web-illinois/develop
Merge for 2.15
- Loading branch information
Showing
113 changed files
with
1,951 additions
and
28 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 |
---|---|---|
@@ -1,32 +1,59 @@ | ||
const glob = require('fast-glob'); | ||
const path = require('path'); | ||
const util = require('./tests/tests.util'); | ||
const viewports = require('./viewports.json'); | ||
|
||
function makeId(file, config) { | ||
const relativePath = path.relative('tests', file); | ||
let id = relativePath.replace(/\.vis\.js$/, '').replace(/[\\\/]/g, '_'); | ||
if (config.test) { | ||
id += '_' + config.test; | ||
} | ||
else if (config.variant) { | ||
id += '_' + config.variant; | ||
} | ||
else if (config.suffix) { | ||
id += '_' + config.suffix; | ||
} | ||
return id; | ||
} | ||
|
||
const scenarios = []; | ||
glob.sync('tests/**/*.vis.js').forEach(file => { | ||
const fileScenarios = require(path.join(__dirname, file))(viewports); | ||
fileScenarios.forEach(s => s.file = file); | ||
scenarios.push(...fileScenarios); | ||
const filePath = path.join(__dirname, file); | ||
const fileScenarios = require(filePath)(viewports); | ||
fileScenarios.forEach(s => { | ||
const id = makeId(file, s); | ||
s.file = file; | ||
if (!s.url) { | ||
s.url = util.testUrl(filePath); | ||
} | ||
if (!s.label) { | ||
s.label = id; | ||
} | ||
}); | ||
scenarios.push(...fileScenarios); | ||
}) | ||
|
||
module.exports = { | ||
"id": "web-toolkit", | ||
"viewports": Object.values(viewports), | ||
"scenarios": scenarios, | ||
"paths": { | ||
"bitmaps_reference": "tests/_reference", | ||
"engine_scripts": "tests/_scripts", | ||
"bitmaps_test": "var/backstop/images", | ||
"html_report": "var/backstop/html", | ||
}, | ||
"report": ["browser"], | ||
"engine": "puppeteer", | ||
"engineOptions": { | ||
"args": ["--no-sandbox"] | ||
}, | ||
"onReadyScript": "onReady.js", | ||
"asyncCaptureLimit": 5, | ||
"dockerCommandTemplate": "docker run -e BACKSTOP_ENV=docker --rm -it --mount type=bind,source=\"{cwd}\",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}", | ||
"debugWindow": false, | ||
"debug": false | ||
id: "web-toolkit", | ||
//fileNameTemplate: '{scenarioLabel}_{viewportLabel}', | ||
viewports: Object.values(viewports), | ||
scenarios: scenarios, | ||
paths: { | ||
bitmaps_reference: "tests/_reference", | ||
engine_scripts: "tests/_scripts", | ||
bitmaps_test: "var/backstop/images", | ||
html_report: "var/backstop/html", | ||
}, | ||
report: ["browser"], | ||
engine: "puppeteer", | ||
engineOptions: { | ||
args: ["--no-sandbox"] | ||
}, | ||
onReadyScript: "onReady.js", | ||
asyncCaptureLimit: 5, | ||
dockerCommandTemplate: "docker run -e BACKSTOP_ENV=docker --rm -it --mount type=bind,source=\"{cwd}\",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}", | ||
debugWindow: false, | ||
debug: false | ||
}; |
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,90 @@ | ||
/* | ||
> * { | ||
@include reset-spacing; | ||
text-align: left !important; | ||
display: block; | ||
margin-bottom: .25em; | ||
font-size: rem(18px); | ||
font-weight: 400; | ||
line-height: 1.2em; | ||
font-family: var(--il-font-sans); | ||
} | ||
> *:first-child { | ||
margin-top: -2px; | ||
} | ||
> *:last-child { | ||
margin-bottom: -2px; | ||
font-weight: 600; | ||
line-height: 1em; | ||
color: var(--il-blue); | ||
} | ||
a { | ||
@extend .il-link; | ||
color: var(--il-blue) !important; | ||
text-decoration: none !important; | ||
} | ||
a:focus, a:hover { | ||
color: var(--il-altgeld) !important; | ||
outline: none; | ||
} | ||
h1 { | ||
@include reset-spacing; | ||
font-size: rem(24px); | ||
} | ||
.il-primary-unit { | ||
display: none; | ||
} | ||
@media (min-width: 768px) { | ||
.il-primary-unit { | ||
display: block; | ||
} | ||
} | ||
*/ | ||
|
||
%site-name, %site-parent-name { | ||
margin: 0; | ||
padding: 0; | ||
text-align: left; | ||
line-height: 1.25; | ||
font-family: var(--il-source-sans); | ||
color: var(--il-blue); | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
|
||
&:hover, &:focus { | ||
color: var(--il-altgeld); | ||
} | ||
|
||
&:focus { | ||
outline: 2px dotted var(--il-altgeld); | ||
outline-offset: 2px; | ||
} | ||
} | ||
} | ||
|
||
%site-name { | ||
font-weight: 600; | ||
font-size: 1.5em; | ||
} | ||
|
||
%site-parent-name { | ||
font-weight: 400; | ||
font-size: 1.125em; | ||
} | ||
|
||
%site-identity { | ||
font-size: 1.5rem; | ||
|
||
> * { | ||
@extend %site-parent-name; | ||
|
||
&:last-child { | ||
@extend %site-name; | ||
} | ||
} | ||
} |
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,5 @@ | ||
il-accordion-panel { | ||
border: var(--il-details-border); | ||
max-width: var(--il-details-maxwidth); | ||
margin: 20px 0; | ||
} |
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,20 @@ | ||
il-introduction, .il-formatted il-introduction { | ||
display: block; | ||
background: var(--il-background-color); | ||
color: var(--il-heading-color); | ||
padding: 30px; | ||
|
||
&.il-align-center { | ||
text-align: center; | ||
} | ||
|
||
a.il-button, button.il-button { | ||
margin-right: 20px; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 792px) { | ||
il-introduction, .il-formatted il-introduction { | ||
padding: 20px; | ||
} | ||
} |
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,39 @@ | ||
:root { | ||
--il-panel-background-color: var(--il-blue); | ||
--il-panel-foreground-color: white; | ||
--il-panel-text-color: white; | ||
--il-panel-title-color: var(--il-orange); | ||
--il-panel-border: 1px solid #C8C6C7; | ||
--il-panel-link-focused-color: var(--il-orange); | ||
--il-selected-panel-background-color: var(--il-orange); | ||
--il-selected-panel-foreground-color: white; | ||
--il-focused-panel-background-color: var(--il-blue-darker-1); | ||
--il-focused-panel-foreground-color: white; | ||
} | ||
|
||
il-vertical-tab, .il-formatted il-vertical-tab { | ||
display: block; | ||
background: var(--il-panel-background-color); | ||
|
||
h2, h3, h4, h5, h6, p { | ||
color: var(--il-panel-text-color); | ||
} | ||
|
||
il-vertical-tab-panel, .il-formatted il-vertical-tab-panel { | ||
h2, h3, h4, h5, h6 { | ||
color: var(--il-panel-title-color); | ||
} | ||
p, ul, a, a:visited { | ||
color: var(--il-panel-text-color); | ||
} | ||
a:focus, a:hover { | ||
color: var(--il-panel-link-focused-color); | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 792px) { | ||
il-vertical-tab-panel:first-of-type { | ||
border-top: var(--il-panel-border); | ||
} | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.