datat.fi/_sass/basically-basic/_base.scss

117 lines
1.8 KiB
SCSS
Raw Normal View History

/* ==========================================================================
Base elements
========================================================================== */
2017-03-07 23:12:17 +02:00
html {
@include fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size);
}
body {
background: $background-color;
2017-03-16 20:34:29 +02:00
color: $text-color;
2017-03-07 23:12:17 +02:00
}
blockquote,
q {
2017-03-07 23:12:17 +02:00
color: tint($text-color, 40%);
font-style: italic;
cite {
font-size: 80%;
font-style: normal;
font-weight: bold;
2017-03-16 20:34:29 +02:00
&::before {
2017-03-07 23:12:17 +02:00
padding-right: 0.25rem;
2017-03-16 20:34:29 +02:00
content: '\2014';
2017-03-07 23:12:17 +02:00
}
}
}
code,
kbd,
samp,
pre {
font-family: $monospace-font-family;
}
kbd {
display: inline-block;
margin: 0 0.125em;
padding: 0.125em 0.5em;
border: 1px solid rgb(204, 204, 204);
2017-03-16 20:34:29 +02:00
border-radius: 3px;
background-color: rgb(247, 247, 247);
text-shadow: 0 1px 0 #fff;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px #fff;
}
2017-03-16 20:34:29 +02:00
h1,
h2,
h3,
h4,
h5,
h6 {
2017-03-07 23:12:17 +02:00
font-family: $headline-font-family;
2017-03-13 20:42:05 +02:00
text-rendering: optimizeLegibility; /* enable common ligatures and kerning */
2017-03-07 23:12:17 +02:00
}
h1 {
@include fluid-type($min-vw, $max-vw, $h1-min, $h1-max);
}
h2 {
@include fluid-type($min-vw, $max-vw, $h2-min, $h2-max);
}
h3 {
@include fluid-type($min-vw, $max-vw, $h3-min, $h3-max);
}
h4 {
@include fluid-type($min-vw, $max-vw, $h4-min, $h4-max);
}
h5 {
@include fluid-type($min-vw, $max-vw, $h5-min, $h5-max);
}
h6 {
@include fluid-type($min-vw, $max-vw, $h6-min, $h6-max);
}
dt {
font-weight: bold;
&:not(:first-child) {
margin-top: 1rem;
}
}
dd {
margin: 0;
}
pre {
@include fluid-type($min-vw, $max-vw, 12px, 14px);
}
figcaption {
margin: 0.5rem 0;
font-size: 80%;
}
a {
color: $accent-color;
&:hover {
color: shade($accent-color, 25%);
}
2017-03-16 20:34:29 +02:00
}
// *:focus {
// border-color: $accent-color;
// outline: none;
// box-shadow: 0 0 10px $accent-color;
// }