mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
331 lines
18 KiB
JavaScript
331 lines
18 KiB
JavaScript
|
|
// @flow
|
||
|
|
import { createGlobalStyle } from 'styled-components';
|
||
|
|
|
||
|
|
export const GlobalStyles = createGlobalStyle`
|
||
|
|
* {
|
||
|
|
border: 0;
|
||
|
|
box-sizing: inherit;
|
||
|
|
-webkit-font-smoothing: antialiased;
|
||
|
|
font-weight: inherit;
|
||
|
|
margin: 0;
|
||
|
|
outline: 0;
|
||
|
|
padding: 0;
|
||
|
|
text-decoration: none;
|
||
|
|
text-rendering: optimizeLegibility;
|
||
|
|
-webkit-appearance: none;
|
||
|
|
-moz-appearance: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
html {
|
||
|
|
display: flex;
|
||
|
|
height: 100%;
|
||
|
|
width: 100%;
|
||
|
|
max-height: 100%;
|
||
|
|
max-width: 100%;
|
||
|
|
box-sizing: border-box;
|
||
|
|
font-size: 16px;
|
||
|
|
line-height: 1.5;
|
||
|
|
background-color: #f6f7f8;
|
||
|
|
color: #16171a;
|
||
|
|
padding: 0;
|
||
|
|
margin: 0;
|
||
|
|
-webkit-font-smoothing: antialiased;
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial,
|
||
|
|
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
#__next {
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
a {
|
||
|
|
color: currentColor;
|
||
|
|
text-decoration: none;
|
||
|
|
background-color: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
a:hover {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
::-moz-selection {
|
||
|
|
/* Code for Firefox */
|
||
|
|
background: #067AE4;
|
||
|
|
color: #ffffff;
|
||
|
|
}
|
||
|
|
|
||
|
|
::selection {
|
||
|
|
background: #067AE4;
|
||
|
|
color: #ffffff;
|
||
|
|
}
|
||
|
|
|
||
|
|
::-webkit-input-placeholder {
|
||
|
|
/* WebKit, Blink, Edge */
|
||
|
|
color: #a3afbf;
|
||
|
|
}
|
||
|
|
:-moz-placeholder {
|
||
|
|
/* Mozilla Firefox 4 to 18 */
|
||
|
|
color: #a3afbf;
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
::-moz-placeholder {
|
||
|
|
/* Mozilla Firefox 19+ */
|
||
|
|
color: #a3afbf;
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
:-ms-input-placeholder {
|
||
|
|
/* Internet Explorer 10-11 */
|
||
|
|
color: #a3afbf;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
hr {
|
||
|
|
box-sizing: content-box;
|
||
|
|
height: 0;
|
||
|
|
overflow: visible;
|
||
|
|
}
|
||
|
|
|
||
|
|
pre {
|
||
|
|
font-family: monospace, monospace;
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
|
||
|
|
abbr[title] {
|
||
|
|
border-bottom: none;
|
||
|
|
text-decoration: underline;
|
||
|
|
text-decoration: underline dotted;
|
||
|
|
}
|
||
|
|
|
||
|
|
b,
|
||
|
|
strong {
|
||
|
|
font-weight: bolder;
|
||
|
|
}
|
||
|
|
|
||
|
|
code,
|
||
|
|
kbd,
|
||
|
|
samp {
|
||
|
|
font-family: monospace, monospace;
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
|
||
|
|
small {
|
||
|
|
font-size: 80%;
|
||
|
|
}
|
||
|
|
|
||
|
|
sub,
|
||
|
|
sup {
|
||
|
|
font-size: 75%;
|
||
|
|
line-height: 0;
|
||
|
|
position: relative;
|
||
|
|
vertical-align: baseline;
|
||
|
|
}
|
||
|
|
|
||
|
|
sub {
|
||
|
|
bottom: -0.25em;
|
||
|
|
}
|
||
|
|
|
||
|
|
sup {
|
||
|
|
top: -0.5em;
|
||
|
|
}
|
||
|
|
|
||
|
|
img {
|
||
|
|
border-style: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
button,
|
||
|
|
input,
|
||
|
|
optgroup,
|
||
|
|
select,
|
||
|
|
textarea {
|
||
|
|
font-family: inherit;
|
||
|
|
font-size: 100%;
|
||
|
|
line-height: 1.15;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
button,
|
||
|
|
input {
|
||
|
|
overflow: visible;
|
||
|
|
}
|
||
|
|
|
||
|
|
button,
|
||
|
|
select {
|
||
|
|
text-transform: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
button,
|
||
|
|
[type="button"],
|
||
|
|
[type="reset"],
|
||
|
|
[type="submit"] {
|
||
|
|
-webkit-appearance: button;
|
||
|
|
}
|
||
|
|
|
||
|
|
button::-moz-focus-inner,
|
||
|
|
[type="button"]::-moz-focus-inner,
|
||
|
|
[type="reset"]::-moz-focus-inner,
|
||
|
|
[type="submit"]::-moz-focus-inner {
|
||
|
|
border-style: none;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
button:-moz-focusring,
|
||
|
|
[type="button"]:-moz-focusring,
|
||
|
|
[type="reset"]:-moz-focusring,
|
||
|
|
[type="submit"]:-moz-focusring {
|
||
|
|
outline: 1px dotted ButtonText;
|
||
|
|
}
|
||
|
|
|
||
|
|
fieldset {
|
||
|
|
padding: 0.35em 0.75em 0.625em;
|
||
|
|
}
|
||
|
|
|
||
|
|
legend {
|
||
|
|
box-sizing: border-box;
|
||
|
|
color: inherit;
|
||
|
|
display: table;
|
||
|
|
max-width: 100%;
|
||
|
|
padding: 0;
|
||
|
|
white-space: normal;
|
||
|
|
}
|
||
|
|
|
||
|
|
progress {
|
||
|
|
vertical-align: baseline;
|
||
|
|
}
|
||
|
|
|
||
|
|
textarea {
|
||
|
|
overflow: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
[type="checkbox"],
|
||
|
|
[type="radio"] {
|
||
|
|
box-sizing: border-box;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
[type="number"]::-webkit-inner-spin-button,
|
||
|
|
[type="number"]::-webkit-outer-spin-button {
|
||
|
|
height: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
[type="search"] {
|
||
|
|
-webkit-appearance: none;
|
||
|
|
outline-offset: -2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
[type="search"]::-webkit-search-decoration {
|
||
|
|
-webkit-appearance: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
::-webkit-file-upload-button {
|
||
|
|
-webkit-appearance: button;
|
||
|
|
font: inherit;
|
||
|
|
}
|
||
|
|
|
||
|
|
details {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
summary {
|
||
|
|
display: list-item;
|
||
|
|
}
|
||
|
|
|
||
|
|
template {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
[hidden] {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
audio {
|
||
|
|
display: block;
|
||
|
|
margin-top: 16px;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* algolia */
|
||
|
|
.ais-Breadcrumb-list,.ais-CurrentRefinements-list,.ais-HierarchicalMenu-list,.ais-Hits-list,.ais-InfiniteHits-list,.ais-InfiniteResults-list,.ais-Menu-list,.ais-NumericMenu-list,.ais-Pagination-list,.ais-RatingMenu-list,.ais-RefinementList-list,.ais-Results-list,.ais-ToggleRefinement-list{margin:0;padding:0;list-style:none}.ais-ClearRefinements-button,.ais-CurrentRefinements-delete,.ais-CurrentRefinements-reset,.ais-HierarchicalMenu-showMore,.ais-InfiniteHits-loadMore,.ais-InfiniteResults-loadMore,.ais-Menu-showMore,.ais-RangeInput-submit,.ais-RefinementList-showMore,.ais-SearchBox-reset,.ais-SearchBox-submit{padding:0;overflow:visible;font:inherit;line-height:normal;color:inherit;background:none;border:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ais-ClearRefinements-button::-moz-focus-inner,.ais-CurrentRefinements-delete::-moz-focus-inner,.ais-CurrentRefinements-reset::-moz-focus-inner,.ais-HierarchicalMenu-showMore::-moz-focus-inner,.ais-InfiniteHits-loadMore::-moz-focus-inner,.ais-InfiniteResults-loadMore::-moz-focus-inner,.ais-Menu-showMore::-moz-focus-inner,.ais-RangeInput-submit::-moz-focus-inner,.ais-RefinementList-showMore::-moz-focus-inner,.ais-SearchBox-reset::-moz-focus-inner,.ais-SearchBox-submit::-moz-focus-inner{padding:0;border:0}.ais-ClearRefinements-button[disabled],.ais-CurrentRefinements-delete[disabled],.ais-CurrentRefinements-reset[disabled],.ais-HierarchicalMenu-showMore[disabled],.ais-InfiniteHits-loadMore[disabled],.ais-InfiniteResults-loadMore[disabled],.ais-Menu-showMore[disabled],.ais-RangeInput-submit[disabled],.ais-RefinementList-showMore[disabled],.ais-SearchBox-reset[disabled],.ais-SearchBox-submit[disabled]{cursor:default}.ais-Breadcrumb-item,.ais-Breadcrumb-list,.ais-Pagination-list,.ais-PoweredBy,.ais-RangeInput-form,.ais-RatingMenu-link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list{margin-left:1em}.ais-PoweredBy-logo{display:block;width:70px;height:auto}.ais-RatingMenu-starIcon{display:block;width:20px;height:20px}.ais-SearchBox-input::-ms-clear,.ais-SearchBox-input::-ms-reveal{display:none;width:0;height:0}.ais-SearchBox-input::-webkit-search-cancel-button,.ais-SearchBox-input::-webkit-search-decoration,.ais-SearchBox-input::-webkit-search-results-button,.ais-SearchBox-input::-webkit-search-results-decoration{display:none}.ais-RangeSlider .rheostat{overflow:visible;margin-top:40px;margin-bottom:40px}.ais-RangeSlider .rheostat-background{height:6px;top:0;width:100%}.ais-RangeSlider .rheostat-handle{margin-left:-12px;top:-7px}.ais-RangeSlider .rheostat-background{position:relative;background-color:#fff;border:1px solid #aaa}.ais-RangeSlider .rheostat-progress{position:absolute;top:1px;height:4px;background-color:#333}.rheostat-handle{position:relative;z-index:1;width:20px;height:20px;background-color:#fff;border:1px solid #333;border-radius:50%;cursor:-webkit-grab;cursor:grab}.rheostat-marker{margin-left:-1px;position:absolute;width:1px;height:5px;background-color:#aaa}.rheostat-marker--large{height:9px}.rheostat-value{padding-top:15px}.rheostat-tooltip,.rheostat-value{margin-left:50%;position:absolute;text-align:center;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.rheostat-tooltip{top:-22px}[class^=ais-]{font-size:1rem;box-sizing:border-box}a[class^=ais-]{text-decoration:none}.ais-Breadcrumb,.ais-ClearRefinements,.ais-CurrentRefinements,.ais-HierarchicalMenu,.ais-Hits,.ais-HitsPerPage,.ais-InfiniteHits,.ais-InfiniteResults,.ais-Menu,.ais-MenuSelect,.ais-NumericMenu,.ais-NumericSelector,.ais-Pagination,.ais-Panel,.ais-PoweredBy,.ais-RangeInput,.ais-RangeSlider,.ais-RatingMenu,.ais-RefinementList,.ais-Results,.ais-ResultsPerPage,.ais-SearchBox,.ais-SortBy,.ais-Stats,.ais-ToggleRefinement{color:#3a4570}.ais-Breadcrumb-item--selected,.ais-HierarchicalMenu-item--selected,.ais-Menu-item--selected{font-weight:700}.ais-Breadcrumb-separator{margin:0 .3em;font-weight:400}.ais-Breadcrumb-link,.a
|
||
|
|
.ais-InstantSearch__root {
|
||
|
|
width: 100%;
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
input {
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.ais-Hits {
|
||
|
|
position: absolute;
|
||
|
|
top: 48px;
|
||
|
|
left: 50%;
|
||
|
|
width: 50%;
|
||
|
|
height: 100%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
width: 100%;
|
||
|
|
background: #FFF;
|
||
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||
|
|
transition: all 0.2s ease-in-out;
|
||
|
|
border-radius: 4px;
|
||
|
|
z-index: 999;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
flex: none;
|
||
|
|
height: auto;
|
||
|
|
max-height: 400px;
|
||
|
|
overflow-y: scroll;
|
||
|
|
max-width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 968px) {
|
||
|
|
.ais-Hits {
|
||
|
|
-webkit-overflow-scrolling: touch;
|
||
|
|
top: 54px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.ais-Hits-list {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
flex-wrap: nowrap;
|
||
|
|
margin: 0;
|
||
|
|
height: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ais-Hits-item {
|
||
|
|
display: flex;
|
||
|
|
flex: 1 0 auto;
|
||
|
|
width: 100%;
|
||
|
|
padding: 0;
|
||
|
|
margin: 0;
|
||
|
|
border: 0!important;
|
||
|
|
box-shadow: none;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ais-Hits-item a {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ais-Hits-item > div {
|
||
|
|
padding: 0!important;
|
||
|
|
margin: 0!important;
|
||
|
|
border: 0!important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ais-Hits-item:last-of-type section {
|
||
|
|
border-bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nprogress .spinner {
|
||
|
|
display: none!important;
|
||
|
|
}
|
||
|
|
`;
|