You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In theme.config, specify Globals: @site to use the custom theme e.g. @site : 'mycustomtheme';
Run gulp build
Expected result
Site should use new breakpoint values
Actual result
Site ignores breakpoint values in custom theme's site.variables, instead uses the values of the last theme that was specified in Globals: @site.
Testcase
(unable to demonstrate this in a jsfiddle)
You can replicate using this simple UI to view different breakpoint behaviours (cards span full width under tablet size):
<div class="ui four column grid stackable cards">
<div class="ui fluid card">
A card
</div>
<div class="ui fluid card">
A card
</div>
<div class="ui fluid card">
A card
</div>
<div class="ui fluid card">
A card
</div>
<div class="ui fluid card">
A card
</div>
<div class="ui fluid card">
A card
</div>
</div>
setting another one of the pre-packaged themes in Globals: @site, such as Github or Amazon, will correctly set the breakpoints
custom breakpoints work when setting them in the Site Theme
if making changes to site.variables of the custom theme, gulp watch will not be triggered
Version
2.7.8
The text was updated successfully, but these errors were encountered:
trandromeda
changed the title
[Globals] Setting breakpoints in site.variables in a custom packaged theme not building
[Globals] Defining breakpoints in site.variables in a custom packaged theme not building
Sep 6, 2019
So any changes to a site.variables file is ignored and not built... that would explain why my custom theme globals for site.variables were not being used. From this, it seems the intent of the author was to enforce usage of site globals only to the Site Theme ...? It confused me that the Github, Amazon and Material themes had a Globals/site.variables file, so I was thinking I could do the same for a custom theme. Would appreciate some clarification on this matter, thanks!
Bug Report
Steps to reproduce
semantic/src/themes/mycustomtheme
mycustomtheme/globals/site.variables
theme.config
, specify Globals: @site to use the custom theme e.g.@site : 'mycustomtheme';
gulp build
Expected result
Site should use new breakpoint values
Actual result
Site ignores breakpoint values in custom theme's site.variables, instead uses the values of the last theme that was specified in Globals: @site.
Testcase
(unable to demonstrate this in a jsfiddle)
You can replicate using this simple UI to view different breakpoint behaviours (cards span full width under tablet size):
site.variables
of the custom theme,gulp watch
will not be triggeredVersion
2.7.8
The text was updated successfully, but these errors were encountered: