Skip to content
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

chore(v3): Update devtools to carbon v11 & rebuild on vite #334

Draft
wants to merge 6 commits into
base: base
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(v11): update SCSS
andy-blum committed Sep 13, 2024
commit f4313f1cd06dff4957c4b1e7f6aee53501af2747
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
/* stylelint-disable a11y/media-prefers-reduced-motion */
@use 'sass:map';
@use 'sass:math';
@use '@carbon/react/scss/breakpoint';
@use '@carbon/react/scss/grid';
@use '@carbon/react/scss/spacing';
@use '@carbon/react/scss/theme';
@use '@carbon/react/scss/type';
@use '../../vars.scss' as *;

@mixin label-maker($breakpoints) {
&::after {
@each $breakpoint in map-keys($breakpoints) {
@include carbon--breakpoint($breakpoint) {
@include breakpoint.breakpoint($breakpoint) {
content: 'breakpoint: #{$breakpoint}';
}
}
@@ -11,28 +19,28 @@

@mixin breakpoint-label--theme {
// breakpoint label theme
$border-style: 1px solid $ui-03;
$border-style: 1px solid theme.$border-subtle-01;

border-top: $border-style;
border-left: $border-style;
background: $ui-01;
color: $text-01;
background: theme.$layer-01;
color: theme.$text-primary;
}

.#{$prefix}--devtools {
@include label-maker($carbon--grid-breakpoints);
@include label-maker(grid.$grid-breakpoints);

// breakpoint label
&::after {
@include carbon--type-style('code-01');
@include carbon--font-family('mono');
@include type.type-style('code-01');
@include type.font-family('mono');
@include breakpoint-label--theme;

position: fixed;
z-index: 4;
right: 0;
bottom: -33px;
padding: carbon--mini-units(1) ($carbon--grid-gutter / 2);
padding: spacing.$spacing-05 math.div(grid.$grid-gutter, 2);
border-bottom: 0;
transition: bottom $transition-in;

139 changes: 0 additions & 139 deletions packages/web-extension/src/inject/components/Grid/2x/index.scss

This file was deleted.

Loading