spacedeck-open/styles/type.scss

169 lines
4.8 KiB
SCSS

@import "vars";
@import "mixins";
/* generated by https://google-webfonts-helper.herokuapp.com/ */
/* inter-regular - latin-ext_latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
src: url('/fonts/inter-v2-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('/fonts/inter-v2-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/inter-v2-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/inter-v2-latin-ext_latin-regular.svg#Inter') format('svg'); /* Legacy iOS */
}
/* inter-500 - latin-ext_latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
src: url('/fonts/inter-v2-latin-ext_latin-500.eot'); /* IE9 Compat Modes */
src: local(''),
url('/fonts/inter-v2-latin-ext_latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/inter-v2-latin-ext_latin-500.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-500.woff') format('woff'), /* Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/inter-v2-latin-ext_latin-500.svg#Inter') format('svg'); /* Legacy iOS */
}
/* inter-600 - latin-ext_latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
src: url('/fonts/inter-v2-latin-ext_latin-600.eot'); /* IE9 Compat Modes */
src: local(''),
url('/fonts/inter-v2-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/inter-v2-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/inter-v2-latin-ext_latin-600.svg#Inter') format('svg'); /* Legacy iOS */
}
/* inter-900 - latin-ext_latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 900;
src: url('/fonts/inter-v2-latin-ext_latin-900.eot'); /* IE9 Compat Modes */
src: local(''),
url('/fonts/inter-v2-latin-ext_latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/inter-v2-latin-ext_latin-900.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-900.woff') format('woff'), /* Modern Browsers */
url('/fonts/inter-v2-latin-ext_latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/inter-v2-latin-ext_latin-900.svg#Inter') format('svg'); /* Legacy iOS */
}
body {
background-color: $light;
color: $medium;
font-weight: 300;
font-weight: 400;
font-family: $main-font, sans-serif;
font-weight: 300;
font-size: 15px;
line-height: 1.6;
}
hr {
margin: auto;
// margin-top: ($line-height*2)-1;
// margin-bottom: $line-height*2;
width: auto;
border: none;
border-top: 2px solid rgba(0,0,0,0.025);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
color: inherit;
font-family: inherit;
font-weight: 900;
line-height: 1.3;
margin-top: 0px;
margin-bottom: 1em;
// font-family: $main-font;
display: block;
&:last-child { margin-bottom: 0px; }
}
h1, .h1 { font-size: 54px; }
h2, .h2 {font-size: 40px; }
h3, .h3 {font-size: 30px; }
h4, .h4 {font-size: 20px; }
h5, .h5 {font-size: 16px; }
h6, .h6 {font-size: 14px; }
strong {font-weight: 500; }
small {font-size: 75%; }
a {
color: black;
}
dl {
background-color: rgba(0,0,0,0.05);
color: rgba(136,136,136,1);
border-radius: $radius;
display: inline-block;
margin-right: 5px;
padding: 15px 25px;
dt {
font-weight: bold;
}
dd {
padding: 0px;
margin: 0px;
}
}
ol, ul, p {
font-size: 20px;
line-height: 1.6;
margin: 0px;
margin-bottom: 1em;
/*&:last-child {
margin-bottom: 0px;
}*/
small {
font-size: 80%;
line-height: 170%;
display: inline-block;
}
a {
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
b {
font-weight: 700;
}
&.lead {
font-weight: 200;
font-size: 22px !important;
line-height: 1.4;
&.lead-lg { $font-size: 20px*1.5 !important; }
&.lead-xl { font-size: 40px !important; }
&.lead-xxl { font-size: 60px !important; }
small { font-size: 60%; }
b { font-weight: 600; }
}
}
// ol, ul {padding-left: 20px; }
// ol.lead {padding-left: 29px; }
// ul.lead {padding-left: 23px; }