Comments (4)
Hi there 👋 I'd suggest to create a _breakpoints.scss file inside the 'custom-style' folder, and override the SASS maps with the following snippet:
$breakpoints: (
xs: 32rem, // ~512px
sm: 48rem, // ~768px
md: 64rem, // ~1024px
lg: 80rem, // ~1280px
xl: 90rem // ~1440px
);
Also, don't forget to import the new _breakpoints.scss file into the _custom-style.scss file.
The col classes take the values from the SASS map, therefore they should update automatically if you edit the SASS map.
from codyhouse-framework.
Hi,
When you take a look at https://github.com/CodyHouse/codyhouse-framework/blob/master/main/assets/css/base/_breakpoints.scss#L7. The custom SASS map that i create will be overwritten again by the declaration of the SASS MAP inside this file. So this makes it impossible for me to import the _base.scss from the framework and build upon it further.
For example, the following construction will not work:
@import '../../node_modules/codyhouse-framework/main/assets/css/base';
@import '_custom-style';
from codyhouse-framework.
Hi @rlaven thanks for the clarification. I see your point. So the solution could be:
- define your custom $breakpoints before importing the base style:
https://www.dropbox.com/s/04wh88wzc6d5ejs/Screenshot%202019-08-26%2012.37.56.png?dl=0 - In the base/_breakpoints.scss, you would need to add a !default to the $breakpoints declaration:
https://www.dropbox.com/s/kk9o7jtonyxrgvt/Screenshot%202019-08-26%2012.39.51.png?dl=0
We'll include this change in the next release of the framework so that you won't need to manually update the framework files anymore. Let me know if you have any questions.
from codyhouse-framework.
Hi @claudia-romano,
Yes this is exactly as I would imagine it to work. Looking forward to the next release. Thanks for clarifying.
from codyhouse-framework.
Related Issues (20)
- gulp-clean-css makes css min file larger than source? HOT 2
- CodyHouse Pro Twitter link HOT 1
- Purge CSS is breaking Main Header component mobile functionality HOT 2
- Gridsome app - SCSS compiles but styles not loading HOT 6
- Gulp not refreshing Browser But compiles changes HOT 2
- Text component vertical space changed in v3 HOT 3
- Cannot install npm on this project due to latest version of npm & node HOT 2
- Modularize CodyHouse HOT 1
- remove margin / offset so grid elements are full width of container HOT 4
- how to use it with vite ? HOT 2
- Use data attributes instead of js-* classes HOT 1
- any chance of 10 minutes of zoom support? HOT 1
- HTML inputs with date-related type attribute are slightly higher than others HOT 2
- Add experiment library to codyhouse components HOT 2
- masonry.js is throwing error
- troubles with aspect-ratios HOT 2
- Button Editor: misleading contrast checker HOT 1
- Add an option to disable closing a modal by clicking Escape or clicking the backdrop HOT 1
- Using breakpoint mixin throws an error HOT 1
- Error when using google-closure-compiler HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codyhouse-framework.