-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] responsive padding and margin not working on single pages #29
Comments
Hi @brunoamaral, Thank you for working with our products. I just checked now the CSS and SCSS files available in Soft UI Design System PRO and the Did you modify something? Thank you, |
Hi @rarestoma . Thank you for taking a look. I didn't modify anything other than porting the html to Hugo. What scss file contains the mt-lg- class? I'm trying to see if there is something wrong in the way hugo processes the files. Update, I'm building the css from the initial {{- $softUi := resources.Get "scss/soft-design-system-pro.scss" | resources.ToCSS (dict "enableSourceMap" true "outputStyle" "compressed") }}
{{ $styles := $softUi | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint -}} |
I think I figured it out, the classes come back when I disable the postCSS above. Which is strange, all I have there is this: module.exports = {
plugins: {
'@fullhuman/postcss-purgecss': {
content: ['./layouts/**/*.html', './themes/soft-ui/layouts/**/*.html', './content/**/*.html', './content/**/*.md'],
safelist: {
greedy: [/.animate.*/]
},
fontFace: false,
variables: false
},
autoprefixer: {},
cssnano: {
preset: [
"default",
{ "discardComments": { "removeAll": true } }
]
}
//cssnano: { preset: 'default' }
}
}; Soft-UI is in the layouts directory, so I don't see a reason why the tree shaking is getting rid of the responsive margins. Thank you for your help in figuring the problem, @rarestoma 🙂 |
Version
1.0.9
Reproduction link
https://brunoamaral.eu/post/drop-dead-digital/
Operating System
iOS
Device
iphone 12
Browser & Version
safari latest
Steps to reproduce
py-0 mt-0 py-md-5 mt-md-5
instead ofpy-5 mt-5
that is used right nowMaybe i'm missing something regarding bootstrap 5, let's not rule that out. Yet, on mobile, single pages tend to show only the title and the user has no cue that they can scroll down. Specially now that Safari shows the address bar on the bottom by default.
What is expected?
different margin and padding on mobile
What is actually happening?
nothing
Solution
Additional comments
The text was updated successfully, but these errors were encountered: