У меня есть следующий код в моих стилях.s css:
.nav-bottom {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-content: flex-end;
width: auto;
height: auto;
position: fixed;
z-index: 8;
bottom: 0px;
right: 0px;
padding: 5px;
margin: 0px;
@media (max-width: 360px) {
width: 320px;
}
}
И вот что я вижу, когда проверяю элемент в chrome: ![enter image description here](https://i.stack.imgur.com/7gyT0.png)
последняя, но не менее важная часть моей webpack.config.js
:
{
test: /\.(sa|sc|c)ss$/,
use: [
{
// This loader resolves url() and @imports inside CSS
loader: 'css-loader',
},
{
// Then we apply postCSS fixes like autoprefixer and minifying
loader: 'postcss-loader',
},
{
// First we transform SASS to standard CSS
loader: 'sass-loader',
options: {
implementation: require('sass'),
},
},
{
loader: MiniCssExtractPlugin.loader,
},
{
loader: 'css-loader',
},
],
},
Есть идеи, почему это происходит?