@import "sass-zero/base/variables";
@import "sass-zero/mixins";
html {
color: $breadboard-color;
font-size: 16px;
}
@media (max-width: $breakpoint-md - 1) {
html {
font-size: 14px;
}
}
blockquote {
border-left-width: $border-4;
padding: $size-3 $size-4;
*:last-child {
margin-bottom: $size-0;
}
}
.btn {
background-color: $white;
border-radius: $rounded;
border-width: $border;
color: inherit;
display: inline-block;
font-weight: $font-medium;
padding: $size-2 $size-4;
text-align: center;
cursor: pointer;
&:disabled {
cursor: default;
opacity: $opacity-50;
}
&:focus {
outline: 0;
}
&--primary {
background-color: $breadboard-primary;
border-color: $breadboard-primary;
color: $white;
box-shadow: $shadow-md;
}
&--secondary {
background-color: $white;
border-color: $breadboard-primary;
color: $breadboard-primary;
}
&--tertiary {
background-color: transparent;
border-color: transparent;
color: $breadboard-color;
}
}
code {
background-color: $breadboard-background;
border-radius: $rounded;
font-size: $text-sm;
margin: 0 $size-1;
padding: $size-1 $size-2;
white-space: nowrap;
}
pre {
background-color: $breadboard-background;
border-color: $breadboard-primary;
border-left-width: $border-4;
overflow-y: hidden;
& > code {
border-radius: $rounded-none;
display: block;
padding: $size-2 $size-3;
white-space: pre;
}
}
hr {
margin: $size-10 $size-0;
border-bottom-width: $border-2;
}
.input {
appearance: none;
border-radius: $rounded;
border-width: $border;
padding: $size-2 $size-3;
width: $size-full;
&:focus {
border-color: $breadboard-color;
box-shadow: $shadow-outline;
outline: 0;
}
&--select {
background-image: url('data:image/svg+xml,');
background-position: right $size-2 center;
background-repeat: no-repeat;
background-size: auto $size-6;
padding-right: $size-10;
}
}
label, legend {
display: block;
margin-bottom: $size-1;
font-weight: $font-medium
}
.checkbox, .radio {
appearance: none;
background-origin: border-box;
border-width: $border;
color: $breadboard-primary;
display: inline-block;
margin-bottom: -0.2rem;
height: $size-4;
width: $size-4;
&:checked {
border-color: transparent;
background-color: currentColor;
background-position: center;
background-repeat: no-repeat;
}
&:focus {
border-color: $breadboard-color;
box-shadow: $shadow-outline;
outline: 0;
}
}
.checkbox {
border-radius: $rounded;
&:checked {
background-image: url('data:image/svg+xml,');
}
}
.radio {
border-radius: $rounded-full;
&:checked {
background-image: url('data:image/svg+xml,');
}
}
a {
color: $breadboard-primary;
font-weight: $font-bold;
cursor: pointer;
}
ol {
list-style: decimal inside;
}
ul {
list-style: disc inside;
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: $size-2;
}
dd, dt, li, .btn {
margin-bottom: $size-2;
}
fieldset, .input, .select {
margin-bottom: $size-4;
}
blockquote,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
margin-bottom: $size-6;
}
table {
width: $size-full;
}
thead th {
border-bottom-width: $border-2;
}
td, th {
border-bottom-width: $border;
padding: $size-3 $size-4;
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
color: $breadboard-primary;
font-weight: $font-bold;
line-height: $leading-tight;
}
h1 {
font-size: $text-4xl;
}
h2 {
font-size: $text-3xl;
}
h3 {
font-size: $text-2xl;
}
h4 {
font-size: $text-xl;
}
h5 {
font-size: $text-lg;
}
h6 {
font-size: $text-base;
}
@media (max-width: $breakpoint-md - 1) {
h1 {
font-size: $text-3xl;
}
h2 {
font-size: $text-2xl;
}
h3 {
font-size: $text-xl;
}
h4 {
font-size: $text-lg;
}
h5 {
font-size: $text-base;
}
h6 {
font-size: $text-sm;
}
}
main {
@include make-container($size-10, $breakpoint-lg);
}
@media (max-width: $breakpoint-md - 1) {
main {
padding-right: $size-2;
padding-left: $size-2;
}
}