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
Scss bootsrap 4 #4099
Scss bootsrap 4 #4099
Conversation
173368d
to
1b760aa
Compare
contribs/gmf/src/sass/vars_only.scss
Outdated
$border-radius-base: 2px !default; | ||
$border-radius-small: 1px !default; | ||
$border-radius-base: 0 !default; | ||
$border-radius-small: 0 !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we remove them and use $border-radius-sm
and $border-radius
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I prefer to use our own variable ($border-radius-base) So If customers want a radius with bootstrap thing they can have it. And using our own variable, we are not dependant of boostrap as well.
We never use $border-radius-small, I remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK :-)
contribs/gmf/src/sass/vars_only.scss
Outdated
$input-border-focus: darken($brand-primary, $standard-variation) !default; | ||
|
||
$fa-font-path: "~font-awesome/fonts"; | ||
|
||
// Bootstrap 3 compatibility layer | ||
$border-radius: $border-radius-base !default; | ||
$border-radius-lg: $border-radius-base !default; | ||
$border-radius-sm: $border-radius-base !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't be $border-radius-base / 2 !default
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can, but we always have border-radius = 0 in our code.
Note also that in bootstrap values are (hardcoded at each level):
$border-radius: .25rem !default;
$border-radius-lg: .3rem !default;
$border-radius-sm: .2rem !default;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK :-)
@@ -247,7 +246,7 @@ gmf-backgroundlayerselector { | |||
$theme-selector-columns: 2; | |||
.gmf-theme-selector li { | |||
float: left; | |||
width: calc((100% - $theme-selector-columns * 2 * $half-app-margin) / $theme-selector-columns); | |||
width: calc((100% - #{$theme-selector-columns} * 2 * #{$half-app-margin}) / #{$theme-selector-columns}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this syntax?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The equivalent to calc(100% - ~"@{theme-selector-columns} * 2 ...") in less
So a manner to use calc
with sass variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci :-)
9ba1976
to
a2f5146
Compare
@@ -247,7 +246,7 @@ gmf-backgroundlayerselector { | |||
$theme-selector-columns: 2; | |||
.gmf-theme-selector li { | |||
float: left; | |||
width: calc((100% - $theme-selector-columns * 2 * $half-app-margin) / $theme-selector-columns); | |||
width: calc((100% - #{$theme-selector-columns} * 2 * #{$half-app-margin}) / #{$theme-selector-columns}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci :-)
$border-radius-sm: $border-radius-base !default; | ||
$font-size-base: 0.8rem !default; | ||
$input-btn-padding-y: 0.25rem !default; | ||
$input-btn-padding-x: 0.5rem !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we set the comment
# Bootstrap 4 customization
for this block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean you want that I change the // Bootstrap 3 compatibility layer
comment to yours ?
b417464
to
e7fe0e0
Compare
e7fe0e0
to
af3e070
Compare
Still a lot to do (mainly in the right panels) but I want to merge |
GSGMF-418
See also: https://getbootstrap.com/docs/4.0/migration/