Closed jonahbron closed 10 years ago
@jonahbron hello. I'm trying to reproduce this.
Can you fill missing informations (https://github.com/metaskills/less-rails-bootstrap/blob/master/ISSUES.md#reporting-problems) ?
@jonahbron Do you solve this problem?
I'm having the same issue with column offsets.
@jonlaing can you provide me some minimal git repo with this error to save me some time while I'll be debugging this issue?
@simi I will get back to you with a repo, but I was able to make it work by putting @import "twitter/bootstrap/mixins";
at the head of each file that needed mixins. I couldn't use implicit mixins, but I could use the function style mixins. So, .col-lg-offset-3;
didn't work but make-lg-column-offset(3);
did. Neither work if I don't include the mixins at the top of each file.
This is what my files look like:
// dashboard.less
@import "twitter/bootstrap/mixins";
.dashboard {
.row;
margin: @navbar-height 0 0 -15px;
.dashboard-body {
.col-lg-9;
.make-lg-column-offset(3);
position: fixed;
bottom: 0px;
top: @navbar-height;
padding-top: 30px;
overflow-y: scroll;
}
.dashboard-control {
.col-lg-3;
position: fixed;
bottom: 0px;
top: 0px;
}
}
// application.less
@import "custom_bootstrap/custom_bootstrap";
@import "typography.less";
//@import "layout.less";
@import "dashboard.less";
@import "navlist.less";
@import "navigation.less";
@import "colors.less";
////// TEMPORARY //////////
#b-facebook, #b-twitter {
display: none;
}
@maxd feel free to close if this is not related to gem, but to upstream.
Good catch @maxd. Now I'll know to check the bootstrap repo next time I have a problem.
I just integrated the latest version of this gem into my project, and I got several import errors upon use. The mixins
input-lg
andinput-sm
were being called in theinput.less
file, but they have been replaced byinput-large
andinput-small
, respectively.I also got errors that the mixins
label-variant
andpanel-variant
were missing. The strange thing is, these ones are definitely present in the Bootstrap mixins file. I had to add them to the custom bootstrapmixins.less
file in order for it to work. Here is the LESS I used to get it working: