Вы встраиваете таблицу стилей scss в html, вы не можете напрямую вставить файл SCSS (Sassy CSS) в ваш HTML. Это связано с тем, что SASS является надмножеством (или так называемым препроцессором или расширением) синтаксиса CSS3, который НЕ поддерживается веб-браузерами.
Перейдите в свой код (https://codepen.io/chriscoyier/pen/egHEK), в разделе css, тамявляется раскрывающимся списком, который дает возможность компилировать scss в css (посмотреть скомпилированный css). Нажмите на него, вы получите окончательный скомпилированный css, как показано ниже:
@charset "UTF-8";
.image {
width: 250px;
float: left;
margin: 20px;
}
body {
font-size: small;
line-height: 1.4;
}
p {
margin: 0;
}
.performance-facts {
border: 1px solid black;
margin: 20px;
float: left;
width: 280px;
padding: 0.5rem;
}
.performance-facts table {
border-collapse: collapse;
}
.performance-facts__title {
font-weight: bold;
font-size: 2rem;
margin: 0 0 0.25rem 0;
}
.performance-facts__header {
border-bottom: 10px solid black;
padding: 0 0 0.25rem 0;
margin: 0 0 0.5rem 0;
}
.performance-facts__header p {
margin: 0;
}
.performance-facts__table, .performance-facts__table--small, .performance-facts__table--grid {
width: 100%;
}
.performance-facts__table thead tr th, .performance-facts__table--small thead tr th, .performance-facts__table--grid thead tr th,
.performance-facts__table thead tr td,
.performance-facts__table--small thead tr td,
.performance-facts__table--grid thead tr td {
border: 0;
}
.performance-facts__table th, .performance-facts__table--small th, .performance-facts__table--grid th,
.performance-facts__table td,
.performance-facts__table--small td,
.performance-facts__table--grid td {
font-weight: normal;
text-align: left;
padding: 0.25rem 0;
border-top: 1px solid black;
white-space: nowrap;
}
.performance-facts__table td:last-child, .performance-facts__table--small td:last-child, .performance-facts__table--grid td:last-child {
text-align: right;
}
.performance-facts__table .blank-cell, .performance-facts__table--small .blank-cell, .performance-facts__table--grid .blank-cell {
width: 1rem;
border-top: 0;
}
.performance-facts__table .thick-row th, .performance-facts__table--small .thick-row th, .performance-facts__table--grid .thick-row th,
.performance-facts__table .thick-row td,
.performance-facts__table--small .thick-row td,
.performance-facts__table--grid .thick-row td {
border-top-width: 5px;
}
.small-info {
font-size: 0.7rem;
}
.performance-facts__table--small {
border-bottom: 1px solid #999;
margin: 0 0 0.5rem 0;
}
.performance-facts__table--small thead tr {
border-bottom: 1px solid black;
}
.performance-facts__table--small td:last-child {
text-align: left;
}
.performance-facts__table--small th,
.performance-facts__table--small td {
border: 0;
padding: 0;
}
.performance-facts__table--grid {
margin: 0 0 0.5rem 0;
}
.performance-facts__table--grid td:last-child {
text-align: left;
}
.performance-facts__table--grid td:last-child::before {
content: "•";
font-weight: bold;
margin: 0 0.25rem 0 0;
}
.text-center {
text-align: center;
}
.thick-end {
border-bottom: 10px solid black;
}
.thin-end {
border-bottom: 1px solid black;
}
Вставьте этот CSS в ваш HTML, этодолжно работать. Пожалуйста, увеличьте .performance-facts
width до 300 с 280, чтобы он выглядел хорошо.