scenario-mock-server
Version:
Mock server powered by scenarios
147 lines (122 loc) • 2.03 kB
CSS
/* === Reset === */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default padding */
ul[class],
ol[class],
legend,
fieldset {
padding: 0;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd,
fieldset {
margin: 0;
}
fieldset {
border: none;
}
/* Set core body defaults */
body {
min-height: 100vh;
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
list-style: none;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img {
max-width: 100%;
display: block;
}
/* Natural flow and rhythm in articles by default */
article > * + * {
margin-top: 1em;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms ;
animation-iteration-count: 1 ;
transition-duration: 0.01ms ;
scroll-behavior: auto ;
}
}
/* === Main === */
body {
margin: 0 auto;
padding: 1rem;
max-width: 800px;
font-family: Arial, Helvetica, sans-serif;
color: #222;
}
*:focus {
outline: 2px solid #483d8b;
outline-offset: 2px;
}
button {
background-color: #483d8b;
border: none;
color: white;
padding: 0.5rem 1rem;
border-radius: 5px;
}
button:focus {
background-color: #6a5acd;
}
.stack-3 > * + * {
margin-top: calc(1rem / (1.5 * 1.5 * 1.5));
}
.stack-1 > * + * {
margin-top: calc(1rem / 1.5);
}
.stack0 > * + * {
margin-top: 1rem;
}
.button-group > * {
margin: -0.5rem;
}
.button-group > * > button {
margin: 0.5rem;
}
.group-title {
text-transform: capitalize;
}
details {
margin-left: 1.125rem;
}
details .description {
font-style: italic;
}