Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
prototype
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
prototype
Commits
06761b29
Commit
06761b29
authored
Jan 19, 2024
by
John Ferris
Committed by
Jennifer Dust
Jan 19, 2024
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3414884
by pixelwhip: Add error handling for bp mixins
parent
207ae455
No related branches found
No related tags found
1 merge request
!91
Update file _breakpoints.scss
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/partials/mixins/_breakpoints.scss
+3
-2
3 additions, 2 deletions
libraries/partials/mixins/_breakpoints.scss
with
3 additions
and
2 deletions
libraries/partials/mixins/_breakpoints.scss
+
3
−
2
View file @
06761b29
...
...
@@ -15,6 +15,7 @@
// 01 - Imports
//------------------------------------
@use
'sass:map'
;
@use
'../settings/breakpoints'
as
settings-breakpoints
;
@use
'../functions/breakpoints'
as
functions-breakpoints
;
...
...
@@ -36,7 +37,7 @@
@content
;
}
}
@else
{
@
content
;
@
error
'[
#{
$name
}
] is not defined in $breakpoints. Found: [
#{
map
.
keys
(
$breakpoints
)
}
]. Make sure the breakpoint you are trying to use is defined.'
;
}
}
...
...
@@ -58,7 +59,7 @@
@content
;
}
}
@else
{
@
content
;
@
error
'[
#{
$name
}
] is not defined in $breakpoints. Found: [
#{
map
.
keys
(
$breakpoints
)
}
]. Make sure the breakpoint you are trying to use is defined.'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment