Skip to content

Commit

Permalink
fix(styles): fix stylelint rules violations
Browse files Browse the repository at this point in the history
  • Loading branch information
giamir committed Nov 28, 2022
1 parent 7f075c3 commit 664bef5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 29 deletions.
2 changes: 1 addition & 1 deletion lib/css/atomic/gap.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
.gx0, .gx1, .gx2, .gx4, .gx6, .gx8, .gx12, .gx16, .gx24, .gx32, .gx48, .gx64,
.gy0, .gy1, .gy2, .gy4, .gy6, .gy8, .gy12, .gy16, .gy24, .gy32, .gy48, .gy64,
.g0, .g1, .g2, .g4, .g6, .g8, .g12, .g16, .g24, .g32, .g48, .g64 {
gap: var(--_gap-y, 0) var(--_gap-x, 0);
gap: var(--_gap-y, 0) var(--_gap-x, 0);
}
2 changes: 1 addition & 1 deletion lib/css/components/cards.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
--_ca-bc: var(--bc-light);

// Dim only the first child card content
> * {
> * {
opacity: 0.65;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/css/components/expandable.less
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@
-webkit-clip-path: var(--_ex-clip-path);
clip-path: var(--_ex-clip-path);
transition: clip-path 0s var(--_ex-transition-duration), -webkit-clip-path 0s var(--_ex-transition-duration);
}
}
22 changes: 4 additions & 18 deletions lib/css/components/inputs.less
Original file line number Diff line number Diff line change
Expand Up @@ -609,34 +609,18 @@ fieldset {
font-size: var(--fs-caption);
}

// $$ SIZES
// $$ PADDING ADJUSTMENTS AND SIZES
// ----------------------------------------------------------------------------
.s-input__sm,
.s-textarea__sm,
.s-select__sm > select {
font-size: var(--fs-caption);
}
.s-input__md,
.s-textarea__md,
.s-select__md > select {
font-size: var(--fs-body3);
}
.s-input__lg,
.s-textarea__lg,
.s-select__lg > select {
font-size: var(--fs-title);
}
.s-input__xl,
.s-textarea__xl,
.s-select__xl > select {
font-size: var(--fs-headline1);
}

// $$ PADDING ADJUSTMENTS WITHIN SIZES
// ----------------------------------------------------------------------------
.s-input__md,
.s-textarea__md,
.s-select__md > select {
font-size: var(--fs-body3);
padding-top: 0.5em;
padding-bottom: 0.5em;
border-radius: calc(var(--br-sm) + 1px);
Expand All @@ -650,13 +634,15 @@ fieldset {
.s-input__lg,
.s-textarea__lg,
.s-select__lg > select {
font-size: var(--fs-title);
padding: 0.45em 0.6em;
border-radius: calc(var(--br-sm) + 1px);
}

.s-input__xl,
.s-textarea__xl,
.s-select__xl > select {
font-size: var(--fs-headline1);
padding: 0.4em 0.5em;
border-radius: var(--br-md);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/css/components/pagination.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.s-pagination {
& &--item {
& &--item {
--_pa-item-bg: transparent;
--_pa-item-bc: var(--bc-medium);
--_pa-item-fc: var(--fc-medium);
Expand Down
13 changes: 6 additions & 7 deletions lib/css/components/popovers.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
--_po-arrow-after-r: unset;
--_po-arrow-after-t: unset;
--_po-arrow-after-bs: unset;

// CONTEXTUAL STYLES
.dark-mode({
--_po-bg: var(--black-075);
--_po-bc: var(--bc-light);
--_po-bs: var(--bs-lg);
--_po-arrow-fc: var(--black-075);
});

// MODIFIERS
&.is-visible {
--_po-d: block;
Expand All @@ -34,7 +34,7 @@
--_po-wmn: unset;
--_po-w: auto;
}

// CHILD ELEMENTS
// Arrow
&[data-popper-placement^="top"] > &--arrow,
Expand Down Expand Up @@ -128,14 +128,14 @@
right: calc(var(--su8) * -1); // Compensate for s-popover's padding
padding: var(--su8) !important;
}

background-color: var(--_po-bg);
border: 1px solid var(--_po-bc);
box-shadow: var(--_po-bs);
display: var(--_po-d);
min-width: var(--_po-wmn);
width: var(--_po-w);

border-radius: var(--br-md);
color: var(--fc-dark);
font-size: var(--fs-body1);
Expand All @@ -144,5 +144,4 @@
position: absolute;
white-space: normal; // Guard against popovers being in a container with white-space: nowrap. Without this, the content pops *out* of the popover.
z-index: var(--zi-popovers);
}

}

0 comments on commit 664bef5

Please sign in to comment.