Skip to content

Commit

Permalink
fix(chore): invalid css values
Browse files Browse the repository at this point in the history
Some CSS values are invalid which this PR fixes.
As a segment has a bottom box shadow by default i kept it for the bottom attached variant while fixing the current invalid assigned value (other elements like message, menu, table dont have a bottom shadow, so the bottom attached variant should also not have some by default
  • Loading branch information
lubber-de authored Jan 24, 2023
1 parent df306be commit bdc9edd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/definitions/modules/embed.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
display: block;
width: 100%;
height: 100%;
background-color: @placeholderBackground;
background: @placeholderBackground;
}

/* --------------
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/modules/popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@
box-shadow: @invertedBoxShadow;
}
.ui.inverted.popup .header {
background-color: @invertedHeaderBackground;
background: @invertedHeaderBackground;
color: @invertedHeaderColor;
}
.ui.inverted.popup::before {
Expand Down
4 changes: 1 addition & 3 deletions src/themes/default/collections/menu.variables
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@
@attachedWidth: e(%("calc(100%% + %d)", -@attachedHorizontalOffset * 2));
@attachedBoxShadow: none;
@attachedBorder: @borderWidth solid @solidBorderColor;
@attachedBottomBoxShadow:
@boxShadow,
@attachedBoxShadow;
@attachedBottomBoxShadow: @attachedBoxShadow;

/* Resize large sizes */
@mini: @11px;
Expand Down
4 changes: 1 addition & 3 deletions src/themes/default/collections/table.variables
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@
@attachedWidth: e(%("calc(100%% + %d)", -@attachedHorizontalOffset * 2));
@attachedBoxShadow: none;
@attachedBorder: @borderWidth solid @solidBorderColor;
@attachedBottomBoxShadow:
@boxShadow,
@attachedBoxShadow;
@attachedBottomBoxShadow: @attachedBoxShadow;

/* Striped */
@stripedBackground: rgba(0, 0, 50, 0.02);
Expand Down
4 changes: 1 addition & 3 deletions src/themes/default/elements/segment.variables
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@
@attachedWidth: e(%("calc(100%% + %d)", -@attachedHorizontalOffset * 2));
@attachedBoxShadow: none;
@attachedBorder: @borderWidth solid @solidBorderColor;
@attachedBottomBoxShadow:
@boxShadow,
@attachedBoxShadow;
@attachedBottomBoxShadow: @bottomShadow;

/* Inverted */
@invertedBackground: @black;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/default/elements/step.variables
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/* Icon */
@iconDistance: 1rem;
@iconSize: 2.5em;
@iconAlign: middle;
@iconAlign: center;

/* Title */
@titleFontFamily: @headerFont;
Expand Down
1 change: 1 addition & 0 deletions src/themes/default/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@

/* Differentiating Layers */
@subtleShadow: 0 1px 2px 0 @borderColor;
@bottomShadow: 0 2px 1px -1px @borderColor;
@floatingShadow:
0 2px 4px 0 rgba(34, 36, 38, 0.12),
0 2px 10px 0 rgba(34, 36, 38, 0.15);
Expand Down
2 changes: 1 addition & 1 deletion src/themes/default/views/item.variables
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

/* Description */
@descriptionDistance: 0.6em;
@descriptionMaxWidth: auto;
@descriptionMaxWidth: none;
@descriptionFontSize: 1em;
@descriptionLineHeight: @lineHeight;
@descriptionColor: @textColor;
Expand Down

0 comments on commit bdc9edd

Please sign in to comment.