Skip to content

Commit 32a5651

Browse files
Chore: Remove breakpoints SCSS (grafana#91883)
remove breakpoints mixins
1 parent d9cabe5 commit 32a5651

File tree

4 files changed

+27
-91
lines changed

4 files changed

+27
-91
lines changed

public/sass/_angular.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
@use 'sass:color';
66
@use 'sass:list';
77

8+
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
9+
// Makes the @content apply to the given breakpoint and wider.
10+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
11+
$min: if(map.get($breakpoints, $name) != 0, map.get($breakpoints, $name), null);
12+
@if $min {
13+
@media (min-width: $min) {
14+
@content;
15+
}
16+
} @else {
17+
@content;
18+
}
19+
}
20+
821
// Gradients
922
@mixin gradient-vertical($startColor: #555, $endColor: #333) {
1023
background-color: color.mix($startColor, $endColor, 60%);

public/sass/_grafana.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// MIXINS
2-
@import 'mixins/breakpoints';
3-
41
// BASE
52
@import 'base/reboot';
63
@import 'base/forms';

public/sass/base/_grid.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
@use 'sass:math';
2+
@use 'sass:map';
3+
4+
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
5+
// Makes the @content apply to the given breakpoint and wider.
6+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
7+
$min: if(map.get($breakpoints, $name) != 0, map.get($breakpoints, $name), null);
8+
@if $min {
9+
@media (min-width: $min) {
10+
@content;
11+
}
12+
} @else {
13+
@content;
14+
}
15+
}
216

317
/// Grid system
418
//

public/sass/mixins/_breakpoints.scss

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)