_includes/styles/variables.scss in jekyll-theme-hydejack-9.1.6 vs _includes/styles/variables.scss in jekyll-theme-hydejack-9.1.7
- old
+ new
@@ -11,10 +11,12 @@
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+@use "sass:math";
+
// {% assign vars = site.data.variables %}
// {% assign ui_font = 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif' %}
// {% assign ui_font_code = 'ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace' %}
$font-family: {{ vars.font | default:site.font | default:ui_font }};
@@ -52,10 +54,10 @@
$content-margin-3: 3rem;
$content-margin-5: 4rem;
// TODO: doc
-$half-content: ($content-width-5 / 2) + $content-margin-5;
+$half-content: math.div($content-width-5, 2) + $content-margin-5;
// The sidebar width starts adjusting dynamically when the content is at the center of the window.
// This is the case when the window size has a `min-width` of content area + twice the sidebar (left, right):
//
// $break-point-dynamic: $content-width-5 + (2 * $content-margin-5) + (2 * $sidebar-width); // = 104rem